|
Unable to configure MFC (64 bit) project |
Posted by Pradeep on Jun-05-2014 23:15 |
|
Hi,
Win 7, 64 bit, Visual Studio 2013, VC++/MFC, trail version (no license yet)
I have downloaded and installed the ChartDirector for C++ [Windows 64 bit] onto my
machine. I was able to open the demos in the "mfcdemo" library without issues. However,
when I tried to configure my own "helloworld" type of project, I get this error whenever I
build "The program can't start because chartdir51.dll is missing from your computer. Try
reinstalling the program to fix this problem". I simply can't get around this problem...
although I tried all the approaches I could:
1. my MFC project has been set to "debug" + "x64". I have downloaded the 64 bit version
of chartdirector. I have set the include & additional library dependencies paths correctly...
one odd thing I found is that I say relative paths "../../lib/chartdir51.lib" & "../../include" in
the chart director demo directory.... no sure why the relative paths are not working in my
project.
2. I downloaded the "ChartDirector for ASP/COM/VB " installer and ran it. I tried all the
approachs specified in http://www.chartdir.com/forum/download_thread.php?
bn=chartdir_support&pattern=chartdir51.dll&thread=1365785302#N1366445717 ... not
sure if this is relavent to the issue at hand, but I tried.
3. I ran regsvr32 chartdir51.dll and I got an error stating "The module chartdir51.dll was
loaded but the entry-point DllRegisterServer was not found. Make sure that chartdir51.dll is
a valid dll or ocx file and then try again.
Is there a way to get around this and get chart director working?
thanks,
pradeep |
Re: Unable to configure MFC (64 bit) project |
Posted by Peter Kwan on Jun-06-2014 00:23 |
|
Hi Pradeep,
When you develop and run a program in C++, you need three things:
1) Compile the program. To do this, you need to include header files. For ChartDirector, it is
"chartdir.h".
2) Link the program. To do this, you need to include the library to link. For ChartDirector, it
is chartdir51.lib.
3) Run the program. To do this, you need to put "chartdir51.dll" in the library search path of
your executable.
From your error message, both (1) and (2) are successful. Step (3) is not successful,
probably because "chartdir51.dll" is not in the library search path of your executable.
To solve the problem, please copy "chartdir51.dll" to the search path of your executable.
For example, if you have configured your executable to run at "Debug/x64", please copy the
"chartdir51.dll" to that directory. Alternatively, you may copy the "chartdir51.dll" to
system32, which should be in the default library search path of all the executables in
Windows.
Hope this can help.
Regards
Peter Kwan |
Re: Unable to configure MFC (64 bit) project |
Posted by Pradeep on Jun-06-2014 08:43 |
|
Yes, I got it working; thanks for the quick response |
|