EnableVisualStyles.manifest loadxml transformNode

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
Johan,

This may not answer your question, but just so you know, using MSXML
from managed code isn't supported.


Mattias
 
Hej Mattias!
Thanks for the answer. Sorry, I think I left out some vital information =)

I have a managed app, that has a managed control which wraps a native
component. It's the native component that uses loadxml and transformNode.

I'm currently think of just removed any enablevisualstyle support just to
get passed this thing.

Any suggestions?

// Johan.
 
Back
Top