473,396 Members | 1,967 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.

VC & CSharp in one project

Hi, all!

Is it possible to have both C++ and CSharp modules in one project?

Thanks.
Feb 13 '07 #1
3 1301

"Maxim" <vmu_at_mail_dot_ruwrote in message
news:uL*************@TK2MSFTNGP02.phx.gbl...
Hi, all!

Is it possible to have both C++ and CSharp modules in one project?
What are you trying to accomplish? Easy build (two projects in a solution
buys you that), single file deployment (look into .netmodule files that can
be linked into a single dll) or interdependencies (can also be resolved
using interfaces).
>
Thanks.

Feb 13 '07 #2
I wanted to use advantages of both languages in one project. I need a UI
application that would perform some calculations. Tha fact is that UI is
much more simplier to develop in C#. On the other hand C++ is the best
choice to write the calculation algorithms. But i don't want to wrap C++
code in dll, if this is possible. I heard a lot of the .NET's language
independence (I cannot find a better word), so I thought that I could
accomplish such a thing.

"Ben Voigt" <rb*@nospam.nospamwrote in message
news:eu**************@TK2MSFTNGP04.phx.gbl...
>
"Maxim" <vmu_at_mail_dot_ruwrote in message
news:uL*************@TK2MSFTNGP02.phx.gbl...
>Hi, all!

Is it possible to have both C++ and CSharp modules in one project?

What are you trying to accomplish? Easy build (two projects in a solution
buys you that), single file deployment (look into .netmodule files that
can be linked into a single dll) or interdependencies (can also be
resolved using interfaces).
>>
Thanks.


Feb 13 '07 #3
Maxim wrote:
I wanted to use advantages of both languages in one project.
A solution is like a big project. You don't have to switch projects
during development. You can hit Ctrl+B and build all the component
together. You can debug across module (project) boundaries.
Tha fact is that UI is
much more simplier to develop in C#. On the other hand C++ is the best
choice to write the calculation algorithms.
That makes a lot of sense.
But i don't want to wrap C++ code in dll, if this is possible.
So you don't like DLLs. Is that a self-imposed rule, a customer
requirement, or an order coming from your company? In .NET it is farily
typical to develop several independent modules. Modularity has numerous
advantages. It reduced unnecessary inter-dependencies between unrelated
parts of your application, eases testing and maintenance of large
projects, fosters reusability and collaboration. It even increases
stability, as you're not required to constantly recompile already stable
modules.

..NET DLLs are standalone, self-descriptive, strongly versioned
components. Although the extension is still ".dll", they have nothing to
do with what used to be known as the DLL-hell.

Note that C# will not be able to consume ISO C++ classes. In most cases,
you'll have to wrap them, it's not an option. C# doesn't know what to do
with C++ constructs like std::vector, std::string, or boost::shared_ptr.
C++/CLI was designed to bridge the gap between the two worlds.
I heard a lot of the .NET's language independence
This is true for CLR types, but not necessarily for ISO C++ ones. .NET
languages are fully aware of managed objects, and they can also call
native C-style functions, but C++/CLI is the only language that can
directly use ISO C++ code.

Tom
Feb 13 '07 #4

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

Similar topics

3
by: hunterb | last post by:
I have a file which has no BOM and contains mostly single byte chars. There are numerous double byte chars (Japanese) which appear throughout. I need to take the resulting Unicode and store it in a...
3
by: cameron | last post by:
I would like to do a search and have the results sorted by property 1 and then by property 2. My first thought had been //set up the searching object and call it oSearch...
5
by: Damon | last post by:
I'm getting '', hexadecimal value 0x02, is an invalid character when I'm deseralizing XML from a 3rd party XML gateway. How do I get rid of these hexadecimal values before I deserialize? Cheers...
3
by: C# | last post by:
Hey all, in my MSN-Like project .. i needed a trigger that should send Notifications to all online users when a contact in their lists is online for example.. Server is in C# .. The problem is...
7
by: Brett Robichaud | last post by:
I'm trying to decide on the right approach for communication between the UI and a worker thread in a WinForms app. I am very familiar with threads in the unmanaged C++ world and in the past have...
7
by: Clint Herron | last post by:
Howdy! I posted this question on CSharpCorner.com, but then realized I should probably post it on a more active newsgroup. This will be my only cross-post. I'm creating a game engine, and...
0
by: Vijay | last post by:
Prep Courses for International Certifications, CSTE & CSQA & ISEB & ISTQB &Business Analyst & SOA Certifications in HYDERABAD. After receiving overwhelming response to our last 50+ batches, ...
19
by: auratius | last post by:
http://www.auratius.co.za/CSharpCodingStandards.html Complete CSharp Coding Standards 1. Naming Conventions and Styles 2. Coding Practices 3. Project Settings and Project Structure 4....
0
by: MrVS | last post by:
Hi, I don't know how to pass a CSharp class type object to a CPP function that takes void pointer argument in the function. eg. in C#: MQMDs md = new MQMDs(); MQGMOs gmo = new MQGMOs();...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.