473,732 Members | 2,219 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

why migrate from VC++ win32 to C++.NET windows applications?

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 platforms. If Win32
applications
and .NET application both will run on windows only, what's the
advantages
for the migration? Or maybe this type of migration is not common in
practice?

please dicuss and advise.

thanks!!
John.

Jun 8 '06 #1
14 2135
"John" <ja*****@gmail. com> wrote:
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 platforms.
Microsoft also only supports VC++ Win32 applications on Windows
platforms, AFAIK, so I don't see your distinction.
If
Win32 applications and .NET application both will run on windows only,
what's the advantages for the migration? Or maybe this type of
migration is not common in practice?


The value available in the current .NET space, in terms of libraries
(e.g. ASP.NET, WinForms) and platform support like rich reflection, GC,
efficient generics, dynamic code generation etc., is one advantage.

-- Barry

--
http://barrkel.blogspot.com/
Jun 8 '06 #2
"John" <ja*****@gmail. com> wrote in message
news:11******** **************@ i40g2000cwc.goo glegroups.com.. .
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 platforms.
If Win32 applications and .NET application both will run on windows only,
what's the advantages for the migration?
I can't speak for your friend's company but developing for the .Net platform
is significantly easier than is build a ntive application to the Win32 API
or even MFC.
Or maybe this type of migration
is not common in practice?


I have no knowledge of the statictics.

Regards,
Will


Jun 8 '06 #3
Hi John,

"John" <ja*****@gmail. com> wrote in message
news:11******** **************@ i40g2000cwc.goo glegroups.com.. .
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 platforms. If Win32
applications
and .NET application both will run on windows only, what's the
advantages
for the migration? Or maybe this type of migration is not common in
practice?

please dicuss and advise.

thanks!!
John.


in addition to the reasons mentioned already, I must also be mentioned that
many future APIs will be native .NET APIs. Think of WPF, WCF, WWF, ...
Jun 9 '06 #4
> in addition to the reasons mentioned already, I must also be mentioned
that many future APIs will be native .NET APIs. Think of WPF, WCF, WWF,
...


I have been wondering about this.
How can an API be a pure .NET API?

I agree that a lot of API logic can be made in managed as well as unmanaged
environment,
but sooner or later you will have to make system calls to communicate with
either device drivers or
the windows subsystem itself.

This means that you are always going to have an unmanaged core on which a
managed API is built.
correct?

--

Kind regards,
Bruno van Dooren
br************* *********@hotma il.com
Remove only "_nos_pam"
Jun 9 '06 #5
Bruno,

That is what you call an API. I have the idea that some persons calls
everything an API. But a Win32 is complete different from what they call a
Net programming interface. As we follow that line than is even the Bios an
API.

Just my thought,

Cor

"Bruno van Dooren" <br************ **********@hotm ail.com> schreef in bericht
news:eG******** ******@TK2MSFTN GP05.phx.gbl...
in addition to the reasons mentioned already, I must also be mentioned
that many future APIs will be native .NET APIs. Think of WPF, WCF, WWF,
...


I have been wondering about this.
How can an API be a pure .NET API?

I agree that a lot of API logic can be made in managed as well as
unmanaged environment,
but sooner or later you will have to make system calls to communicate with
either device drivers or
the windows subsystem itself.

This means that you are always going to have an unmanaged core on which a
managed API is built.
correct?

--

Kind regards,
Bruno van Dooren
br************* *********@hotma il.com
Remove only "_nos_pam"

Jun 9 '06 #6
Bruno van Dooren wrote:
in addition to the reasons mentioned already, I must also be mentioned
that many future APIs will be native .NET APIs. Think of WPF, WCF, WWF,
...

I have been wondering about this.
How can an API be a pure .NET API?

I agree that a lot of API logic can be made in managed as well as unmanaged
environment,
but sooner or later you will have to make system calls to communicate with
either device drivers or
the windows subsystem itself.

This means that you are always going to have an unmanaged core on which a
managed API is built.
correct?


Bruno:

Might it not be that although these .NET GUI features are implemented in
native code under the hood, that functionality is not exposed in either
the PSDK or (I wish) in MFC?

David Wilkinson
Jun 9 '06 #7

"Bruno van Dooren" <br************ **********@hotm ail.com> a écrit dans le
message de news: eG************* *@TK2MSFTNGP05. phx.gbl...
in addition to the reasons mentioned already, I must also be mentioned
that many future APIs will be native .NET APIs. Think of WPF, WCF, WWF,
...


I have been wondering about this.
How can an API be a pure .NET API?

I agree that a lot of API logic can be made in managed as well as
unmanaged environment,
but sooner or later you will have to make system calls to communicate with
either device drivers or
the windows subsystem itself.

This means that you are always going to have an unmanaged core on which a
managed API is built.
correct?


Yes, but as you said, the bulk of the API can be written in .NET. For
example, concerning WPF (Avalon), it relies on native DirectX for primitives
drawing, but all the controls logic, the XAML parser, the event handling
logic, the renderer, etc... are pure .NET.

Arnaud
MVP - VC
Jun 9 '06 #8
> Might it not be that although these .NET GUI features are implemented in
native code under the hood, that functionality is not exposed in either
the PSDK or (I wish) in MFC?


