PDA

View Full Version : Installing vrwapi.ocx



Brigitte
25-Aug-2010, 01:50 PM
Hello,

is it possible to register the vrwapi.ocx in the program with

Get RegServer "vrwapi.ocx" REGSERVER_REGISTER to bOk

On one comupter it works on the other the loadlibrary could not find the modul.
If I set the path with the ocx I always get an error.

Where is the correct place for the ocx?

Brigitte

Vincent Oorsprong
26-Aug-2010, 12:59 AM
Brigitte,

I do not know what the RegServer function does and if it can have a path or not. Looking at the registry - that is where RegSrv32.exe writes its information a COM module always has a path.

Brigitte
26-Aug-2010, 02:18 AM
Vincent,

I found the information about regserver in the forum article "Codejock Deployment" Sept. 2009. There is a link
to vdf-guidance and with this tool i register the ocx from codejock.

Brigitte

Vincent Oorsprong
26-Aug-2010, 03:59 AM
Brigitte,

I hope Todd or Allan will jump into here since they wrote the package.

Peter van Mil
26-Aug-2010, 04:44 AM
Brigittte,

I used it in the past, but now I use an installer for it. This is an old example:



Get psProgramPath of (phoWorkspace(ghoApplication)) to sPath
// ExcelController 5.0
Get RegServer (sPath - "\Rnxlc50.dll") REGSERVER_REGISTER "{1C77490B-F2F6-46DA-96EF-C0AB0F6E7A66}" to bOk


This worked. You need at least a path to your .ocx.

Brigitte
26-Aug-2010, 07:37 AM
Now I have a solution!

I put the necessary files (dlls and ocx) in the path of my installation program and than start it.
Here is my program:

Use Regserver.pkg
String sPfad sOCX sBinpath

Get GetApplicationPath of oApplication to sPfad

Move (Append(sPfad,"\Codejock.Calendar.v13.3.1.ocx")) to sOCX
Get RegServer sOCX REGSERVER_REGISTER to bOk

Move (Append(sPfad,"\Codejock.Controls.v13.3.1.ocx")) to sOCX
Get RegServer sOCX REGSERVER_REGISTER to bOk

Move (Append(sPfad,"\Codejock.DockingPane.v13.3.1.ocx")) to sOCX
Get RegServer sOCX REGSERVER_REGISTER to bOk

Get_File_Path "vdfvm15.dll" to sOCX
Move (Replace("\vdfvm15.dll",socx,"")) to sBinpath
Move (sBinpath + "\vrwapi.ocx") to socx
CopyFile (sPfad + "\dfapi30.dll") to sBinpath
CopyFile (sPfad + "\jagpdf-1.4.dll") to sBinpath
CopyFile (sPfad + "\vrwapi.ocx") to sBinpath
Get RegServer sOCX REGSERVER_REGISTER "{94111974-282F-418E-9907-D17C75425485}" to bOk

Abort

Brigitte