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++ / October 2004

Tip: Looking for answers? Try searching our database.

C#/C++ Win32/Win64

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Olaf Baeyens - 07 Oct 2004 09:07 GMT
Just a silly question:
If I understand correctly pure C# compiled as Win32 will run as Win64
without need to recompile.
But will pure managed C++ also be able to do that?

I also heard that pure C# just runs on Linux (Mono) without need to
recompile.
Could pure managed C++ do that?

It would be nice to have 1 executable that run on Win32, Win64 and Linux
without need to recompile.
Ronald Laeremans [MSFT] - 07 Oct 2004 09:54 GMT
Pure does not, but code compiled with /clr:safe should. It should generate
code that can run on any platform conforming to the CLI spec.

This is very similar to C# (for the 32/64 bit part at least). If you use
unsafe C#, you are very likely to be generating code that does not work on
both platforms.

Ronald Laeremans
Visual C++ team

> Just a silly question:
> If I understand correctly pure C# compiled as Win32 will run as Win64
[quoted text clipped - 7 lines]
> It would be nice to have 1 executable that run on Win32, Win64 and Linux
> without need to recompile.
Olaf Baeyens - 07 Oct 2004 11:12 GMT
> Pure does not, but code compiled with /clr:safe should. It should generate
> code that can run on any platform conforming to the CLI spec.
>
> This is very similar to C# (for the 32/64 bit part at least). If you use
> unsafe C#, you are very likely to be generating code that does not work on
> both platforms.

Thanks

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.