comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How to import some functions written by visual C++ into IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
How to import some functions written by visual C++ into IDL? [message #37521] Tue, 06 January 2004 17:56 Go to next message
bbhyun2001 is currently offline  bbhyun2001
Messages: 5
Registered: January 2004
Junior Member
Hello,
I want to import some functionalities written
by visual C++ into IDL code? How can I do that? What is the best way
to do it? Do I need to rewrite all existing 'visual C++' code into
'C'? Would you please let me know the good example if it is possible?
Thanks for your precious time in advance.

Hee Chun
Re: How to import some functions written by visual C++ into IDL? [message #37597 is a reply to message #37521] Thu, 08 January 2004 10:45 Go to previous message
bbhyun2001 is currently offline  bbhyun2001
Messages: 5
Registered: January 2004
Junior Member
Thanks Rick.
I DO really really appreciate your good tips. You save a lot of my time.
I will start with DLM.
Have a nice day !!

Hee Chun
"Rick Towler" <rtowler@u.washington.edu> wrote in message news:<bthre3$jvc$1@nntp6.u.washington.edu>...
> "IDLUser" wrote in message...
>
>> I want to import some functionalities written
>> by visual C++ into IDL code? How can I do that? What is the best way
>> to do it? Do I need to rewrite all existing 'visual C++' code into
>> 'C'? Would you please let me know the good example if it is possible?
>> Thanks for your precious time in advance.
>
> You certainly don't need to rewrite your code. You can use either
> CALL_EXTERNAL (make sure you read about the AUTO_GLUE keyword) or you can
> write a wrapper DLM which calls your C++ functions.
>
> Read the documentation on CALL_EXTERNAL, then read it again. Then try to
> determine if it will work for you. If it isn't going to work, then I would
> invest in Ronn Kling's Calling C/C++ from IDL which you can purchase from
> his website www.kilvarock.com. With the help of this book you will be
> calling C++ functions in a few hours.
>
> -Rick
Re: How to import some functions written by visual C++ into IDL? [message #37609 is a reply to message #37521] Wed, 07 January 2004 12:47 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"IDLUser" wrote in message...

> I want to import some functionalities written
> by visual C++ into IDL code? How can I do that? What is the best way
> to do it? Do I need to rewrite all existing 'visual C++' code into
> 'C'? Would you please let me know the good example if it is possible?
> Thanks for your precious time in advance.

You certainly don't need to rewrite your code. You can use either
CALL_EXTERNAL (make sure you read about the AUTO_GLUE keyword) or you can
write a wrapper DLM which calls your C++ functions.

Read the documentation on CALL_EXTERNAL, then read it again. Then try to
determine if it will work for you. If it isn't going to work, then I would
invest in Ronn Kling's Calling C/C++ from IDL which you can purchase from
his website www.kilvarock.com. With the help of this book you will be
calling C++ functions in a few hours.

-Rick
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Creating a box overlaid on an image to identify a subset of data for analysis
Next Topic: Problem masking multiple regions.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:35:54 PDT 2025

Total time taken to generate the page: 0.00496 seconds