Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Newbie DLL question

4 views
Skip to first unread message

Kevin Hamon

unread,
Jul 10, 2003, 12:04:27 PM7/10/03
to
Hi there,

I need to use a .dll file in C.
How can I do to use/call its functions ?

Thanks in advance,

KH.

Mike Wahler

unread,
Jul 10, 2003, 12:41:49 PM7/10/03
to
Kevin Hamon <kh...@voila.fr> wrote in message
news:9a38c38c.03071...@posting.google.com...

> Hi there,
>
> I need to use a .dll file in C.

The language discussed here, ISO standard C,
does not support '.DLL's or any other such
operating system-specific mechanisms. See:
http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html

> How can I do to use/call its functions ?

I'd ask for information about DLL's from their inventor:
www.msdn.microsoft.com

For further discussion, see a newsgroup about Window
programming, e.g. comp.os.ms-windows.programmer.win32

-Mike

Eric Sosman

unread,
Jul 10, 2003, 12:48:24 PM7/10/03
to
Mike Wahler wrote:
>
> I'd ask for information about DLL's from their inventor:
> www.msdn.microsoft.com

Off-topic, but for the record: Microsoft "invented" DLLs
in exactly the same way they "invented" browsers, the Web, C,
binary arithmetic, the integrated circuit, electricity, and
the Gregorian calendar.

--
Eric....@sun.com

Finny Merrill

unread,
Jul 10, 2003, 1:38:43 PM7/10/03
to
kh...@voila.fr (Kevin Hamon) wrote in
news:9a38c38c.03071...@posting.google.com:

This isn't as much a C program as a windows program. Ask
in a windows programming newsfroup.

dg

unread,
Jul 10, 2003, 3:07:58 PM7/10/03
to

"Eric Sosman" <Eric....@sun.com> wrote in message
news:3F0D98D8...@sun.com...

append to list

dos (baught form some pour fellow in seatale)
windows (halled out of xeroxes trash bin)


Mark McIntyre

unread,
Jul 10, 2003, 7:45:34 PM7/10/03
to
On Thu, 10 Jul 2003 14:07:58 -0500, in comp.lang.c , "dg" <a...@a.com>
wrote:

>
>dos (baught form some pour fellow in seatale)
>windows (halled out of xeroxes trash bin)

two things:
1) you need a spell checker
2) so what if Bill bought QDOS, and hired some ex-PARC developers ?
Do you think that IBM invented the PC from scratch? Or that C sprang
full-fledged from DMR's head, and he didn't borrow any ideas from
elsewhere?

--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---

dg

unread,
Jul 10, 2003, 10:20:56 PM7/10/03
to

"Mark McIntyre" <markmc...@spamcop.net> wrote in message
news:ugurgvc8okm7o3vvp...@4ax.com...

> On Thu, 10 Jul 2003 14:07:58 -0500, in comp.lang.c , "dg" <a...@a.com>
> wrote:
>
> >
> >dos (baught form some pour fellow in seatale)
> >windows (halled out of xeroxes trash bin)
>
> two things:
> 1) you need a spell checker
> 2) so what if Bill bought QDOS, and hired some ex-PARC developers ?
> Do you think that IBM invented the PC from scratch? Or that C sprang
> full-fledged from DMR's head, and he didn't borrow any ideas from
> elsewhere?
>
> --
> Mark McIntyre
oops typed into a news mine


Randy Howard

unread,
Jul 11, 2003, 4:12:13 AM7/11/03
to
In article <vgrei03...@corp.supernews.com>, a...@a.com says...

>
> > Off-topic, but for the record: Microsoft "invented" DLLs
> > in exactly the same way they "invented" browsers, the Web, C,
> > binary arithmetic, the integrated circuit, electricity, and
> > the Gregorian calendar.
> >
> > --
> > Eric....@sun.com
>
> append to list
>
> dos (baught form some pour fellow in seatale)
> windows (halled out of xeroxes trash bin)
gw-basic, stolen and extended from Heathkit.

--
Randy Howard
remove the obvious bits from my address to reply.

Eric Bernard

