tosun's Q&A profile
Visual C# Custom Performance Counters WMI
I need to remotely access the values for custom performance counters. I can access them locally using System.Diagnostics.PerformaceCounter library, but I need to use WMI for remote machines, since they do not necessarily use the same domain. I can access the normal Performace counters using the WMI objects like: System.Management.ManagementScope() and ManagementObjectSearcher.Get() using an object query like Select * FROM ...Show All
.NET Development creating new Socket with IPEndPoint
Hi buddies, I am trying with a function which can send message to an ip and port using socket while running this application i am getting an exception as - "{"Only one usage of each socket address (protocol/network address/port)\r\nis normally permitted" }" Please help ... regards, Vinu the code like this, String IP will be like this - 192.168.1.6:5763 public void SendToIp( string IP, string Message) { try { string add = IP ...Show All
.NET Development 2 Connections? Why?
I have the following DataSet Object in the DataAccess Class. public static DataSet SearchAccount() { SqlDataAdapter DASearchAccount = new SqlDataAdapter(); DataSet DSSearchAccount = new DataSet(); SqlConnection Conn = new SqlConnection(strConn); DASearchAccount.SelectCommand = new SqlCommand(); DASearchAccount.SelectCommand.Connection = Conn; DASearchAccount.SelectCommand.CommandText = "USP_TestSearchAccount"; DASearchAccount ...Show All
.NET Development ADO.Net-Insert, Update, and Deleting Records
Everyone, I'm having a crisis inserting, updating, and deleting records in my DB using ADO.NET. I'm sincerely hoping someone, anyone, can help me with a solution. I've searched the forums and related resources and have not been able to come up with a fix. Here's the problem: I have a form with five text boxes and one combo box. The data set (DataSet1) and corresponding table adapter (TableAdapter1) were automoatically generated ...Show All
SQL Server Data Access to SQL Server 2005 from remote computer.
We have a program (Hindsite) that we're using on our LAN. It uses ODBC to access data on the server from client PC. Hindsite directory on the server is mapped drive on each client in the office. We would really like to be able to access the same program database on the server from the remote PC over the internet. Can SQL Native Client do that What would be the best way to accomplish it How to make this application to be able to acc ...Show All
Visual Studio Performance issue with VS 2003 debugger when on Win-2000 network
I have 2 separate networks. On one of those networks, the PC's are all Win-XP OS's. The other network is comprised of Win-2000 OS's. Both networks have VS .net 2003 and Intel Fortran 9.0. The CPU speeds are equivalent in the 2 networks. Both networks are 100 MB/s Our app is a mix of C++ for our GUI and Intel Fortran 9.0 for the code body. There is also use of C and STL. The same projects are carried on CD-Rom from one network to the other. O ...Show All
SQL Server Unhandled Exception in Management Studio
At work we run a large SQL Server 2000 database that is usually administered using Enterprise Manager. I recently started playing around with SQL Server 2005 Management Studio and have been encountering an interesting problem. Whenever I browse tables/views in the Summary window, and then select a table/view (by hitting enter or double clicking) Management Studio encounteres an unhandled exception (below). Oddly, this behaviour only occurs when ...Show All
Smart Device Development linking library for smart device in visual studio 2005
Hi, I am trying to create a smart device application in visual studio c++ 2005.The applications(Miracl) has libraries.When I compile the application as win32 console application (vc++2005) I able to compile it.But when I tried to compile the same application with smart device(visual studio 2005 using c++),i am getting linking errors lnk2001 and lnk2019 saying "unresolved external symbol" for all the functions.I am copying the err ...Show All
SQL Server Can we use User Defined Functions in Report Builder
In a typical Database, there are tables, views, stored Procedures, user Defined Functions. We could use tables and views in designing the Report Model. We cannot use Stored Procedures, I tried that. Please could somebody tell me if we could use User Defined Functions What if a view is already using a user defined function, is the function automatically includid in the Model Design Thank you, You can use SP of course. You ...Show All
Visual C# c# and internet Filtring
Sorry but I am not as well as you in English but try ... I am Iranian and here the Gov. has filtered many of sites (from Porn to politic or many Web logs) We try to Develop an application to break this limitation. Is it possible to use a Security Library or any things like this to get the raid of this filtering or do you know any solution with out using Proxy . if you have any suggestion Please tell me. thanks... ...Show All
SQL Server "Send Mail Task" Error.
I setup a "Send Mail Task" task and an SMTP connection objection. I ran the package and got this error: >>> SSIS package "Package.dtsx" starting. Error: 0xC002F304 at Send Mail Task, Send Mail Task: An error occurred with the following error message: "Failure sending mail.". Task failed: Send Mail Task Warning: 0x80019002 at Package: The Execution method succeeded, but the number of errors raised ...Show All
Visual Basic VB Dummy
I have inherited a vacation request form. In the start and stop dates there is a macro. Right now when somebody tabs onto the start or stop date a calendar comes up for the year 2000. You can change it and select any other date you wish but I would like the calendar to pop up with the current date. I am enclosing the macro below. Is there any entry I can insert or deltete to make this happen Thank y ...Show All
SQL Server Northwind Pivot issue
I tried using some code for the new pivot function in the "Inside Microsoft SQL Server 2005 T-SQL Querying" book. I was using the Northwind database but that was from a SQL 2000 database. There was an error that stated the database needed to be updated. I have looked all over the web and have not seen where to download the SQL 2005 Northwind & Pubs database. Anybody have the URL for this or is this not available Thank ...Show All
Visual Studio 2008 (Pre-release) DLINQ do not puts [] in "INSERT INTO" statement fields
Hello all! In DLINQ operation to add a new persisted object in a database, it do not put de [] qualifiers. If the column has a blank space occurs a error. Generated statement example: "INSERT INTO TableName (My Field1, My Field2) VALUES (@p0, @p1)" Thanks, and scuse my english! Vitor Nice workaround. I am not sure if this is the proper way to go. It would be better if DLinq does this automatically otherwise code is unnecessary cluttered (n ...Show All
Visual C# hooking other applications messages Challenge
Hi Hi i want to know when user changed the foreground Window .. So i want soemthing like a callback.. that will call me when windows is about to send a message to application that she now has focus.. Any ideea Any function to interop with or.. Please help guys! btw.. not threads allowed . You can use the GetForegroundWindow to get the handle of the window wich the user is currently working in. If you check this with an interval, you ca ...Show All
