Thread: C with VB ?

  1. #1
    Registered User khpuce's Avatar
    Join Date
    May 2003
    Posts
    165

    C with VB ?

    Hello everyone,

    Currently I am trying to develop an application with nice/easy user interface. I mainly program in C. But for creating user interfaces, I found VB 6 extremely easy. But I don't want to ( unless I have to! ) learn VB coding and develop the whole application in VB .

    Therefore, I was wondering whether it is possible to combine C codes with VB 6. For example, if I want to make a simple calculator, then I want the GUI created by VB but the actual functions in C (since I am more familiar with C coding).

    Is it possible? If so then how ? Where can I get some specific help on this ?

    Thank you

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    I think you basically compile all your 'C' code as a DLL, then import that as a module into VB.
    That's about as much as I know.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User khpuce's Avatar
    Join Date
    May 2003
    Posts
    165
    Thanks Salem.

    I am gonna look on the net to learn about these DLL stuffs.


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. VB with C++
    By Nascent_Grammer in forum C++ Programming
    Replies: 6
    Last Post: 01-14-2008, 06:36 PM
  2. Passing an Array of Strings from VB to a C DLL
    By mr_nice! in forum Windows Programming
    Replies: 9
    Last Post: 03-08-2005, 06:16 AM
  3. Passing parameters from VB to C++ through ActiveX DLL
    By torbjorn in forum Windows Programming
    Replies: 0
    Last Post: 12-10-2002, 03:13 AM
  4. VB Calling Convention?!
    By minime6696 in forum Windows Programming
    Replies: 6
    Last Post: 03-27-2002, 04:39 PM
  5. Sending a string to C++ from VB 6.
    By VirtualAce in forum C++ Programming
    Replies: 4
    Last Post: 08-21-2001, 02:28 AM