473,408 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

HOWTO: get some of the "not included" stuff when using the VisualC++ Compiler Tookit 2003

Firstly, to get msvcrt.lib, install the .NET framework SDK. The version of
msvcrt.lib included there is the exact same one as comes with Visual Studio
..NET 2003.
There are some other things that might be usefull (e.g. the debug version
of msvcrt.lib) but msvcrt.lib is the most usefull thing.

Secondly, install the latest version of the Microsoft Platform SDK.
The "64-bit" compiler will provide versions of undname.exe, nmake.exe,
lib.exe, cvtres.exe, dumpbin.exe and editbin.exe that (at least from my
cursory inspection) appear to be useable.
Other stuff from Microsoft SDK\Bin (e.g. midl.exe, mktyplib.exe. rc.exe,
mc.exe and so on) is also usable as a substitute for those same files as
included with Visual Studio .NET 2003.
Also, the included "64-bit" code for MFC and ATL may be of some use on
32-bit windows too.

Also, install the DirectX SDK and DirectX Media SDK if you want to develop
using those technologies.

Naturally, this wont provide you with all the stuff visual C++ .NET 2003
would provide you with.
Most notably you wont have some of the *.obj files from the lib folder
(i.e. chkstk.obj, nochkclr.obj, thrownew.obj)
binmode.c comes with the IA64 CRT source code in the platform SDK, as does
commode.c, fp10.c, newmode.c, setargv.c and wsetargv.c, compile these files
and you will have usable versions of the matching CRT obj files.
nochkclr.c has a comment in it stating its only used if you dont like with
the CRT.
I do not know where one would get code for chkstk.obj, thrownew.obj or
nochkclr.obj (or even if those obj files are actually usefull for much).

And you also wont have msvcrprt.lib (which means that using /MD for C++
apps is kinda difficult :).
This:
http://users.tpg.com.au/adsloptd/msvcprt.def
is a .DEF file created using dumpbin /exports on msvcp71.dll.
When converted into a .LIB file with lib /DEF:msvcprt.def, it will generate
an import library for msvcp71.dll that should be usable. (I didnt do one
for msvcp71d.dll because msvcp71d.dll is not in anything freely
downloadable from MS, unlike msvcp71.dll which is easy enough to get)

However, in addition to being an import library, msvcprt.lib also contains
3 obj files, nothrow.cpp, newop_s.cpp and newaop_s.cpp.
I dont know where you could get nothrow.cpp, newop_s.cpp or newaop_s.cpp (I
also dont know if they are important or not). The SDK CRT comes with
newop_s.cpp and something called newop2_s.cpp but I dont know if either of
those is of any use with the Visual C++ Compiler Tookit 2003 and
msvcr71.dll/msvcp71.dll.

Of course, if you can get files from a visual C++ install (such as
vcspawn.exe, vcprojectengine.dll and vcprojectui.dll) you can do more (like
getting vcbuild.exe to work), this list only covers stuff that you can get
for free :)

Hopefully this information on how to do more with the Visual C++ Compiler
Tookit 2003 is usefull to someone.

Also, IANAL so I cant say for sure if the licence aggreements given for the
use of the various items mentioned above permits their useage with the
Visual C++ Compiler Tookit 2003 and do let me know of anything to add to
this HOWTO or any feedback etc.
Nov 17 '05 #1
10 2429
Trying to use the 64-bit versions of ATL and MFC that ship with the Platform
SDK with a 32-bit compiler will simply not work.

Ronald Laeremans
Visual C++ team

"Jonathan Wilson" <jo****@tpgi.com.au> wrote in message
news:uw*************@TK2MSFTNGP09.phx.gbl...
Firstly, to get msvcrt.lib, install the .NET framework SDK. The version of
msvcrt.lib included there is the exact same one as comes with Visual
Studio .NET 2003.
There are some other things that might be usefull (e.g. the debug version
of msvcrt.lib) but msvcrt.lib is the most usefull thing.

