Link to home
Start Free TrialLog in
Avatar of amit_panjwani
amit_panjwaniFlag for United States of America

asked on

How do I ... ?

I am new to Visual C++. Earlier I was working on Visual Basic and am quite comfortable with classes and other concepts.
I need help on viz what are Visual C++ equivalent
for Visual Basic Form etc and how do I instantiate that, set captions

Amit
Avatar of boneTKE
boneTKE

I would suggest you start a new project with the MFC app wizard, specifying a "dialog based application".  When you project comes up in studio, you will see a tab in the workspace window for "resources".  Here you can add/edit menus, dialogs, toolbars, icons, etc.  Click on the dialog tree item and insert a new dialog.  The studio resource toolbat that you get should be familar to you:  it will have buttons, edit boxes, check boxes, etc.

Creating the dialog is very similar to VB on the surface, but underneath it is quite different.  The quickest way to learn how to properly write the member variables, control variables, and command handlers is to view some other code.  If you have the sample programs from VC++, they're a good start.  If you're interested, I could email a project that might help.
I'd suggest that you get a good book on the topic of MFC if you're planning on being successful with it.  My favorite is Mike Blaszczak's Professional MFC from WROX Press.  

He's also a regular here (user mikeblas) and you'll often find a lot of good information in his answers.
You can see the book <<Inside Visual C++>> first!
Avatar of amit_panjwani

ASKER

Ifeq,
I do not know what book we are talking about right now. I would appreciate .
what I am looking for is some VB and VC analogous sort of thing. Since  I have strong VB Skills, It is easier for me this way.


Amit

boneTKE ,

BTW, Can I use Dialogue box the same way as I do in Visual Basic Form.
It would be of great help if you could email some project.


Amit

ASKER CERTIFIED SOLUTION
Avatar of boneTKE
boneTKE

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
boneTKE,

Please mail the DEMO Project to

            amit_panjwani@yahoo.com

Moreover , If you could also help as to how do I show Dialog Boxes in VC as I do FORMS in VB. It would be great help if you could help me on related topics as well.



Ifeq,
I would like to hear from you as well, I am still interested in the book you suggested.

jhance,
Since I am looking for good books on MFC, Thank you for your comments as well.

Amit
boneTKE,

Sorry for Delay,
Thank you for mailing Project.

Bye

Amit