Board index » cppbuilder » Re: DLL

Re: DLL


2004-06-15 01:41:23 AM
cppbuilder15
Hello Toto,
Yes, it's possible to create such a DLL. Since you posted in the ActiveX
newsgroup, I suspect that you want to create a COM object, right? If yes, it
sounds like you actually need three COM Objects:
- a 'business' object
- an 'order' object that's exposed by the 'business' object
- a 'Product' object that's exposed by the 'business' object
If that's what you're after can you confirm now these objects will be used?
Via automation? Remotely? In a proprietary application?
We need more information to be able to be of more help to you.
Regards,
Bruneau.
"toto" < XXXX@XXXXX.COM >wrote in message
Quote
HI all,

i would like to make a dll with borland C++ builder 6.

And I want insert a business class in this dll :

for example :

IHM call dll :

business.order.getTotal or
business.Product.Getdesignation.

It is possible ? how to make this implementation ?


 
 

Re:Re: DLL

Hi Jean Marie,
Thanks for you answer.
it's a french name and i m french !
Yes it's a com object, and i would like to expose my business object and i
have a client application (exe), this application import this dll for use
the business service of dll.
Thanks you
"Jean-Marie Babet" < XXXX@XXXXX.COM >a écrit dans le message de
Quote
Hello Toto,

Yes, it's possible to create such a DLL. Since you posted in the ActiveX
newsgroup, I suspect that you want to create a COM object, right? If yes,
it
sounds like you actually need three COM Objects:

- a 'business' object
- an 'order' object that's exposed by the 'business' object
- a 'Product' object that's exposed by the 'business' object

If that's what you're after can you confirm now these objects will be
used?
Via automation? Remotely? In a proprietary application?

We need more information to be able to be of more help to you.

Regards,


Bruneau.


"toto" < XXXX@XXXXX.COM >wrote in message
news: XXXX@XXXXX.COM ...
>HI all,
>
>i would like to make a dll with borland C++ builder 6.
>
>And I want insert a business class in this dll :
>
>for example :
>
>IHM call dll :
>
>business.order.getTotal or
>business.Product.Getdesignation.
>
>It is possible ? how to make this implementation ?
>
>


 

Re:Re: DLL

Hi liz,
Thanks for you answer.
it's a com object, and i would like to expose my business object and i
have a client application (exe), this application import this dll for use
the business service of dll.
Thanks you
Quote

"Liz Albin" < XXXX@XXXXX.COM >a écrit dans le message de
Quote
On Sun, 13 Jun 2004 16:40:36 +0200, toto wrote:

>It is possible ? how to make this implementation ?

Please explain more clearly what you'd like. Of course it's possible to
call a function in a dll, additionally it's possible to wrap class
methods and call those, but your specific problems are not clear.

--
Good luck,

liz
 

{smallsort}

Re:Re: DLL

Bonjour,
Quote
it's a french name and i m french !
Je ne suis pas Francais - je suis de l'Ile Maurice - mais le Francais c'est
la premiere langue que j'ai etudiee.
Quote
Yes it's a com object, and i would like to expose my business object and i
have a client application (exe), this application import this dll for use
the business service of dll.
Pas de probleme; comme je n'ai pas une version Francaise de CBuilder je vais
decrire l'usage des Wizards en Anglais:
1. File|New|Other|ActiveX|ActiveX Library
La vous allez creer le DLL qui contiendra les Objects COM
2. File|New|Other|ActiveX|COM Object
Et la vous allez creer un object COM.
Vous pouvez repeter la deuxieme etape pour creer tous les objects:
'business', 'order' et 'product'.
Ensuite, vous pourrez vous servir de l'editeur TypeLibrary pour ajouter une
propriete 'order' et une propriete 'product' a l'object 'business'. etc.
etc.
Laissez moi savoir si tout est clair!
Salutations,
Bruneau.
"toto" < XXXX@XXXXX.COM >wrote in message
Quote
Hi Jean Marie,

Thanks for you answer.

it's a french name and i m french !

Yes it's a com object, and i would like to expose my business object and i
have a client application (exe), this application import this dll for use
the business service of dll.

Thanks you



"Jean-Marie Babet" < XXXX@XXXXX.COM >a écrit dans le message de
news:40cde343$ XXXX@XXXXX.COM ...
>Hello Toto,
>
>Yes, it's possible to create such a DLL. Since you posted in the ActiveX
>newsgroup, I suspect that you want to create a COM object, right? If
yes,
it
>sounds like you actually need three COM Objects:
>
>- a 'business' object
>- an 'order' object that's exposed by the 'business' object
>- a 'Product' object that's exposed by the 'business' object
>
>If that's what you're after can you confirm now these objects will be
used?
>Via automation? Remotely? In a proprietary application?
>
>We need more information to be able to be of more help to you.
>
>Regards,
>
>
>Bruneau.
>
>
>"toto" < XXXX@XXXXX.COM >wrote in message
>news: XXXX@XXXXX.COM ...
>>HI all,
>>
>>i would like to make a dll with borland C++ builder 6.
>>
>>And I want insert a business class in this dll :
>>
>>for example :
>>
>>IHM call dll :
>>
>>business.order.getTotal or
>>business.Product.Getdesignation.
>>
>>It is possible ? how to make this implementation ?
>>
>>
>
>


 