My guess:
if an API is considered to be a native .NET API, I would expect it to be
implemented in managed code, except for syscalls and driver interfacing.
this means it will not be implemented as a win32 wrapper. otherwise you
would not be able to call it a pure .NET API.

this would also mean that the win32/win64 implementation of the same
functionality would be a separate implementation,
because to layer win64 on top of a .NET API would probably kill performance.

So there will be 2 implementations , rather than 1 and a wrapper.

I also fail to see why it is even relevant if an API is pure .NET or wrapped
winxx.
The application will have to make the managed / unmanaged switch anyway as
soon as you do
a syscall or driver call.

Unless of course the words 'pure .NETAPI' mean something different still and
I don't get it.

--

Kind regards,
Bruno van Dooren
br************* *********@hotma il.com
Remove only "_nos_pam"
Jun 9 '06 #9
Bruno van Dooren wrote:
Might it not be that although these .NET GUI features are implemented in
native code under the hood, that functionality is not exposed in either
the PSDK or (I wish) in MFC?
[...]

So there will be 2 implementations , rather than 1 and a wrapper.


I don't think so. Vista will have new Win32 functions, but IIRC e.g.
Windows Presentation Foundation (new 3D GUI) will have a .NET layer
only. It may be called pure .NET API, because AFAIK the top layer will
be only available for .NET languages. It will be a managed API sitting
on a x86 API. In the case of WPF (Windows Presentation Foundation) this
will be the DirectX API.

I also fail to see why it is even relevant if an API is pure .NET or wrapped
winxx.
If 50% of the code and logic is in the managed API wrapper itself, you
would have to (re)implement this managed code in native code, which you
hardly can't do by yourself and IMHO not in a 100% compatible way.
You could simply wrap the managed API, by wrapping the managed objects
by flat Win32 functions and Win32 handles, but IMHO that would be
nonsense since:

a) Win32 code would wrap managed code and call into managed code
which performance wise wouldn't be a good idea
(marshaling etc.)
b) You already can create managed objects and call their functions
from native code by using CLR-Hosting

I don't think Microsoft will implement 2 different API (managed /
native). I rather would expect them to enhance the .NET compilers to
emit native / more optimized code.
The application will have to make the managed / unmanaged switch anyway as
soon as you do
a syscall or driver call.
Sure. But where's the problem or difference if managed code does a
driver call or native code (besides marshaling perhaps).
Unless of course the words 'pure .NETAPI' mean something different still and
I don't get it.


Hope it's now somewhat more logical.
Andre

Jun 10 '06 #10

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

Similar topics

3
1672
by: Nick | last post by:
Hi, I am a Windows VC++.net newbie, and do not have much experience on standard C++. Right now, there is a VC++ code which needs to be ported onto Linux for some reason. The code is mainly for scientific computing, and includes lots of GUI dealing with parameters. The plan is to eliminate GUI and use files for parameter setting, and the computing part will remain the same. I really do not have idea on how to migrate the code. Can...
1
1370
by: cretk | last post by:
I just bought VC++ Studio .NET and I only know regular C/C++ but am not afluent in windows win32 programming. Does anybody have any good links and resources that can teach me how to write applications (like graphics and network apps) in windows using this compiler? --chris --
3
1987
by: prg007 | last post by:
Hello, I thought <window.c> is for application run under windows operating system. But I am wrong. I am doing c programming in embedded system. For the GUI I create, I have to draw lines one by one to create a button. But I was told I can use WIN32 program i.e CreateWindow(...) API. GCC has an -mwindows option when compile. Which part of the windows program I can use to port to my embedded system evironment.
5
2360
by: Dan | last post by:
Okay...one last question. I've pretty much spent the weekend reading up on .Net, Soap, web services and enough three letter acronyms to feed the world alphabet soup. Is it a fair and mostly true statement to say that when programming Visual C++ using .Net, the .Net stuff basically replaces the Win32 API? I know you can still make a call back to win32 if need be, but the general idea I gather is that .Net is the new "platform" to sit...
26
1953
by: _R | last post by:
Given that VS2005 has made an effort to clean up the syntax of VC++ (in C++/CLI), is there any future plans to do away with function protos, ala C#/VB? What are they needed for these days?
4
1257
by: Jaime Stuardo | last post by:
Hi all.. I'm planning to translate an application I programmed in VC++ 6.0 to VC++.NET platform becaun in VS.NET it's easier to develop. The question is: if I compile an application under VS.NET, it will run under Windows 98 O.S. without any problem? Thanks in advance Jaime
14
1300
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 platforms. If Win32 applications and .NET application both will run on windows only, what's the advantages for the migration? Or maybe this type of migration is not common in practice?
1
1881
by: Robert Scheer | last post by:
Hi. We have several internal Windows Forms applications and two ASP.NET applications that realy heavily on CSS files. We are considering to migrate the Web applications and some of the Windows Forms applications to WPF. Is there any tool or guide that can help us to migrate the presentation layer from CSS to WPF? Did anyone have some experience on that? Thanks,
0
8946
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9235
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9181
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6735
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4550
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3261
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 we have to send another system
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.