Unable to load DLL (uxtheme.dll)

E

elziko

Every time I use to run my project it was fine. I jave just added three
lines of code:

If Not drSeries.IsDBNull(2) Then
strUnits = drSeries.GetString(2)
End If

and now when I run it I get the following error BEFORE I even reach my
MainForm_Load event:

first chance exception of type 'System.DllNotFoundException' occurred in
system.windows.forms.dll
Additional information: Unable to load DLL (uxtheme.dll).
The program '[364] Eatec.RDB.MainInterface.exe' has exited with code 0
(0x0).

I have tried removing the new lines of code and even restarting my machine
without any luck. Does anyone know whats going on?

What does uxtheme.dll do? I'm on Windows 2000 here.
 
E

elziko

Sorry, I had my debugger set to still throw exceptions even when theyre
handled.... and since I'm on Win 2000 I assume it didnt like:

Application.EnableVisualStyles()
 
H

Herfried K. Wagner [MVP]

* "elziko said:
Sorry, I had my debugger set to still throw exceptions even when theyre
handled.... and since I'm on Win 2000 I assume it didnt like:

Application.EnableVisualStyles()

"uxtheme.dll" is used for applying Windows XP Visual Styles.
 
T

Tom Spink

Problem solved? uxtheme is present on XP/2003, it's basically responsible
for drawing the visual styles on controls. If you are using Visual Style
dependant code, you'll have to check for the availability of themes.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations


elziko said:
Sorry, I had my debugger set to still throw exceptions even when theyre
handled.... and since I'm on Win 2000 I assume it didnt like:

Application.EnableVisualStyles()


--

Cheers,

elziko

elziko said:
Every time I use to run my project it was fine. I jave just added three
lines of code:

If Not drSeries.IsDBNull(2) Then
strUnits = drSeries.GetString(2)
End If

and now when I run it I get the following error BEFORE I even reach my
MainForm_Load event:

first chance exception of type 'System.DllNotFoundException' occurred in
system.windows.forms.dll
Additional information: Unable to load DLL (uxtheme.dll).
The program '[364] Eatec.RDB.MainInterface.exe' has exited with code 0
(0x0).

I have tried removing the new lines of code and even restarting my machine
without any luck. Does anyone know whats going on?

What does uxtheme.dll do? I'm on Windows 2000 here.

--

Cheers,

elziko
 
H

Herfried K. Wagner [MVP]

* "Tom Spink said:
Problem solved? uxtheme is present on XP/2003, it's basically responsible
for drawing the visual styles on controls. If you are using Visual Style
dependant code, you'll have to check for the availability of themes.

Maybe 'If OSFeature.Feature.IsPresent(OSFeature.Themes) Then...' works,
but I don't have an old OS to test it.
 
T

Tom Spink

Hi Herfried, Yes, it does. Tested on 2000 Server.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top