?
Solved

Visual C++ 1.52 Tutorial/Help

Posted on 2006-06-19
6
Medium Priority
?
581 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
[X]
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
  • 3
  • 3
6 Comments
 
LVL 16

Accepted Solution

by:
PaulCaswell earned 1000 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
Suggested Courses

801 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