ocx

How can I implement a Print Preview function for a C# object that doesn't expose a PrintDocument object?

[Disclaimer: I looked at the related questions and could only find relevant material for MFC. I don't do C++] I've got a C# .Net app that uses a OCX control via interop (the control being a viewer component for CGM images). The control exposes a Print() and PrintSetup() method but not a PrintPreview() method. There's also no exposed P...

How do I find where a missing reference is used in MS Access

I have a missing reference listed in my References list (in the VBA Code view). It's a reference to an OCX for a product that we no longer use. I'm fine with removing(unchecking) the reference, but I'm wondering if that is going to come back to bite me. Is there a way to find out in which forms/reports it might have been used? Is rem...

Vb6.0 How to bind a function/sub-procedure to external event as an event handler??

I need to construct a VB6.0 ocx that will be used as a plugin for some external VB6.0 applications This ocx contains several sub procedures that are supposed to work as event-handlers for some of the external events (External to ocx). The problem is, the users who use this ocx will only call one of my ocx sub procedures once and only ...

VB6 authored ocx on a .NET WinForm?

I've inherited a VB6 project that has a Form with VB controls (Label, etc) and Windows Common controls (Treeview, ImageList, etc), which looks like an ideal candidate for a usercontrol. I mentioned to a colleague the possibility of compiling it as an ocx ActiveX control to be used in a .NET WinForms project. They were slightly horrifie...

In VB6 is linking to a tlb generated from an ocx the same as linking to an ocx directly

The reason I am asking is I have an ocx that I don't want to register on the build machine but I would still like to build against it. If the tlb route is not the right direction any hints on how to accomplish this would be appreciated. Thanks ...

If I registered a TLB do I still need to register the ocx in order to compile?

I am trying to compile a vb6 application and I can't register the ocx files. In order to attempt to compile I have replaced the Object= lines in the .vbp file with Reference= lines to the TLB instead of the OCX. Now when I compile I get the following type of errors. Line 125: Class KimgpLib.KImgp of control KImgp1 was not a loaded cont...

Javascript OCX component return types

Noticed this strange behaviour with an ocx component. The component is normally included in the html-page with an object-tag. Using IE 7. Then it is called like so: alert(foo.getStatus()); This alerts for example "2" But when I call it like this, nothing is returned: s = foo.getStatus(); alert("> "+s); This alerts "> " alert("> "...

CMake to build an ActiveX OCX?

Hi All, I've been playing with CMake today, and so far it has been working great. Our project consists of +100 Visual Studio 2003 projects; we want to move to VS2008 and eventually VS2010 and also to support makefile build system (and maybe also Eclipse CDT)... so defining our projects with a CMake configuration files and generating pro...

Differences in OCX and DLL exception handling?

I know a (vc++) ocx is an ActiveX control, and a (vc++) dll is a collection of functions. I've found that being called from a vb.net application, the catching of some exceptions could behave differently if the exception is being thrown from inside the ocx or inside a function that comes in a dll. So my question is: From a point of view ...

Intercept ActiveX/COM methods

Hello. There is a VB6 application with VSFlexGrid control in it. On My WinXP machine OCX is here: c:\WINDOWS\system32\Vsflex7L.ocx I assume application calls AddItem method of this OCX to add new items to the grid. And I want to intercept this call and obtain data passed to AddItem method. The question is - what is the best way to do ...

What is the difference between AxInterop and Interop?

I've added an .ocx to the toolbox in VS. Two .dll's were created: Interop.NNN.dll, AxInterop.NNN.dll. What is each one? Are they both required? ...

Can COMCTL32.OCX work on a 32 bit IE8 running on Win7 64bit?

I have a legacy ASP web site that uses the treeview control from COMCTL32.OCX. It runs under XP 32 bit w/IE8 but it doesn't work under Win7 64 running either IE8 32 or 64. IE8 32 just shows blanks where the treeview should be and IE8 64 throws an error. I have tried registering the OCX on the Win7 machine but get an error (I'll post the...

AxShockwaveFlashObjects again

Hi I was cheating from a sample program to integrate with Flash. I able to add a reference to ShockwaveFlashObjects.dll to my windows app, but What is 1- AXShockwaveFlashObjects. 2- How to add a reference to it, or I have to create it using some tool? Thanks ...

Soap, HTTP, .NET, OCX platform for message exchage

Hello, We are entering custom project in which we need to build platform for other programmers in order to communicate with a specific device. This device is to be used on daily basis. We have firmware and RS232 communication protocol with them on very low level. We must ensure .NET, Java and Delphi programmers to access device (send co...

Pivot grid control for VB6. Does it exist?

I am looking for an OCX control that will work with VB6 and is capable of producing a grid like the one below. Any ideas? ...

COM OCX registration - 2 DLL's with same name

Hi, I have a native app that has an .OCX file that needs to be registered for it to be used in a .NET application. Now currently there's different versions of this .OCX on the machine. Can someone please explain how this can affect the registration of this new (updated) .OCX file registration? And how does my .NET app know which ob...

how to register ocx file using visual C++?

how can i find that ocx file (swf ocx flie) is registered or no? and if is registered wich version is that? and if is not registered how can i register taht? Please help me very thanks ...

VB6 Game Development

I am developing a game in VB6 (plz don't ask me why :) ). The storyboard is ready and a rough implementation is underway. I am following a "pure-software-rendering" approach. (i.e. no DirectX, no openGL etc.) Amongst many others, the following "serious" problems exist: 2D alpha transparency reqd. to implement overlays. Parallax imple...

how can i find in visual c++ that an ocx file (for example flash.ocx flie) is registered or no?

how can i find in visual c++ that an ocx file (for example flash.ocx flie) is registered or no? ...

How to create html tag to access a specific control in a VB6 .ocx?

I have an Active X control that contains 2 user controls. My issue is I need to create a web reference on 2 separate pages for each user control. They are not related and I don't know how to call one user control independently from the other. Is there an attribute for the object tag to reference the user control name? ...