PowerBuilder Bugs: Using VB ActiveX control (OCX) in PowerBuilder 6.0

I'm going to write some VB ActiveX control (using Microsoft VB6.0 SP3)
to be used in PowerBuiler 6.5,
but I found that it's very easy to crash in PowerBuilder,

Here is the test case:

1) Create a very simple VB ActiveX control (only one button without any
script) in Visual Basic
2) Create a PB project to open a Main Window (w_1) with an ole object of
VB ActiveX control
3) Open another Window (w_2) with an ole object of VB ActiveX control
(can be same as previous or other control)
4) Click the OLE object in w_2 to make it get focus
5) Close w_2 -> it will crashed

If it skip 4) the does make the object get focus, it won't crash.

This is a very simple application, very simple control, but it crashed
100%.  If the same object (or even more complicated object) is used in
VB for same kind of application, no error will be reported.

This error can be easily tested even using PowerBuilder Example problem
for OLE 2.0, open two window and load an OCX with button.  If the OCX
never get focus, no error is report, but if it has focused, then error
is reported when you close the window.

May I know if anybody here has encounter this problem.

Since there are many commercial  product written in VB, it seems that
this problem can be overcomed by some way.  Does anyone know that how
can I prevent the error?

Thanks and regards,
James MA

12/15/1999 2:13:24 AM
sybase.ole-ocx-activex 6324 articles. 0 followers. Follow

0 Replies

Similar Articles

[PageSpeed] 38
Get it on Google Play
Get it on Apple App Store


Similar Artilces:

HELP NEEDED: OCX's created from JavaBeans (using ActiveX bridge) hang PowerBuilder 6.0
I recently downloaded PowerBuilder 6.0 Desktop for evaluation purposes. I am trying to add an OCX created from a java bean using Sun's ActiveX bridge. I can add the OCX ok... but when I attempt to save my application afterwards PowerBuilder hangs. CPU goes full throttle. I have tried all of the sample OCX's from the JAVA BDK. They all hang PowerBuilder. The OCX's work fine in other containers, i.e. Word, Excel, PowerPoint.... Has anyone else tried this ? Any help would be greatly appreciated. Danny danm@telexiscorp.com ...

how can i use powerbuilder to develop an activex/ole/ocx? help me please!!!
Please do not cross-post. -- <hopethishelps/> Roy Kiesler [TeamSybase] MySybase -- http://www.sybase.com/mysybase "tadsun" <tadsun@163.com> wrote in message news:jIQ8Mt7BCHA.200@forums.sybase.com... > > > ...

Why do more ActiveX OCX controls show up in Excel than PowerBuilder
I am brutally frustrated. I am still using PB5.0.4 - I know there are more updated versions. But I still shouldn't have the problems I am experiencing. Why is it that Microsoft's Web ActiveX control shows up in Excel's toolbox list of active x controls but it doesn't show up in my PB toolbox? I am using Windows NT 4.0 SP4, I was told that a friend can see the controls in Windows 95 of the same PB version. Its not just the MS Web Control, I experienced this problem with Dart Communciations http control also. Interestingly enough, the package which contain Dart's ht...

Problem using actskn43.ocx control in Powerbuilder 9.0
Can i use actskn43.ocx control in Powerbuilder 9.0 or 11.0 Beta ? I tried to use it in Powerbuilder 9.0 and 11.0 (Beta) i recieved a runtime error, Powerbuilder Application execution error (R0035) Error: Error calling external object function loadskin at line 1 in open event of object w_main. this is my code: ole_skin.object.loadskin("demo.skn") ole_skin.object.applyskin(handle(w_main)) i copied actskn43.ocx file in /windows/system32 dir and I already register the actskn43.ocx file: Regsvr32 actskn43.ocx please help me regarding this issue. thanks in advance. ...

Bugs and Problems when using ActiveX ole controls in PB 6/7/8
Hello, fellows, I am trying using ActiveX controls in PB6.5, but when I want to get the properties or call the methods of the activex control, I cannot get the correct string when working in Chinese envirnment. The data type of the properties and the methods of the activex control is string. I have no such problem when the string is english. I test this in PB7 and PB8 also, I have the same problem. I know that the ActiveX control is created by VC++ and in VC++, the data type of all these properties and method of the control is "BSTR". Infact, I think, every ActiveX c...

problem with Powerbuilder 9 and Adobe Acrobat 7.0
I=92m using PB9.0 =96 Build 5507 on WinXP Professional. After I update my Adobe Acrobat to 7.0, I could no longer insert an =93Adobe Acrobat OCX for Active X=94 Any ideas how to resolve this?? Thanks Bob Bob H. wrote: > I�m using PB9.0 � Build 5507 on WinXP Professional. > After I update my Adobe Acrobat to 7.0, I could no longer > insert an �Adobe Acrobat OCX for Active X� > > Any ideas how to resolve this?? > > Thanks > > Bob Insert the IE browser control and use it's navigate() method to load the PDF. Acrobat will automaticall...

