Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / December 2004

Tip: Looking for answers? Try searching our database.

Interoperability dilema

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mr.Baha - 23 Dec 2004 20:38 GMT
I have a situation where I want to consume VC++ code that someone else
has written.  This C++ code compiles into a console app exe, and I have
all of it's source code. For the record, this app listens to a comm
port for a stream of proprietary data it is expecting.

What I want to do with it is be able to instantiate this "listening()"
function from my C# WinForm and display it's console output to my
Textbox.   If this C++ code compiled into a DLL I could use the
PInvoke, but it compiles into a .exe and I do not know how to change
this within the project(in vstudio6).   It also does not implement any
COM interfaces for me to use.

Can anybody tell me any glaring things that I am overlooking to be able
to use this unmananged method?
Thanks

Mr.Baha
Steve Alpert - 24 Dec 2004 18:12 GMT
> I have a situation where I want to consume VC++ code that someone else
> has written.  This C++ code compiles into a console app exe, and I have
[quoted text clipped - 10 lines]
> Can anybody tell me any glaring things that I am overlooking to be able
> to use this unmananged method?

Why not create a project for wrapper.dll and then drop the code into it.
 If you want to be pure about it, you can change "main" to something else!

/steveA

Signature

Steve Alpert
my email Fgrir_Nycreg @ vqk.pbz is encrypted with ROT13 (www.rot13.org)
and spaces


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.