Type: Posts; User: csheng
We should also make sure other dll (if any) using the same mfc dll are in the same spot.
csheng
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...
Only thing I can think of is that there is no enough memory to create the 9-D array.
csheng
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...
//
// Register the window class if not already registered.
//
WNDCLASS wc;
HINSTANCE hinst = AfxGetInstanceHandle();
if (GetClassInfo(hinst, g_classname, &wc))
return TRUE; ...
//
// Register the window class if not already registered.
//
WNDCLASS wc;
HINSTANCE hinst = AfxGetInstanceHandle();
if (GetClassInfo(hinst, g_classname, &wc))
return TRUE;
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
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...
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,...
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...
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
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...
Hello, All:
What is C++ translation unit? Is it talking about file *.h/*.cpp? Why is that?
Thanks.
csheng