Secondly, install the latest version of the Microsoft Platform SDK.
The "64-bit" compiler will provide versions of undname.exe, nmake.exe,
lib.exe, cvtres.exe, dumpbin.exe and editbin.exe that (at least from my
cursory inspection) appear to be useable.
Other stuff from Microsoft SDK\Bin (e.g. midl.exe, mktyplib.exe. rc.exe,
mc.exe and so on) is also usable as a substitute for those same files as
included with Visual Studio .NET 2003.
Also, the included "64-bit" code for MFC and ATL may be of some use on
32-bit windows too.

Also, install the DirectX SDK and DirectX Media SDK if you want to develop
using those technologies.

Naturally, this wont provide you with all the stuff visual C++ .NET 2003
would provide you with.
Most notably you wont have some of the *.obj files from the lib folder
(i.e. chkstk.obj, nochkclr.obj, thrownew.obj)
binmode.c comes with the IA64 CRT source code in the platform SDK, as does
commode.c, fp10.c, newmode.c, setargv.c and wsetargv.c, compile these
files and you will have usable versions of the matching CRT obj files.
nochkclr.c has a comment in it stating its only used if you dont like with
the CRT.
I do not know where one would get code for chkstk.obj, thrownew.obj or
nochkclr.obj (or even if those obj files are actually usefull for much).

And you also wont have msvcrprt.lib (which means that using /MD for C++
apps is kinda difficult :).
This:
http://users.tpg.com.au/adsloptd/msvcprt.def
is a .DEF file created using dumpbin /exports on msvcp71.dll.
When converted into a .LIB file with lib /DEF:msvcprt.def, it will
generate an import library for msvcp71.dll that should be usable. (I didnt
do one for msvcp71d.dll because msvcp71d.dll is not in anything freely
downloadable from MS, unlike msvcp71.dll which is easy enough to get)

However, in addition to being an import library, msvcprt.lib also contains
3 obj files, nothrow.cpp, newop_s.cpp and newaop_s.cpp.
I dont know where you could get nothrow.cpp, newop_s.cpp or newaop_s.cpp
(I also dont know if they are important or not). The SDK CRT comes with
newop_s.cpp and something called newop2_s.cpp but I dont know if either of
those is of any use with the Visual C++ Compiler Tookit 2003 and
msvcr71.dll/msvcp71.dll.

Of course, if you can get files from a visual C++ install (such as
vcspawn.exe, vcprojectengine.dll and vcprojectui.dll) you can do more
(like getting vcbuild.exe to work), this list only covers stuff that you
can get for free :)

Hopefully this information on how to do more with the Visual C++ Compiler
Tookit 2003 is usefull to someone.

Also, IANAL so I cant say for sure if the licence aggreements given for
the use of the various items mentioned above permits their useage with the
Visual C++ Compiler Tookit 2003 and do let me know of anything to add to
this HOWTO or any feedback etc.

Nov 17 '05 #2
the stuff under Microsoft SDK\src\mfc seemed to compile fine for me with a
32-bit compiler (in fact, there appears to be a #ifdef _X86_ block with X86
inline ASM in olecall.cpp)

So it compiles (and probobly works).
Whether compiling it (and using it) on IA32 is legal is another issue
altogether (IANAL so I wont go there) but it can be done.
Nov 17 '05 #3
I have answered several customer questions on various issues they
encountered trying to do this. Compiling just the headers might work, but
you are extremely likely to run into all kinds of issues when you start
using a significant part of the functionality.

Ronald

"Jonathan Wilson" <jo****@tpgi.com.au> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
the stuff under Microsoft SDK\src\mfc seemed to compile fine for me with a
32-bit compiler (in fact, there appears to be a #ifdef _X86_ block with
X86 inline ASM in olecall.cpp)

So it compiles (and probobly works).
Whether compiling it (and using it) on IA32 is legal is another issue
altogether (IANAL so I wont go there) but it can be done.

