Connecting Tech Pros Worldwide Forums | Help | Site Map

question - using classes from a DLL

Jake D
Guest
 
Posts: n/a
#1: Jul 19 '05
I understand how to load a DLL in C++ and use functions from it,
however I have a DLL which I did not create which has some classes in
it. I can't seem to find out how to use the classes to make an object
and then to be able to use methods of the object
Mike Wahler
Guest
 
Posts: n/a
#2: Jul 19 '05

re: question - using classes from a DLL



Jake D <jdenley@richmondnursery.com> wrote in message
news:d323dfa0.0309171005.545180b3@posting.google.c om...[color=blue]
> I understand how to load a DLL in C++ and use functions from it,
> however I have a DLL which I did not create which has some classes in
> it. I can't seem to find out how to use the classes to make an object
> and then to be able to use methods of the object[/color]

That's what documentation is for. Read it.
Your question has nothing to do with the C++ language
(the only topic here).

-Mike



Jake D
Guest
 
Posts: n/a
#3: Jul 19 '05

re: question - using classes from a DLL


"Mike Wahler" <mkwahler@mkwahler.net> wrote in message news:<jX1ab.7268$BS5.3473@newsread4.news.pas.earth link.net>...[color=blue]
> Jake D <jdenley@richmondnursery.com> wrote in message
> news:d323dfa0.0309171005.545180b3@posting.google.c om...[color=green]
> > I understand how to load a DLL in C++ and use functions from it,
> > however I have a DLL which I did not create which has some classes in
> > it. I can't seem to find out how to use the classes to make an object
> > and then to be able to use methods of the object[/color]
>
> That's what documentation is for. Read it.
> Your question has nothing to do with the C++ language
> (the only topic here).
>
> -Mike[/color]

Thanks for being rude but you obviously didnt understand the question.
Its not that I dont know how to use the *specific* classes of that
DLL, I dont know how to use a class from ANY DLL. The documentation
from the DLL only has examples for VB so that doesn't help at all.
Kevin Goodsell
Guest
 
Posts: n/a
#4: Jul 19 '05

re: question - using classes from a DLL


Jake D wrote:
[color=blue]
> "Mike Wahler" <mkwahler@mkwahler.net> wrote in message news:<jX1ab.7268$BS5.3473@newsread4.news.pas.earth link.net>...
>[color=green]
>>Jake D <jdenley@richmondnursery.com> wrote in message
>>news:d323dfa0.0309171005.545180b3@posting.google .com...
>>[color=darkred]
>>>I understand how to load a DLL in C++ and use functions from it,
>>>however I have a DLL which I did not create which has some classes in
>>>it. I can't seem to find out how to use the classes to make an object
>>>and then to be able to use methods of the object[/color]
>>
>>That's what documentation is for. Read it.
>>Your question has nothing to do with the C++ language
>>(the only topic here).
>>
>>-Mike[/color]
>
>
> Thanks for being rude[/color]

Posting off-topic messages is rude, so you were rude first.
[color=blue]
> but you obviously didnt understand the question.
> Its not that I dont know how to use the *specific* classes of that
> DLL, I dont know how to use a class from ANY DLL.[/color]

Standard C++ (the topic of this group) does not provide any way to
create or use DLLs. Please read the welcome message (as we request all
new posters to do *before* they post - had you looked a few days back in
the posting history, you would have found it under the subject
"===Welcome to comp.lang.c++! Read this first." Reading such messages
before posting is standard Usenet etiquette.):

http://www.slack.net/~shiva/welcome.txt

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.

White Wolf
Guest
 
Posts: n/a
#5: Jul 19 '05

re: question - using classes from a DLL


Kevin Goodsell wrote:[color=blue]
> Standard C++ (the topic of this group) does not provide any way to
> create or use DLLs.[/color]

OTOH there is an active proposal on the table at the C++ comittee (from Pete
becker IIRC) to add just that. I am not saying that it makes it topical
here. Just FYI.

--
WW aka Attila


Kevin Goodsell
Guest
 
Posts: n/a
#6: Jul 19 '05

re: question - using classes from a DLL


White Wolf wrote:
[color=blue]
> Kevin Goodsell wrote:
>[color=green]
>>Standard C++ (the topic of this group) does not provide any way to
>>create or use DLLs.[/color]
>
>
> OTOH there is an active proposal on the table at the C++ comittee (from Pete
> becker IIRC) to add just that. I am not saying that it makes it topical
> here. Just FYI.
>[/color]

That's interesting. I'm not totally sure what to think of it, but I
think it would be a nice addition. On the other hand... the language is
overwhelming for me as it is, and the idea of more additions, ANY
additions, frightens me a bit. But I know they are coming, regardless.

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.

White Wolf
Guest
 
Posts: n/a
#7: Jul 19 '05

re: question - using classes from a DLL


Kevin Goodsell wrote:[color=blue][color=green]
>> OTOH there is an active proposal on the table at the C++ comittee
>> (from Pete becker IIRC) to add just that. I am not saying that it
>> makes it topical here. Just FYI.
>>[/color]
>
> That's interesting. I'm not totally sure what to think of it, but I
> think it would be a nice addition. On the other hand... the language
> is overwhelming for me as it is, and the idea of more additions, ANY
> additions, frightens me a bit. But I know they are coming, regardless.[/color]

They are coming into a Technical Report Draft if they get accepted. After
that the TR has to be accepted. And then it is still a long way from
getting it actually into a new language standard.

Also note, that these additions are mostly non-intrusive. Meaning: if you
do not use them, you do not need to know about them.

--
WW aka Attila


Closed Thread