Re:Re: DLL

toto wrote:
Quote
>It is possible ? how to make this implementation ?
Maybe this can help ? code-genie.com/cpp/articles/dll/dll.html
Jan
 

Re:Re: DLL

c'est trés clair merci...
"Jean-Marie Babet" < XXXX@XXXXX.COM >a écrit dans le message de
Quote
Bonjour,

>it's a french name and i m french !

Je ne suis pas Francais - je suis de l'Ile Maurice - mais le Francais
c'est
la premiere langue que j'ai etudiee.


>Yes it's a com object, and i would like to expose my business object and
i
>have a client application (exe), this application import this dll for
use
>the business service of dll.

Pas de probleme; comme je n'ai pas une version Francaise de CBuilder je
vais
decrire l'usage des Wizards en Anglais:

1. File|New|Other|ActiveX|ActiveX Library

La vous allez creer le DLL qui contiendra les Objects COM


2. File|New|Other|ActiveX|COM Object

Et la vous allez creer un object COM.


Vous pouvez repeter la deuxieme etape pour creer tous les objects:
'business', 'order' et 'product'.


Ensuite, vous pourrez vous servir de l'editeur TypeLibrary pour ajouter
une
propriete 'order' et une propriete 'product' a l'object 'business'. etc.
etc.

Laissez moi savoir si tout est clair!

Salutations,


Bruneau.




"toto" < XXXX@XXXXX.COM >wrote in message
news:40ceacc3$ XXXX@XXXXX.COM ...
>Hi Jean Marie,
>
>Thanks for you answer.
>
>it's a french name and i m french !
>
>Yes it's a com object, and i would like to expose my business object and
i
>have a client application (exe), this application import this dll for
use
>the business service of dll.
>
>Thanks you
>
>
>
>"Jean-Marie Babet" < XXXX@XXXXX.COM >a écrit dans le message de
>news:40cde343$ XXXX@XXXXX.COM ...
>>Hello Toto,
>>
>>Yes, it's possible to create such a DLL. Since you posted in the
ActiveX
>>newsgroup, I suspect that you want to create a COM object, right? If
yes,
>it
>>sounds like you actually need three COM Objects:
>>
>>- a 'business' object
>>- an 'order' object that's exposed by the 'business' object
>>- a 'Product' object that's exposed by the 'business' object
>>
>>If that's what you're after can you confirm now these objects will be
>used?
>>Via automation? Remotely? In a proprietary application?
>>
>>We need more information to be able to be of more help to you.
>>
>>Regards,
>>
>>
>>Bruneau.
>>
>>
>>"toto" < XXXX@XXXXX.COM >wrote in message
>>news: XXXX@XXXXX.COM ...
>>>HI all,
>>>
>>>i would like to make a dll with borland C++ builder 6.
>>>
>>>And I want insert a business class in this dll :
>>>
>>>for example :
>>>
>>>IHM call dll :
>>>
>>>business.order.getTotal or
>>>business.Product.Getdesignation.
>>>
>>>It is possible ? how to make this implementation ?
>>>
>>>
>>
>>
>
>


 

Re:Re: DLL

Dear all,
I need urgently help, since I am in trouble with my exam:
I am programing a velledom card which is connected by UBS to my computer. I
am using Borland C++ version 5.0. Basically in the User Guide everything is
described fine. Here is the user guide:
www.produktinfo.conrad.com/datenblaetter/175000-199999/191003-an-01-de-Programmieranleitung_K8055_DLL.pdf
I am using the code on the last page of this guide. I did it exactly how
it's described but by compiling the code I always get the following error:
[Linker Fehler] Unresolver external "OpenDevice" referenced from
C.\programme\borland\cbuilder5\projects\vellemann.obj.
I have the K8055D.dll in the same folder as the project.
Do I need to include something to the project?
Please help me I need some hint.
Thanks
 

Re:Re: DLL

Quote
[Linker Fehler] Unresolver external "OpenDevice" referenced from
C.\programme\borland\cbuilder5\projects\vellemann.obj.

I have the K8055D.dll in the same folder as the project.
Do I need to include something to the project?

Please help me I need some hint.

Thanks


This is called - static linking of DLL. Firstly You need import library.
You can make it using borlands tools .. find BIN library under Borland C++
Builder folder.
then use :
implib k8055d.lib k8055d.dll
to make k8055d.lib.
Add Library(lib) file to Your project and try to compile once again.
Juris
 

Re:Re: DLL

Dear Juris,
Thank you a lot. It works and you have saved my exam.
Thanks
alex
"Juris" < XXXX@XXXXX.COM >wrote in message
Quote


