+ Reply to Thread
Results 1 to 2 of 2

Thread: Creating a simple DLL using VC++

  1. #1

    Creating a simple DLL using VC++

    Creating a simple DLL using VC++

  2. #2
    Senior Member
    Join Date
    Feb 2012
    a. Create a "WIN32 Project" in VS 2005.
    b. Type "MyFirstDLL" name
    c. Select application type "DLL"
    d. Press Finish.

    Add following function in the MyFirstDLL.cpp source file:

    extern "C" void __declspec(dllexport) DisplayMessage(char *pszMessage)
    	if (NULL != pszMessage)
    		char szMessage[100] ;
    		sprintf(szMessage, "Hi %s from DLL!!!", pszMessage) ;
    		OutputDebugStringA(szMessage) ;
    You can load the DLL using this article: http://www.codeexperts.com/showthrea...oad-a-DLL-in-C

+ Reply to Thread


Posting Permissions

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