473,324 Members | 2,400 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,324 software developers and data experts.

Mixing unmanaged code with Managed code.

I have VC++ project that is unmanaged. I would like to build components like
user interface dialog boxes in VB .net and call them from the unmanaged VC++
application. Is this possible? Before .net I would have done this with an
activex object or com object. Any suggestions would be appreciated.

George McLean
Nov 17 '05 #1
4 1008
gmclean wrote:
I have VC++ project that is unmanaged. I would like to build components like
user interface dialog boxes in VB .net and call them from the unmanaged VC++
application. Is this possible? Before .net I would have done this with an
activex object or com object. Any suggestions would be appreciated.


I guess what you will have to do is to save the VB .NET stuff in one or
more dlls and use that .dll in your VC++ project, which as a consequence
will not be completely unmanaged, that is it will be in mixed mode
(everything compiled with /clr).


--
Ioannis Vranos
Nov 17 '05 #2
Thanks for your help. I think this will get me started.

"Ioannis Vranos" wrote:
gmclean wrote:
I have VC++ project that is unmanaged. I would like to build components like
user interface dialog boxes in VB .net and call them from the unmanaged VC++
application. Is this possible? Before .net I would have done this with an
activex object or com object. Any suggestions would be appreciated.


I guess what you will have to do is to save the VB .NET stuff in one or
more dlls and use that .dll in your VC++ project, which as a consequence
will not be completely unmanaged, that is it will be in mixed mode
(everything compiled with /clr).


--
Ioannis Vranos

Nov 17 '05 #3
gmclean wrote:
Thanks for your help. I think this will get me started.

Now unless you have VS 2002, why not use VC++ since the beginning? They
share the same RAD.


--
Ioannis Vranos
Nov 17 '05 #4
Ioannis Vranos wrote:
Now unless you have VS 2002, why not use VC++ since the beginning? They
share the same RAD.

Meaning why not build those UI components in C++ using .NET directly.


--
Ioannis Vranos
Nov 17 '05 #5

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

Similar topics

0
by: kaalus | last post by:
Hello I have problem mixing managed and unmanaged C++ code in VS.NET 2003. I want to create a windows forms application which uses some C++ code that is incompatible with managed extensions...
2
by: Neil | last post by:
I am developing a demo in C# using Managed DirectX. I wanted to use a C++ static library in the demo (its a class for handling physics), so I decided to create my Graphics classes in C#, inherit...
4
by: Daniel Lidström | last post by:
Hello, is it possible to ``use CS to code a class, and (M)C++ for the logic''? Sorry if this sounds vague, I'm not really sure myself what it means. Does anyone have any ideas? -- Daniel
1
by: Steve Marsden | last post by:
Hi All the information I had read suggested that if you had an existing C project that you wished to change to managed code all you had to do was use the /clr switch and then over time you could...
13
by: DD | last post by:
I'm puzzled how to mix managed/unmanaged C++ in the following scenario: Unmanaged ------------ Callback listener class with method that should call an event in managed Form1. Initialization...
2
by: quat | last post by:
I am getting the error: error C4368: cannot define 'd3dPP' as a member of managed 'FormEx::Form1': mixed types are not supported I am trying to mixed managed and unmanaged code (d3dPP is...
3
by: frank | last post by:
Hi I've got aplication, which one is written in unmanaged c++ with stl, i've made for it gui in managed c++. Problem becomes when I'm starting to filling up for example datagrids, when I'm...
3
by: frank | last post by:
Hi I've got aplication, which one is written in unmanaged c++ with stl, i've made for it gui in managed c++. Problem becomes when I'm starting to filling up for example datagrids, when I'm...
2
by: jraul | last post by:
Hi, This is probably a noobie question but: I just created a new C++/CLI project in VS 2005. It created an empty class: public ref class Class1 { // TODO: Add your methods for this class...
2
by: Jon Slaughter | last post by:
How difficult is it for one to integrate unmanaged C++ into C#? I know for functions one can use DLLimport but how does one go about doing it for classes? Do I have to completely reimplement the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.