Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Is it possible to instantiate an Cdialog object (Read 3448 times)
LGuzman
Guest


Is it possible to instantiate an Cdialog object
Dec 27th, 2005 at 5:16pm
Print Post  
Hi there:
Is it possible to instantiate an CDialog object inside a box?

I'm using flowchart pro ver. 2.4

Thanks. Roll Eyes
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Is it possible to instantiate an Cdialog objec
Reply #1 - Dec 27th, 2005 at 6:20pm
Print Post  
Hi,

FlowChartX cannot work directly with MFC classes, but you could implement the dialog as an ActiveX control and use a bsAxControl box style to host the control.

If you use C++, it will be easiest to create an ATL "composite control" using the ATL control wizard. That kind of controls are based on dialog resources and let you host Win32 UI elements in them.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
LGuzm
Guest


Re: Is it possible to instantiate an Cdialog objec
Reply #2 - Dec 29th, 2005 at 1:10pm
Print Post  
I'm trying to use an activeX component.
fpoint spread7
www.fpoint.com
I've got the license string
but It doesn't work (I obtain "Activex control not instantiate")

Thanks!!

the code is the next one:

[size=10][color=Blue]
m_FlowChart.SetAxLicenseKeys("FPSpreadADO.fpSpread.5","XXXXX");
Box1.SetAxControlId("FPSpreadADO.fpSpread.5");
Box1.SetStyle(bsAxControl);
IUnknown* punk = Box1.GetAxRawPtr();
FPSpreadADO::_DSpreadSheetPtr spread(punk);
punk->Release();[/size][/color]
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Is it possible to instantiate an Cdialog objec
Reply #3 - Dec 29th, 2005 at 1:26pm
Print Post  
If you don't specify the runtime license key, the spread control should try to load using the design-time key, which is stored in the registry or on the file system. So try running that code on your development PC without the SetAxLicenseKeys line,  so you can see whether the ProgID "FPSpreadADO.fpSpread.5" works at all.

If it loads fine without setting the runtime key, but cannot load with the key set, you might have got a wrong key. If it does not load at all on your development PC using only the design-time key, then the ProgID might be wrong.

Please check that and let me know what happens.

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