Doomulation
?????????????????????????
I have another problem this time of which i can't figure out for all of my life. As you see, I'm doing a dll. Now, I try to compile it and get this errors:
Linking...
mfcs42d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in Doom Music Player.obj
mfcs42d.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in Doom Music Player.obj; second definition ignored
Creating library Debug/Doom Music Player.lib and object Debug/Doom Music Player.exp
Debug/Doom Music Player.dll : fatal error LNK1169: one or more multiply defined symbols found
To that, these are the libraries I'm using to link: dxguid.lib Strmiids.lib winmm.lib.
Now, I only have one function named DllMain: BOOL WINAPI DllMain(HANDLE hinstDLL, DWORD dwReason, LPVOID lpvReserved);
Anyway, I still get a compile error saying there's two function of the same? I did a search through all files and found no more but the declaration and the implemtion.
I checked all external files (ie, included files), and there was no mention of this DllMain.
I made this Dll project with MFC AppWizard (dll) with Regular dll using shared MFC dlls.
And that's probably all I can say. Can anyone tell me what's wrong?
Linking...
mfcs42d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in Doom Music Player.obj
mfcs42d.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in Doom Music Player.obj; second definition ignored
Creating library Debug/Doom Music Player.lib and object Debug/Doom Music Player.exp
Debug/Doom Music Player.dll : fatal error LNK1169: one or more multiply defined symbols found
To that, these are the libraries I'm using to link: dxguid.lib Strmiids.lib winmm.lib.
Now, I only have one function named DllMain: BOOL WINAPI DllMain(HANDLE hinstDLL, DWORD dwReason, LPVOID lpvReserved);
Anyway, I still get a compile error saying there's two function of the same? I did a search through all files and found no more but the declaration and the implemtion.
I checked all external files (ie, included files), and there was no mention of this DllMain.
I made this Dll project with MFC AppWizard (dll) with Regular dll using shared MFC dlls.
And that's probably all I can say. Can anyone tell me what's wrong?