Hello again,
I want to clarify a bit what I actually did. For me, the expession "I tried to translate the code elements into C" means: I tried to find the methods in Labwindows/CVI
to reach the same result as in C++ on the MSDN homepage. Which is mostly the same when you filter an XML with an XSL in Java, Visual Basic etc. It is because
they use the same MsXML ActiveX.
So where is the problem?
Here is some part of the code:
//start codesCAObjHandle XSLTemplate;
CAObjHandle StyleSheet;(...)
//some codes, but those are all right, nothing error
(...)CA_VariantSetObjHandle(&StyleShtVariant, StyleSheet, CAVT_DISPATCH); //it sets the variable type of StyleSheet from CAObjHandle to VARIANT_OBJECTHANDLE
MSXML2_SetPropertyByRef(XSLTemplate, &errorInfo, MSXML2_IXSLTemplatestylesheet, CAVT_OBJHANDLE, StyleShtVariant);
(...)
//some other codes
(...)
// end codes
from this point I have the problem:
MSXML2_SetPropertyByRef method calls the CA_PropertySetByRefVEx method which drops the next error: The program caused a "General Protection" fault at 001B:77E69868.
Is there anybody, who is specialist in XSLT with AcitveX in Labwindows/CVI (7.1)?
Thank you,
Roland