www.digitalmars.com         C & C++   DMDScript  

c++ - How to use MS Platform SDK

reply Roger Scudder<r.scudder rcn.com> writes:
I want to use extended styles of common controls in my MFC apps.  The headers in
the dm\include\win32 folder are rather dated and do not contain the extended
style definitions.  I know they are defined in the Platform SDK.  I tried to add
the path to the Platform SDK include and lib folders in the IIDE on the
Settings...|Directories property sheet, but it seem that is not the correct
solution to my problem.

How can I use the new common control features in my MFC apps using Digital Mars?


-Roger Scudder
Sep 08 2003
parent reply Roger Scudder<r.scudder rcn.com> writes:
In article <bjjntt$396$1 digitaldaemon.com>, Roger Scudder says...
I want to use extended styles of common controls in my MFC apps.  
I simply copied the macros for the ListView extended styles from the Platform SDK header file and pasted them into the x:\dm\include\commctrl.h and it works fine. About using the Platform SDK: I got an invalid lib file format error when I tried to use the Platform SDK libraries with the Digital Mars linker. I am assuming that is because dmc doesn't support COFF. Will I need to create a separate set of export libs for Digital Mars in order to use the Platform SDK? -Roger Scudder
Sep 09 2003
parent "Walter" <walter digitalmars.com> writes:
"Roger Scudder" <r.scudder rcn.com> wrote in message
news:bjkn20$1hq9$1 digitaldaemon.com...
 In article <bjjntt$396$1 digitaldaemon.com>, Roger Scudder says...
I want to use extended styles of common controls in my MFC apps.
I simply copied the macros for the ListView extended styles from the
Platform
 SDK header file and pasted them into the x:\dm\include\commctrl.h and it
works
 fine.

 About using the Platform SDK:

 I got an invalid lib file format error when I tried to use the Platform
SDK
 libraries with the Digital Mars linker.  I am assuming that is because dmc
 doesn't support COFF.

 Will I need to create a separate set of export libs for Digital Mars in
order to
 use the Platform SDK?
Yes. Usually running COFF2OMF on them will resolve the issue.
Sep 09 2003