Search:

Type: Posts; User: keithathaide

Page 1 of 40 1 2 3 4

Search: Search took 0.38 seconds.

  1. Replies
    26
    Views
    1,619

    I have a question about the "exit(1)" statements...

    I have a question about the "exit(1)" statements spread everywhere. Are the situations that unrecoverable from, that you must quit immediately? In all the cases I've seen the situation can be dealt...
  2. Replies
    2
    Views
    636

    I would think that you'd need to define events...

    I would think that you'd need to define events for each behaviour you want to customize. For example, you'd want to capture all paint events with EVT_PAINT.

    Similary to make it clickable and...
  3. Replies
    7
    Views
    884

    But some would argue that it's less readable...

    But some would argue that it's less readable especially if the function name is longer and accepts parameters.
  4. Replies
    26
    Views
    1,619

    That statement should not be commented out. It...

    That statement should not be commented out. It would cause a memory leak. Notice that SetupMatrix() allocates a location of 'cols' number of float pointers to 'mat.mat'. Thus that area needs to be...
  5. Replies
    4
    Views
    810

    You could add a member variable to the form class...

    You could add a member variable to the form class to store the number of key presses. In the KeyPress event handler, check this count. The moment is equals or exceeds 2, run the code that needs to be...
  6. Replies
    26
    Views
    1,619

    Correct me if I'm wrong, but in C++, the only...

    Correct me if I'm wrong, but in C++, the only difference between a class and a struct is that the former has its members by default private and the latter by default has its members public.

    If...
  7. Replies
    2
    Views
    318

    A Visual Basic .NET compiler is included with the...

    A Visual Basic .NET compiler is included with the .NET framework. The location should be:

    C:\<windows director>\Microsoft.NET\Framework\<framework version>\vbc.exe

    You can see the list of...
  8. Replies
    26
    Views
    1,619

    In your attached code, in the destructor for the...

    In your attached code, in the destructor for the matrix, you use the line:



    if (!mat)


    Shouldn't it be
  9. Replies
    2
    Views
    2,175

    You will need to create a menu resource or a menu...

    You will need to create a menu resource or a menu programmatically. Either way you will need a handle to a menu (an HMENU).

    Then you can use either:
    TrackPopupMenu:...
  10. This line: GetNumber() = x; You want...

    This line:



    GetNumber() = x;


    You want to assign the result of GetNumber() to x, not the other way around, so it should actually read:
  11. Replies
    7
    Views
    769

    Tools->Options Expand Environment, select...

    Tools->Options

    Expand Environment, select "Fonts and Colors". From the combo box labelled "Show settings for:" select "Dialogs and Tool Windows". Restart the environment as instructed. This will...
  12. Replies
    26
    Views
    1,619

    I remember reading somewhere that global...

    I remember reading somewhere that global variables are always initialised to zero, but local variables are not initialized. This would explain the problem with global/local variables that you're...
  13. Replies
    6
    Views
    452

    You can also use the fstream classes.

    You can also use the fstream classes.
  14. Replies
    45
    Views
    10,557

    What's proving difficult? Perhaps someone could...

    What's proving difficult? Perhaps someone could provide a PHP or VB analogy that would make it click.
  15. Thread: help

    by keithathaide
    Replies
    42
    Views
    2,467

    I was going by the logic. The default case says...

    I was going by the logic. The default case says something like "Bad choice, quitting...". So I figured, it shouldn't loop but quit. The logic can easily be modified to follow your example by changing...
  16. Replies
    3
    Views
    345

    It's a window. You can create it as a top level...

    It's a window. You can create it as a top level window (in which case it won't have any frame decorations like a title bar) or embed it as a child within a frame.

    Using google to search for "Using...
  17. Replies
    22
    Views
    1,106

    You probably have some registry key which hasn't...

    You probably have some registry key which hasn't been deleted. You can try searching through the registry for the path at which the SDK was previously installed. Or you can turn on logging for...
  18. Thread: help

    by keithathaide
    Replies
    42
    Views
    2,467

    If you're using Visual Studio or another program...

    If you're using Visual Studio or another program which has Intellisense like it, I say put the argument names in the prototype. This is because the tooltip provided by Intellisense would be more...
  19. Replies
    5
    Views
    493

    I would, but I'm willing to bet there's a sample...

    I would, but I'm willing to bet there's a sample application that uses wizards in the samples directory.
  20. Replies
    5
    Views
    493

    A wizard seems to be what you're aiming at ......

    A wizard seems to be what you're aiming at ... maybe take a look at wxWizard?

    If the second dialog has public members or public mutators, the first dialog can set or call these before calling...
  21. Replies
    3
    Views
    338

    Take a look at wxFindFirstFile...

    Take a look at wxFindFirstFile and wxFindNextFile. There is an example with the description for wxFindFirstFile()

    You can store the file names in an array or a list or whatever you like and then...
  22. Replies
    2
    Views
    443

    wxWidgets does have classes that deal with...

    wxWidgets does have classes that deal with network programming. For example: wxSocketEvent, wxSocketBase, wxSocketClient, wxSocketServer
  23. Replies
    4
    Views
    882

    I don't know of any way that Javascript can...

    I don't know of any way that Javascript can access POST data. If you want to hide the url part, then you would have to use cookies as an alternate way of doing this.
  24. Replies
    4
    Views
    882

    When you first declare 'rego', you don't give it...

    When you first declare 'rego', you don't give it a value, so it is "undefined". The init() function is called only when the page is fully loaded, so when the if condition is run, the value of 'rego'...
  25. You put the target attribute in the form tag? If...

    You put the target attribute in the form tag? If not, try putting it in the form tag.
Results 1 to 25 of 1000
Page 1 of 40 1 2 3 4