G
Guest
Hi!
This was originally posted in microsoft.public.dotnet.xml, but I guess that
was the wrong forum. Sorry for the repost!
Anyway, I have a problem with my app which is mixed .NET and native code. The
problem is of course with the well-known buggy EnableVisualStyles.
Now, at first I called:
Application.EnableVisualStyles();
Application.DoEvents();
in the main method. My native treeview component then did not show any
icons. So, I removed the lines above and instead added a .manifest file and
my treeview worked as it should again.
But, since my app also uses IXMLDOMDocument2 I now have another problem -
Lo
hr = spRootNode->transformNode(m_spXSLDoc, &bstrSystemPropsHTML);
fails. HR is = E_FAIL.
I suspect that it has something to do with my manifest encoding which is
UTF-8. My app uses
hr = spDoc->loadXML(bstrSystemXML, &bLoaded);
which only takes UTF-16. However, if I change to UTF-16 in the manifest my
app won't start.
Anyone else had this problem? Any help appreciated!
Regards,
Johan.
This was originally posted in microsoft.public.dotnet.xml, but I guess that
was the wrong forum. Sorry for the repost!
Anyway, I have a problem with my app which is mixed .NET and native code. The
problem is of course with the well-known buggy EnableVisualStyles.
Now, at first I called:
Application.EnableVisualStyles();
Application.DoEvents();
in the main method. My native treeview component then did not show any
icons. So, I removed the lines above and instead added a .manifest file and
my treeview worked as it should again.
But, since my app also uses IXMLDOMDocument2 I now have another problem -
Lo
hr = spRootNode->transformNode(m_spXSLDoc, &bstrSystemPropsHTML);
fails. HR is = E_FAIL.
I suspect that it has something to do with my manifest encoding which is
UTF-8. My app uses
hr = spDoc->loadXML(bstrSystemXML, &bLoaded);
which only takes UTF-16. However, if I change to UTF-16 in the manifest my
app won't start.
Anyone else had this problem? Any help appreciated!
Regards,
Johan.