Search:
Type: Posts; User: csheng
Search:
Search took 0.03 seconds.
-
December 18th, 2003, 01:31 PM
We should also make sure other dll (if any) using the same mfc dll are in the same spot.
csheng
-
December 16th, 2003, 10:56 PM
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...
-
November 23rd, 2003, 06:04 PM
Only thing I can think of is that there is no enough memory to create the 9-D array.
csheng
-
November 23rd, 2003, 05:40 PM
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...
-
November 22nd, 2003, 10:33 PM
//
// Register the window class if not already registered.
//
WNDCLASS wc;
HINSTANCE hinst = AfxGetInstanceHandle();
if (GetClassInfo(hinst, g_classname, &wc))
return TRUE; ...
-
November 22nd, 2003, 10:30 PM
//
// Register the window class if not already registered.
//
WNDCLASS wc;
HINSTANCE hinst = AfxGetInstanceHandle();
if (GetClassInfo(hinst, g_classname, &wc))
return TRUE;
-
November 22nd, 2003, 10:25 PM
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
-
November 22nd, 2003, 10:15 PM
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...
-
November 22nd, 2003, 10:08 PM
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,...
-
November 22nd, 2003, 09:59 PM
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...
-
November 22nd, 2003, 07:21 PM
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
-
November 22nd, 2003, 07:15 PM
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...
-
November 22nd, 2003, 12:20 AM
Hello, All:
What is C++ translation unit? Is it talking about file *.h/*.cpp? Why is that?
Thanks.
csheng
|
Click Here to Expand Forum to Full Width
|