Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / April 2007

Tip: Looking for answers? Try searching our database.

CLI with Win32 API

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Micus - 13 Apr 2007 07:02 GMT
Are there any good examples of making Win32 API function calls from within
managed code?

Also... Is there anyway to run a separate app [eg 'run(MyApp.exe) '] from
managed code?

TIA,
M
Nathan Mates - 13 Apr 2007 17:28 GMT
>Are there any good examples of making Win32 API function calls from within
>managed code?

  http://www.pinvoke.net/ has been mentioned a few times. Personally,
I haven't touched managed code, so I can't vouch for the site, but it
seems legit.

>Also... Is there anyway to run a separate app [eg 'run(MyApp.exe) '] from
>managed code?

  If you can call one of the unmanaged _*spawn*() variants (see
MSDN), that should do the trick. Or maybe there's a managed version.

Nathan Mates
--
<*> Nathan Mates - personal webpage http://www.visi.com/~nathan/ 
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
Ben Voigt - 13 Apr 2007 19:31 GMT
> Are there any good examples of making Win32 API function calls from within
> managed code?

C++/CLI can use windows API just like unmanaged C or C++.  Just #include
<windows.h> first.
Micus - 13 Apr 2007 23:16 GMT
> > Are there any good examples of making Win32 API function calls from within
> > managed code?
>
> C++/CLI can use windows API just like unmanaged C or C++.  Just #include
> <windows.h> first.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.