Question about C programming with .NET platform

L

LJK

I need to write some classic C code in Visual Studio. As I have to write it
using Visual C++.net, I guess it will be translated to MSIL and later run
in .NET CLR.

Can I still make ordinary framework-independent object code and how?
Perhaps some compiler switches?
 
K

Keith Thompson

LJK said:
I need to write some classic C code in Visual Studio. As I have to write it
using Visual C++.net, I guess it will be translated to MSIL and later run
in .NET CLR.

Can I still make ordinary framework-independent object code and how?
Perhaps some compiler switches?

We have no idea. If your compiler's documentation doesn't tell you,
you'll need to ask in a newsgroup that's relevant to your system.
 
E

EventHelix.com

Yes you can write a native application using Visual Studio.NET. Just
make sure CLI option is not enabled. Do not select a "managed" code
project.

One simple way to get started would be to create a Win32 console
project. This will let you write regular code.
 
M

Malcolm

LJK said:
I need to write some classic C code in Visual Studio. As I have to write it
using Visual C++.net, I guess it will be translated to MSIL and later run
in .NET CLR.

Can I still make ordinary framework-independent object code and how?
Perhaps some compiler switches?
Just write a simple C source file, one that says "Hello world" if you plan
on doing IO from C, otherwise a simple function.

Then play with the compiler switches and settings until you get it to run.
Then you can repalce the code with what you really want to do.
 
M

Mabden

LJK said:
I need to write some classic C code in Visual Studio. As I have to write it
using Visual C++.net, I guess it will be translated to MSIL and later run
in .NET CLR.

Can I still make ordinary framework-independent object code and how?
Perhaps some compiler switches?

Why?

I want to take my Ferrarri off-road...

Fantasy Answer: Yes.

Real Answer: No! what are you thinking you idiot! Go and get Borland's
free compiler from the year your mom took all those drugs that resulted
in YOU and compile it in a "command box" or whatever they call these
days. Don't try to cram a CD in the 8-track player, Player.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,170
Messages
2,570,925
Members
47,466
Latest member
DrusillaYa

Latest Threads

Top