|
Hi, Stoyo
I have done according to your suggestion. Set the flowchartpro.dll as COMselfReg in the installer program, but it still cannot work.
And then when I debug this program, I found that the cause is that it cannot creat the FlowChart Object in the program in such follow code:
if(m_FlowChart.Create(NULL, WS_CHILD|WS_VISIBLE, CRect(0,0,0,0), this, IDC_FLOWCHART) == FALSE) { return (-1); }
After the program run the upper code, it return -1; so the object not created successfully, so the whole program cannot work.
And what we have done is as follow: 1) I had just put the flowchartpro.dll in the install program, and had set it as COMselfReg. Do we need to put some other files of the FCX into the install file? If we need, then what kind of files?
2) After we install our application program, when we run the command like follow: regsvr32 "C:\Program Files\Engineering Applications\UP2GUI-Setup\FlowChartPro.dll" it give out a box said that the DLL is regedit successfully.
3) And then we use the "Active X Control Test Container" tool of the VS2005 to test whether this dll is regidit or not. Firstly, we use the "File/ Regedit controls", and then we can find the flowchartx, and can regedit it successfully. And then, we use "Edit/ Insert new controls", and select the " FlowChartX Pro 4.1", but it give out a box said that "Failed to creat control: unspecified error".
So, you see, I really have no method to slover this problem, just hope your kind help.
Thank you very much!
|