We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

.NET control and Windows NT 4.0

Thread ID:




6228 Aug 5,2003 09:28 PM UTC WinForms 0
Tags: FAQ
Administrator [Syncfusion]
Asked On August 5, 2003 09:28 PM UTC

I have built a .net control which works well in XP and Win 2000, but fails in NT 4.0 and throws an exception FileLoadException. Why would it fail in NT and work well in Win2000 and XP? In my code, where I am declaring P/Invoke functions, I have the following: [DllImport("uxtheme.dll")] static public extern int SetWindowTheme(IntPtr h, string s1, string s2); But the thing is I do not call this unmanaged function in my entire control's source code. Its just declared. That's all. Do you think this could be causing the problem of FileLoadException when I try to run it in NT 4.0 (because there is no uxtheme.dll in NT 4.0). Note that although I have declared it in my code, I never call this function at all. Do you think I need to remove this declaration from my code and rebuild it to run it in NT 4.0 box.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon