Help native C++ and .net
-
Hello All, I develop code in vc++,win32. Now my next part is to make GUI in very short period. If i use C# to make GUI and backend code in vc++.Is it possible.And Please tell good things and bad things if i use like that .and more from you . Thanks .
If your code is in win32 [dll] you can write a RCW[Runtime Callable Wrapper] for the exposed functions and then use them in C#. Alternatively you can also use Interop Interop is for calling raw DLL exported functions. RCW (Runtime Callable Wrapper) is used to expose COM objects to .NET classes - ie., to make COM objects callable by .NET code.
You need to google first, if you have "It's urgent please" mentioned in your question. ;-)_AnShUmAn_
-
Hello All, I develop code in vc++,win32. Now my next part is to make GUI in very short period. If i use C# to make GUI and backend code in vc++.Is it possible.And Please tell good things and bad things if i use like that .and more from you . Thanks .
ashish8patil wrote:
I develop code in vc++,win32. Now my next part is to make GUI in very short period.
You may also use
MFC
for this task.ashish8patil wrote:
If i use C# to make GUI and backend code in vc++.Is it possible.
Yes.
ashish8patil wrote:
And Please tell good things and bad things if i use like that .and more from you .
Well, if you're a
C++
developer, then you've to learnC#
enough to make theGUI
and at least aboutPlatform Invoke
[^] (alternativelyCOM interop
[^]), such tasks are, of course, time-consuming. The good things, I suppose, come from the experience gained about mixing the two worlds. Eventually you may also conside to develop bothGUI
and core modules usingC#
(i.e go manged!). :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Hello All, I develop code in vc++,win32. Now my next part is to make GUI in very short period. If i use C# to make GUI and backend code in vc++.Is it possible.And Please tell good things and bad things if i use like that .and more from you . Thanks .
ashish8patil wrote:
I develop code in vc++,win32. Now my next part is to make GUI in very short period.
You may opt to use MFC instead, which allows you to build dialog based applications, doc/view applications, ActiveX controls, etc., all with the help of wizards and existing templates. Give it a shot and you won't be disappointed.
ashish8patil wrote:
If i use C# to make GUI and backend code in vc++
You should not be doing such a thing unless it is absolutely necessary.
It is a crappy thing, but it's life -^ Carlo Pallini
-
Hello All, I develop code in vc++,win32. Now my next part is to make GUI in very short period. If i use C# to make GUI and backend code in vc++.Is it possible.And Please tell good things and bad things if i use like that .and more from you . Thanks .
As others also wrote, the use of a MFC-GUI is the fastest and easiset way to get a nice GUI working with C++. Making a C#-GUI (and C++ Code) is an option with leeds to more works, and is only fine if you need some C#-Features.
Press F1 for help or google it. Greetings from Germany
-
Hello All, I develop code in vc++,win32. Now my next part is to make GUI in very short period. If i use C# to make GUI and backend code in vc++.Is it possible.And Please tell good things and bad things if i use like that .and more from you . Thanks .
ashish8patil wrote:
If i use C# to make GUI and backend code in vc++.Is it possible.And Please tell good things and bad things if i use like that .and more from you
It wouldn't be wrong choice if you design your GUI in C# and use unmanaged coding at back hand. Only question is, how you are integrating between two....?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
-
ashish8patil wrote:
I develop code in vc++,win32. Now my next part is to make GUI in very short period.
You may opt to use MFC instead, which allows you to build dialog based applications, doc/view applications, ActiveX controls, etc., all with the help of wizards and existing templates. Give it a shot and you won't be disappointed.
ashish8patil wrote:
If i use C# to make GUI and backend code in vc++
You should not be doing such a thing unless it is absolutely necessary.
It is a crappy thing, but it's life -^ Carlo Pallini
Rajesh R Subramanian wrote:
ashish8patil wrote: If i use C# to make GUI and backend code in vc++ You should not be doing such a thing unless it is absolutely necessary.
IMHO, I am doing this only :-)!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
-
ashish8patil wrote:
If i use C# to make GUI and backend code in vc++.Is it possible.And Please tell good things and bad things if i use like that .and more from you
It wouldn't be wrong choice if you design your GUI in C# and use unmanaged coding at back hand. Only question is, how you are integrating between two....?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
.Net Com Ineroperability..? can please tell me good way..?
-
.Net Com Ineroperability..? can please tell me good way..?
you have flexibility of designing good gui using c#, which unmanaged vc++ doesn't provide you.. you one more way, if you know little bit of managed vc++, just write wrapper on your unmanged function using this.!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
-
you have flexibility of designing good gui using c#, which unmanaged vc++ doesn't provide you.. you one more way, if you know little bit of managed vc++, just write wrapper on your unmanged function using this.!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
Sorry Alok Sir I not get you. And is there any way i can run my gui in c#.net and whole back-end code will run in c++ (means it will not use CLR when backend code will run). Thanks for your reply.
-
you have flexibility of designing good gui using c#, which unmanaged vc++ doesn't provide you.. you one more way, if you know little bit of managed vc++, just write wrapper on your unmanged function using this.!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
Hello Sir, Can you please tell me what is diff between "pinvoke for win32.dll " and "com interop" .which one is better.