04-07-2009 03:54 AM
In the past days I found a problem (or a kind of conflict) between DS_Open function and Microsoft WebBrowser ActiveX.
On my PC (Win XP Pro SP2, CVI 6.0 with a later installation of CVI RTE 8.1) it's easy to reproduce the problem:
- download the dsweb.zip example from here
- if you launch this example everything should work fine
- on the uir add a Microsoft WebBrowser Activex
- recompile the project and run it
- when you press "Get Web Page" you have a fatal error in RunUserInterface() function
could someone help me?
Solved! Go to Solution.
04-07-2009 10:03 AM
04-15-2009 01:36 AM
Thank you very much Mohan; your suggestion fixes the behaviour perfectly.
Now I have another strange problem in my application, that unfortunately is very long and complex...
After I call a DS_Open function I see the following problem:
04-15-2009 10:16 AM
I am not sure about the icon problem. You can check how these files look when you open the default directory in Windows Explorer. It is probably a system specific thing - but I am not sure.
About the other problem - I think this is because of threading model conflict. Try calling
CA_InitActiveXThreadStyleForCurrentThread (0, COINIT_APARTMENTTHREADED);
as the first call in main() before any calls to DS_Open or LoadPanel.