473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Unable to load DLL (uxtheme.dll)

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
Nov 20 '05 #1
6 6622
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" <el****@NOTSPAMMINGyahoo.co.uk> wrote in message
news:3f***********************@news.easynet.co.uk. ..
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

Nov 20 '05 #2
Cor
What is drSeries?
If Not drSeries.IsDBNull(2) Then
strUnits = drSeries.GetString(2)
End If


Nov 20 '05 #3
* "elziko" <el****@NOTSPAMMINGyahoo.co.uk> scripsit:
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.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
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" <el****@NOTSPAMMINGyahoo.co.uk> wrote in message
news:3f***********************@news.easynet.co.uk. ..
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" <el****@NOTSPAMMINGyahoo.co.uk> wrote in message
news:3f***********************@news.easynet.co.uk. ..
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


Nov 20 '05 #5
* "Tom Spink" <th**********@ntlworld.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #6
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
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bq*************@ID-208219.news.uni-berlin.de...
* "Tom Spink" <th**********@ntlworld.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Eugene | last post by:
Consider a system that has exe and dlls, how can i ensure that only the authorized .net assembly can work with my system. For example, consider your sys got an exe, that would use dll A, B, and C;...
5
by: Pradnyesh Rane | last post by:
Hi, I am encountering the following linker error on VC7. LINK : fatal error LNK1171: unable to load ole32.dll This error is only encountered for the "Debug" configuration. The project...
0
by: jrainey | last post by:
I recieve "LINK : fatal error LNK1171: unable to load ole32.dll" when compliling/linking my project some times Any one else have this problem. The file is in the right place and the output window...
1
by: K7211 | last post by:
Hi, I've been trying to use Visual C++.NET, but whenever I try to build a solution I get this error message, fatal error C1108: unable to find DLL: 'alink.dll' Does anyone know what causes...
0
by: M P | last post by:
Hi all, I developed a win32 dll that I access through a .NET wrapper assembly using a DllImport("dllname without complete path") attribute. I use this components in a couple of web applications...
0
by: anandp7890 | last post by:
How to install a UxTheme.dll file on Windows2000 Professional edition ? kindly, repond to thanks & regards anand
1
by: SmartPHP | last post by:
Hello friends, I'm using PHP with apache...my problem is i'm not able to load OCI8.dll....when i'm trying to make connection to database i'm not able to connect and it's not showing any error...my...
0
by: greg | last post by:
Hello, I'm having problems loading my MFC exported function from my C# Web service. I'm using the DllImport to load the dll and declare the function like the following: public extern static...
18
Ciary
by: Ciary | last post by:
hi all, it's my second question of today but since i'm stuck with this problem, i'm going to ask it anyway. i'm trying to convert an uploaded pdf file to a jpg, gif or png file. i want to use it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.