Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Question about publish programs with FlowChart. (Read 3534 times)
Joanna
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: May 15th, 2006
Question about publish programs with FlowChart.
Nov 22nd, 2006 at 1:59am
Print Post  
Hi, stoyo

I have another question again.

The application program that we build with the FlowChart now work well, and we needed to make the others in our company can use the application program that we build, so I build a setup program for the application program.

But, when I setup this program in the other computers, the application program cann't work well. It only can work on the computers that have install the FCXsetupPro.msi before.

So, my question is that, what special things I need to do when I build setup programs for the application programs that used the FlowChartX?

And how can the other computer can run the application program without install the FCXsetupPro.msi? Our company had only bought 4 developer licenses and the source code.

Thanks!

Only after the computer also had setup FCXsetupPro.msi,
and only the computer setup your
  
Back to top
 
IP Logged
 
Joanna
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: May 15th, 2006
Re: Question about publish programs with FlowChart
Reply #1 - Nov 22nd, 2006 at 2:01am
Print Post  
PS: I have put the flowchart.dll into the setup program, but after install the setup program, the applicaiton program still cannot work in the other computers.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Question about publish programs with FlowChart
Reply #2 - Nov 22nd, 2006 at 6:22am
Print Post  
Hi,

You will need to register the flowchart.dll as a COM control. Just mark the dll file as a COM self-registering dll in your installer project, and MSI will load the control and call its self-registration method when you run the installer. That will add the FlowChartX CLSID and path to the dll in the registry and the application should work fine then.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Joanna
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: May 15th, 2006
Re: Question about publish programs with FlowChart
Reply #3 - Nov 23rd, 2006 at 8:01am
Print Post  
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!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Question about publish programs with FlowChart
Reply #4 - Nov 23rd, 2006 at 10:59am
Print Post  
When using the Create() method to create FlowChart instances dynamically, you will need to specify the FlowChartX runtime license key. Contact me by email if you wish to know it. Otherwise, if you place the control on a form/dialog, the resource compiler embeds the runtime key in the form resources and then you don't need to specify the key yourself.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint