NEWBIE

  • Thread starter Thread starter Chris Herrington
  • Start date Start date
C

Chris Herrington

I am new to VC++ and want to write and unmanaged application using 2005
visual studio. I do not want to use the dot net environment and was told
that I can write unmanaged application using 2005. Can anyone help me by
telling my what kind of project I need to create to make this possible?

Thanks in adance

Chris Herrington
 
You want to use "/clr:oldSyntax".

Go to your project's Properties (right click on it in Solution Explorer).
Look for the "Common Language Runtime Support" option under "Configuration
Properties : General - Project Defaults" (it should actually be what comes
up when you first open Properties). Make sure this is set to 'clr/oldSyntax'
(click on this line, select from drop down option list).

Then, do NOT use and '__value' or '__ref', or any other gc syntax, and that
should do it! : )

[==P==]
 
Peter said:
You want to use "/clr:oldSyntax".

Go to your project's Properties (right click on it in Solution Explorer).
Look for the "Common Language Runtime Support" option under "Configuration
Properties : General - Project Defaults" (it should actually be what comes
up when you first open Properties). Make sure this is set to 'clr/oldSyntax'
(click on this line, select from drop down option list).

Then, do NOT use and '__value' or '__ref', or any other gc syntax, and that
should do it! : )

[==P==]

I am new to VC++ and want to write and unmanaged application using 2005
visual studio. I do not want to use the dot net environment and was told
that I can write unmanaged application using 2005. Can anyone help me by
telling my what kind of project I need to create to make this possible?

Thanks in adance

Chris Herrington

Peter:

OP wants unmanaged application. He doesn't want clr at all.

Chris:

It depends what kind of application you want. I don't have VS2005 yet,
but in VS2003 you want one of

Win32 Console Project (non GUI)
Win32 Project (GUI without MFC)
MFC Application (GUI with MFC)

I would suggest starting with a Win32 console project.

David Wilkinson
 
Just create an MFC, ATL or Win32 project using the wizard. If you have the
Express version, you won't have MFC and ATL, but you can still create Win32
apps (I think).
 
Huh? Are you saying that the Express edition cannot compile a non-CLR app?

--
Regards,
Nish [VC++ MVP]


Peter Oliphant said:
You want to use "/clr:oldSyntax".

Go to your project's Properties (right click on it in Solution Explorer).
Look for the "Common Language Runtime Support" option under "Configuration
Properties : General - Project Defaults" (it should actually be what
comes up when you first open Properties). Make sure this is set to
'clr/oldSyntax' (click on this line, select from drop down option list).

Then, do NOT use and '__value' or '__ref', or any other gc syntax, and
that should do it! : )

[==P==]

Chris Herrington said:
I am new to VC++ and want to write and unmanaged application using 2005
visual studio. I do not want to use the dot net environment and was told
that I can write unmanaged application using 2005. Can anyone help me by
telling my what kind of project I need to create to make this possible?

Thanks in adance

Chris Herrington
 
This will allow my code to be unmanaged? I come from a C# and VB6
background so forgive me if I do not know the questions to ask. Is there a
way to have my application to not compile to IL and allow me to compile the
application in native code similar to VB/VC6?

Thanks again

Peter Oliphant said:
You want to use "/clr:oldSyntax".

Go to your project's Properties (right click on it in Solution Explorer).
Look for the "Common Language Runtime Support" option under "Configuration
Properties : General - Project Defaults" (it should actually be what
comes up when you first open Properties). Make sure this is set to
'clr/oldSyntax' (click on this line, select from drop down option list).

Then, do NOT use and '__value' or '__ref', or any other gc syntax, and
that should do it! : )

[==P==]

Chris Herrington said:
I am new to VC++ and want to write and unmanaged application using 2005
visual studio. I do not want to use the dot net environment and was told
that I can write unmanaged application using 2005. Can anyone help me by
telling my what kind of project I need to create to make this possible?

Thanks in adance

Chris Herrington
 
Chris said:
This will allow my code to be unmanaged? I come from a C# and VB6
background so forgive me if I do not know the questions to ask. Is there a
way to have my application to not compile to IL and allow me to compile the
application in native code similar to VB/VC6?

In order to have a true native app, choose "Win32" project. Check in
the project settings that "Using Managed extensions" is set to No

Arnaud
MVP - VC
 
Nishant Sivakumar said:
Huh? Are you saying that the Express edition cannot compile a
non-CLR app?

No, he misunderstood the question slightly.

The C++ compiler from the Express Edition can produce 3 kinds of
programs:

Native 32 bit Windows programs, using ISO C++.
..NET 2.0 programs, using ECMA C++/CLI
..NET 2.0 programs, using Managed Extensions á la VS2003.


That's three distinct, but similar, languages in one package.


"Unmanaged" is just marketing speak, to use when "native" sounds too
good.


Bo Persson
 
Will I still have a visual ide designer? or do I have to design it all in
code?

Thanks

Chris
 
Hi Chris,
Will I still have a visual ide designer? or do I have to design it
all in code?

You also will have a Visual IDE designer just like programming in C#, but
for a Win32 Console project, there is any Form Designer with it.


Thank!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top