cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi all,

In our application we are using CaseDocs.DocCasesCtl control.

We are recieving "Error calling external object function intialize" when the below line of code is being executed.

ole_1.object.Initialize(is_case , gl_obsessionhandle)

FYI. The same code is working in XP machine but not in Windows 7.

We tried re-registering CaseDocs.ocx but had no luck.

Please advice on this.

Thanks in advance,

Lavanya.


0 Likes
View Entire Topic
CobyKako
Product and Topic Expert
Product and Topic Expert
0 Likes

How did you register your OCX? using regvr32 from c:\windows\system32 ?

Is your Windows 7 a 64-bit machine?

If yes, can you try to re-register your OCX control (32-bit?) using regsvr32 from correct folder:

1. Open a DOS command prompt (run as administrator)

2. Change directory to C:\Windows\SysWOW64

3. Unregister the control using the command "regsvr32 /U xxxx.ocx"

4. Re-Register using the command "regsvr32 xxxx.ocx"

Indeed, you have to use a 32-bit OCX with PowerBuilder

HTH,

Jacob

Former Member
0 Likes

Hi Jacob,

Thanks for your quick response.

We are using Windows 7 , 32-bit machine.

We placed the ocx in C:\Windows\System32 and re-registered the ocx after unregistering but we are still getting same error.

(Also i could not find any folder named SysWOW64).

Thanks,

Lavanya.

CobyKako
Product and Topic Expert
Product and Topic Expert
0 Likes

SysWOW64 folder is created with 64-bit machines only.

As for your problem, is it possible to have a way to recreate it?