Hi, I've got myself a little demo program created. It uses the Irrlicht 3D engine and the RakNet network library to provide a drawing window - basically anything drawn in the window on one of the clients gets passed across, via the server, to every other client.
I'm quite happy with the way it works, functionally it's just fine. But to run it requires the .NET Framework 2.0 Beta. I don't understand why, because it's not using any .NET code whatsoever. I'm using Visual Studio 2005 Beta 2 to compile it, so I figured this might be something to do with it, but I can't see how to set my project up so as not to require the Framework. I could probably recompile it with VS2003 if that will make a difference, but I love the way the new features in 2005 make my life so much easier.
Does anyone have any suggestions
Edit: I should probably have mentioned that it's written entirely in C++. I've imported a couple of static libraries along the line, but they're not using .NET Framework either.

.NET Framework - why does my program require it?
wireaudio
Did you remove the /clr compiler switch Or try using the #pragma unmanaged preprocessor so that your code will be sure that it really doesn't use any .net objects....
cheers,
Paul June A. Domag
JimWATICS
vackol
It's not entirely clear whether your programs did require the framework in the first place or you have been misled by something. A quick way to check whether a program requires the .NET framework is to use the Dependency Walker and look for references to mscoree.dll.
JasonFang
I've turned off /CLR now, and I also have #pragma unmanaged in my code, but my EXE still requires .NET 2.0
Vinaygkumar
Just a small comment. It looks like he is building setup project, and .Net Framework is baked in as a prerequisites for Setup Projects. This is why before user installs built MSI or runs setup.exe, it asks to install .NetFX. I see that MrTufty has found a way to remove this prerequisite (button in Project Properties dialog), so now it is a question of deploying native dependencies.
Nikola
crbeckman
I need more information about your application to give you any meaningfull advice. What kind of project is this What libraries are you using Any MFC, CRT, ATL What your application depends on Take a look on this draft of an article on my blog, How to Debug 'The System cannot Execute the specified program' message. This should give you an idea to what to look for.
Thanks,
Nikola
VC++ Team
Achal Gupta
Now, I'm able to just use the MSI file to setup my application, without having to install the .NET Framework. That's an improvement. Further to that, the client part of my code (I've got 2 separate exe's - one client, one server) no longer requires .NET either.
My server part still does though, it seems (I get the message saying my application configuration is incorrect, and reinstalling might fix it). So, that's what I'm looking at now, hopefully I've found the key to removing the dependency on .NET.
jhl_iv
I do not see any followups, I assume issue is resolved. Feel free to reply if new issue comes up.
Thanks,
Nikola
Jonathan Roy
Ive just made a sample project, console project:
http://www.users.tpg.com.au/thetwins/fab/test.rar
doesnt work with out .net 2.0!
here is the project files so u can compile it your self, see my settings:
http://www.users.tpg.com.au/thetwins/fab/test_project.rar