DLL: (const char *paramNames[],size_t numParams)

Andre Pany andre at s-e-a-p.de
Mon Jul 9 10:33:03 UTC 2018


Hi,

I need to call a C function within a DLL which has following 
signature:
   void GetParamNames (const char *paramNames[], size_t numParams);

The purpose of this function is to return a list of texts
I defined in D:
extern(C) GetParamNames (const char[]* paramNames, size_t 
numParams);

Is this correct? How can I call the function? I tried several 
possibilities but
always get a runtime crash.

Kind regards
André


More information about the Digitalmars-d-learn mailing list