471,350 Members | 1,928 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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 1190
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.com
"Pohihihi" <no*****@hotmail.com> wrote in message news:Oi*************@tk2msftngp13.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.com> wrote in message news:OB**************@TK2MSFTNGP09.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.com
"Pohihihi" <no*****@hotmail.com> wrote in message news:Oi*************@tk2msftngp13.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.com> wrote in message news:OB**************@TK2MSFTNGP09.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.com
"Pohihihi" <no*****@hotmail.com> wrote in message news:Oi*************@tk2msftngp13.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*******@yahoo.nospammin.com> wrote in message
news:21**********************************@microsof t.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.com>
wrote in message news:OB**************@TK2MSFTNGP09.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.com
"Pohihihi" <no*****@hotmail.com> wrote in message
news:Oi*************@tk2msftngp13.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*******@yahoo.nospammin.com> wrote in message
news:21**********************************@microsof t.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.com>
wrote in message news:OB**************@TK2MSFTNGP09.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.com
"Pohihihi" <no*****@hotmail.com> wrote in message
news:Oi*************@tk2msftngp13.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*******@yahoo.nospammin.com> wrote in message
news:7A**********************************@microsof t.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*******@yahoo.nospammin.com> wrote in
message
news:21**********************************@microsof t.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.com>
>> wrote in message news:OB**************@TK2MSFTNGP09.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.com
>> "Pohihihi" <no*****@hotmail.com> wrote in message
>> news:Oi*************@tk2msftngp13.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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by raulavi | last post: by
1 post views Thread by Lore Leunoeg | last post: by
7 posts views Thread by Sharon | last post: by
2 posts views Thread by vaishnavi | last post: by
reply views Thread by =?Utf-8?B?SmVycnkgSg==?= | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.