473,466 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

C#/C++ Win32/Win64

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.
Nov 17 '05 #1
2 2593
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

"Olaf Baeyens" <ol**********@skyscan.be> wrote in message
news:41***********************@news.skynet.be...
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.

Nov 17 '05 #2
> 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
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mauro Cicognini | last post by:
Hi to everybody, please forgive me if what I'm asking is obvious but I couldn't really find out any good pointers in a few hours of googling on the python site and related places. The question...
16
by: Phill | last post by:
I'm still new to .NET and come from a win32 background. I'm happy w/ what I see in .NET although it is a little slower than I'd like. It also has a nice oo design and C# is a wonderful language...
6
by: Can Balioglu | last post by:
Hi everyone, My question is not a technical one. I'm just curious about the future of Win32 (and Win64) programming. Most of the books about Win32 from MS Press (like Programming Windows,...
3
by: Dennis Landi | last post by:
Hello, I have three questions: 1) I have been perusing the MSDN VC++ pages. Everything seems to be geared towards .NET integration. Will MS continue support natively compiled code or will...
15
by: Sharon | last post by:
I'm thinking to move from WinXP 32bit to Windows 2003 Server 64 bit. But first I have some unclear issues that would like to clarify in here using your kind help: (1) Can I take a driver (like the...
14
by: John | last post by:
My friend told me that his company will migrate the VC++ win32 applications to C++ .NET windows applications. I don't understand why since currently Microsoft only supports .NET on windows...
3
by: Taras Ovsyankin | last post by:
Hi, We have several 64-bit libraries here built with vc7, AMD64 SDK. I'm wondering if it is OK to link them into vc8 win64 project. What are potential issues? Thank you, Taras
21
by: Paul Edwards | last post by:
I have written a public domain (not GPL etc) C runtime library (PDPCLIB) for DOS, OS/2 and MVS. You can see it here: http://sourceforge.net/projects/pdos/ I now wish to port it to Win32, so...
1
by: Jerome | last post by:
Hi all, I've made a .NET wrapper of a C++ toolkit using MC++ (perhaps I should now take a look to C++/CLI). The 32 bits version works fine on Win32 and 64 bits version works fine on Win64 .......
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.