project for matlab mex: MFC DLL versus Win32 DLL-Collection of common programming errors
Hi,
I am trying to use VC 6 to compile c files to matlab mex (a kind of DLL). VC 6 gives me two type of dlls:MFC and Win32.
i tried both. they both works fine on my computer (i compiled them on my computer).
then on another mathine, the matlab (thus some matlab lib files i included in the project) is in aother directory (different from mine). Now the Win32 type mex file works fine, but the MFC type mex file does not work.
Does this have something to do with the settings of the linker or compiler?
my codes are exactly the same for Win32 DLL and MFC DLL.
can anybody give me some clue where i should pay attention to in codeing the MFC DLL?
thank you very much for the help.
Qi
-
MFC is an extension library, which you probably don’t need if you don’t even know what it is 🙂
With win32 dlls, the reason for other computers not being able to open them, may very well be missing dlls on the taregt system. Try linking statically to the runtime libraries (in the Code Generation sub-section of your project properties’ C/C++ section).