473,910 Members | 4,512 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C++ and C# in same proj

Is it possible for a project to have both C++ and C# code?
How about solution, can we code half in C++ and half in C#?

I am talking managed or unmanaged C++.

Basic idea is to convert some project that are in C# into C++ and some C++ projects to C#.

Thank you,
Po
Feb 6 '06 #1
6 1257
Pohihihi,

No, it is not. However, you can have C++ and C# in the same solution (but different projects).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Pohihihi" <no*****@hotmai l.com> wrote in message news:Oi******** *****@tk2msftng p13.phx.gbl...
Is it possible for a project to have both C++ and C# code?
How about solution, can we code half in C++ and half in C#?

I am talking managed or unmanaged C++.

Basic idea is to convert some project that are in C# into C++ and some C++ projects to C#.

Thank you,
Po
Feb 6 '06 #2
For doing so in same solution do I need to make any changes for complier options?

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in message news:OB******** ******@TK2MSFTN GP09.phx.gbl...
Pohihihi,

No, it is not. However, you can have C++ and C# in the same solution (but different projects).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Pohihihi" <no*****@hotmai l.com> wrote in message news:Oi******** *****@tk2msftng p13.phx.gbl...
Is it possible for a project to have both C++ and C# code?
How about solution, can we code half in C++ and half in C#?

I am talking managed or unmanaged C++.

Basic idea is to convert some project that are in C# into C++ and some C++ projects to C#.

Thank you,
Po
Feb 6 '06 #3
Pohihihi,
The compiler options are set for each project at the project level, so the
options set for a C++ (managed or unmanaged) project in a solution do not
affect the compiler options that are set for a C# project residing in the
same solution.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Pohihihi" wrote:
For doing so in same solution do I need to make any changes for complier options?

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in message news:OB******** ******@TK2MSFTN GP09.phx.gbl...
Pohihihi,

No, it is not. However, you can have C++ and C# in the same solution (but different projects).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Pohihihi" <no*****@hotmai l.com> wrote in message news:Oi******** *****@tk2msftng p13.phx.gbl...
Is it possible for a project to have both C++ and C# code?
How about solution, can we code half in C++ and half in C#?

I am talking managed or unmanaged C++.

Basic idea is to convert some project that are in C# into C++ and some C++ projects to C#.

Thank you,
Po

Feb 7 '06 #4
yes that part I got, so for C++ project when I am changing code from C# to
C++ do I also take care of complier options or IDE will do it automatically,
or do I need to create a whole new C++ project for complier to know it is a
c++ project?
"Peter Bromberg [C# MVP]" <pb*******@yaho o.nospammin.com > wrote in message
news:21******** *************** ***********@mic rosoft.com...
Pohihihi,
The compiler options are set for each project at the project level, so the
options set for a C++ (managed or unmanaged) project in a solution do not
affect the compiler options that are set for a C# project residing in the
same solution.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Pohihihi" wrote:
For doing so in same solution do I need to make any changes for complier
options?

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om>
wrote in message news:OB******** ******@TK2MSFTN GP09.phx.gbl...
Pohihihi,

No, it is not. However, you can have C++ and C# in the same
solution (but different projects).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Pohihihi" <no*****@hotmai l.com> wrote in message
news:Oi******** *****@tk2msftng p13.phx.gbl...
Is it possible for a project to have both C++ and C# code?
How about solution, can we code half in C++ and half in C#?

I am talking managed or unmanaged C++.

Basic idea is to convert some project that are in C# into C++ and
some C++ projects to C#.

Thank you,
Po

Feb 8 '06 #5
You have to start out with a C++ project. You can paste C# code into it if
you want,
but eventually it needs to be converted to C++.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Pohihihi" wrote:
yes that part I got, so for C++ project when I am changing code from C# to
C++ do I also take care of complier options or IDE will do it automatically,
or do I need to create a whole new C++ project for complier to know it is a
c++ project?
"Peter Bromberg [C# MVP]" <pb*******@yaho o.nospammin.com > wrote in message
news:21******** *************** ***********@mic rosoft.com...
Pohihihi,
The compiler options are set for each project at the project level, so the
options set for a C++ (managed or unmanaged) project in a solution do not
affect the compiler options that are set for a C# project residing in the
same solution.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Pohihihi" wrote:
For doing so in same solution do I need to make any changes for complier
options?

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om>
wrote in message news:OB******** ******@TK2MSFTN GP09.phx.gbl...
Pohihihi,

No, it is not. However, you can have C++ and C# in the same
solution (but different projects).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Pohihihi" <no*****@hotmai l.com> wrote in message
news:Oi******** *****@tk2msftng p13.phx.gbl...
Is it possible for a project to have both C++ and C# code?
How about solution, can we code half in C++ and half in C#?

I am talking managed or unmanaged C++.

Basic idea is to convert some project that are in C# into C++ and
some C++ projects to C#.

Thank you,
Po


Feb 9 '06 #6
thanks.