>[Linker Fehler] Unresolver external "OpenDevice" referenced from
>C.\programme\borland\cbuilder5\projects\vellemann.obj.
>
>I have the K8055D.dll in the same folder as the project.
>Do I need to include something to the project?
>
>Please help me I need some hint.
>
>Thanks
>
>

This is called - static linking of DLL. Firstly You need import library.
You can make it using borlands tools .. find BIN library under Borland C++
Builder folder.
then use :

implib k8055d.lib k8055d.dll

to make k8055d.lib.

Add Library(lib) file to Your project and try to compile once again.

Juris


 

Re:Re: DLL

What DLL's do I have to supply in my install.exe for my Datansnap
application? (Delphi 2006 win32)
 

Re:Re: DLL

Hola,
On the middletier side, midas.dll. On the client side you can use midas.dll
or compile your applications with the midaslib unit.
Esteban Pacheco
estebanp.blogspot.com
A Delphi Programming blog.
"Mikael" < XXXX@XXXXX.COM >wrote in message
Quote
What DLL's do I have to supply in my install.exe for my Datansnap
application? (Delphi 2006 win32)

 

Re:Re: DLL

No need for stdvcl40.dll ?
"Esteban Pacheco" < XXXX@XXXXX.COM >skrev i meddelandet
Quote
Hola,

On the middletier side, midas.dll. On the client side you can use
midas.dll or compile your applications with the midaslib unit.

Esteban Pacheco
estebanp.blogspot.com
A Delphi Programming blog.


"Mikael" < XXXX@XXXXX.COM >wrote in message
news:44fc3c9f$ XXXX@XXXXX.COM ...
>What DLL's do I have to supply in my install.exe for my Datansnap
>application? (Delphi 2006 win32)
>


 

Re:Re: DLL

How do I make the functions inside a DLL available to my project? I am
using BCB6 personnal and XP. I hope I have the correct group, maybe this
should go into IDE.
Maurice
 

Re:Re: DLL

The answer depends both upon the DLL begin used and how you decide to use
it.
If the DLL is a package, an item created with C++ Builder or Delphi which
exports functions or classes in a program using the VCL then the compiler
documentation gives a description of how to use it.
If it is not a package then it is a normal DLL. The simple answer, assuming
that everything is already perfectly set up for you, is to include the
header file into your project and add the import library for the DLL to the
project. Unfortunately the situation is not always perfectly set up.
If it came from someone else then that person or company will supply a
header file which contains prototypes of the functions exported by the DLL.
If you wrote the DLL then you can get these function descriptions from its
source code. You can link to it implicitly or explicitly. Here is a link
to pages which go through an example of creating and using a simple, demo
DLL.
www.mulroy.org/howto10.htm
The demo creates a console mode program using the compiler's command line
tools. You could use the IDE to do it if you create the DLL and demo
program projects as console mode (File|New|Other->double click on
Console_Wizard). After reviewing the page at that link, it might be useful
to go through the whole set of pages starting at:
www.mulroy.org/howto.htm
. Ed
Quote
Maurice wrote in message
news:4528b6bb$ XXXX@XXXXX.COM ...

How do I make the functions inside a DLL available to my project? I am
using BCB6 personnal and XP. I hope I have the correct group, maybe this
should go into IDE.
 

Re:Re: DLL

Thanks for coming back to me with the information and links. I think it is
a normal dll. I used implib to create a lib file from the dll and included
it in the project but I do not have a header file. I will try to get some
information from the dll supplier about this.
Maurice
"Ed Mulroy" < XXXX@XXXXX.COM >wrote in message
Quote
The answer depends both upon the DLL begin used and how you decide to use
it.

If the DLL is a package, an item created with C++ Builder or Delphi which
exports functions or classes in a program using the VCL then the compiler
documentation gives a description of how to use it.

If it is not a package then it is a normal DLL. The simple answer,
assuming that everything is already perfectly set up for you, is to
include the header file into your project and add the import library for
the DLL to the project. Unfortunately the situation is not always
perfectly set up.

If it came from someone else then that person or company will supply a
header file which contains prototypes of the functions exported by the
DLL. If you wrote the DLL then you can get these function descriptions
from its source code. You can link to it implicitly or explicitly. Here
is a link to pages which go through an example of creating and using a
simple, demo DLL.
www.mulroy.org/howto10.htm

The demo creates a console mode program using the compiler's command line
tools. You could use the IDE to do it if you create the DLL and demo
program projects as console mode (File|New|Other->double click on
Console_Wizard). After reviewing the page at that link, it might be
useful to go through the whole set of pages starting at:
www.mulroy.org/howto.htm

. Ed

>Maurice wrote in message
>news:4528b6bb$ XXXX@XXXXX.COM ...
>
>How do I make the functions inside a DLL available to my project? I am
>using BCB6 personnal and XP. I hope I have the correct group, maybe this
>should go into IDE.