Re: how to debug a IDL DLM routine [message #29274] |
Tue, 12 February 2002 11:25  |
Richard Younger
Messages: 43 Registered: November 2000
|
Member |
|
|
Hi Jujia.
I suggest going to your DLL project, and simply specifying the IDLDE
executable. It will start up a new instance of the IDLDE when you
select run. You can then call the functions in your DLL from the IDLDE
and debug them.
There is also a much dirtier method involving the use of a function like
inline int pause_IDL(void)
{
IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_RET, "press any key...");
return(IDL_GetKbrd(1));
}
in your DLL code and attaching your debugger to the IDLDE process while
it's waiting for a key press from the keyboard.
Best,
Rich
--
Richard Younger
Xiaoying Jin wrote:
>
> Hi, big guys,
>
> I have a question here:
>
> how to debug a IDL DLM routine?
>
> I know a method if you can make a IDL program as a .exe file. but how
> to make a IDL program as a .exe file?
>
> In Visual C++ environment, in project->Settings->Debug, we can set
> executable for debug session. If we can make a IDL program as a
> executable file, we can debug it in VC step by step.
>
> If anyone can give me a hint about how to make a IDL program as a .exe
> file. Or is there any other method to debug a IDL DLM routine with
> Visual C++?
>
> Any suggestion will be appreciated.
>
> Jujia Jin
|
|
|
Re: how to debug a IDL DLM routine [message #29370 is a reply to message #29274] |
Tue, 12 February 2002 14:44  |
xje4e
Messages: 18 Registered: February 2002
|
Junior Member |
|
|
Thanks, Richard,
Here is my further question:
> I suggest going to your DLL project, and simply specifying the IDLDE
> executable.
How to specifying the IDLDE executable?
> There is also a much dirtier method involving the use of a function like
>
> inline int pause_IDL(void)
> {
> IDL_Message(IDL_M_NAMED_GENERIC, IDL_MSG_RET, "press any key...");
> return(IDL_GetKbrd(1));
> }
>
> in your DLL code and attaching your debugger to the IDLDE process while
> it's waiting for a key press from the keyboard.
Do you mean you pause IDL for a while? But I think in this case all
you can debug and monitor is the variables in IDL not in C program. Am
I right? So how can I monitor C variable in this case?
How to attatch debugger to the IDLDE process?
I appreciate your help and look forward to your further explanation.
Regards,
Julia Jin
|
|
|