|
Hi.
I'm working on some code to extract colors from an Image. I have this part done (http://test.roob.dk/dk/tests/colors.aspx[^]) Is there any way, to group colors into known colors / nuance (ex. red, orange, brown, blue)?
I would like to be able to find images with eg. red colors. At the moment, I'm converting colors into nearest web color. This will give me 256 unique colors. I can do this by finding images based on numeric R, G and B values + fill percent rate, which is not 100% reliable.
Thanks in advance
Carsten Petersen, Denmark
|
|
|
|
|
hello
i have acrystal report
in section1 and section 4 i have textbox
i want from the application by acode in run time to write in it atext
thats that to change textbox1.tex in run time
the report is connect to dataset but not to database
your help please
|
|
|
|
|
hello there,
iam a bit new to programming
i need to aquire the user names that are on my network from the server files...how can i do that !
i have been reading alot and came up to DirectorySearcher and other stuff but iam really confused and cant understand a thing
can someone explain a bit ?
|
|
|
|
|
Look at my Thread up above [^]
It has sample data of how to pull data from Active Directory.
If you have any questions let me know and I will try to answer.
|
|
|
|
|
Hi ,
Need some clarifications on the memory usage in dot net.
I did a small application with only button controls in th ewindow using WPF. It took around 80 MB when seen in task manager, but the similar application in MFC takes much lower memory.
Can anyone explain what is making the .Net WPF application to take this amount of memory usage.
Thanks
|
|
|
|
|
MFC does buttons without any decoration. Those are the old buttons that don't require much processor-power when drawing. You can use the same WinAPI's from .NET if you want those buttons.
MFC was built when the buttons were gray, simple and dull. WPF is a different kind of beast, and it needs to load a decent drawing-library to support all the modern kind of buttons. A WPF-button can have all kinds of effects that the old buttons didn't have. Thus, the newer ones look better, but that comes at a price
I are troll
|
|
|
|
|
I have been digging in my bookmarks, found this post[^] from "The Old New Thing".
It doesn't go all the way up to the WPF button, but it gives a nice impression of the complexity involved.
Sidenote; not everyone needs the graphical power that the WPF provides. You might want to read this article[^] to decide what the best option would be
I are troll
|
|
|
|
|
.net works very differently to traditional compiled applications, and you have to remember that and don't carry forward assumptions you have from working with MFC to your .net work.
When a .net app runs it loads up the CLR, parts of the framework and a lot of background stuff. This stuff is used within your apps process to provide all the .net managed services. What you have to remember is that much of this stuff is actually only loaded once for the system, no matter how many .net apps you have running, but task manager still includes this stuff in the working set for each app so it effectively duplicates the number of times it is reported.
The other thing you have to remember is that because .net is a managed language it's memory is treated very differently. the CLR reserves blocks of memory for your .net app even if you aren't using them (This is to provide various efficiency improvements when you do start using memory). Also, the CLR garbage collector will generally only run if there is pressure on the OS to get more available memory, this means that you are saving CPU cycles by not running the GC unnecessarily, so often it will look like your app is using a lot of memory, when in reality most of that memory is unused and ready for collection but just hasn't actually been collected yet. When the OS does require more memory, the GC will run and gather up anything unused by your app.
There's an article here that talks about some of these points (it's quite old and based on .net 1.1 I think but it's points are still relevant):
http://www.itwriting.com/dotnetmem.php[^]
You can also read more about the GC here:
http://msdn.microsoft.com/en-us/library/0xy59wtx.aspx[^]
Simon
|
|
|
|
|
Hi friends,
Please help me how to connect SQL Server 2000 and ASP.NET Website Administration Tool.
Problem is :
There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.
The following message may help in diagnosing the problem: Unable to connect to SQL Server database.
Venkata Narasa Reddy Kunam
v.narasa@gmail.com
9949948355
|
|
|
|
|
Please Check you connection string which you are using to connect with you database.In connection string you must specify database user ID and password.
|
|
|
|
|
Hello:
I have a WebBrowser control in a .NET Form. I am loading HTML code into WebBrowser.DocumentText from an external source on a local intranet system. The HTML mimics code that appears elsewhere on the intranet, and includes links to images. (The HTML is located in a database and sometimes is not *complete* HTML code. Loading the code from a live site is not an option.)
My issue is that some of these images are on parts of the intranet that require NTLN authentication. IE will handle these pages just fine--however, when I try to load them from inside the WebBrowser control, the authentication ("Connect To") form opens up asking for username and password. If the enduser puts in their username and password, the images load--otherwise, they do not.
My question: Is there any way I can utilize or extend WebBrowser (or any other Windows Browser library) so that the authentication form does NOT appear, and the images load form their source, as they would in IE? I could just parse the code to have the images removed altogether, but that would take away from the overall intent of the project.
Thanks in advance.
|
|
|
|
|
Hi,
I've got a problem when using an activex control in ASPX pages. I script the standard HTML object tag within the ASPX page,such as
<object classid="clsid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" id="robot" > And it works fine in HTML pages. But when I try to use it in ASPX pages, it doesn't show anything but a object tag. It generates an error "object doesn’t support this property or method" whenIdebug it.
I've also tried to copy the source code of error ASPX pages and saved it as a HTML file, then it works fine again. So I wonder if the something of the ASPX prevents the activex control.
Can someone help me with this problem? Thanks!
|
|
|
|
|
I've solved this problem. Just change the security settings of the Internet, it will work fine.
|
|
|
|
|
2 Vista machines: building a Windows app on machine 1 and deploying to the test server works fine.
Building the exact same app on machine 2 and deploying to the same server fails.
It won't launch. In the Windows Application log shows .NET Runtime 2.0 Error Reporting and system.io.fileloadexception.
Both machines have the same .NET Runtimes installed so, I'm thinking this could be a security issue with machine 2?
Any thought?
Thanks.
|
|
|
|
|
UsielDR wrote: In the Windows Application log shows .NET Runtime 2.0 Error Reporting and system.io.fileloadexception.
UsielDR wrote: Any thought?
I think I would want to know that the message in that exception is.
|
|
|
|
|
Hello,
is it possible to find a window with the WIN32 API Function "FindWindow" in a VB.NET Service ?
If I search in a VB.NET Service with the Function Win32API.FindWindow, I don't find the specified Window. FindWindow sets the windows handle to 0. If I make the same search in a Form, FindWindow find the specified Window.
'I need following Function
' FindWindow searches for a window by class name and window name.
hWnd_Alarm = Win32API.FindWindow(txtClassName_Alarm, txtWindowCaption_Alarm)
Can anybody help me ?
Thanks
Best Regards
kl_ko
|
|
|
|
|
Bad news - services run under an entirely different desktop than the one the user sees. Screen savers have their own desktop, as well as the Ctrl-Alt-Del screen, and others...
Your service can't find the window because it doesn't exist on the same desktop as the service is using. To change this, you have to go into the Service Manager and change the LogOn type of your service to run as the Local System, then enable the checkbox that says something like "Allow service to interact with Desktop".
Though, services should NOT be interacting with the desktop anyway. What would your service do if noone is logged on???
|
|
|
|
|
Hello Dave,
thank you for your helpfull answer ! It has taken me another step towards my target.
Yes, Windows Vista isolates services in Session 0 and runs applications in other sessions.
In XP my code is running, because services run in Session 0 along with my application (casual).
usefull link to a white paper:
http://www.microsoft.com/whdc/system/vista/services.mspx
I think I found some information to realize it under Vista (maybe !?) with the CreateProcessAsUser function to create a process in the user's session.
But at the moment I don't know if this is the right way ! Mainly in regard to security.
Anymore I didn't find an example.
How do you feel about this?
Thanks
Best Regards
Kl_ko
|
|
|
|
|
I'm wondering why you're even bothering with a service at all. I have no idea what your app is doing, so this is just a guess, but since you're interacting with the users session, wouldn't it better to write a "normal" application and launch it out of the Run key?
|
|
|
|
|
the request for procedure 'tablename' failed because 'tablename' is a table object
'fill the dataset using default values for datatable names etc
dataAdapter.fill(ds)
'detach the sqlparameters from the command object,so they can be used again
pls I could not figure out this server error
|
|
|
|
|
Hi All,
I have located a Mutex system in code outside my control which causes execution to be delayed until after the current process has completed (Sequential).
Inside this Mutex system events are raised, which seems to lead to events being raised only after the current process has completed.
This doesn't help my unit tests as the events which should supply the results only occur after the test has failed.
So my question is, is there any way to suspend the thread and free the Mutex (Which i have no direct access too), so that it can do it's work, raise it's event
etc. before continuing?
I've tried Thread.Spin(), Thread.Sleep() and Application.DoEvents() as ways of suspending execution, but they don't seem to work.
Any thoughts?
Regards
Tris
[Edit: The Mutex appears to be owned by a different thread to the executing one.]
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
modified on Thursday, May 7, 2009 5:25 AM
|
|
|
|
|
Sorry, I don't understand your description. But you could use a named
Mutex. So you could get access to this Mutex. The Mutex can just be freed
by the thread owning it. Is this the thing you mean with no direct access?
|
|
|
|
|
Sorry, by No direct access i meant no refference to the object. It's internal to a class in a 3rd party lib library.
I've succeeded in avoiding the issue with a retry loop and Thread.Sleep().
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Hello, I have a .Net desktop application that was originally written using Visual Studio 2005. The code has been converted to Visual Studio 2008. When I build .msi for the converted application, I'm getting the following error:
Assembly 'Microsoft.Practices.EnterpriseLibrary.Data.SqlCe, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' uses 'System.Data.SqlServerCe, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' which has a higher version than referenced assembly 'System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' f:\MyApp\Lib\Microsoft.Practices.EnterpriseLibrary.Data.SqlCe.dll
Apparently, I couldn't find the dll System.Data.SqlServerCe with version # 9.0.242.0
Please advise how this error can be resolved.
Thanks in advance
|
|
|
|
|
crazylad wrote: Apparently, I couldn't find the dll System.Data.SqlServerCe with version # 9.0.242.0
What this error means is that the Microsoft.Practices.EnterpriseLibrary.Data.SqlCe assembly is trying to reference System.Data.SqlServerCe, Version=9.0.242.0 but your main application assembly is trying to reference System.Data.SqlServerCe, Version=3.5.0.0. It's not that it can't find the assembly, it's because you can't load references to two different versions of the same assembly at the same time in one app domain.
The simplest thing to do is make sure everything references the same version of the assembly.
This is weird I know, but:
9.0.242.0 is the old version used by SQL CE 3.1
3.5.1.0 is the newer one used by SQL CE 3.5
Which version of the enterprise library are you using? Perhaps you need to upgrade to the latest version of the enterprise library which I assume will target 3.5.1.0 of the SQL CE assembly.
Also check the app.config file and see if there are any config elements that target the SQL CE assembly and check the version numbers listed. You could try making sure that they are all 3.5.1.0
Simon
|
|
|
|