Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

How to set Visual Basic OCX oleSelfRegister to 1


  • Please log in to reply

#1
trovina8

trovina8

    New Member

  • Member
  • Pip
  • 2 posts
Hi I have developed an OCX using Visual Basic 6. The OCX is used on a web page which I want to run on a client PC. The OCX is downloaded (installed and registered hopefully) to the client PC from my server PC.

When I right click the OCX properties, and select the Version TAB, the oleSelfRegister attribute is set to blank. I would like to know how to set this property to "1". Most of the help on the net points to Visual C and StringFileInfo, however this is not relevant to VB (or at least I don't think it is).

I know I could manually register the ocx using REGSVR32 or include the registering instructions in the INF file, however I wish the OCX to be self registering.


TIA
Tina
  • 0

Advertisements


#2
darth_ash

darth_ash

    Member 1K

  • Member
  • PipPipPipPip
  • 1,382 posts
Hi trovina8,
Try calling DllRegisterServer function from inside your code itself.

Here is link on how to use the DllRegisterServer function in vb6:
http://www.devx.com/...hemax/Tip/18426
  • 0

#3
trovina8

trovina8

    New Member

  • Topic Starter
  • Member
  • Pip
  • 2 posts
Ta for the reply - I compiled the OCX successfully with the export funtions, however the oleSelfRegister flag was still blank.

I note with Visual C, they reference a resource file and physically set VALUE "OLESelfRegister","1".
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP