Calling IDL from a MS ANSI C dll? [message #30684] |
Fri, 10 May 2002 07:33 |
wbiagiot
Messages: 59 Registered: January 1999
|
Member |
|
|
I'd like to ask if anyone has created a Microsoft C (v6.0) DLL and
accessed Callable IDL (v5.3) from it. The examples in the IDL
distribution show an 'hinstance' being passed around. Since my
software is strictly an instrument driver with no windows, I have no
idea of how to obtain this variable. The text-based communication
that Callable IDL provides is adequate for what I wish to do. The
example that I am working with is:
#include <windows.h>
#include <stdio.h>
#include <string.h>
#include "export.h"
int WINAPI WinMain(HINSTANCE hinst,HINSTANCE hprev,LPSTR cmd,int
nCmdShow)
{
HWND win;
IDL_Win32Init(0,hinst,win,NULL);
IDL_ExecuteStr("res=dialog_message('Hello',/info)"); /* call your
IDL
program */
IDL_Cleanup(IDL_TRUE);
return(1);
}
Does anyone have a simple project that they could share or email to
me? It would be greatly appreciated. Thanks,
BB
|
|
|