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

Home » Public Forums » archive » Ronn Kling's DLM
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
Ronn Kling's DLM [message #56340] Fri, 19 October 2007 02:18 Go to next message
incognito.me is currently offline  incognito.me
Messages: 16
Registered: August 2007
Junior Member
I bought Ronn Kling's book : "Calling C from IDL" because I wanted to
learn how one builds DLM in order to call C source code from
IDL.Curiously
I can't go further than chapter 4 because in that chapter I can't
managed to compile and bild the dll for the function called
IDLtoC_singleInt.The procedure of the same example works fine but the
function doesn't.I'm always having (when I compile with microsoft
visual studio c++ 6.0) the following error messages:

C:\...\IDLtoCscalarExamples.cpp(25) : error C2440:Initializing :
Cannot be converted into 'IDL_VARIABLE *(__cdecl *)(void)'
C:\....\IDLtoC\IDLtoCscalarExamples.cpp(25) : error
C2440:Initializing : 'char [19]'Cannot be converted into 'IDL_VARIABLE
*(__cdecl *)(void)'

Does someone have a suggestion?
Thank you
Re: Ronn Kling's DLM [message #56413 is a reply to message #56340] Mon, 22 October 2007 04:04 Go to previous message
rlkling is currently offline  rlkling
Messages: 14
Registered: April 1999
Junior Member
Hello,

The problem is that you are compiling this as a C++ file and the
declarations are different for those. You can either change the file
back to C and compile it that way, or look in the C++ chapter and see
what the differences are. Whatever makes the most sense to you.

Ronn Kling

KRS, inc.
Use these books to upgrade your IDL skills.
"Application Development with IDL"
"Calling C from IDL, Using DLM's to extend your IDL code". SECOND
EDITION includes C++ and debugging!
"Power Graphics with IDL, A Beginner's Guide to Object Graphics",
"IDL Primer", a pocket guide for beginners
http://www.kilvarock.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: how to transfer MS-DOS bat file in IDL?
Next Topic: allocating memory

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

Current Time: Sat Oct 11 16:24:08 PDT 2025

Total time taken to generate the page: 0.64849 seconds