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

Home » Public Forums » archive » Calling IDL from a MS ANSI C dll?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Calling IDL from a MS ANSI C dll? [message #30684] Fri, 10 May 2002 07:33
wbiagiot is currently offline  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
[Message index]
 
Read Message
Previous Topic: Re: Object Graphics when using 'stop'
Next Topic: Read words coded on 3 bytes (24 bits) in IDL

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

Current Time: Sat Oct 11 12:56:38 PDT 2025

Total time taken to generate the page: 1.19884 seconds