DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2006
    Posts
    3

    Thumbs down VB GUIs and C++ code?

    Hello DevX :)

    I recently installed Visual Studio .NET 2003 edition. I plan on making a program with a Visual Basic GUI and C++ for all of the coding, math, et cetera. I've taken classes on both languages, but never learned how to combine the two. Could anyone help me get started? I need to know what solution and project choices I should make to start this in Visual Studio (New C++ project, et cetera).
    Also, I need to know how to get the two languages to talk to each other. For example: pressing a button in the VB GUI calls a C++ function.

    I'm sorry if my request is a little vague.. Thank you for the help. :)

  2. #2
    Join Date
    Aug 2005
    Location
    Melbourne...Australia
    Posts
    279
    I have never heard of this..

    Why dont you code the GUI in C or C++?

  3. #3
    Join Date
    Jan 2006
    Posts
    3
    Well, I only know how to do the DOS/command prompt style C++ programs. :P Is it possible to do VB-style GUIs in C++? I wanted to use VB because of how simple it is, just drag-n-drop..

  4. #4
    Join Date
    Aug 2005
    Location
    Melbourne...Australia
    Posts
    279
    You can do them its just not drag and drop..
    You use the Windows API or MFC!

    I have not done any VB so I cant tell you how to link a VB prog with C++..

    Sorry mate

  5. #5
    Join Date
    Jan 2006
    Posts
    3
    What is the Windows API and how do I use it? :x

  6. #6
    Join Date
    Aug 2005
    Location
    Melbourne...Australia
    Posts
    279
    API is Application Programming Interface..
    Check this for starters.. :)

    Its not a quick and simple thing however I am afraid..

  7. #7
    Join Date
    Dec 2003
    Posts
    3,366
    The simple thing to do is wrap the c++ in a dll that the basic can call.

  8. #8
    Join Date
    Jan 2006
    Location
    Philippines
    Posts
    3
    can i see ur code??????????????

  9. #9
    Join Date
    Jan 2006
    Posts
    34
    I also heard that you can do the mix in 1 project, but just can't find the document about. So, I suppose it's only a myth ?
    What I suggest if you know C syntax (in DOS) and like VB way of programming, go for C# (this is one of the C# goal) or like jonnin said compile the C code as DLL (you'll also gain a knowledge of Java, cause they're really similar :)).
    Forget about MFC if you never do it, it's really painful to start with (I like MFC and have to use it in my job, but it's just not that intuitive to learn).

Similar Threads

  1. Replies: 60
    Last Post: 09-13-2002, 05:41 PM
  2. Replies: 0
    Last Post: 08-10-2001, 08:19 PM
  3. about c programming
    By soonchik in forum .NET
    Replies: 1
    Last Post: 07-23-2001, 02:41 PM
  4. Good Editorial by Russell Jones
    By Robert G in forum .NET
    Replies: 84
    Last Post: 02-08-2001, 02:38 PM
  5. VB?? Visually BAD??
    By pnichols in forum Java
    Replies: 5
    Last Post: 12-27-2000, 12:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links