"Peter Bromberg [C# MVP]" <pb*******@yaho o.nospammin.com > wrote in message
news:7A******** *************** ***********@mic rosoft.com...
You have to start out with a C++ project. You can paste C# code into it if
you want,
but eventually it needs to be converted to C++.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Pohihihi" wrote:
yes that part I got, so for C++ project when I am changing code from C#
to
C++ do I also take care of complier options or IDE will do it
automatically,
or do I need to create a whole new C++ project for complier to know it is
a
c++ project?
"Peter Bromberg [C# MVP]" <pb*******@yaho o.nospammin.com > wrote in
message
news:21******** *************** ***********@mic rosoft.com...
> Pohihihi,
> The compiler options are set for each project at the project level, so
> the
> options set for a C++ (managed or unmanaged) project in a solution do
> not
> affect the compiler options that are set for a C# project residing in
> the
> same solution.
> Peter
>
> --
> Co-founder, Eggheadcafe.com developer portal:
> http://www.eggheadcafe.com
> UnBlog:
> http://petesbloggerama.blogspot.com
>
>
>
>
> "Pohihihi" wrote:
>
>> For doing so in same solution do I need to make any changes for
>> complier
>> options?
>>
>> "Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om>
>> wrote in message news:OB******** ******@TK2MSFTN GP09.phx.gbl...
>> Pohihihi,
>>
>> No, it is not. However, you can have C++ and C# in the same
>> solution (but different projects).
>>
>> Hope this helps.
>>
>>
>> --
>> - Nicholas Paldino [.NET/C# MVP]
>> - mv*@spam.guard. caspershouse.co m
>> "Pohihihi" <no*****@hotmai l.com> wrote in message
>> news:Oi******** *****@tk2msftng p13.phx.gbl...
>> Is it possible for a project to have both C++ and C# code?
>> How about solution, can we code half in C++ and half in C#?
>>
>> I am talking managed or unmanaged C++.
>>
>> Basic idea is to convert some project that are in C# into C++ and
>> some C++ projects to C#.
>>
>> Thank you,
>> Po


Feb 10 '06 #7

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

Similar topics

1
1174
by: Turk | last post by:
Is it possible to deploy ASP.NET 2 proj onto PWS on windows2000 pro. The app runs fne in vstudio2005, but unable to configure asp.net 2 on PWS on my windows2000 development box. Is this possible? Thansks
2
1461
by: shalender verma | last post by:
I am using VB6. I created a small project. I Want that i can activate my running project(minimized and appearing at the task bar) by pressing any code while working in any other application. Actually i want an interrupt to occur so that it can activate my project. As we can activate the Find Files and folder option by clicking on window button+f irrespective of the app. we are workin on. e.g - I started my project and then minimizing it...
0
942
by: Tony | last post by:
I am developing a simple .net vb proj and have a few questions that Id be very grateful if someone more experienced than me could answer. Firstly, is it possible to set overwrite options when distributing an installer package as I dont always see the files getting overwritten on XP pro machine? I've tried setting various flags. Secondly, can I choose not to have an installshield so basically it will never allow an uninstall option, I...
0
903
by: raulavi | last post by:
I really need a detailed Answer. Thanks!!! How to have global vars if I have a solution with 2 projects...(i need to set the var in one proj and get the var from the second one. I dont want to use Byref) 1. where should I define my class. 2. how do I set my var (cls_name.globalclass.gvalue = "sss") 3. how do I get my var (mylocVar = cls_name.globalclass.gvalue)
1
2407
by: Lore Leunoeg | last post by:
Does any one know what the file with the extension "proj.user" is good for? Thank you Sincerely Lore
7
7597
by: Sharon | last post by:
Hi all, I've implemented a TCP server using the Socket async methods. When connecting to the server from 3 instances of hyper terminal, i've noticed that each of the newly created server sockets, uses the same server port. I assumed that a new connection will receive a unique port. If this is the way its suppose to work, is it a performance issue? Is it possible that connections from the same IP will connect on the same server port? I...
2
1636
by: vaishnavi | last post by:
hi, i want to do a proj for 2nd sem of mcs. could anyone tell me some project topics in java ? some proj topics in servlet or rmi..... or related with db.... pls send me list of the topics. reply soon. thank u. vaishnavi
0
1156
by: =?Utf-8?B?SmVycnkgSg==?= | last post by:
I am using Visual Studio 2005 integrated with Visual Source Safe ver 6.0. When I open visual studio, the proj files keep getting checked out automatically. Can someone tell me why and how I can prevent it? -- Jerry J
2
2423
by: kkshansid | last post by:
$projid=$_GET; $q="INSERT INTO proj select * from projtemp where projid ='".$projid."'"; $qins=mysql_query($q); is resulting false is there any error? there are 2 tables in a database with name proj and projtemp
0
9879
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11349
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10921
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9727
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8099
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
7250
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
5939
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...
0
6142
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4337
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.