Ok thank you.
I pass a XML and all it is ok.
The last one question ( i hope ) ..
if i register the dll on my pc ( where i have also installed vfp9 ) it's ok.
If i try to register the .dll on another pc i have an arror 0x8004005.
what can i control on the other pc ?
Ty
I changed a little things...
The variable/parameter wdb ( in my opinion )
was the problem ... perhaps was empty...
so i changed :
func MY_FUNC ( wdb , wcmd )
and now i can open the db and excexute the select.
Now i'd like that the results of the select
will be returned in vb.net.
how...
i change the project name and the class name with
cmd_sql
the prg is :
DEFINE CLASS cmd_sql AS SESSION OLEPUBLIC
FUNCTION MY_FUNC
PARAMETERS wdb , wcmd
wopen = "open database " + wdb
&wopen
wreturn=&wcmd
CLOSE DATABASES all
RETURN wreturn
ENDFUNC...
I need vfp for other reasons...
I do a program : cmd_dll.prg
DEFINE CLASS MYPRGDLL AS SESSION OLEPUBLIC
PROCEDURE MYFUNC
PARAMETERS wdb,wcmd
open database &wdbd
wreturn=&wcmd
CLOSE DATABASES all
RETURN wreturn
ENDPROC
ENDDEFINE
I build Dll ...
i register...
I'd like to create a .dll in vfp9 and use it in a program in vb.net.
In my dll i'd like have 2 parameters : location of database and command to run.
example :
c:\db\database.dbc
select * from customers
and i'd like that my dll return the datatable with data.
Is it possible ?
ty
Luca
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.