Search:
Namespaces
Discussions
.NET v1.1
Feedback
XP visual style problem (bug?) when COM dll used in C#
Messages
Related Types
This message was discovered on
microsoft.public.dotnet.framework.interop
.
Post a new message to this list...
Asko Telinen
Hi all.
I have a following problem.
I wrote a ATL dll using VC 6.0, which is kinda interface to the
database. In this dll, i got a selection dialog, which is whown to the
user by calling method, called "SelectProject". I tested the dll in vb6
(and even Notes 6.0) and it works just fine.
Now, in .NET (normal C# windows application), i imported this dll
normally by adding the reference to the project, which generated the
interop dll. BUT, the application crashes absolutely randomly when
windows xp visual styles are used in C# application
(EnableVisualStyles()) and the dialog from that activex dll is shown. I
mean randomly, cause i coudn´t find any rational pattern to reproduce
the error. Sometimes it crashes when trying to resize listview
columns(placed on dialog), sometimes when resizing dialog itself. Every
time the exception source is that generated interop.dll. Without visual
styles everithing works normally.
CAn anyone lead me to right direction or it´s just a bug in .NET
implementation (interop.dll generation) ?
thanx for advance.
Asko tTelinen
Reply to this message...
Wang Jie
I'm not sure if it will work, but just try: do not use EnableVisualStyles(),
write a .manifest file for you exe instead (which points to v6 of
comctl32.dll).
I have noticed slight difference in app UI between EnableVisualStyles() and
manifest before.
"Asko Telinen" wrote:
[Original message clipped]
Reply to this message...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com