Post subject: Compiling Snes9x-1.51 in VC++ Express 2005
Former player
Joined: 6/2/2006
Posts: 63
Hi I'm curious if anyone else has tried to compile snes9x-1.51 in Visual C++ Express 2005. I'm trying to do just that and I am running into some problems that I have never seen before. I was hoping someone could help me out. When I opened the project file for the first time VC asked my to convert the project to a newer format. I think it wanted to convert from VC6 to what ever VC Express is. I got a warning stating the following after the conversion:
Due to the requirement that Visual C++ projects produce an embedded (by default) Windows SxS manifest, manifest files in the project are automatically excluded from building with the Manifest Tool. It is recommended that the dependency information contained in any manifest files be converted to "#pragma comment(linker,"<insert>")" in a header file that is included from your source code. If your project already embeds a manifest in the RT_MANIFEST resource section through a resource (.rc) file, the line will need to be commented out before the project will build correctly.
Sure enough after compiling -- I removed the support for zlib and libpng as well as added additional include paths to point to directx lib files and some windows headers -- I was getting a linker error complaining about a duplicate manifest.
CVTRES : fatal error CVT1100: duplicate resource.  type:MANIFEST, name:1, language:0x0409
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
I googled the problem and there seemed to be some issues about VC Express creating its own manifest and it conflicting with the user defined one. I tried to comment out the line
IDR_RT_MANIFEST2        RT_MANIFEST             "rt_manif.bin"
in the snes9x.rc file, and then adding the rt_manif.bin file in the project properties->linker->manifest file->additional manifest dependencies window, but doing that gave me a bunch of unresolved external symbol errors. Here is a sample of one
wsnes9x.obj : error LNK2019: unresolved external symbol __imp__GetParent@4 referenced in function "long __stdcall DlgChildSplitProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DlgChildSplitProc@@YGJPAUHWND__@@IIJ@Z)
Has anyone seen something like this before? I'm not familiar with manifest files so I'm really stuck! Thanks in advance for any advice.
Joined: 5/20/2008
Posts: 10
do u use the platform sdk with vcexpress? the last error may be because vcexpress is lacking headers/code present in the normal vc versions. using platform sdk u still dont get everything but way better than without as i may not read this too soon again there a how to -> http://msdn.microsoft.com/en-us/express/aa700755.aspx lol omg just saw its over half a year old post damn