S.D.L. PC Windows and MSVS.NET2005Pro question

S.D.L. PC Windows and MSVS.NET2005Pro question…

Hi,

I am a brand new subscriber to this E-mail forum system.
I am also for the 1st time programming with S.D.L. for the PC Windows
platform.

I am using the following S.D.L. components:

  • SDL-devel-1.2.9-VC6
    (S.D.L. engine version 1.2.9 for Visual C)

  • SDL_ttf-devel-2.0.7-VC6
    (S.D.L. font engine version 2.0.7 for Visual C)

  • SDL_mixer-devel-1.2.6-VC6
    (S.D.L. audio engine version 1.2.6 for Visual C)

I am writing the code and building the PC Windows EXE file
using Microsoft Visual Studio.NET 2005 Professional
using C/C++ programming language.

MY QUESTION:

I followed perfectly the instructions for starting an S.D.L. visual C
project,
(using MSVS.NET2005Pro) and it compiles and builds 100% ok.
BUT the problem I have now is that the built EXE file
requires that Microsoft .NET framework 2.0+ be installed
onto the PC Windows based computer for the EXE to run.
(otherwise, receive some error message dialog box at EXE start then EXE
exits)

I have no plans of utilizing this new .NET framework 2.0+
and wish to compile an EXE that does NOT require Microsoft .NET framework
2.0+.

Anyone using S.D.L. with MSVS.NET2005Pro developer environment
and know how to set up a project OR modify an existing project
that does NOT require Microsoft .NET framework 2.0+ be installed on target
PC ???

Any help from anyone would be greatly appreciated!!!

If you are interested in what I am working on now,
then please do visit the official web page for screenshots and info:

Game programming project: TetriBattle3 100%[TM] for PC Windows platform

http://www.silentheroproductions.com/tetribattle3_100percentforpcwindows.htm

(http://www.silentheroproductions.com/tetribattle3_100percentforpcwindows.htm)

(Click or copy/paste above web page URL)

Jesse “JeZ+Lee” Palser, BS, A+, Network+, MCP
SLNTHERO at AOL.com
Silent Hero Productions ®
"Fun, little games for when you don’t have time to save the world.[TM]"
www.SilentHeroProductions.com (http://www.silentheroproductions.com/)

As I understand it, there are two options. The first is to change #define HAVE_LIBC to 0 in includes/SDL_config_win32.h in a cvs release which would break 1.2 binary compatibility, or you can compile sdl and staticly link the crt library using the option of Project -> Properties -> Configuration Properties -> C/C++ -> Code Generation, set “Runtime Library” to “Multi-threaded (/MT)” (Sam includes VC8 project files in visualc.zip if you do a cvs checkout). I’m not sure if this falls into any license problems as SDL is still compilable with other [free] compilers, I’ll leave the explinations of that to somebody more understanding of the rules of static linking.

–William----- Original Message -----
From: SlntHero at aol.com
To: sdl at libsdl.org
Sent: Saturday, April 15, 2006 4:23 PM
Subject: [SDL] S.D.L. PC Windows and MSVS.NET2005Pro question…

S.D.L. PC Windows and MSVS.NET2005Pro question…

Hi,

I am a brand new subscriber to this E-mail forum system.
I am also for the 1st time programming with S.D.L. for the PC Windows platform.

I am using the following S.D.L. components:

  • SDL-devel-1.2.9-VC6
    (S.D.L. engine version 1.2.9 for Visual C)

  • SDL_ttf-devel-2.0.7-VC6
    (S.D.L. font engine version 2.0.7 for Visual C)

  • SDL_mixer-devel-1.2.6-VC6
    (S.D.L. audio engine version 1.2.6 for Visual C)

I am writing the code and building the PC Windows EXE file
using Microsoft Visual Studio.NET 2005 Professional
using C/C++ programming language.

MY QUESTION:

I followed perfectly the instructions for starting an S.D.L. visual C project,
(using MSVS.NET2005Pro) and it compiles and builds 100% ok.
BUT the problem I have now is that the built EXE file
requires that Microsoft .NET framework 2.0+ be installed
onto the PC Windows based computer for the EXE to run.
(otherwise, receive some error message dialog box at EXE start then EXE exits)

I have no plans of utilizing this new .NET framework 2.0+
and wish to compile an EXE that does NOT require Microsoft .NET framework 2.0+.

Anyone using S.D.L. with MSVS.NET2005Pro developer environment
and know how to set up a project OR modify an existing project
that does NOT require Microsoft .NET framework 2.0+ be installed on target PC ???

Any help from anyone would be greatly appreciated!!!

If you are interested in what I am working on now,
then please do visit the official web page for screenshots and info:

Game programming project: TetriBattle3 100%[TM] for PC Windows platform

http://www.silentheroproductions.com/tetribattle3_100percentforpcwindows.htm

(Click or copy/paste above web page URL)

Jesse “JeZ+Lee” Palser, BS, A+, Network+, MCP
SLNTHERO at AOL.com
Silent Hero Productions ®
"Fun, little games for when you don’t have time to save the world.[TM]"
www.SilentHeroProductions.com



SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

SlntHero at aol.com wrote:

MY QUESTION:

I followed perfectly the instructions for starting an S.D.L. visual C
project,
(using MSVS.NET2005Pro) and it compiles and builds 100% ok.
BUT the problem I have now is that the built EXE file
requires that Microsoft .NET framework 2.0+ be installed
onto the PC Windows based computer for the EXE to run.
(otherwise, receive some error message dialog box at EXE start then EXE
exits)

I have no plans of utilizing this new .NET framework 2.0+
and wish to compile an EXE that does NOT require Microsoft .NET
framework 2.0+.

Anyone using S.D.L. with MSVS.NET2005Pro developer environment
and know how to set up a project OR modify an existing project
that does NOT require Microsoft .NET framework 2.0+ be installed on
target PC ???

You don’t need to install .Net 2.0 unless you’re using Managed code.
The problem is that you have dependencies on DLLs that you aren’t
distributing. If you use Event Viewer (Control Panel -> Administrative
Tools) it will even tell you which DLL is missing.

In the VC8 folder there is a redist folder. It has the CRT DLLs and a
manifest file. Copy those to your application dir and that should be
all you need. If your app uses MFC or ATL then you’ll need to
distribute those as well.

.Net 2.0 uses those DLLs as well, so by installing it you get those DLLs
installed.