Solved

Visual C++ 1.52 Tutorial/Help

Posted on 2006-06-19
6
522 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
Comment Utility
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
Comment Utility

>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
Comment Utility
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:TungVan
Comment Utility

>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
Comment Utility
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
Comment Utility

>Paul

Thanks, I'll give it a try.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now