Solved

How do I ... ?

Posted on 2001-06-04
8
186 Views
Last Modified: 2013-11-20
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
0
Comment
Question by:amit_panjwani
8 Comments
 

Expert Comment

by:boneTKE
ID: 6153256
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.
0
 
LVL 32

Expert Comment

by:jhance
ID: 6153326
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.
0
 

Expert Comment

by:lfeg
ID: 6154867
You can see the book <<Inside Visual C++>> first!
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
LVL 4

Author Comment

by:amit_panjwani
ID: 6156655
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

0
 
LVL 4

Author Comment

by:amit_panjwani
ID: 6156674
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

0
 

Accepted Solution

by:
boneTKE earned 200 total points
ID: 6157314
Amit,

Yes, you can use the dialog box the same way as a VB form.  Adding the elements (buttons, combo boxes, list controls, etc) is exactly the same as VB.  It's just the underlying code implementation that is significantly different.

Where would you like me to send/post a demo project?

boneTKE
0
 
LVL 4

Author Comment

by:amit_panjwani
ID: 6159497
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
0
 
LVL 4

Author Comment

by:amit_panjwani
ID: 6175789
boneTKE,

Sorry for Delay,
Thank you for mailing Project.

Bye

Amit
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Include multiple hostnames in this command? 3 55
SQUD PROXY SERVER, UNIX, SLL/HTTPS 5 94
how to split multiple lines delimiter : 8 99
Problem to App 4 81
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 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