Nov 17 '05 #4
ok, fair enough, if someone from microsoft says that you will hit problems
using that code, I would assume they are right.
Its just that looking through the code in Microsoft SDK\src\mfc, I dont see
anything in there that is 64-bit specific so I assumed it would work on
IA32 as well.

Nov 17 '05 #5
Trying to use the 64-bit versions of ATL and MFC that ship with the Platform
SDK with a 32-bit compiler will simply not work.

Ronald Laeremans
Visual C++ team

"Jonathan Wilson" <jo****@tpgi.com.au> wrote in message
news:uw*************@TK2MSFTNGP09.phx.gbl...
Firstly, to get msvcrt.lib, install the .NET framework SDK. The version of
msvcrt.lib included there is the exact same one as comes with Visual
Studio .NET 2003.
There are some other things that might be usefull (e.g. the debug version
of msvcrt.lib) but msvcrt.lib is the most usefull thing.

Secondly, install the latest version of the Microsoft Platform SDK.
The "64-bit" compiler will provide versions of undname.exe, nmake.exe,
lib.exe, cvtres.exe, dumpbin.exe and editbin.exe that (at least from my
cursory inspection) appear to be useable.
Other stuff from Microsoft SDK\Bin (e.g. midl.exe, mktyplib.exe. rc.exe,
mc.exe and so on) is also usable as a substitute for those same files as
included with Visual Studio .NET 2003.
Also, the included "64-bit" code for MFC and ATL may be of some use on
32-bit windows too.

Also, install the DirectX SDK and DirectX Media SDK if you want to develop
using those technologies.

Naturally, this wont provide you with all the stuff visual C++ .NET 2003
would provide you with.
Most notably you wont have some of the *.obj files from the lib folder
(i.e. chkstk.obj, nochkclr.obj, thrownew.obj)
binmode.c comes with the IA64 CRT source code in the platform SDK, as does
commode.c, fp10.c, newmode.c, setargv.c and wsetargv.c, compile these
files and you will have usable versions of the matching CRT obj files.
nochkclr.c has a comment in it stating its only used if you dont like with
the CRT.
I do not know where one would get code for chkstk.obj, thrownew.obj or
nochkclr.obj (or even if those obj files are actually usefull for much).

And you also wont have msvcrprt.lib (which means that using /MD for C++
apps is kinda difficult :).
This:
http://users.tpg.com.au/adsloptd/msvcprt.def
is a .DEF file created using dumpbin /exports on msvcp71.dll.
When converted into a .LIB file with lib /DEF:msvcprt.def, it will
generate an import library for msvcp71.dll that should be usable. (I didnt
do one for msvcp71d.dll because msvcp71d.dll is not in anything freely
downloadable from MS, unlike msvcp71.dll which is easy enough to get)

However, in addition to being an import library, msvcprt.lib also contains
3 obj files, nothrow.cpp, newop_s.cpp and newaop_s.cpp.
I dont know where you could get nothrow.cpp, newop_s.cpp or newaop_s.cpp
(I also dont know if they are important or not). The SDK CRT comes with
newop_s.cpp and something called newop2_s.cpp but I dont know if either of
those is of any use with the Visual C++ Compiler Tookit 2003 and
msvcr71.dll/msvcp71.dll.

Of course, if you can get files from a visual C++ install (such as
vcspawn.exe, vcprojectengine.dll and vcprojectui.dll) you can do more
(like getting vcbuild.exe to work), this list only covers stuff that you
can get for free :)

Hopefully this information on how to do more with the Visual C++ Compiler
Tookit 2003 is usefull to someone.

Also, IANAL so I cant say for sure if the licence aggreements given for
the use of the various items mentioned above permits their useage with the
Visual C++ Compiler Tookit 2003 and do let me know of anything to add to
this HOWTO or any feedback etc.

Nov 17 '05 #6
the stuff under Microsoft SDK\src\mfc seemed to compile fine for me with a
32-bit compiler (in fact, there appears to be a #ifdef _X86_ block with X86
inline ASM in olecall.cpp)

