Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Createobj Pass license string farpoint spread
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01375519
Message ID:
01375526
Views:
7
I don't think you can do that in VFP this way.
Why can't you keep control on a form? You can save it as a class and instantiate w/o making form visible.

>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
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform