f1engineer
Programmer
Dear Sirs
I have a problem to importing procedure from Visual C++ 6.0 dynamic link library:
1. In my Delphi project i do define the imported function as:
StartLogging
rocedure(AData: byte);cdecl{$IFDEF WIN32} stdcall {$ENDIF};
2. StartLogging:=GetProcAddress(Handle, 'StartLogging');
Handle - is the handle to the dll that I previously load.
3. When a valid procedure pointer came, I sucessfuly call the function and pass all the requared parameters. But just in the end of procedure where I call StartLogging an exception appear: 'Access violation at address 0012F6FF. Write of address 8C13390D'.
I resolved the problem by inserting an assembler code in the procedure but this is not enaugh safely.
Can anyone help me?
Regards Kamen
I have a problem to importing procedure from Visual C++ 6.0 dynamic link library:
1. In my Delphi project i do define the imported function as:
StartLogging
2. StartLogging:=GetProcAddress(Handle, 'StartLogging');
Handle - is the handle to the dll that I previously load.
3. When a valid procedure pointer came, I sucessfuly call the function and pass all the requared parameters. But just in the end of procedure where I call StartLogging an exception appear: 'Access violation at address 0012F6FF. Write of address 8C13390D'.
I resolved the problem by inserting an assembler code in the procedure but this is not enaugh safely.
Can anyone help me?
Regards Kamen