BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Registre ActiveX ?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX)
View previous topic :: View next topic  
Author Message
Sasan
Guest





PostPosted: Wed Jan 26, 2005 8:08 am    Post subject: Registre ActiveX ? Reply with quote



Hello,
I want regiter an AvtiveX in source code , how can do it ?
Thanks,
M.T


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Jan 26, 2005 10:16 am    Post subject: Re: Registre ActiveX ? Reply with quote




"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





PostPosted: Wed Jan 26, 2005 5:49 pm    Post subject: Re: Registre ActiveX ? Reply with quote



Hello,

I have an OCX file ,
how do it ?

Thanks,


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Jan 26, 2005 5:56 pm    Post subject: Re: Registre ActiveX ? Reply with quote


"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





PostPosted: Thu Jan 27, 2005 8:48 am    Post subject: Re: Registre ActiveX ? Reply with quote

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





PostPosted: Thu Jan 27, 2005 9:28 am    Post subject: Re: Registre ActiveX ? Reply with quote


"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.