Re: Can C call the function in IDL? [message #35947] |
Mon, 28 July 2003 09:20 |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
"Xiaoying Jin" wrote ...
> "Rick Towler" wrote...
>> "Xiaoying Jin" wrote...
>>
>>> Can C call the function in IDL? There are some functions build in IDL
>>> very efficient, such as label_region, can I call it in C?
>>
>> Yes, but probably not in the way that you want to. Callable IDL allows
you
>> to call IDL from your C program but in a manner nothing like
>> "IDL_label_region(args);". Check out your options in the External
>> Development Guide, edg.pdf, found in IDL's help directory.
>>
>> -Rick
>
> I checked the External Development Guide. The environment I am working
> with is windows NT or XP. It seems that the simplest way to call C
> from other program in Windows is "Including the IDLDrawWidget ActiveX
> control in an application written in a language other than IDL." I
>
> It is easy to do it in Visual Basic. VC++ also support ActiveX. But I
> am not sure if C support ActiveX or not. Any one has some experience
> on that?
I doubt that you can do it in C but no worries, you can do it in C++. Check
out the example in the "external/ActiveX" directory in your IDL directory.
-Rick
|
|
|
Re: Can C call the function in IDL? [message #35949 is a reply to message #35947] |
Mon, 28 July 2003 09:01  |
xje4e
Messages: 18 Registered: February 2002
|
Junior Member |
|
|
"Rick Towler" <rtowler@u.washington.edu> wrote in message news:<bfsb0j$28ki$1@nntp6.u.washington.edu>...
> "Xiaoying Jin" wrote...
>
>> Can C call the function in IDL? There are some functions build in IDL
>> very efficient, such as label_region, can I call it in C?
>
> Yes, but probably not in the way that you want to. Callable IDL allows you
> to call IDL from your C program but in a manner nothing like
> "IDL_label_region(args);". Check out your options in the External
> Development Guide, edg.pdf, found in IDL's help directory.
>
> -Rick
I checked the External Development Guide. The environment I am working
with is windows NT or XP. It seems that the simplest way to call C
from other program in Windows is "Including the IDLDrawWidget ActiveX
control in an application written in a language other than IDL." I
It is easy to do it in Visual Basic. VC++ also support ActiveX. But I
am not sure if C support ActiveX or not. Any one has some experience
on that?
Thanks,
Xiaoying
|
|
|
Re: Can C call the function in IDL? [message #35964 is a reply to message #35949] |
Fri, 25 July 2003 15:28  |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
"Xiaoying Jin" wrote...
> Can C call the function in IDL? There are some functions build in IDL
> very efficient, such as label_region, can I call it in C?
Yes, but probably not in the way that you want to. Callable IDL allows you
to call IDL from your C program but in a manner nothing like
"IDL_label_region(args);". Check out your options in the External
Development Guide, edg.pdf, found in IDL's help directory.
-Rick
|
|
|