|
Problem when I try to move my app to another machine |
Posted by Marlena on Apr-16-2013 03:27 |
|
Hi, Peter,
I posted two (sort of silly) messages in the General forum and haven't heard back yet so I am shifting to this one....
I am having some problems when I try to install my app on a different computer. I have added calls to OutputDebugString in my code so I can see my probes when running a compiled exe.
Currently the app fails on Set cd = CreateObject("ChartDirector.API") with the message "ActiveX component can't create object". This call occurs in the DoSafetyCheck method included in your demos, which I copied into my app.
I have verified that chartviewer.ocx and comchartdir.dll (for version 5.1) are both registered in the HKCR section on this XP box. I have also verified that comchartdir.dll and chartdir51.dll are in the same folder as the app using them (and the comchartdir.dll registry entry is correctly pointing at this folder).
I am puzzled. In my past experience this error has ALWAYS been about failing to register COM stuff. Can you think of anything else I can do?
Marlena
PS
As far as the 2 messages in the other forum, I misread the install instructions and tried to register chartdir51.dll. So that should just be ignored!
My other message was about the time stamps on the dlls and ocx. I was expecting the ocx to differ between 5 and 5.1. So I guess that can be ignored as well. |
Re: Problem when I try to move my app to another machine |
Posted by Marlena on Apr-16-2013 04:54 |
|
Since I posted the last message, I have learned more.
The ActiveX error goes away if chartdir50.dll is copied back into the app folder. I have seen this "fix" work on a win7 box and a XP box. Interestingly, when chartdir50.dll is missing on these 2 systems, the app fails on the CreateObject statement but gives difference error messages.
On my dev XP box, I have no chartdir50.dll and everything works as it should. So now the question is: why does the app think it needs the 50.dll when it is transferred to another computer (actually two other computers in this case)? |
Re: Problem when I try to move my app to another machine |
Posted by Peter Kwan on Apr-16-2013 12:44 |
|
Hi Marlena,
I have responded to your enquiries in the ChartDirector General forum. See:
http://www.chartdir.com/forum/download_thread.php?site=chartdir&bn=chartdir_general&thread=1365797561#N1366045404
The "chartdir??.dll" is always needed to run ChartDirector (chartdir50.dll if you are using ChartDirector 5.0, and chartdir51.dll if you are using ChartDirector 5.1). The exact version to use is determined by the version of "aspapi.dll". In ChartDirector 5.1, the file timetamps of the "aspapi.dll" and the "chartdir51.dll" should be the same, as one depends on the other.
If you find that you need to use "chartdir50.dll" instead of "chartdir51.dll", would you mind to double check if you are using (and registering) the "aspapi.dll" that comes with ChartDirector 5.1?
You mentioned on your XP box, there is no "chartdir50.dll". Is there "chartdir51.dll" (and the matching "aspapi.dll")?
Regards
Peter Kwan |
|