Questions tagged [ocx]

An OCX is an an ActiveX Control derived from the OLE paradigm. It is based on the COM (Component Object Model) and DCOM (Distributed Component Object Model).

An ocx is an an ActiveX Control derived from the OLE (Object Linking and Embedding) paradigm. It is obviously based on the COM (Component Object Model) and DCOM (Distributed Component Object Model) specification.

These controls are not standalone applications, but modules usually available as DLLs that expose functionality through the property, method, and event interfaces.

382 questions
3
votes
3 answers

Unable to load VB6 OCX in Windows 7 Error 372

I'm working on an application developed for Windows XP SP3, using VB6. I'm currently in the process of getting it to work on Windows 7, but am encountering a problem with one of our custom OCX files. When attempting to load a form that contains an…
Jack Smith
  • 713
  • 3
  • 9
  • 19
3
votes
1 answer

Accessing an OCX or activeX with PHP

I know it is a not everyday issue. But we are trying to access an OCX with php code (not client). The php documentation has a COM object (http://ca3.php.net/manual/en/book.com.php). Does it work with OCX? I know that the php server has to be a…
David Laberge
  • 15,435
  • 14
  • 53
  • 83
3
votes
1 answer

Difference between .ocx file and a .Net Control

What is the difference between an .OCX file created in MFC or VB and a .Net control created in C#? Is it possible to use the .Net Control in a MFC application? I have a dialog in C# I need to use the same dialog in MFC.whether can I import the…
subbu
  • 3,229
  • 13
  • 49
  • 70
3
votes
1 answer

Creating an OCX control in C#

What are the steps which needs to be followed to create an OCX controls using C#. Can you give me sample coddes for the same . I need to use this control in MFC.
subbu
  • 3,229
  • 13
  • 49
  • 70
3
votes
1 answer

How can I register OCX after build

How do i set up a project to automatically register the OCX file that is created ? I think there's an option in the properties somewhere, but i cant find it... I'm using VS2010
Yochai Timmer
  • 48,127
  • 24
  • 147
  • 185
3
votes
1 answer

Application Defined Error Or User Defined Error - VB6

First, I need to clarify that this is NOT a VBA related question. This error is occurring on a release program of Visual Basic 6.0 that has nothing to do with MS Office. The program in question consists of an executable called "Color_Picker.exe"…
David
  • 61
  • 6
3
votes
1 answer

Where does MFC COleControl::DoPropExchange store persistent properties?

I have taken over maintenance of a legacy MFC OCX control in C++. The project is now in VS2013. I'm trying to understand the functioning of the DoPropExchange method. This method appears to be calling PX_?????(member) for nearly all the data…
JonN
  • 2,498
  • 5
  • 33
  • 49
3
votes
1 answer

Debug & Release version of OCX incompatible "Variable uses an Automation type not supported in Visual Basic"

I have a legacy OCX control built in VS2010 and used in a VB6 ActiveX EXE. When I register the debug version of the OCX and try to build it with VB6 I get the error If I register the Release version then the VB ActiveX EXE container compiles and…
JonN
  • 2,498
  • 5
  • 33
  • 49
3
votes
1 answer

How can I add an icon to an OCX made with Delphi so that it is visible in VB?

I made an OCX with Delphi 2007. Now my customer claims that there is no icon in his VB when he installs this OCX. How can I add such an icon to my OCX?
Uwe Raabe
  • 45,288
  • 3
  • 82
  • 130
3
votes
1 answer

how to use ocx control in asp.net

i need to use ocx control in my web application .. please tell me how to use it
user518342
  • 27
  • 2
  • 5
3
votes
2 answers

.NET COMException Interface non registered

I can't understand this. I want to use an OCX from this vendor http://www.mobyt.it/ to send SMSs. It is a dll and they provide usage examples in Vb, .NET, Visual C, etc. The exception I get is: System.Runtime.InteropServices.COMException…
vulkanino
  • 9,074
  • 7
  • 44
  • 71
3
votes
2 answers

VB6 UserControls: Differences between OCX vs. including in project

In VB6, a UserControl can be compiled to an OCX and then included in another project as a referenced component. Alternately, the UserControl source itself (i.e., CTL file) can be included directly in an EXE or DLL project. There is one curious…
StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
3
votes
1 answer

Case change of OCX control name in VB6

In VB6, when the project is saved, the case of the declaration of OCX control change in the .FRM so the source control report some changes that are not in fact : -Object = "{FDFCEE46-937A-11D4-B73C-00104BAFEBDD}#1.0#0"; "OmniTBox.ocx" +Object =…
Fabien
  • 458
  • 3
  • 17
3
votes
2 answers

DrawText draws Segoe UI font texts incorrectly

I encountered one problem with drawing texts using the Windows API DrawText call for the Segoe UI font: This image demonstrates the problem: the specified text is shifted a little bit to the right in the specified rectangle so the last character is…
TecMan
  • 2,743
  • 2
  • 30
  • 64
3
votes
2 answers

add functionality to compiled OCX

We have an old OCX, that used in old VB application. Both of them do not support by developer now. and source code also not available. OCX contains a function which calculate a value and now we have to change the formula of calculation. Is there any…
Ashian
  • 521
  • 2
  • 7
  • 22
1 2
3
25 26