Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Createobj Pass license string farpoint spread
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Createobj Pass license string farpoint spread
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01375519
Message ID:
01375519
Vues:
152
Using VFP8 and creating an object in code that is based off the far point spread (fpoint.com) control version 8. If I just drop the control on a form, all is well. But if I create the control in code, it pops up a message box saying it can find the license.dat file. I contacted their support and they sent me a string to pass when creating the control in code, but no example in VFP how to do that.



The string they sent is (slightly changed since they say it is proprietary information):
L"Copyright (c) 1995 FarPointSpread"
My Attempts to date:
oSpread80=CREATEOBJECT("FPSpreadADO.fpSpread.6")
oSpread80=CREATEOBJECT("FPSpreadADO.fpSpread.6",'L"Copyright (c) 1995 FarPointSpread" ' )
oSpread80=CREATEOBJECT("FPSpreadADO.fpSpread.6",'LCopyright (c) 1995 FarPointSpread' )
oSpread80=CREATEOBJECT("FPSpreadADO.fpSpread.6","Copyright (c) 1995 FarPointSpread" )
All to no avail.

She just sent me this example for C++, but no foxpro
This is how you do this in VC6++: I do not have an example for fox pro.
 BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID,
CFile* pPersist = NULL, BOOL bStorage = FALSE, BSTR bstrLicKey = NULL) { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID, pPersist, bStorage,
            SysAllocString((OLECHAR FAR *)L"Copyright (c) 1995 FarPoint")); }
Thanks for any input.

Kirk
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform