Thread: Making dll's in C???

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    5

    Making dll's in C???

    Making dll's in C???
    I have coded a program in C for displaying bitmap images and i wish to design the GUI for it in VB. Basically i need that File open dialogue that would allow the user to pick the bmp from anywhere on the harddisk. I know that I can port my code to VB by making a dll, but have no clue how to do it. Can anyone help, any links etc would be appreciated...
    thanks.

  2. #2
    Registered User Vber's Avatar
    Join Date
    Nov 2002
    Posts
    807
    A good example can be found here:
    http://www.planet-source-code.com/vb...=1005&lngWId=3

    Exactly what you need, create a dll with C/C++ and re-use it in Visual Basic.

  3. #3
    Registered User
    Join Date
    Feb 2003
    Posts
    5
    thanx vber, i have coded the dll now. But theres one more problem.. I need to return a string from the dll file to my VB code. All i have been able to do is to return a pointer to the beginning of the string. Any idea how can i actually retrieve the string stored at this starting at this address in VB??

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 03-12-2008, 12:10 AM
  2. making two DLLs into one DLL
    By George2 in forum C Programming
    Replies: 1
    Last Post: 11-06-2007, 03:53 AM
  3. Making DLLs, will only make .LIB
    By EvBladeRunnervE in forum Windows Programming
    Replies: 4
    Last Post: 05-23-2003, 03:01 PM
  4. Making dll's in C???
    By frolicchap in forum Windows Programming
    Replies: 2
    Last Post: 02-02-2003, 05:23 AM
  5. Replies: 4
    Last Post: 09-24-2002, 05:20 PM