PDA

View Full Version : Visual C++ 2008 IDE Setup


besjr69
02 Jul 2008, 15:28
First off, I apologize if this has been addressed in previous posts. I can't find the Sticky anywhere. I've been using VC '97 to develop gauges for quite some time. I have developed a very complex Flight Management System that uses MFC, DAO and GDI. Now that the '08 Express Edition is free, I thought I could use it to develop gauges. I tried compiling my gauge along with the sample in the FS9 SDK. I get several errors and it appears that all of the MFC header are missing in the Express edition. I tried adding the old '97 include directory and I got even more errors from all of the AFX calls. Has anyone had any luck with getting the VC'08 IDE setup properly for gauge development? If so, could you put a sticky out there? If I find out before there is a post, I plan on writing a short document detailing the steps to properly set it up and share with everyone.

n4gix
02 Jul 2008, 15:42
Try following this thread: http://forums.flightsim.com/vbfs/showthread.php?t=158992

Simon853
02 Jul 2008, 17:28
I had no luck trying to get MFC working in a gauge so I stuck with Win32. You should be able to get all the samples in the FSX SDK to compile with VS 2008 Express though. I used it for months before getting VS 2008 Professional.

Si

rhumbaflappy
03 Jul 2008, 10:05
Hi all.

MFC and ATL are not supported in the freeware VS Express C++.

http://www.microsoft.com/express/support/faq/

Number 31.

Dick

besjr69
03 Jul 2008, 14:10
Dick,

Thanks for the information. Well I guess I'll do as Simon suggested and go back win32. I really wasn't using MFC much. I needed for the CDao classes. I guess I'll just have to create a new class object around ODBC and try again. Thanks all of the help.

Bobby

Simon853
03 Jul 2008, 15:41
MFC and ATL are not supported in the freeware VS Express C++.
Yeah, but I meant I couldn't get them to work in VS 2008 Professional either, when compiled into a gauge. No matter what I tried it just wouldn't link.

Si

besjr69
04 Jul 2008, 01:22
Simon,

This may have something to do with VC++ '08. In VC '97 I selected "Use MFC in a Static Library" and the stdafx header was created. From there I was able to pull in C++ classes like the Dao and OLE objects. The documentation for C++ Express states that MFC is not supported, but I have those options in my Project Properties. Of course, they are not there using the APP Wizard. I just went through the pain of downloading the Platform SDK (25hrs using my Afghan dialup service). So I'll see what happens. If ever I have any success with using MFC with VC'08 I'll reply back to this post. In theory, it should work as long as I have the DLLs, headers and Libraries properly linked. Then again, how far do theories go?

Bobby