How to use CString class in my dll?
-
Hi. I have made a dll project in VC6. When I add #include<afx.h> the following error occurs. I tried to remove #include<windows.h> from stdafx.h but that didn't help either. ..\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
-
Hi. I have made a dll project in VC6. When I add #include<afx.h> the following error occurs. I tried to remove #include<windows.h> from stdafx.h but that didn't help either. ..\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
You could try using std::string. But, I'm sure there are ways to get CString included. Why don't you work out the header it's in, and just include that ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Hi. I have made a dll project in VC6. When I add #include<afx.h> the following error occurs. I tried to remove #include<windows.h> from stdafx.h but that didn't help either. ..\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
MohammadAmiry wrote:
When I add #include the following error occurs.
Include afxwin.h and remove afx.h and windows.h.
Nibu thomas A Developer Programming tips[^] My site[^]
-
Hi. I have made a dll project in VC6. When I add #include<afx.h> the following error occurs. I tried to remove #include<windows.h> from stdafx.h but that didn't help either. ..\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
-
MohammadAmiry wrote:
When I add #include the following error occurs.
Include afxwin.h and remove afx.h and windows.h.
Nibu thomas A Developer Programming tips[^] My site[^]
now the following errors occur: Compiling... StdAfx.cpp Compiling... Macro2.cpp Linking... nafxcwd.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in Macro2.obj nafxcwd.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in Macro2.obj; second definition ignored Creating library Debug/Macro2.lib and object Debug/Macro2.exp Debug/Macro2.dll : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. Creating browse info file... Macro2.dll - 2 error(s), 1 warning(s)
-
now the following errors occur: Compiling... StdAfx.cpp Compiling... Macro2.cpp Linking... nafxcwd.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in Macro2.obj nafxcwd.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in Macro2.obj; second definition ignored Creating library Debug/Macro2.lib and object Debug/Macro2.exp Debug/Macro2.dll : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. Creating browse info file... Macro2.dll - 2 error(s), 1 warning(s)