Results 1 to 5 of 5

Thread: VC++ IDE Question {RESOLVED}

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166

    VC++ IDE Question {RESOLVED}

    Purchased VC++ 6.0 and have gone through all the books.
    Understand MFC are wrappers around API calls. All well and good.

    Per VC++ documentation, if a dialog box (form) is implemented in Resources (*.RC) then a dialog editor pops up and allows you to add/delete/modify controls on the dialog just like Visual Basic.

    However, no mention is made on how you add/delete/modify a dialog box like VB or with the C++ dialog editor if it is generated in code (*.cpp).

    Is there a way to bring up the dialog box and associated controls placed on it when created using MFC in code, and if so how?

    OR

    have I misunderstood the VC++ IDC.

    Thanks
    David
    Last edited by dw85745; Mar 25th, 2003 at 10:25 PM.

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986

    Re: VC++ IDE Question

    Originally posted by dw85745
    (..)
    However, no mention is made on how you add/delete/modify a dialog box like VB or with the C++ dialog editor if it is generated in code (*.cpp).
    As far as I know, no... I think the resource editor can only edit resource files. But if anyone can prove that I am wrong, please do!
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    No, you're correct Jop. VC++ can only edit dialog resources visually. Code that generates controls cannot be interpreted.

    dw: Why did you BUY VC++ 6 when 7 is long out and 8 is already in beta?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    Thanks for the responses. Greatly appreciated. dw:

    Why did you BUY VC++ 6 when 7 is long out and 8 is already in beta?

    Two reasons:

    1. Needed something fast to deal with a company who provided a lib and sample code to link to their server. Sample code was written in MFC which I don't know. Making good progress though -- just wish Microsoft had a master list of all the MFC classes similiar to API Guide for VB.

    2. Got a great deal.
    Last edited by dw85745; Mar 25th, 2003 at 10:28 PM.

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    You can click the "quote" button next to a post if you want to address the points seperatly. Makes it easier to read.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width