unread,
Jul 11, 2003, 11:31:17 PM7/11/03
to
Interesting how such a dumb question can end up in another fight about
microsoft.

This indeed does not belong to this newsgroup, but what you need to read is
in this page:
http://msdn.microsoft.com/library/en-us/dllproc/base/dynamic_link_libraries.
asp?frame=true

P.S. Yeah, read the whole thing before attempting to use them.

Eric Bernard

unread,
Jul 11, 2003, 11:36:13 PM7/11/03
to

"Eric Bernard" <ew...@sympatico.ca> wrote in message
news:YfLPa.10863$Ag6.9...@news20.bellglobal.com...

That was
http://msdn.microsoft.com/library/en-us/dllproc/base/dynamic_link_libraries.
asp?frame=true
Stupid outlook cut the link (if that caused an issue to you)


Ben Pfaff

unread,
Jul 13, 2003, 3:13:35 PM7/13/03
to
"Eric Bernard" <ew...@sympatico.ca> writes:

> That was
> http://msdn.microsoft.com/library/en-us/dllproc/base/dynamic_link_libraries.
> asp?frame=true
> Stupid outlook cut the link (if that caused an issue to you)

Um, you wrapped the URL above, too.
(Why should URLs *ever* be line-wrapped? It causes more problems
than it solves.)

Kevin Hamon

unread,
Jul 15, 2003, 3:42:29 AM7/15/03
to

Joona I Palaste

unread,
Jul 15, 2003, 3:48:49 AM7/15/03
to
Kevin Hamon <kh...@voila.fr> scribbled the following:

> kh...@voila.fr (Kevin Hamon) wrote in message news:<9a38c38c.03071...@posting.google.com>...
>> Hi there,
>>
>> I need to use a .dll file in C.
>> How can I do to use/call its functions ?
>>
>> Thanks in advance,

> Use DLL in C :
> http://msdn.microsoft.com/library/en-us/dllproc/base/using_run_time_dynamic_linking.asp

And how might this work on a non-Microsoft system, which (hint hint)
*also have C implementations*?

--
/-- Joona Palaste (pal...@cc.helsinki.fi) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"The truth is out there, man! Way out there!"
- Professor Ashfield

Paul Hsieh

unread,
Jul 15, 2003, 4:56:39 AM7/15/03
to
pal...@cc.helsinki.fi says...

> Kevin Hamon <kh...@voila.fr> scribbled the following:
> > kh...@voila.fr (Kevin Hamon) wrote:
> >> I need to use a .dll file in C.
> >> How can I do to use/call its functions ?
> >>
> >> Thanks in advance,
>
> > Use DLL in C :
> > http://msdn.microsoft.com/library/en-us/dllproc/base/using_run_time_dynamic_linking.asp
>
> And how might this work on a non-Microsoft system, which (hint hint)
> *also have C implementations*?

You might like to look at:

http://www.azillionmonkeys.com/qed/pe.zip

Its specific to WATCOM C/C++ for *building* DLLs and accessing them from *DOS*
in a way that is seperate from the way Microsoft does in its DLLs (Microsoft's
conventions in general are not followed.) However, it also contains sources
for reading PE executables (and DLLs), and could be modified to access ordinary
Windows DLLs.

I've added the comp.programming newsgroup, so that people who are interested in
answers can chime in/see this as well.

--
Paul Hsieh
http://www.pobox.com/~qed/
http://bstring.sourceforge.net/

Emmanuel Delahaye

unread,
Jul 19, 2003, 2:21:53 PM7/19/03
to
In 'comp.lang.c', Ben Pfaff <b...@cs.stanford.edu> wrote:

>> ies. asp?frame=true


>> Stupid outlook cut the link (if that caused an issue to you)
>
> Um, you wrapped the URL above, too.
> (Why should URLs *ever* be line-wrapped? It causes more problems
> than it solves.)
>

http://brutalhugs.com/slink/

can help

--
-ed- emdelY...@noos.fr [remove YOURBRA before answering me]
The C-language FAQ: http://www.eskimo.com/~scs/C-faq/top.html
<blank line>
FAQ de f.c.l.c : http://www.isty-info.uvsq.fr/~rumeau/fclc/

0 new messages