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

Search:

Type: Posts; User: csheng

Search: Search took 0.03 seconds.

  1. Thread: Installing Dlls

    by csheng
    Replies
    12
    Views
    5,188

    We should also make sure other dll (if any) using...

    We should also make sure other dll (if any) using the same mfc dll are in the same spot.

    csheng
  2. Thread: Installing Dlls

    by csheng
    Replies
    12
    Views
    5,188

    If I did not know if the target machine has had...

    If I did not know if the target machine has had the same version of mfc DLL, I usually put it in the application directory, and the application will use the the file.

    I am not sure what you mean...
  3. Replies
    3
    Views
    697

    Only thing I can think of is that there is no...

    Only thing I can think of is that there is no enough memory to create the 9-D array.

    csheng
  4. Replies
    11
    Views
    1,488

    Good point. If wanted to get char * from...

    Good point.

    If wanted to get char * from cstring and gettin getting the internal buffer from cstring is not such a bad thing, at least not for me,
    casting it to const is also logical as PlayFile...
  5. Replies
    2
    Views
    2,975

    // // Register the window class if not already...

    //
    // Register the window class if not already registered.
    //
    WNDCLASS wc;
    HINSTANCE hinst = AfxGetInstanceHandle();
    if (GetClassInfo(hinst, g_classname, &wc))
    return TRUE; ...
  6. Replies
    2
    Views
    2,975

    // // Register the window class if not already...

    //
    // Register the window class if not already registered.
    //


    WNDCLASS wc;
    HINSTANCE hinst = AfxGetInstanceHandle();
    if (GetClassInfo(hinst, g_classname, &wc))
    return TRUE;
  7. Replies
    11
    Views
    1,488

    I use this all the time. CString cs;...

    I use this all the time.

    CString cs;
    (LPCTSTR)cs.GetBuffer(cs.GetLength());
    cs.ReleaseBuffer();

    Is there any issue with this code so you avoid it?

    csheng
  8. Replies
    10
    Views
    1,499

    Ooops, I found it in MSDN, thanks very much. ...

    Ooops, I found it in MSDN, thanks very much.

    Here is from MSDN for those of you who do not want to search MSDN. (Actually I use MSDN very often).

    C and C++ programs consist of one or more...
  9. Replies
    10
    Views
    1,499

    Thanks to mclark for pointing to searching msdn....

    Thanks to mclark for pointing to searching msdn. It did expalin something about translation phase.

    But I still could not find what role translation unit is playing in MSDN. This is a C question,...
  10. Replies
    10
    Views
    1,499

    Let me re-phrase the question. If a.h file is...

    Let me re-phrase the question.

    If a.h file is included in both a.c and b.c file, both c file are to be compiled into two translation units.

    In this case, what is the use of the translation...
  11. Replies
    8
    Views
    1,140

    I remember seeing an article and a sample code to...

    I remember seeing an article and a sample code to do this in codeguru, but I do not remeber the link.

    Searching the codeguru existing code base may help you.

    csheng
  12. Replies
    10
    Views
    1,499

    It appears to be clear that .c file is compiled...

    It appears to be clear that .c file is compiled to a translation, but if the a.c file has

    #include "a.h"

    Compiler will compile these two file to a translation unit.

    However, a a.h file can...
  13. Replies
    10
    Views
    1,499

    Translation Unit

    Hello, All:

    What is C++ translation unit? Is it talking about file *.h/*.cpp? Why is that?

    Thanks.

    csheng
Results 1 to 13 of 13





Click Here to Expand Forum to Full Width

Featured