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

Search:

Type: Posts; User: JMS

Page 1 of 30 1 2 3 4

Search: Search took 0.23 seconds.

  1. Replies
    2
    Views
    893

    Problem with subclassing CComboBox..

    I've created a child class of CComboBox in order to create auto finishing text. (actually I downloaded it from CGuru.. )

    CComboBoxEx


    Everything works great. Problem I no longer get the...
  2. Replies
    1
    Views
    634

    How do I get the id of a control?

    How can I programatically get the resource id of a dialog item control?
  3. Replies
    3
    Views
    861

    Re: File modified externally ?

    yes... when you first open the file and read it's contents use the fstat() function to read the last modified timestamp. Then on some regular basis ( polling.. ugly ) read same last modified...
  4. Replies
    2
    Views
    626

    Re: a program on pointers

    you know the code for stricmp/strcmpi is in Kerigan and Richie right?



    #include <libc/stubs.h>
    #include <string.h>
    #include <ctype.h>

    int
    stricmp(const char *s1, const char *s2)
  5. Replies
    2
    Views
    899

    Re: coloring the tab in propertysheet

    Changing the actual color of the tab is problematic because the color of the tab is also used in other places by the tab control. So the last time I actually tried it it didn't look very good.
    ...
  6. Replies
    3
    Views
    804

    Re: How to write macros

    #ifdef WM2OO5
    // wm2005 specific code here...
    #endif


    #ifdef PPC2003
    // ppc2003 specific code here...
    #endif
  7. Replies
    10
    Views
    2,123

    Re: Multithread Log

    I've wrote a LOG macro..

    #define LOG(X) logFile((x) __LINE__, __FILE__ )


    Then wrote a logfile function which just fopen() did an fprint() and fclose(). I put that LOG inside of five...
  8. Replies
    3
    Views
    856

    Re: How to connect to data text file

    so are you looking for a mechanism to download the text files? The simplest way to do this with C++ would be to write a command line CGI program and put it into an Apache web server program.
    ...
  9. Replies
    9
    Views
    1,554

    Re: Callback across thread

    No, There is one window thread and that is the only thread which can update the main window. Passing data off to another thread for updateing the gui is convoluted and wrong headed thinking.
    ...
  10. Replies
    2
    Views
    878

    Re: Crystal report in C++

    Yeah they have acess modifiers for all the fields.. Just inspect your Crystal Reports object.
  11. Replies
    7
    Views
    1,216

    Re: Detect last edited window

    you could react to the onedit callback every time an edit is changed you pop a timestamp into an array. Then when you want to know the last one that changed all you have to do is find the latest...
  12. Thread: Clear Screen

    by JMS
    Replies
    4
    Views
    1,189

    Re: Clear Screen

    you could also do something like this



    for( int i = 0; i < 25; i++ )
    printf("\n");


    this preserves your output in the buffer for debugging.. otherwise I would use the system ( "cls" );
  13. Thread: strlen vs sizeof

    by JMS
    Replies
    7
    Views
    18,237

    Re: strlen vs sizeof

    Let me try to simplify this.

    sizeof() is an operator used to determine the size of a variable. ( will never blow up ).
    strlen() is a function which counts the number of bytes in a string before...
  14. Thread: Winsock

    by JMS
    Replies
    4
    Views
    882

    Re: Winsock

    Ping is a protocol. Why don't you want to use a ping? that's what it was designed to do.
  15. Re: restoring the last state of app like in ShowWindow()

    what you want to do is handle the WM_SIZE messages specifically wehre the type is (MAXIMIZE,MINIMIZE,RESTORE) and track what state your program is yourself.

    When you exit you store it to the...
  16. Re: what are the differences among mutex, condition variables, and semaphore?

    A condition variable is just a boolean or integer variable used in an if statement. It's is suitable for single threaded logic but not sufficient for communication between threads. Because:

    1)...
  17. Replies
    5
    Views
    715

    Re: allocation array does not work in realse

    One big difference between debug mode and release mode is that in debug mode your memory allocations on the stack and heap... ( local variables, and variables allocated with new ) are initialized...
  18. Replies
    81
    Views
    70,977

    Re: how to implement a singleton in c/c++?

    Java has no linking step. Java is a single pass translator which takes .java files and creates isolated .class files. The javac environment dynamically associates the .class files allowing the...
  19. Thread: Macros in C

    by JMS
    Replies
    102
    Views
    12,776

    Re: Macros in C

    exactly.... TRACE is itself a macro, which uses macros.



    I too think hexidecimal symbolic offsets are only of limited value. I would much rather have the actual decimal line number. I think...
  20. Thread: Macros in C

    by JMS
    Replies
    102
    Views
    12,776

    Re: Macros in C

    In general you didn't understand any of my posts because you took them out of context. I posted specific replies to other folks who were stating what has come to be a consensus view that macro's...
  21. Thread: Macros in C

    by JMS
    Replies
    102
    Views
    12,776

    Re: Macros in C

    I had to get a calculator out to translate 0x2ab.. into an actual line number.
    Don't you think the first line of support would appreciate having decimal numbers in their error reports?

    Also stack...
  22. Thread: Macros in C

    by JMS
    Replies
    102
    Views
    12,776

    Re: Macros in C

    That's impressive. What methodology do you use? My experience good developers can succeed with any or no methodology. Poor developers won't suceed regardless of the methodology used. Also many...
  23. Thread: Macros in C

    by JMS
    Replies
    102
    Views
    12,776

    Re: Macros in C

    sorry, my confusion...



    But then you code doesn't go away in different versions of the code, it just isn't executed, also you don't get the file names and line numbers or the clickable edit...
  24. Thread: Macros in C

    by JMS
    Replies
    102
    Views
    12,776

    Re: Macros in C

    Again. You aren't arguing for the simple solution. You aren't arguing for the most forgiving solution. You aren't even the most transparent solution. Implementing universal meaningful exception...
  25. Thread: Macros in C

    by JMS
    Replies
    102
    Views
    12,776

    Re: Macros in C

    So you're saying that your software Quality proceedures eliminate bugs? and ensure the code optimumly implements standards such as capturing meaningful stack snapshots in response to third party...
Results 1 to 25 of 750
Page 1 of 30 1 2 3 4





Click Here to Expand Forum to Full Width

Featured