Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > signing an .ocx


Reply
 
Thread Tools Display Modes
  #1  
Old 04-25-2012, 05:42 AM
icampbell icampbell is offline
Junior Contributor
 
Join Date: Feb 2003
Location: Northumberland, England
Posts: 247
Default signing an .ocx


can anyone help,

i have a .ocx file that i need to digitally sign using a certificate i have created.
i have tried to use the signtool.exe but this keeps giving me error:
signtool error: No certificates were found that met all the given criteria.

i only have the one certificate and ran the cmd:
signtool sign /a myocx.ocx

any advice would be great.

thanks.
__________________
Were all going to heaven lads, wey heyy.....
Reply With Quote
  #2  
Old 04-26-2012, 03:31 AM
icampbell icampbell is offline
Junior Contributor
 
Join Date: Feb 2003
Location: Northumberland, England
Posts: 247
Default

Ok, so now i have correctly signed the .ocx file.
I have created an internet installer .cab file through package and deploy that has the .ocx to run, as part of the creation P&D created a .htm file that had the code to run the cab file.
i have run this on another PC and it correctly registers and loads up the .ocx, however, when running it on another PC nothing happens, just a clear square box in the top left corner. i get no objections about running the files etc as i have made sure that the PC can run activex etc.

any advice would be great.
thanks.
__________________
Were all going to heaven lads, wey heyy.....
Reply With Quote
  #3  
Old 04-26-2012, 08:48 AM
Cerian Knight's Avatar
Cerian Knight Cerian Knight is offline
Multi-Technologist

Super Moderator
* Expert *
 
Join Date: May 2004
Location: Michigan
Posts: 3,864
Default

Quote:
Originally Posted by icampbell View Post
i have run this on another PC and it correctly registers and loads up the .ocx, however, when running it on another PC nothing happens, just a clear square box in the top left corner.
If I understand correctly, you have signed the file on one PC and tried it on two other PCs... one works and the other does not? If that is true, what OS and Service Pack are on all 3 PCs involved? Using an htm to run a cab seems like it could be problematic on some platforms. Perhaps using some form of Reg-Free will help: http://mmm4vb6.atom5.com/
__________________
Use of a mobile device to post here is problematic, at best, and perhaps negligent, at worst. I'll try to keep it to a minimum.
Reply With Quote
  #4  
Old 04-26-2012, 10:41 AM
dilettante's Avatar
dilettante dilettante is offline
Underclocked lifestyle

Forum Leader
* Guru *
 
Join Date: Feb 2005
Location: Michigan, USA
Posts: 4,339
Default

With so little useful information provided all we can do is take shots in the dark.

So far all we know is you "have an OCX" (er, who created it?) and you have signed it and packaged it as a CAB file. It sounds as if the control (or controls) in this OCX seem to work with the test HTM built by the PDW. Or at least on some machines ("another and not another" whatever that means).

It is important to know other things though, such as whether or not the controls in this OCX implement the "Safe For Scripting" interface and whether or not they are aggregations of other licensed controls. In the latter case you will also need to build and deploy .LPK (license package) files, generally a different one customized for each HTML page hosting your controls.


I'd hazard a guess that you created this OCX, it does aggregate licensed controls, and the machines where it works have VB6 design-time licenses installed (i.e. they have VB6 installed). Your VB6 product CDs should have LPKTool.exe, or you can probably still download it from Microsoft.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->