Re: Embedding prolog engine in a dll

"Marwen Belkaid" <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
Well, looks like I should have waited a bit more before asking the
question :) I figured out how to do it :

int main(int argc, char *argv[])  {
 	char* av[50];
	av[0] = (char*)"food.exe";
	av[1] = (char*)"-x";
	av[2] = (char*)"mystate.exe";
	if(!PL_initialise(3, av))
		cout << "NO init\n" ;
	else
		cout << "OK init\n" ;
	cout <<  get_food() ;
	getchar();
	return 0;
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.