Results 1 to 2 of 2

Thread: DLL'S??

  1. #1

    Thread Starter
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409

    Wink

    I want to know how can i call a function from a c++ dll from VC++or VB,how can i call MyFunction() in this case; Can someone explain or suggest some links covering this topics.

    Code:
    #include "stdafx.h"
    
    MyFunction()
    {
    Do something
    }
    
    BOOL APIENTRY DllMain(HANDLE hModule, DWORD  dwReasonForCall, LPVOID lpReserved) {
        switch(dwReasonForCall) {
    		case DLL_PROCESS_ATTACH: {
    			break;
    		}
    		case DLL_PROCESS_DETACH: {
    			break;
    		}
        }
        return TRUE;
    }
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    I'll send you an example project showing how to use DLLs in C++.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width