Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VS 6.0/7.0 and OS compatibility issues 1

Status
Not open for further replies.

titanandrews

Programmer
Feb 27, 2003
130
US
Hi,
I compiled a program on Windows NT 4.0 with VS .NET (aka 7.0) and the program works fine. But then I moved the program to Windows 2000 and when I start it, it complains about not being able to find mscoree.dll. I searched the computer and sure enough it is nowhere to be found. So I copied this file from my NT machine to the 2000 machine and now I get a complaint about a registry key that needs to point to the .NET Framework install location.
Surely it could not be that I need to install .NET on every machine that my program will run on. [neutral] Has anyone seen this before? Probably some configuration in my compiler options, but what I have no clue



many thanks,

Barry
 
If your did a "Managed" project then yes you will need the .NET runtime to execute your application.

-pete
 
Hi Pete,
I did an MFC application. Surely I can modify an option that will make this work. If I go to the Property Page for my project the C/C++ and Linker command lines look like this.

C/C++ Command line: /O2 /Ob1 /D "WIN32" /D "NDEBUG" /D "_MBCS" /FD /EHsc /Fo"Release/" /Fd"Release/vc70.pdb" /W1 /nologo /c /clr /TP

Linker command line:
/OUT:"Release/PackageVerify.exe" /INCREMENTAL:NO /NOLOGO /DEBUG /PDB:"Release/PackageVerify.pdb" /SUBSYSTEM:WINDOWS kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib


thanks,

Barry

 
Here are MFC SDI app settings that run on Windows NT4 box.
Code:
/O2 /Ob1 /Oy /D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "_MBCS" /GF /FD /EHsc /MT /GS /Gy /Zc:wchar_t /Yu"stdafx.h" /Fp"Release/SdiRnd.pch" /Fo"Release/" /Fd"Release/vc70.pdb" /W3 /nologo /c /Wp64 /Zi /TPp

Your contains the /clr swtich which compiles to the Common Language Runtime.

Here is the linker config.
Code:
/OUT:"Release/SdiRnd.exe" /INCREMENTAL:NO /NOLOGO /DEBUG /PDB:"Release/SdiRnd.pdb" /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /MACHINE:IX86

-pete
 
Not so many flags in javac. Know what I mean? But, I am learning! [shadeshappy] Thanks a lot! You have been a big help!


Barry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top