So it compiles (and probobly works).
Whether compiling it (and using it) on IA32 is legal is another issue
altogether (IANAL so I wont go there) but it can be done.
Nov 17 '05 #7
I have answered several customer questions on various issues they
encountered trying to do this. Compiling just the headers might work, but
you are extremely likely to run into all kinds of issues when you start
using a significant part of the functionality.

Ronald

"Jonathan Wilson" <jo****@tpgi.com.au> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
the stuff under Microsoft SDK\src\mfc seemed to compile fine for me with a
32-bit compiler (in fact, there appears to be a #ifdef _X86_ block with
X86 inline ASM in olecall.cpp)

So it compiles (and probobly works).
Whether compiling it (and using it) on IA32 is legal is another issue
altogether (IANAL so I wont go there) but it can be done.

Nov 17 '05 #8
ok, fair enough, if someone from microsoft says that you will hit problems
using that code, I would assume they are right.
Its just that looking through the code in Microsoft SDK\src\mfc, I dont see
anything in there that is 64-bit specific so I assumed it would work on
IA32 as well.

Nov 17 '05 #9
Hi Jonathan,

This specific code base has never been tested / validated to do 32-bit
development.

Ronald

"Jonathan Wilson" <jo****@tpgi.com.au> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
ok, fair enough, if someone from microsoft says that you will hit problems
using that code, I would assume they are right.
Its just that looking through the code in Microsoft SDK\src\mfc, I dont
see anything in there that is 64-bit specific so I assumed it would work
on IA32 as well.

Nov 17 '05 #10
Hi Jonathan,

This specific code base has never been tested / validated to do 32-bit
development.

Ronald

"Jonathan Wilson" <jo****@tpgi.com.au> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
ok, fair enough, if someone from microsoft says that you will hit problems
using that code, I would assume they are right.
Its just that looking through the code in Microsoft SDK\src\mfc, I dont
see anything in there that is 64-bit specific so I assumed it would work
on IA32 as well.

Nov 17 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: knocte | last post by:
Hello group. In the following testcase I attach to the final of the message, I have two questions: 1) According to comment # 1, how can I pass an argument to the function that way? 2)...
2
by: Mattyboy | last post by:
Guys I have built a database with saved queries that runs fine in Access but when I call it from the web using ASP, an exception occurs. I have tried multiple ways of testing the databases with...
9
by: Susan Bricker | last post by:
I am currently using the OnDirty event of a Form to detect whether any fields have been modified. I set a boolean variable. Then, if the Close button is clicked before the Save button, I can put...
289
by: napi | last post by:
I think you would agree with me that a C compiler that directly produces Java Byte Code to be run on any JVM is something that is missing to software programmers so far. With such a tool one could...
5
by: VB Programmer | last post by:
I want to set the enabled property of a text box based on if a checkbox is checked or not. This works.... txtPort.Enabled = ckDefaultPort.Checked; But, I want the enabled property to be the...
26
by: Marius Horak | last post by:
As in subject. Thanks MH
5
by: Rich | last post by:
I loaded visual studio.Net 2003 on a windows XP workstation, and I was able to run aspx applications. Later I loaded JBuilder 2005 (Enterprise Java builder 2005) which runs the Tomcat 5.0 web...
60
by: Dave | last post by:
I'm never quite sure whether to use "this." or not when referring to fields or properties in the same class. It obviously works just fine without it but sometimes I wonder if using this....
2
by: MohamedSaleh | last post by:
HI all I have the following problem Table SOURCE has columns <char COL1, integar COL2> and has rows {A,1}, {A,2,}, {,A,3}, {B,1}, {B,2},, {C,1},
10
by: Phil | last post by:
VB2005 Express. I am developing a solution that involves a windows forms application and a number of class library projects (DLLs). Some of the DLLs require extra data files or third party dlls. I...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.