473,396 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Question about C programming with .NET platform

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?
Nov 15 '05 #1
4 1055
LJK <ad****@gmail.com> writes:
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.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 15 '05 #2
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.

--
EventStudio System Designer 2.5 - http://www.EventHelix.com/EventStudio
Sequence Diagram Based Real-time and Embedded System Design Tool

Nov 15 '05 #3

"LJK" <ad****@gmail.com> wrote
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.
Nov 15 '05 #4
"LJK" <ad****@gmail.com> wrote in message
news:1h******************************@40tude.net.. .
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.

--
Mabden
Nov 15 '05 #5

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

Similar topics

65
by: perseus | last post by:
I think that everyone who told me that my question is irrelevant, in particular Mr. David White, is being absolutely ridiculous. Obviously, most of you up here behave like the owners of the C++...
44
by: lester | last post by:
a pre-beginner's question: what is the pros and cons of .net, compared to ++ I am wondering what can I get if I continue to learn C# after I have learned C --> C++ --> C# ?? I think there...
17
by: Materialised | last post by:
Ok, I need some info on how to print in colours to the xterm using c. take a simple program #include <stdio.h> voice main(void) { printf("I want this in colour\n"; return 0; }
8
by: Jolly Student | last post by:
Dear Colleagues: I am a systems guy who has been working with hardware, networking and basic scripting for ten years or so. I have been given the opportunity to attend ..Net classes of all...
44
by: lester | last post by:
a pre-beginner's question: what is the pros and cons of .net, compared to ++ I am wondering what can I get if I continue to learn C# after I have learned C --> C++ --> C# ?? I think there...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...

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.