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

Home » Public Forums » archive » Re: Windows, LCC & call_external
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
Re: Windows, LCC & call_external [message #33355] Wed, 18 December 2002 03:40
David Burridge is currently offline  David Burridge
Messages: 33
Registered: January 1998
Member
"trouble" <the_cacc@hotmail.com> wrote in message
news:5f9f0a23.0212172203.2debec5f@posting.google.com...
> Yo,
>
> Has anyone successfully used call_external with dlls created from the
> LCC compiler under Windows? I am having a lot of trouble even passing
> an argument, even though the programs worked fine on Unix (compiled
> with gcc). [Windows gcc doesn't make dlls before you ask!] Or can
> anyone recommend a (free) c compiler under windows that (a) makes dlls
> and (b) definifely does work.
>
> Ciao.

Nope - I bought and used MSVC++.Net (which, by the way, was a 2GB ... yes,
you read that correctly) installation!

However, I had a similar problem when I built my port access library with
MSVC++. Unfortunately I don't have the code to hand, but essentially the
problem was that you need to export the declarations to make them visible
outside the DLL. Under some window OS's you can right-click on the DLL and
select something like "Quick View" and it'll tell you the entry points -
with the error on my system there were none. I then fiddled around with
'extern "C"' and "__declspec( dllimport )" (which is MS specific) and
suddenly it started working. I should admit here that I got help from a
friend who knows *much* more about MSVC than I to figure this out.

I hope this rant is of *some* help:-)

Dave

--
David Burridge
Burridge Computing, 18 The Green South
Warborough, Oxon, OX10 7DN
England
Tel: +44 (0) 1865 858279, Email: davidb@burridgecomputing.co.uk



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.404 / Virus Database: 228 - Release Date: 15/10/2002
Re: Windows, LCC & call_external [message #33359 is a reply to message #33355] Wed, 18 December 2002 01:10 Go to previous message
discommode is currently offline  discommode
Messages: 1
Registered: December 2002
Junior Member
trouble <the_cacc@hotmail.com> wrote:

> Yo,
>
> Has anyone successfully used call_external with dlls created from the
> LCC compiler under Windows? I am having a lot of trouble even passing
> an argument, even though the programs worked fine on Unix (compiled
> with gcc). [Windows gcc doesn't make dlls before you ask!] Or can
> anyone recommend a (free) c compiler under windows that (a) makes dlls
> and (b) definifely does work.

sorry. i've never used lcc
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDLDE refresh in Windows XP (IDL 5.2.1)
Next Topic: Returning a string array from a DLM

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

Current Time: Wed Oct 08 19:15:52 PDT 2025

Total time taken to generate the page: 0.00621 seconds