Problem sdl & visual studio 2005

Hi all! When I compile the program in visual studio 2005 under xp the program
starts without any problem. When I do tha same steps under Windows Vista I get
the same error noticed by the other user that is:

…Unable to start program 'file name’
This application has failed to start because the application configuration is
incorrect. Review the manifest file for possible errors…

I found a workaround but it is very annoying. I mean, if I compile from the
command prompt using cl.exe and using only text files without manifest
components it works. Now I would know if there is a permanent solution to
compile directly from the visual studio 2005 editor. I think the problem is in
some settings put automatically by the editor. Has anyone the solution?

Thanks in advance.

Compiler wrote:

Hi all! When I compile the program in visual studio 2005 under xp the program
starts without any problem. When I do tha same steps under Windows Vista I get
the same error noticed by the other user that is:

…Unable to start program 'file name’
This application has failed to start because the application configuration is
incorrect. Review the manifest file for possible errors…

I found a workaround but it is very annoying. I mean, if I compile from the
command prompt using cl.exe and using only text files without manifest
components it works. Now I would know if there is a permanent solution to
compile directly from the visual studio 2005 editor. I think the problem is in
some settings put automatically by the editor. Has anyone the solution?

I get the same error, but it happens for me in XP (I haven’t tried Vista
yet).

Steve

Hi all! When I compile the program in visual studio 2005 under xp the program
starts without any problem. When I do tha same steps under Windows Vista I get
the same error noticed by the other user that is:

…Unable to start program 'file name’
This application has failed to start because the application configuration is
incorrect. Review the manifest file for possible errors…

Can you send me a link to a zip of your project? I’ve seen this reported
frequently and I’m trying to figure out what’s going on.

Thanks!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

Sam Lantinga <slouken devolution.com> writes:

Can you send me a link to a zip of your project? I’ve seen this reported
frequently and I’m trying to figure out what’s going on.

Thanks!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

The problem is older versions of Visual Studio 2005 express and the platform SDK
don’t work with SDL 1.2.12. Once I upgraded them, the directions you posted on
the mailing list worked like a charm.

Hi Guys
i am assuming that your talking about your programs not working and
not SDL not working. if so, i use VS 2005 and its all good, so here are my
commandflags obviously this path “F:\Programming
Projects\Games\Lines\Lines” and i have taken out the include path , as well
as the output path.

When i final build my games, i build to release, and then i have to copy the
game from release to its parent Dir to run, but try going through
the project properties and setting the flags listed below.

Debug Compiler Command line

/Od /Ot /Oy /GT /D “WIN32” /D “_DEBUG” /D “_WINDOWS” /D “_UNICODE” /D
"UNICODE" /Gm /EHsc /MD /Fo"Debug\" /Fd"Debug\vc80.pdb" /FR"Debug\" /W3
/nologo /c /Wp64 /ZI /TP /errorReport:prompt

Debug linker command line

/INCREMENTAL /NOLOGO /MANIFEST
/MANIFESTFILE:“Debug\Tonga.exe.intermediate.manifest” /DEBUG
/PDB:“f:\Programming Projects\Games\Lines\Lines\Debug\Tonga.pdb” /MAP
/SUBSYSTEM:WINDOWS /MACHINE:X86 /ERRORREPORT:PROMPT kernel32.lib user32.lib
gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

Release Compiler Command line

/O2 /Ob2 /Ot /Oy /GT /GL /D “WIN32” /D “NDEBUG” /D “_WINDOWS” /D “_UNICODE”
/D “UNICODE” /FD /EHsc /MD /Fo"Release\" /Fd"Release\vc80.pdb"
/FR"Release\" /W3 /nologo /c /Wp64 /TP /errorReport:prompt

Release linker command line

/INCREMENTAL:NO /NOLOGO /LIBPATH:“F:\Programming Projects\SDL\lib” /MANIFEST
/MANIFESTFILE:“Release\Tonga.exe.intermediate.manifest” /DEBUG
/PDB:“f:\Programming Projects\Games\Lines\Lines\Release\Tonga.pdb”
/SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /LTCG /MACHINE:X86 /ERRORREPORT:PROMPT
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

Trish

This is probably necessary for the system to find the SDL DLLs. There are
other ways that depend also a bit on the MS-Windows flavour. Look up the docs
for LoadLibrary() at http://msdn.microsoft.com. This is not specific to SDL
though.

cheers

UliOn Monday 30 July 2007 03:09:06 Patricia Curtis wrote:

When i final build my games, i build to release, and then i have to copy
the game from release to its parent Dir to run, but try going through
the project properties and setting the flags listed below.

Apart from the SDL, Vorbis and all that the only other DLL i use is
msvcr80.dll, so i put this in the final game root Dir and there
appears to be in problems even on Vista, without having to call any
functions to directly load libraries.

Trish

Sam Lantinga <slouken devolution.com> writes:

Can you send me a link to a zip of your project? I’ve seen this reported
frequently and I’m trying to figure out what’s going on.

Thanks!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

I think it’s better I send the project by email because I have some problems to
start the ftp service here and at the moment I don’t own any website. Is the
email specified in your posting header ok for sending the compressed file?

Apart from the SDL, Vorbis and all that the only other DLL i use is
msvcr80.dll, so i put this in the final game root Dir and there
appears to be in problems even on Vista, without having to call any
functions to directly load libraries.

Somebody mentioned this was fixed by applying Visual Studio Service Pack 1.

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

“Somebody mentioned this was fixed by applying Visual Studio Service Pack 1.”

Yes, but No, as when i distribute the final game the last thing i want
is the end user to have to download more libraries and or even
anything else other than my game.

T

Yes, but No, as when i distribute the final game the last thing i want
is the end user to have to download more libraries and or even
anything else other than my game.

I could never get rid of the DLL dependency MSVS creates for a
project. So I do all my testing using Visual Studio because it has an
awesome debugger, however, for building the final (or the version I
intend to share with others) I use MingW for Windows. It’s easy to
set up and creates a very reasonably-sized executable which will
run on other machines no matter what version of Windows as far
as I know.

Cheers,
Peter

“Somebody mentioned this was fixed by applying Visual Studio Service Pack 1.”

Yes, but No, as when i distribute the final game the last thing i want
is the end user to have to download more libraries and or even
anything else other than my game.

No, the developer needs to install Service Pack 1 for Visual Studio, not the
end user.

See ya,
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment