Solved

Visual C++ 1.52 Tutorial/Help

Posted on 2006-06-19
6
556 Views
Last Modified: 2008-02-01

Hi,

I am using Visual C++ 1.52 to debug a 16bit application. I have no knowledge of all with vs 1.52. Is there an online tutorial that show how to use it?

Thanks
0
Comment
Question by:TungVan
  • 3
  • 3
6 Comments
 
LVL 16

Accepted Solution

by:
PaulCaswell earned 250 total points
ID: 16937098
Hi TungVan,

I dont use the IDE but I do use the compiler and the CodeView debugger. I may be able to send you the help files that came with it if you havent got them. Take a look in the \MSVC folder.

Paul
0
 

Author Comment

by:TungVan
ID: 16941702

>Paul

I have the help folder under /MSVC directory, but it does not help much. It does not give much details on each topic.

0
 
LVL 16

Expert Comment

by:PaulCaswell
ID: 16945913
No it doesnt I'm afraid. :-(

What are you having difficulty with?

MSVC is quite an old tool and there's not a lot of stuff around on it. Perhaps I can help.

As I said, I cant help a lot with the IDE, I dont use it any more. I wrote some tools that allow me to compile 16-Bit under VC6 using the MSVC compiler. I dont think I'd be allowed to give you those I'm afraid. Perhaps I could help you write your own. I know someone else on EE that has done something similar. Perhaps they could help too.

I'm quite familliar with CodeView. :-)

Paul
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

Author Comment

by:TungVan
ID: 16979802

>Paul

I just read your message. I am very interested to know how to compile it under VC6 (using MSVC compiler) as you mentionned.

If you cannot give me your tools, it's ok. But can you give me direction to start with?


Thanks
0
 
LVL 16

Expert Comment

by:PaulCaswell
ID: 16980006
Hi TungVan,

Here's how I did it. It may mot be the best solution but it has worked for me for over 5 years now so it is a stable solution.

The logic goes like this:

C6 invokes CL.exe to compile the source code.
I want it to invoke a different CL depending on some settings.
If you just tell VC to call a different compiler it will pass parameters to that older compiler as if it was the new one. No-go.
The compiler must be capable of handling the new-style command line parameters.
Somehow we must translate the new parameters to the old-style for the old compiler.

The answer comes out almost obviously. Rename the new CL compiler to something else (I use RealCL.exe) and write another program, called CL.EXE that translates the command line parameters from new-style to old-style and invoke the old compiler.

The kind of changes you will need to make will be stuff like:

/D _DEBUG -> /D_DEBUG

or

/I "..\Include" -> /I..\include

etc.

My code is really just a fairly simple search/replace tool that plays around with the command line and chooses a different compiler depending on an environment variable.

To select between compilers, launch VC from inside a batch file that reads something like:

SET CLPath "C:\MSVC\BIN\CL.EXE"
C:\Program Files\Microsoft Visual Studio\Common\IDE\devenv.exe

Good luck.

I'll try to get someone else to post here ho has also done this.

Paul
0
 

Author Comment

by:TungVan
ID: 17006138

>Paul

Thanks, I'll give it a try.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question