Exemplo n.º 1
0
int main(int argc, char **argv) {
    if (argc != 2)
        return(1);

    /*
     * this initialize the library and check potential ABI mismatches
     * between the version it was compiled for and the actual shared
     * library used.
     */
    LIBXML_TEST_VERSION

    example1Func(argv[1]);

    /*
     * Cleanup function for the XML library.
     */
    xmlCleanupParser();
    /*
     * this is to debug memory for regression tests
     */
    xmlMemoryDump();
    return(0);
}
Exemplo n.º 2
0
int _tmain( int argc, _TCHAR* argv[] )
{
	if( argc != 3 ) {
		return 1;
	}

	HRESULT h = CoInitializeEx( NULL, COINIT_MULTITHREADED );
	if( FAILED( h ) ) {
		std::cerr << "Unable to initialize COM, error is: " << h << std::endl;
		return 1;
	}
		
	bool res = example1Func( argv[1], argv[2] );

	if( res ) {
		std::cout << "msxslt test OK" << std::endl;
	} else {
		std::cout << "msxslt test ERROR" << std::endl;
	}

        CoUninitialize( );
	
	return res;
}