Page 1 of 1

CALL DLL returns \"FUNCTIONNOTFOUND\"

Posted: Mon May 22, 2006 5:54 pm
by skibbs
I'm just trying to test the Call DLL function with a simple Win32 DLL that pops up a message box. I can use the Win32 DLL from .NET using DLLImport, so I believe the function is being exported correctly...

Can you see any mistakes that I've made?

Thanks




Code: Select all

-- Header File

extern "C"
{
   __declspec(dllexport) int __stdcall AboutPlugIn();
}

-- Implementation File
#include "windows.h"
#include "DatabaseWizardWrapper.h"


BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved )
{
    return TRUE;
}

extern "C"
{
   __declspec(dllexport) int __stdcall AboutPlugIn()
   {
      MessageBox(NULL, "i-mate Database Wizard Plug-In for InstallAware", "About Plug-In", 0);
   
      return 99;
   }
}

-- Exports Definition File
EXPORTS
  AboutPlugIn

Posted: Mon May 22, 2006 6:05 pm
by skibbs
Nevermind, it wasn't liking __stdcall, problem solved :D