Biggest problems w/ D

Paul Findlay r.lph50+d at gmail.com
Fri Aug 10 05:25:35 PDT 2007


> I would just like to put the name of the DLL in the variable name. What I
> would do in C is something like:
>      extern(Windows) void GetName(char* name)
>      {
>           name = "The DLL name";
>      }
Not tested/compiled, but would something like

const char[] DLL_NAME = "The DLL name";
extern(Windows) void GetName(char* name)
{
    name = DLL_NAME.ptr;
}

work?

 - Paul



More information about the Digitalmars-d mailing list