Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP with mfc plese!

Status
Not open for further replies.

messin18

Programmer
Feb 2, 2005
2
US
I'm doing an application that will allow users to modify 3d cars.

We are currently planning on useing a MFC application but have ran into a few problems. I was wondering if you could give me some advice on this:

I can't really figure out what type of MFC application to use.

Getting all of the widgets and GUI elements to work arn't a problem if we use a MFC Dialog Based application. However the problem with this is we can't seem to get a Menu working in a dialog based application and

Another problem is we need to be able to render real time 3d in directx 9. I was able to make a MFC SDI Based application that integrates the Directx 9.0 API into MFC and can render 3d in real time. But this is a simple black and white screen with no GUI Widgets.

Is there anyway i can combine these two types of MFC applications? Do you know how i could get a menu in MFC Dialog based app? Lastly is it possible to get a MFC SDI window displayed in a MFC Dialog.

Any advice or info would be greatly appreciated.
 
If you derive your view in the SDI from a CFormView it will look and behave a lot like a dialog resource.

I would suggest having 2 views: 1 CFormView and 1 where you draw your DirectX stuff.

To see how to implement 2 different views for one doc, let the AppWizard generate an explorer-like SDI.


/Per

www.perfnurt.se
 
For some reason i couldn't get your project to compile blackdice but that is very similar to what i want to do. I'm useing MS.net and i'm assumeing thats why it wouldn't run. I'm going to try to get my hands on MS visual studio 6.0 but in the meantime:

PerFnurt: can you be more specific? I'm a pretty big MFC novice and i cant seem to find good documentation. I have "Visual C++ .Net the bible" and it talks alot about SDI and Dialog based MFC stuff but there is nothing that sounds like what you're talking about.

Also is there a way to get a spreadsheet type screen in a mfc program?

BlacDice: do you have a in detail tutorial on how you got your program working?
 
>I have "Visual C++ .Net the bible" and it talks alot about SDI and Dialog based MFC stuff but there is nothing that sounds like what you're talking about.

I still live in the 6.0 world. I have no idea about .net stuff.

>PerFnurt: can you be more specific?

SDI = Single Document Interface. An a doc-view application with a single document instance.

A doc can have multiple views. When using VC++ 6 you can easily let the appwirads generate an SDI (or MDI for that matter) that has 2 views by selecting the Explorer style radio button in the appwiz tab for SDI/MDI applications.

My suggestion was to usea that but with your own 2 views,
one based on CFormView and the other displaying the 3D stuff.

CFormView:


/Per

www.perfnurt.se
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top