Interfacing Visual Basic with XCas

Xcas devel: interface utilisateur/user interface

Modérateur : xcasadmin

Andrew Glassby

Interfacing Visual Basic with XCas

Message par Andrew Glassby » ven. oct. 13, 2006 4:28 pm

Could someone explain how I might interface Visual Basic (actually NSBasic) on my PDA with XCas? I'm lost I guess I have to stream the information into Cas.txt and then retrieve the result from Out.txt. But how do I get Cascore.exe to do its thing?

Kindest Regards

Andrew

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Message par parisse » sam. oct. 14, 2006 10:10 am

It depends which executable you are using. I can somehow answer if you are using cas.exe from xcasce.zip (on Xcas webpage). The binary cas.exe reads input from Cas.txt and outputs to Out.txt, so from your program you have to write to the file Cas.txt, run cas.exe, wait until it finishes and process the output. This is crude, so maybe you should look at how statsnow handles this and maybe ask its author.
http://statsnow.net/Symbolic/

Répondre