Solved

utility to read or convert a .vbx (16 bit) to 32 bit .ocx

Posted on 2001-09-04
6
453 Views
Last Modified: 2012-06-21
Hi,
I have a few VBX and OCX(16 bit)which I am not able to attach to my project.
Is there a utility to convert 16 bits vbx / ocx to 32 bit??

Regards
Omer
P.S. Even if you know of a code viewer for them let me know.
0
Comment
Question by:omerfarooque
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 43

Expert Comment

by:TimCottee
ID: 6452772
Simply put, no there isn't a way of doing this. 16 bit controls may only be used in a 16 bit container. Likewise 32 bit controls require a 32 bit container. If you don't have the source for the controls (I assume they are third-party controls) then you are likely to be out of luck.
0
 

Author Comment

by:omerfarooque
ID: 6452855
Hey TimCottee
Ok if I cant convert them can I atleast view their attributes / properties and methods. I have been trying to add these vbx's as controls in a test form but am not able to as it just says cannot load ----.vbx to the project, continue loading?
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 6454936
You could try loading them into a VB3/VB4 project if you have either disks available...
0
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 

Author Comment

by:omerfarooque
ID: 6455444
Tried that, but it gives me the same error. I ahve just got the vbx, I am not sure whether a vbx would require a dll or a something like that to make it loadable. Sure dont need it in the OCX world.
Could it be that I need something more that the vbx file to load the control?
0
 
LVL 22

Accepted Solution

by:
rspahitz earned 25 total points
ID: 6457607
Normally VBXs are stand-alone, but there's no guarantee.

Did you ever have them working?  Is that system still available?  If so, load VB3 there and add them, then check the properties (although I don't think you have direct access to their methods like you do now with the "intellisense".)
0
 

Author Comment

by:omerfarooque
ID: 6530155
Hey
After lots and lots off looking around I found out that there was a concept called Thunking but it can only be used for Dlls and that too when the scource code is available.
So I am accepting the last comment as ana answer as I want to close this.
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question