Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot create object of MT DLL Class
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01001310
Message ID:
01001362
Views:
14
You can't pass a parameter to the Init method of a COM object.

>
>
>*ClientAccess the DLL name
>obj = CreateObject("ClientAccess.CClientAccess","c:\testdata\")
>* I've made sure that the database and all tables exist
>* Init(lpcDatapath as String)
>function Init(lpcDatapath as String)
>   if vartype(m.lpcDatapath)="C" ;
>     and directory(m.lpcDatapath) ;
>   then
>     set path to (m.lpcDatapath)
>   endif
>   if file('testdb.dbc') ;
>   then
>     open database testdb.dbc
>     if dbused('testdb.dbc') ;
>     then
>       * use talbes code omitted
>     else
>       return .f.
>    endif && dbused('testdb.dbc')
>   endif && file('testdb.dbc')
>endfunc && Init
>
>
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform