standalone exe?

  • Thread starter Thread starter Valli
  • Start date Start date
V

Valli

Is it possible to convert a small console app in c# to a standalone exe
either by converting it to c++ or other ways?

Could I compile c++ standalone exe using .Net framework 1.1?

Thanks,

Regards,
Valliappan AN.
 
You can create .NET applications (Consoles, DLLs, or Windows Forms) using
C#, VB.NET or managed C++. So, it is your choice.

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
 
Carlos said:
You can create .NET applications (Consoles, DLLs, or Windows Forms) using
C#, VB.NET or managed C++. So, it is your choice.

Ya, but can I run the compiled exe without .net framework installed, say
by compiling to c++.net?
 
But c++ .Net also requires the CLR and framework. So what you want is to
compile all your code and framework libraries to native code. The only
thing I know that does something close is
http://www.remotesoft.com/salamander/. However, I don't feel confortable
with that either. So require the framework and write managed code. Or
write native code in c/c++.
 
Can someone verify that if I develop in C++ .Net that the CLR and framework are
required on the target machine? I am only an occasional user of these tools but
it was my impression that C++ in .Net was an upgrade of VC++ 6 rather than a
complete departure in the direction of the CLR. I have written one simple
dialog based app in C++ .Net and I just took it to a Win98 machine that *does
not have* the .Net environment installed and the program started to the level of
displaying my dialog window (I don't have other resources on that machine for a
complete functional test). This result seems to stand in opposition to the
statements made below.

I created my app with the startup wizard as an MFC dialog based app. I don't
think the wizard asked me whether or not I wanted to create managed code.

RHL
 
Roger Levy said:
Can someone verify that if I develop in C++ .Net that the CLR and
framework are
required on the target machine?

If you build compile with the /CLR switch (i.e. check "Use managed
exetnsions in the IDE) then your application requires .Net support. If you
don't, it won't.

Regards,
Will
 
When would I see this option in the IDE for VC++? I used the wizard to create a
new project in .Net 2003:
Visual C++ Projects
MFC
MFC Application
and I never saw an option related to managed code. Are there other wizard
project creation scenarios for VC++ when I would see this option?

RL
 
Roger Levy said:
When would I see this option in the IDE for VC++? I used the wizard to
create a
new project in .Net 2003:
Visual C++ Projects
MFC
MFC Application
and I never saw an option related to managed code.

From the menu choose Project->Properties. In the left pane, open up the
Configuartion Properties "folder". Select General. In the right pane scroll
down to Use Managed Extensions.
Are there other wizard project creation scenarios for VC++ when
I would see this option?

From the menu File->New Projects then open the C++ Projects "folder" and
select .Net

Regards,
Will
 
Back
Top