DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Lawrence Brabham Guest

    VB Forms Calling C++ Code


    Jonathan,

    Does your book cover using VB forms in a C++ project? Or, is it better to
    call C++ code from within a VB project? I'm interested in how I might use
    a VB form as a user interface for data input, with command buttons that will
    trigger the execution of C++ code.

    A simple example I have in mind is a VB form with two text boxes. The first
    text box will accept a first name and the second a last name. How can I
    call C++ code to display the contents entered in each text box after a command
    button is clicked? Thanks.


  2. #2
    Jonathan Morrison Guest

    Re: VB Forms Calling C++ Code

    Lawrence,
    My book basically teaches how and advocates using VB for the front end and
    most of the application logic, while using C++ DLLs (COM or Standard) to
    perform speed critical functions. The book has many examples of VB
    applications calling functions in C++ DLLs. The book also contains an
    example program that almost exactly matches the description of the sample
    you requested.

    Thanks,
    Jonathan

    Lawrence Brabham <lbrabham@webcombo.net> wrote in message
    news:3a108f77$1@news.devx.com...
    >
    > Jonathan,
    >
    > Does your book cover using VB forms in a C++ project? Or, is it better to
    > call C++ code from within a VB project? I'm interested in how I might use
    > a VB form as a user interface for data input, with command buttons that

    will
    > trigger the execution of C++ code.
    >
    > A simple example I have in mind is a VB form with two text boxes. The

    first
    > text box will accept a first name and the second a last name. How can I
    > call C++ code to display the contents entered in each text box after a

    command
    > button is clicked? Thanks.
    >




Similar Threads

  1. Make VB code work in MS Access 2000?
    By Pihlis in forum VB Classic
    Replies: 2
    Last Post: 07-17-2002, 12:34 AM
  2. .NET equals Efficiency
    By Kevin in forum .NET
    Replies: 150
    Last Post: 03-04-2002, 05:40 PM
  3. Re: Writer's Uninformed Statements
    By Rich in forum .NET
    Replies: 38
    Last Post: 09-07-2001, 05:55 PM
  4. Good Editorial by Russell Jones
    By Robert G in forum .NET
    Replies: 84
    Last Post: 02-08-2001, 02:38 PM
  5. Aivosto VB Watch profiles code
    By Aivosto in forum vb.announcements
    Replies: 0
    Last Post: 09-25-2000, 02:02 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