Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Windows
 Charting and Real-Time Graphics Tools for Windows
 GCL included more than once.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

LarsOo

3 Posts

Posted - 29 Mar 2006 :  06:44:55  Show Profile  Reply with Quote
(excuse my english)

I'm new to QC and have a problem.

I'm developing a dll to an existing software developed where I work. The existing software uses graphics libraries for MFC to plot certain data. My module also need to use graphics libraries to plot some analysis in an own window. Do the problems arise in some way because the qc libraries are included in both projects? (the main software and the dll are two distinct projects)

The problems occur in the following way:
I call a method in my dll from the main program and a new page is shown with a graph nicely plotted inside.
1. When I move the mouse over the plot area I get an exception in wincore.cpp
2. When I move the mouse over the plot in the main program I get an exception in graphwnd.cpp

Let me know if more information is needed. I'm hoping that it's a common problem and easy to solve.

Using c++ and WIN-MFC-210.

quinncurtis

1164 Posts

Posted - 29 Mar 2006 :  08:29:57  Show Profile  Reply with Quote
I think you have correctly idendified the problem. You cannot have the GCL for MFC compiled into a DLL you are calling from a main program, and also compiled into the main program. The error that you describe would happen if instance data in the WCT32D.DLL was out of sync with calling program.

The only solution we can recommend is to only have the GCL in either your external DLL, or the main program, but not both. And to only place calls to our graphics routines from within your DLL, or from within your main program, but not interspersed between both.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07