Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: streamer

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    940

    Re: need some help with hash tables

    Just one thought. Isn't it better to do it with some kind of DB like MySql, or SQLite, INSERTing new urls and UPDATEing the count if there is one?
  2. Replies
    10
    Views
    1,138

    Re: Waiting for threads

    Check this thread: http://www.codeguru.com/forum/showthread.php?t=308930
  3. Replies
    3
    Views
    1,627

    Re: Calculate DLL 4Byte Hash Checksum

    Here is the problem:

    unsigned char* MyStr = (unsigned char *)"LoadLibraryA";

    should be:

    char * CalcHash(char * MyString)
    {
    unsigned int h;
    unsigned char *c=(unsigned char*)MyString;
  4. Replies
    3
    Views
    1,015

    Re: Windown service not starting

    First of all debugging the services is really hard work.
    Second: use code outlining it will be much more readable for us mortals.
    Third: Install on Vista Visual Studio 2008 redistributable, to get...
  5. Re: Am I crazy? Is there a bug in a so simple code?

    I'm using Process Explorer to check detailed information on running programs, memory leaks, handle leaks. It can be downloaded from https://technet.microsoft.com/en-us/sysinternals/bb896653.aspx. Its...
  6. Replies
    6
    Views
    612

    Re: tray menu leaking handles

    Handle leaking is probably located in WM_PAINT, or OnPaint, OnDraw functions...can you paste that code too?
  7. Re: Help needed : I need to open tabs in IE using VC++

    Probably it is possible, but on the other hand it may not be possible. Try to check the messages with Spy++ what messages browser is getting when you open the new tab. Off course you need to check...
  8. Replies
    4
    Views
    678

    Re: problem with function.....

    error C2065: 'myPtr' : undeclared identifier
    (39) : error C2065: 'client' : undeclared identifier
    (40) : error C2065: 'myPtr' : undeclared identifier
    (40) : error C2228: left of '.ptr' must have...
  9. Replies
    24
    Views
    4,436

    Re: MFC - Cdialog::OnOK() in Thread

    I have learned this hard way. Calling any MFC stuff that involves any GUI will surely fail sooner or later. I have spent weeks debugging and didn't understand why my application is throwing asserts....
  10. Replies
    8
    Views
    538

    Re: Simple problem

    No, you're right Looser_007, also indenting your code is good thing, and it will show you where you have another error. Every open code block, procedure that's open with { need to have closed block,...
  11. Replies
    23
    Views
    1,824

    Re: do while question

    Yes I know, but to explain someone who doesn't know boolean type what is precedence of operators, and why that is the same....

    Anyway I just wanted him to notice where his problem is, and to...
  12. Replies
    23
    Views
    1,824

    Re: do while question

    Not taught boolen....eh
    You been wrote

    if ( condition )

    means condition can be true or false

    in your case, your condition is that number must be in range 2.5 - 6.5

    so condition is "if...
  13. Replies
    10
    Views
    1,108

    Re: sndPlaySound Wont play

    And what about:

    PlaySound(_T(".Default"),NULL, SND_APPLICATION|SND_NODEFAULT);

    this will play default bell sound in windows.
  14. Replies
    16
    Views
    10,558

    Re: Focus Problem in MFC Dialog Project

    Do you use wizard to add handlers to your dialog class?

    you should have these things:

    declaration in header file:
    afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);

    message map:...
  15. Re: PLEASE help explain linked lists code to me!

    Linked lists are very easy to understand:

    You have
    class Node
    {
    Node* parent;
    Node* child;
    };

    consider it as:
  16. Re: ShellExecute is not performing as expected

    You don't need to set current path because shellexecute have one parameter which is counted as current dir for executed program

    ShellExecute(NULL, "open", "c:/mydir/myprg.exe", "", "c:/mydir/",...
  17. Replies
    16
    Views
    10,558

    Re: Focus Problem in MFC Dialog Project

    Look, If you have made the dialog and select it that dialog have a focus, then press some key on the keyboard, message will be dispatched to your dialog.
    You need to have OnKeyDown event handled:
    ...
  18. Replies
    16
    Views
    10,558

    Re: Focus Problem in MFC Dialog Project

    Maybe this?

    return FALSE; // return TRUE unless you set the focus to a control

    Put it back to TRUE and see what is happening
  19. Replies
    11
    Views
    1,242

    Re: Child window problems

    Handling two d3d devices is a much more work to handle than swap chains. Example:
    So you have one windowed application, and you think you don' t need to handle lost device, when user switch from...
  20. Replies
    11
    Views
    1,242

    Re: Child window problems

    If you want to use two different windows with both having the DirectX rendering loop, you will need to use the Swap Chains. Google for it, you will find lot of examples...
  21. Replies
    4
    Views
    765

    Re: CEdit box with variable fonts

    I think that isn't possible. You may use rich control, in which you can format your text.
  22. Replies
    16
    Views
    1,459

    Re: Simple class, delete exception

    The problem is not in code you had posted. Problem is somewhere else in the program. Without some other code we can't help. Just tip what MAY be the problem.
  23. Replies
    16
    Views
    1,459

    Re: Simple class, delete exception

    You don't have any problem.

    However you should write

    if(o1)
    {
    delete o1;
    o1 = NULL;
    }
  24. Re: Total newbie problem.. corrupted stack around variable

    Its not. Its bug.

    void getName(char name[]) const

    also have a problem/bug as you wish. You should pass parameter as reference.
  25. Re: Total newbie problem.. corrupted stack around variable

    sg.setGrade(100,5);

    you don't have fifth element in int quizzes[4];

    should be:
    sg.setGrade(100,2);
Results 1 to 25 of 42
Page 1 of 2 1 2


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center