Sign in to follow this  
Followers 0
E1M1

DllCall - "function" not found in the DLL file

4 posts in this topic

#1 ·  Posted (edited)

Hello

I am trying to call 64 bit dll but for some reason I keep getting error 3 "function" not found in the DLL file

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseX64=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
DllCall("pyclip.dll","int:cdecl","SomeFunction","str","abc")
MsgBox(0,"",@error)

in dllmain.cpp I do have that function.

// dllmain.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"

#define DLL_EXPORT __declspec(dllexport)

int DLL_EXPORT SomeFunction(const LPCSTR sometext)
{
    MessageBoxA(0, sometext, "DLL Message", MB_OK | MB_ICONINFORMATION);
    return 0;
}

BOOL APIENTRY DllMain( HMODULE hModule,
                     DWORD ul_reason_for_call,
                     LPVOID lpReserved
                     )
{
    switch (ul_reason_for_call)
    {
    case DLL_PROCESS_ATTACH:
    case DLL_THREAD_ATTACH:
    case DLL_THREAD_DETACH:
    case DLL_PROCESS_DETACH:
        break;
    }
    return TRUE;
}

Does anyone know why autoit cant find that function?

Edited by E1M1

edited

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Because the function name is decorated. So JohnOne gives you a hint.

Edited by Andreik

When the words fail... music speaks

Share this post


Link to post
Share on other sites

Thank you


edited

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0