Jump to content

Recommended Posts

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

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
×
×
  • Create New...