cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Nejchy
Level 4

Error 0x80040703

I'm trying to use a C# dll function, but I always get this error.

Error Number: 0x80040703
Description: Failed to find DLL function: ClassLibrary2.Test2

I have never done this before so perhaps there is something wrong with my code.

UseDLL function exits with succesffully (with 0).

prototype BOOL ClassLibrary2.Test2();
prototype TestDLL();


function TestDLL()
STRING sPath, sDllResult;
NUMBER nResult;
BOOL bResult;
begin
sPath=SUPPORTDIR ^ "ClassLibrary2.dll";
MessageBox(sPath, INFORMATION);

nResult=UseDLL(sPath);
NumToStr(sDllResult,nResult);
MessageBox(sDllResult, INFORMATION);

bResult = ClassLibrary2.Test2();

UnUseDLL(sPath);
end;


Thank you for your help.
Labels (1)
0 Kudos
(1) Reply
MichaelU
Level 12 Flexeran
Level 12 Flexeran

UseDLL only works with native (think C or C++) DLLs. For .NET assemblies, look instead towards DotNetCoCreateObject or Managed Code Custom Actions.
0 Kudos