473,769 Members | 4,303 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.IsDBNu ll(2) Then
strUnits = drSeries.GetStr ing(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.DllNotF oundException' occurred in
system.windows. forms.dll
Additional information: Unable to load DLL (uxtheme.dll).
The program '[364] Eatec.RDB.MainI nterface.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 6636
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.Ena bleVisualStyles ()
--

Cheers,

elziko

"elziko" <el****@NOTSPAM MINGyahoo.co.uk > wrote in message
news:3f******** *************** @news.easynet.c o.uk...
Every time I use to run my project it was fine. I jave just added three
lines of code:

If Not drSeries.IsDBNu ll(2) Then
strUnits = drSeries.GetStr ing(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.DllNotF oundException' occurred in
system.windows. forms.dll
Additional information: Unable to load DLL (uxtheme.dll).
The program '[364] Eatec.RDB.MainI nterface.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.IsDBNu ll(2) Then
strUnits = drSeries.GetStr ing(2)
End If


Nov 20 '05 #3
* "elziko" <el****@NOTSPAM MINGyahoo.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.Ena bleVisualStyles ()


"uxtheme.dl l" 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.Reflecti on Master "

==== Converting to 2002 ====
Remove inline declarations
"elziko" <el****@NOTSPAM MINGyahoo.co.uk > wrote in message
news:3f******** *************** @news.easynet.c o.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.Ena bleVisualStyles ()
--

Cheers,

elziko

"elziko" <el****@NOTSPAM MINGyahoo.co.uk > wrote in message
news:3f******** *************** @news.easynet.c o.uk...
Every time I use to run my project it was fine. I jave just added three
lines of code:

If Not drSeries.IsDBNu ll(2) Then
strUnits = drSeries.GetStr ing(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.DllNotF oundException' occurred in
system.windows. forms.dll
Additional information: Unable to load DLL (uxtheme.dll).
The program '[364] Eatec.RDB.MainI nterface.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**********@n tlworld.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.Featu re.IsPresent(OS Feature.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.Reflecti on 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**********@n tlworld.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.Featu re.IsPresent(OS Feature.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
1816
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; how do you ensure, other people cannot create a dll D, that has the same interface, from being invoke from your exe. Considering, your exe is created to dynamically load the dll, for future extensibility, meaning, as new dll comes, you don't need...
5
6053
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 successfully compiles/links in "Release" configuration. Any help is welcome.
0
1464
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 displays the lin Searching C:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\lib\ole32.lib: when I use th /verbose:lib linker option so it's not a matter of the linker not find it as the 1171 code implies, Rather the linker is crashing...
1
5582
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 this error and how I can fix it? Thanks in advance.
0
993
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 I'm working on. In both applications these .net wrapper assembly and win32 dll are deployed in the respective application virtual directory bin subdirectory. In one of the 2 applications everything works fine but in the other one I get the...
0
903
by: anandp7890 | last post by:
How to install a UxTheme.dll file on Windows2000 Professional edition ? kindly, repond to thanks & regards anand
1
1981
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 oci8.dll is present in my extensions directory and i have uncommented that...
0
981
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 int MyFunction(); and in the MFC dll it is exported like the following:
18
33000
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 as a background image. the problem isn't uploading the file, it's converting the file from pdf to an image. first, i tried to use imagick. so i installed ghostscript and imagemagick. but then the problems began. i searched 4 days to find a way to...
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10208
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10036
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7404
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5294
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3558
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2812
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.