Updated: 1/22/2004; 8:04:39 PM.
ronpih I guess...
Your guess is as good as mine...
        

Sunday, March 17, 2002

Alright, so I'm stupid.  I didn't need the DLLImport attribute at all in my previous example.  In Managed C++ you can just call Win32 APIs directly right alongside all the CLR stuff.  This is why Managed C++ rules!

I have a project coming up that needs a layer to talk to some Win32 APIs due to the fact that the Managed world doesn't support some things yet.  What I plan to do is just implement a component layer that calls the Win32 APIs and presents a Managed-friendly interface for Managed components to use.  If and/or when there is Managed support to do the things I need to use the Win32 API for, I just update the component to use that.  The interface that managed clients call shouldn't have to change at all.

I have a contrived example that I may post tomorrow.


11:05:58 PM    comment []

© Copyright 2004 Ronald Pihlgren.
 
March 2002
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Feb   Apr

Weblogs
Microsoft Testers
VC++ Bloggers
Links
Note:This is a personal weblog. All opinions expressed here are mine alone.


Click here to visit the Radio UserLand website.

Subscribe to "ronpih I guess..." in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.