Welcome to Dream.In.Code
Become a VB Expert!

Join 149,401 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,214 people online right now. Registration is fast and FREE... Join Now!




Registering an ActiveX Control Help

 
Reply to this topicStart new topic

Registering an ActiveX Control Help

oXiDe
20 Jan, 2008 - 11:25 AM
Post #1

New D.I.C Head
*

Joined: 17 Nov, 2007
Posts: 37



Thanked: 1 times
My Contributions
Recently i made an activex control, but others cant use it because it says stuff like Bla.ocx not registered, so i want to make something where the program will automatically register the ocx

I really have no idea where to begin, but from looking at Nevermalchik said here;
http://www.dreamincode.net/forums/index.ph...;hl=registering
I think all u do is like do the RegCreateKey to do like this? :

CODE
RegCreateKeyA(HKEY_CLASSES_ROOT\ocxfile\ocxname)


But im really scared to try it because im pretty sure im wrong and i know registry is a bad place to be wrong at.

Can someone please help me
User is offlineProfile CardPM
+Quote Post

LookNAO
RE: Registering An ActiveX Control Help
21 Jan, 2008 - 05:41 AM
Post #2

D.I.C Head
**

Joined: 28 Dec, 2007
Posts: 66



Thanked: 1 times
My Contributions

If you are using a DLL or OCX in your program and to make sure it is a registered control, try this in a seperate;

Note: don't call this dll or ocx in this program.

CODE


'Register DLL or OCX...
shell "regsvr32 /s Bla.ocx"



Now, this will register it silently.

Maybe check to see if it has been run, run it once, and don't run it again after that.

User is offlineProfile CardPM
+Quote Post

oXiDe
RE: Registering An ActiveX Control Help
21 Jan, 2008 - 03:55 PM
Post #3

New D.I.C Head
*

Joined: 17 Nov, 2007
Posts: 37



Thanked: 1 times
My Contributions
thanks biggrin.gif, also whats UBound & LBound do :l
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 10:20AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month