CALL DLL returns \"FUNCTIONNOTFOUND\"

Got a problem you cannot solve? Try here.
skibbs
Posts: 56
Joined: Thu Apr 27, 2006 5:06 pm
Location: Redmond, WA
Contact:

CALL DLL returns \"FUNCTIONNOTFOUND\"

Postby skibbs » Mon May 22, 2006 5:54 pm

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

skibbs
Posts: 56
Joined: Thu Apr 27, 2006 5:06 pm
Location: Redmond, WA
Contact:

Postby skibbs » Mon May 22, 2006 6:05 pm

Nevermind, it wasn't liking __stdcall, problem solved :D


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 104 guests