Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Visual C++ 1.52 Tutorial/Help

Posted on 2006-06-19
6
567 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
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 viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

856 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