Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX Licensing issue with MSWLESS.OCX 1

Status
Not open for further replies.

JavaGod

Programmer
Dec 15, 2000
2
US
Hi,

I come from the Java world, and I am fairly new to ActiveX. I have been playing with VB 6.0 and ActiveX, but I have run into a problem I don't know how to solve.

I read an article about mswless.ocx, a file that is shipped with VB. The objects in there are windowless, meaning they don't have a handle. I wanted to use them, because they are lightweight.

The problem I am having is that when I install VB, it doesn't install this ActiveX object on its own, you have to manually register it to use it. So, I did just that. I copied mswless.ocx from my CD to my \winnt\system32 and ran regsvr32 to register it with the system.

Everything "seemed" to work ok, as it gave me the message saying it was successful. However, when I go into VB, and try to use any of the controls from mswless.ocx, I get an error that "You are not licensed to use this control." Or something like that, and the system won't let me use it.

I don't know how to fix the problem. The article I read doesn't say anything about any licensing, and I would assume that if the controls ship with VB, then I should be able to use them.

Any help or info would be GREATLY appreciated!
Thanks,
John
 
Hi John,

You've got to register the design-time license for the control.

For a detailed description, refer to the following KB article:

Install the Microsoft Windowless Controls for VB6

There's a VB6 sample found here:
SAMPLE: VB6WLCTL.EXE Windowless Controls Demonstration

Additionally, you may want to search the MSDN for any known bugs for the Windowless controls. I know a few exist. Jon Hawkins
jonscott8@yahoo.com

The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top