Making dll's in C???

This is a discussion on Making dll's in C??? within the Windows Programming forums, part of the Platform Specific Boards category; I have coded a program in C for displaying bitmap images and i wish to design the GUI for it ...

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

    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
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    VC++?

    if so, starting a dll project is easy. There's a choice for it in the new project dialog (Win32 Dynamic-Link Library). Then all exported (that you want to access outside the dll) are declared as follows:

    extern "C" __declspec(dllexport) returntype FuncName(ParamType param)
    {
    return blah;
    }
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  3. #3
    Registered User
    Join Date
    Feb 2003
    Posts
    5
    thamx FYB, but i was talking plain old Turbo C, can u help with that???

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 03-12-2008, 01: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, 04:01 PM
  4. Making dll's in C???
    By frolicchap in forum C Programming
    Replies: 2
    Last Post: 02-03-2003, 05:15 AM
  5. Replies: 4
    Last Post: 09-24-2002, 06:20 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21