interfacing with the windows api

lee lee_member at pathlink.com
Tue Feb 21 02:13:34 PST 2006


In article <dtencf$188h$1 at digitaldaemon.com>, John C says...
>
>"lee" <lee_member at pathlink.com> wrote in message 
>news:dteims$1198$1 at digitaldaemon.com...
>> I'm trying to write a short windows application, and I need to define a 
>> windows
>> class object. In C this is simple since the class is defined in the 
>> windows
>> header file. Unfortunately, I can't create a wc object in my D program. I 
>> tried
>> importing the header file, but the class definition doesn't carry over 
>> into the
>> program's namespace. Moreover, this is just part of a larger problem. I 
>> have
>> been experiencing problems importing user defined data types from C header 
>> files
>> in general. If someone could explain how D interfaces with C code, I would
>> really appreciate it.
>> Thanks
>> Lee
>>
>
>Interfacing with C, and interfacing with C source code are two different 
>things. This might help you: http://www.digitalmars.com/d/interfaceToC.html 
>
>My problem isn't that I can't access functions defined in C header files, It's that I can't use user defined data types defined within those files. Even after I imported the header file, I still wasn't able to use classes that were defined within it. 
Lee





More information about the Digitalmars-d mailing list