Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Visual C++ 1.52 Tutorial/Help

Posted on 2006-06-19
6
Medium Priority
?
588 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
Industry Leaders: 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 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.
Suggested Courses

610 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