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

interop question

This may have been previously addressed, if so sorry...

I am trying to create a serialization library that will be used from
unmanaged vc++. I have working vc++ managed code that serializes and
de-serializes objects to/from XML. But, I want to use this from an unmanaged
vc app that I am writing. Several questions: is it possible to create
managed static library that can then be linked to my unmanaged app at build
time; or must I use a dll if I want a library. I understand that if I create
a .net class library that is a dll and will then require COM to use from my
unmanaged app ??

Or, would it be better to try and co-mingle the unmanaged and managed code ?
I want to try to keep the boundaries between managed and unmanaged as
distinct as possible; the core of my app needs to be somewhat portable and I
am really just looking for an easy way to do object serializations which
seems to be .net framework serialization, but if using this makes the core
of my app non-portable then that is not too good..

Thanks for your advice...

Feb 3 '06 #1
1 1098

"S Wheeler" <st*************@intellon.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
This may have been previously addressed, if so sorry...

I am trying to create a serialization library that will be used from
unmanaged vc++. I have working vc++ managed code that serializes and
de-serializes objects to/from XML. But, I want to use this from an
unmanaged vc app that I am writing. Several questions: is it possible to
create managed static library that can then be linked to my unmanaged app
at build time; or must I use a dll if I want a library. I understand that
if I create a .net class library that is a dll and will then require COM
to use from my unmanaged app ?? If you build a .NET class library, you can register it using regasm. that
way, you'll be able to use it as a COM object in other languages.
this insures greates portability because not all languages support static
linking (LabVIEW to name one), but nearly all languages support either COM
or .NET.
This also resolves any runtime library incompatibilities that might arise if
your unmanaged app uses a different compiler.
This solution is most portable, and makes a clear distinction between
managed and unmanaged code.


Or, would it be better to try and co-mingle the unmanaged and managed code
? I want to try to keep the boundaries between managed and unmanaged as
distinct as possible; the core of my app needs to be somewhat portable and
I am really just looking for an easy way to do object serializations which
seems to be .net framework serialization, but if using this makes the core
of my app non-portable then that is not too good..

This is possible, but in the interest of portability (and simplicity), using
a class library is the better solution for the reasons mentioned above.

kind regards,
Bruno.
Feb 4 '06 #2

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

Similar topics

2
by: Le Thanh Thuan | last post by:
In my VB.Net project, I using Interop.Excel 11.0 (Excel 2003 I create Setup project in my computer, and then , I setup in another computer using Excel 2000 When I run my application, a error occur...
1
by: Bob N5 | last post by:
I am working on an application that uses interop to do some simple operations with both Excel and Word. I have most of functionality working, but ran into issues on making things work with both...
20
by: Razzie | last post by:
Hey all, I'm really going through a small hell right now - I've completely lost it :) I made a project, using two interop libraries from exchange (created them as in this msdn article:...
3
by: ScottWPNY | last post by:
I am including a reference to ADOX in a C# project by doing the following: In Solution Explorer, right-click the References node and select Add Reference. On the COM tab, select Microsoft ADO...
8
by: Rob Edwards | last post by:
When trying to add the Microsoft CDO for Exchange Management Library (aka CDOEXM.dll) I receive the following message: "A reference to 'Microsoft CDO for Exchange Management Library' could not be...
1
by: Tom | last post by:
Hi, I have developed a VB.NET app that is referencing and using an old ActiveX component. When I add that reference to .NET, it of course generates an interop file. My question is: If I include...
5
by: Richard Lewis Haggard | last post by:
I am trying to create multi-dimensioned arrays in conventional ASP pages and pass these arrays as arguments to functions that are in a C# interop assembly. ASP complains because it doesn't...
5
by: Yoavo | last post by:
Hi, In my application I have to use som external COM dll's. In the code: using MyDll when I build the project, I get (in addition to the .exe file) a Dll called Interop.MyDll.dll I want to...
0
by: Ferd Biffle | last post by:
I am trying to convert an Add-In I wrote from .Net 1.1 (32 bit) to 2.0 on 64 bit XP. One of the vendor API Interop dll's that I am referencing is unavailable to my add-in. Looking at the...
5
by: John | last post by:
I would like to ask a question that is obvious to all people porting applications from the "traditional" C\VB6 interop scheme choosing C# vs VB.NET. We have a math library in C which...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
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...

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.