VB 5.0-based ActiveX control in PB 6.0 (build 189)
Has anyone had luck using a VB 5.0-generated ActiveX control into a PB 6.0 (build 189) window? Even simple VB-based ActiveX controls (e.g., a label control) choke, even when simply being placed on a window (error hex 80004005). Same problem when the window is opened from the library painter. When the window runs, I get a PB run-time error 445 (object doesn't support this action), even though my PB app makes NO calls to the ActiveX. Any ideas? thanks, nurk. -- Tom Nurkkala, PhD tom.nurkkala@powercerv.com ...

Recompile PowerBuilder applicarion as ActiveX or OCX
Is it possible to recompile an existing PowerBuilder 5 application as an ActiveX or OCX component that can then be embedded into a Visual Basic application. Basically I would like to reuse an existing PowerBuilder app (or at least sections of it) as part of a new application developed within VB so that it looks like and behaves like a single application. Many thanks Oliver See Application Techniques documentation for the topic "Runtime Automation Server" /ck <Oliver_Lennon> wrote in message news:575D3149D64D5D9F007CF8AE85256C6F.007CF8BE85256C6F@webforums....

insert ActiveX
I want to use MSCOMM32.ocx in powerbuilder. First, run regsver32.exe to registor it. Then, I use powerbuilder to insert object by OLE. But messagebox show "ole file is failed, license file is required." I don't know how to registor it. Help me!!! regsvr32 MSCOMM32.ocx assuming you are in the directory that the file resides in. <Halina> wrote in message news:640181D0D99A3028002A452185256A7E.002A453285256A7E@webforums... > I want to use MSCOMM32.ocx in powerbuilder. First, run regsver32.exe to > registor it. Then, I use powerbuilder to insert object b...

Visual C++ OCX in Powerbuilder 6.0
We have a PowerBuilder 6.0 application. We insert a Visual C++ OCX in this PowerBuilder application. The OCX communicates with a 'dll'. The dll needs to read some config files, but at runtime it seems like the dll has a problem finding its config files. When we do the same test, with a Visual C++ test container instead of the PB application, everything works fine. So it seems to be a PB problem. PB sets current directory to the location of the exe-file. Does the dll have its own path (possibly?), or does it automatically search on its own location? Why does the linking betw...

using activex DLLs in Powerbuilder 5.0.03
Can someone give a quick run-thru on using an activex dll written in Visual Basic 5.0 in Powerbuilder 5.0.03? The activex dll I've written is not visual -- just used to communications to the serial port and parallel ports. Thanks in advance, Steve ...

VB-based ActiveX control in PB 6.0
Has anyone had success constructing a VB 5.0-based ActiveX control and embedding it in a PB 6.0 window? When inserting the control into the PB window, I get a run-time error number 80004005. I can insert the same ActiveX control in a VB applicatoin, and I can also construct JavaBeans, register them as ActiveX controls (jactivex), and insert them into PB 6.0. What's the deal with VB-based ActiveXs???? thanks, nurk. -- Tom Nurkkala, PhD tom.nurkkala@powercerv.com ...

Can we set control array for OCX like VB in PowerBuilder.
Dear everybody: I am writing a winsock program using Microsoft mswinsock.ocx. One of the requirements that the program can create a winsock.ocx to listen to a new coming socket. In VB, we can create a control array of mswinsock.ocx. But I cannot find a similar feature in PowerBuilder. Can anybody help me on how I can implement a dynamic set of ocx? Thanks Simon I don't believe that control arrays (like the ones in VB) are possible in PB. Craig Gluck Simon Poon wrote in message <38200B87.1C146B0A@hkstar.com>... >Dear everybody: > >I am writing a w...

PowerBuilder 6.0.01 does not fire events of SocketWrench OCX
Hi, I use PB6.0.01 with Catalyst SocketWrench ActiveX (winsock OCX) to implement a client/server application. All properties and functions works well but events will not fired. The same situtation existed in many activex control. I'll like to know if PB6.0 really work with ActiveX? Any information will be highly appreciated. Thanks. ...

Web resources about - PowerBuilder Bugs: Using VB ActiveX control (OCX) in PowerBuilder 6.0 - sybase.ole-ocx-activex

PowerBuilder - Wikipedia, the free encyclopedia
PowerBuilder is an integrated development environment owned by Sybase , a division of SAP . It has been in use since 1991, peaking around 1998 ...

Sybase PowerBuilder tool readied for Microsoft's .Net
... Win32 or newer style .Net development After several years of work, Sybase is ready to deliver on the final step in its plan to move PowerBuilder ...

Jim O'Neil (@jimoneil) on Twitter
Sign in Sign up To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content, tailor ...

Open Directory - Computers: Programming: Languages
about dmoz - dmoz blog - report abuse/spam - help the entire directory only in Programming/Languages Description Top : Computers : Programming ...

The HP Booth Staff (Goons) Owe Me an Apology
... when you might need to use it. For instance, when I was in the WinRunner world there were plugins for driving terminal emulators and powerbuilder ...

Contact Us - Sybase Inc
Thanks for visiting the 主页 section of Sybase.com. Here you will find information about Contact Us. For more information about Business Intelligence, ...

热门搜索 - 我的异常网
... 我的异常网 » 热门搜索 sdpnet2 移动【A111】其它用户原因鉴权失败,是什么意思啊 http:// 本网站服务器位于美国,受美国法律保护 MiniUI js 破解 powerbuilder ...

Mobile app security: Always keep the back door locked
The best way to keep mobile apps safe is to secure the services they connect to.

10 Tech Skills That Will Instantly Net You A $100,000+ Salary
... that let's developers run Java applications. Java is highly popular language for writing web apps and custom enterprise apps. No. 8: PowerBuilder ...

Top Ranked Articles
Top Ranked Articles - Free source code and tutorials for Software developers and Architects.; Updated: 23 Feb 2013

Resources last updated: 1/9/2016 4:07:59 AM