Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX Control Problems

Status
Not open for further replies.

Panthaur

IS-IT--Management
Jul 26, 2002
78
US
Hi all,

I have developed an Active X control for use in an application. This control reads a pattern file and displays it on the screen. When I first developed the control, I goofed a bit and added a usercontrol to a standard EXE project. It worked perfectly, until it came time to split out the ocx into it's own project.

Basically, I added the OCX to it's own project, and set all the appropriate settings, including binary compatibility, etc, but when I tried adding it to my EXE project and whenever I do, the who EXE project completely CRASHES! Then I get the lovely XP screen telling me I had a memory exception error.

Does anyone have any clues what I did wrong?

Thanks,
Panthaur
 
Are you trying to add the ocx project to your exe project(Goto Menu, click 'File', click 'Add Project...' and select your ocx project)? This way you can run and test your project and save them both as a group project.

Or are you compiling your ocx and trying to reference it in your project?
 
I tried doing both the things you suggested and the ocx locks up the system either way I try it. The only way it works is if I load the user control directly into the EXE project, but I still can't compile and run the EXE as a stand alone app.

Panthaur
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top