Solved

How to start VC 6 under Win 7 32 bits?

Posted on 2010-11-22
10
479 Views
Last Modified: 2012-05-10
Hi experts!


I’m professional database programmer with VB6,C# 2008, SQL Server, but totally new to VS C. But now I need to learn it. I have a external device which I should rule using VS C .

I have a follow questions – as I see examples are for VC 6. But I’m under Win 7 32 bit and when I start VS C IDE and try to open project it crash.
1.      What options I have to make VS C 6 working under Win 7? I can’t use Virtual PC as I have external device, may be some other virtual solution which cover full function with external  hardware, but also I need to share some files (I need to create DLL or OCX which to reference in other project under Win 7 and I may need frequently change)
2.      In VS 2008 I have VC++ .  This VC++ demands NET framework? I’m very sure I do not want NET framework to mess in my call to API for this external device. It only can make errors.  My examples are on VC , not in C++ , there big difference, right?
0
Comment
Question by:dvplayltd
10 Comments
 
LVL 44

Expert Comment

by:AndyAinscow
Comment Utility
VS2008 supports MFC.

Well, to be precise the FREE version of visual studio doesn't, all paid versions do.
0
 

Author Comment

by:dvplayltd
Comment Utility
To AndyAinscow

OK - support MFC, what this mean? Does it this mean that application written in C 2008 will be  same like in C 6 ? What run time will demand to work my final application?

I use paid version of VS 2008.
0
 
LVL 44

Expert Comment

by:AndyAinscow
Comment Utility
Sorry, too precise in a way.
MFC is a wrapper for the windows API functions often used in C/C++ projects in visual studio.  It is NOT .net.


There have been changes to make the newer version compiler more compliant with standards but in general older code should work - you might get a number of warnings or a few errors that ought to be rapidly fixed.

I'd really suggest you try to go with the newer VS 2008 rather than VC 6 - if only because of more support for Vista/Win7.
0
 
LVL 9

Expert Comment

by:masheik
Comment Utility
0
 
LVL 8

Assisted Solution

by:Subrat (C++ windows/Linux)
Subrat (C++ windows/Linux) earned 166 total points
Comment Utility
>>In VS 2008 I have VC++ .  This VC++ demands NET framework?
No. If you don't select CLR while creating project.

While creating project you can use WIN32

>>are on VC , not in C++ , there big difference, right?
Yes. Hope that will not affect you if selecting C++.

If you want to compile as C code, there is an option you  can follow...
Project properties-> Configuration Properties-> C/C++ -> Advanced -> Compile as C code(TC)
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:dvplayltd
Comment Utility

Hyym. I was able to start example code for C6 in C2008 and on first look it functions well. By the way, this is only call to a DLL, it has not at all windows forms or any other UI.

In fact I need to create a DLL or better ActiveX and to use it with VB6. This is connecting with this question:
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_26628783.html

And I read in example comment that do not need MFC
0
 

Author Comment

by:dvplayltd
Comment Utility
oops. I forget question. Here is:

Then, what run-time files I should deploy on customer computer?
0
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 167 total points
Comment Utility
runtime files:
There should be a redistributable available - check the msdn.com website - the version depends on which version of visual studio you use (2005/2008/2010) and sometimes with the service pack level.
0
 
LVL 5

Assisted Solution

by:Xper4net
Xper4net earned 167 total points
Comment Utility
VC6 runs under Window 7 and Vista, but unfortunately it doesn't allow any debug session.
VS2005 in able to convert projects from VC6, I've done it for more than 60 projects... but never tried with VS2008.
0
 

Author Closing Comment

by:dvplayltd
Comment Utility
10x to all.
0

Featured Post

What Security Threats Are You Missing?

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.

Join & Write a Comment

Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
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 clear a vector as well as how to detect empty vectors in C++.

772 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

12 Experts available now in Live!

Get 1:1 Help Now