Forum > General

GetProcAdress returns valid pointer but execution returns: "External exception:"

<< < (3/5) > >>

engkin:
According to this example you should use cdecl

Shpend:
ok. I have changed it back again to use "cdecl" in function-variable, and i have talked to the guy who provided the "DllExport" attribute, and he suggested me to change some configuration stuff, and now atleast i get this:

(see image below)

why is the address 000000000?

now, indeed, the functionPointer gives back nill... I changed some stuff with his "Configurator-Tool" (u dont have controll over that sadly so u cant give me hints anyway^^) but curious...

Akira1364:
I think in C#, `int` is always 4 bytes (so equivalent to LongInt, not Int64).

Edit: Also, why are you unconditionally calling `RaiseLastWin32Error`? That will just always raise an exception, and on top of that you're already inside of a try-finally block there...

marcov:
Dump the tables using objdump or a GUI program like PE explorer.

Check the export tables there.,

Shpend:

--- Quote from: marcov on January 15, 2022, 12:37:28 am ---Dump the tables using objdump or a GUI program like PE explorer.

Check the export tables there.,

--- End quote ---

see image.

sadly, i have little knowledge of such measurements, would be really nice if you guys could help me understand what it says  :-[

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version