 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Sasan Guest
|
Posted: Wed Jan 26, 2005 8:08 am Post subject: Registre ActiveX ? |
|
|
Hello,
I want regiter an AvtiveX in source code , how can do it ?
Thanks,
M.T
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Jan 26, 2005 10:16 am Post subject: Re: Registre ActiveX ? |
|
|
"Sasan" <sasan_vm (AT) yahoo (DOT) com> wrote
| Quote: | I want regiter an AvtiveX in source code , how can do it ?
|
If the control is in an EXE file, then execute the EXE with the "/regserver"
command line parameter. If the control is in a DLL, then load the DLL via
LoadLibrary() and call its DllRegisterServer() function via
GetProcAddress().
Gambit
|
|
| Back to top |
|
 |
Sasan Guest
|
Posted: Wed Jan 26, 2005 5:49 pm Post subject: Re: Registre ActiveX ? |
|
|
Hello,
I have an OCX file ,
how do it ?
Thanks,
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Jan 26, 2005 5:56 pm Post subject: Re: Registre ActiveX ? |
|
|
"Sasan" <sasan_vm (AT) yahoo (DOT) com> wrote
| Quote: | I have an OCX file ,
how do it ?
|
An OCX is just a DLL with a different file extension.
Gambit
|
|
| Back to top |
|
 |
Sasan Guest
|
Posted: Thu Jan 27, 2005 8:48 am Post subject: Re: Registre ActiveX ? |
|
|
Hello,
Thanks for your help, i have 1 question :
How can call procedure that find with GetProcAddress ?
Thanks.
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu Jan 27, 2005 9:28 am Post subject: Re: Registre ActiveX ? |
|
|
"Sasan" <sasan_vm (AT) yahoo (DOT) com> wrote
| Quote: | How can call procedure that find with GetProcAddress ?
|
typedef HRESULT __stdcall (*LPFN_DLLRS)(void);
HINSTANCE hOCX = LoadLibrary("somefile.ocx");
if( hOCX)
{
LPFN_DLLRS lpDllRegisterServer = (LPFN_DLLRS) GetProcAddress(hOCX,
"DllRegisterServer");
if( lpDllRegisterServer )
lpDllRegisterServer();
FreeLibrary(hOCX);
}
Gambit
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|