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

Home » Public Forums » archive » CALL_EXTERNAL, VC++, ERROR_PROC_NOT_FOUND
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
CALL_EXTERNAL, VC++, ERROR_PROC_NOT_FOUND [message #23426] Sat, 27 January 2001 22:47 Go to next message
isojoern is currently offline  isojoern
Messages: 6
Registered: April 1999
Junior Member
Hi there,

to learn how to use dlls I used the IDL example code for simple_vars. But
instead of using nmake, I wanted to move the compilation process inside
Visual C++ (with nmake everything works fine).

So I built a dll frame with the wizard and included stdio.h and export.h in
StdAfx.h, and linked to idl32.h
I also moved the function definition:
int IDL_STDCALL simple_vars(int argc,void* argv[])
{
snip
}
as is into my .cpp file, and the function declaration in the header file.

Everything compiles and links fine, but I get the following eror after
calling simple_vars from idl54:

% CALL_EXTERNAL: Error loading sharable executable.
Symbol: simple_vars, File =
C:/users/joern/ccode/idl/MyExternal/DEBUG/MyExternal
ERROR_PROC_NOT_FOUND
% Error occurred at: SIMPLE_VARS 62
C:\users\joern\Ccode\Idl\MyExternal\simple_vars.pro
% $MAIN$

What the hexter does that mean?

Thanks, joern
Re: CALL_EXTERNAL, VC++, ERROR_PROC_NOT_FOUND [message #23617 is a reply to message #23426] Sun, 28 January 2001 20:28 Go to previous message
isojoern is currently offline  isojoern
Messages: 6
Registered: April 1999
Junior Member
Thanks Ronn, and
yes, I included idl32.lib, and no I didn't include the .def file, but used
_declspec(export) instead.
j.


"ronn kling" <ronn@rlkling.com> wrote in message
news:B699E1F1.1B44%ronn@rlkling.com...
> in article t77g9p9h61ii48@corp.supernews.com, isojoern at
> isojoern@linkline.com wrote on 1/28/01 1:47 AM:
>
>> Hi there,
>>
>> to learn how to use dlls I used the IDL example code for simple_vars.
But
>> instead of using nmake, I wanted to move the compilation process inside
>> Visual C++ (with nmake everything works fine).
>>
>> So I built a dll frame with the wizard and included stdio.h and export.h
in
>> StdAfx.h, and linked to idl32.h
> Joern,
>
> First let me recommend that you go straight to using DLM's and skip
> call_external. You will be much happier with the results.
>
> Now, you really meant idl32.lib not idl32.h, right? Assuming that is
correct
> did you include the call_examples.def file in the project? I avoid using
> call_external so I don't know if you also need to have an export file, but
> that might be a problem also.
>
> If you want to get a really good book on calling C from IDL using DLM's go
> to http:\\www.rkling.com and click the link to "Books on IDL" at the top
of
> the page;) Of course, I am biased on the book but I have received a ton of
> positive comments on it!
>
> -Ronn
>
>
> --
> Ronn Kling
> Ronn Kling Consulting
> email: ronn@rlkling.com
> "Application Development with IDL" programming book updated for IDL5.4!
> "Calling C from IDL, Using DLM's to extend your IDL code" NEW BOOK!
> Shareware and Freeware at: http://www.rlkling.com/
>
>
>
Re: CALL_EXTERNAL, VC++, ERROR_PROC_NOT_FOUND [message #23622 is a reply to message #23426] Sun, 28 January 2001 11:51 Go to previous message
ronn is currently offline  ronn
Messages: 123
Registered: April 1999
Senior Member
in article t77g9p9h61ii48@corp.supernews.com, isojoern at
isojoern@linkline.com wrote on 1/28/01 1:47 AM:

> Hi there,
>
> to learn how to use dlls I used the IDL example code for simple_vars. But
> instead of using nmake, I wanted to move the compilation process inside
> Visual C++ (with nmake everything works fine).
>
> So I built a dll frame with the wizard and included stdio.h and export.h in
> StdAfx.h, and linked to idl32.h
Joern,

First let me recommend that you go straight to using DLM's and skip
call_external. You will be much happier with the results.

Now, you really meant idl32.lib not idl32.h, right? Assuming that is correct
did you include the call_examples.def file in the project? I avoid using
call_external so I don't know if you also need to have an export file, but
that might be a problem also.

If you want to get a really good book on calling C from IDL using DLM's go
to http:\\www.rkling.com and click the link to "Books on IDL" at the top of
the page;) Of course, I am biased on the book but I have received a ton of
positive comments on it!

-Ronn


--
Ronn Kling
Ronn Kling Consulting
email: ronn@rlkling.com
"Application Development with IDL"� programming book updated for IDL5.4!
"Calling C from IDL, Using DLM's to extend your IDL code" NEW BOOK!
Shareware and Freeware at: http://www.rlkling.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: .skip
Next Topic: Re: Probably a simple question, but I'm only a beginner with this IDL stuff :)

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

Current Time: Sun Oct 12 08:14:43 PDT 2025

Total time taken to generate the page: 0.64028 seconds