Search found 4 matches

by Losee
Fri May 04, 2018 3:57 pm
Forum: Windows
Topic: [DLL] Exporting a Function with a decorated name
Replies: 7
Views: 2511

Re: [DLL] Exporting a Function with a decorated name

OK, that's what I thought. My workaround at the moment was to compile my DLL and then use "CFF Explorer" to manually change the Function name to reflect that of the decorated function.

Thanks again.
by Losee
Fri May 04, 2018 3:00 pm
Forum: Windows
Topic: [DLL] Exporting a Function with a decorated name
Replies: 7
Views: 2511

Re: [DLL] Exporting a Function with a decorated name

@Skywalk:
What do you mean by "not handled"?

To interoperate with another application I need to create a DLL that exports the described functionname. I cannot change the name and I don't know how to export decorated names with PureBasic, that's why I asked.
by Losee
Fri May 04, 2018 9:41 am
Forum: Windows
Topic: [DLL] Exporting a Function with a decorated name
Replies: 7
Views: 2511

Re: [DLL] Exporting a Function with a decorated name

The calling convention is not really the problem. It could either be stdcall or cdecl.

My trouble is defining the function name to reflect the C++ representation to be able to decorate it accordingly.


ProcedureCDLL product::common::EnableProductSupport()
; perform some magic ...
EndProcedure
by Losee
Fri May 04, 2018 9:29 am
Forum: Windows
Topic: [DLL] Exporting a Function with a decorated name
Replies: 7
Views: 2511

[DLL] Exporting a Function with a decorated name

Hi all,

is it possible to export function in a PureBasic DLL with a decorated name?

In C++ you could export EnableProductSupport as:


C++: void __cdecl product::common::EnableProductSupport(void)
undecorated: ?EnableProductSupport@common@product@@YAXXZ


If I wanted to export that in my ...