Importing and Using an ActiveX Control...

Gladimir

Well-known member
Joined
Mar 29, 2003
Messages
60
Location
San Diego, CA
I want to use an old pdqcom32.ocx control in a Windows Forms project. I have sucessfully imported the control using aximp.exe and now have a few dll files and the C# source code for the wrapper.

I have created a blank C# project in Visual Studio (2003) and added a Windows Form. What is the best way to go about actually using my control? I can add either the PdqcommLib.dll or the AxpdqcommLib.dll under References in the Solution Explorer, but I can find neither control in the .NET or COM tab of the Add/Remove Item dialog for the Toolbox.

Thats the main question here...

Out of curiosity, Id like to know more about the files created by aximp.exe. For example:

1. What is the difference between AxpdqcommLib.dll and PdqcommLib.dll?

2. What is the relationship of the StdType.dll created by aximp.exe to the other two dll files it created?

3. I know AxpdqcommLib.pdb is a program debug database, but what is its function? Does the file belong somewhere in particular? Is it optional?
 
Thanks! I have actually managed to get that far and things seem to be working to some degree.

Unfortunately, I may be having a problem with versioning in Visual Studio .NET 2003. Windows XP Explorer file Properties reports Windows/System32/Pdqcom32.ocx as version 3.21, which corresponds to the current patch level.

The component listbox of the COM tab you mentioned reports my control as being Version 3.1, which corresponds to the pre-patched version.

However, the trouble I am seeing may be completely unrelated to this. I would offer more information, but I am still investigating the issue and making sure Ive dotted my Ts and crossed my Is before posting another question.

Basically, I set the "Emulation" property to a particular value from a drop-down list in the Properties box, but I get the following error message:

Invalid property value. Method AppPdqcommLib.AxPDQComm[DISPID=-2147418105] not found.

Now I recall a BAS module containing all the constants and such that accompanied this control. I am researching that to see if I need it in my C#/.NET app, and if so, how to import it as well.
 
Back
Top