swingme's Q&A profile
.NET Development Internal .Net FrameWork Data Provider Error 12.
Hi, I am using .Net Framework 2.0. And for accessing data Oledb data provider. This is used in a multi-threaded windows service. I am getting the following error on a select query. The stack trace is as follows. Internal .Net Framework Data Provider error 12. at System.Data.ProviderBase.DbConnectionInternal.CreateReferenceCollection() at System.Data.ProviderBase.DbConnectionInternal.AddWeakReference(Object value, Int32 tag) at System.Data.OleDb.OleDbConnection.AddWeakReference(Object value, Int32 tag) at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) at System.Data.OleDb.OleDbCommand.ExecuteScalar() at File_Transfer.clsDataAccessObject.GetCellValue(String strSql) Sarah ...Show All
Visual C# How to show a form inside another form?
Hi all, I'm a Borland Delphi developer and I'm trying to become a C# developer too. With Delphi, I can show a form's content inside a panel that is contained in the Main Form. I don't need an MDI application, because I show one child form at time and I don't want the MDI child window's System Menu (think to Microsoft Outlook). Is there a way to make this with C# and Microsoft Visual Studio 2005 Udhaya Kumar D wrote: U can try a UserControl. Create a UserControl and drop it inside ur form. Thanks for the quick response. If I have two UserControls, how can I show them in an Panel (or similar) in the Main Form at runtime ...Show All
Windows Forms Tab order Problem
In the Tab pages collection the order are work fine but when i load the form the Tab pages order are changed what is the solution... for example page1 page3 page2 This is a know bug. You need to remove the tabpages from the tab page collection and add them back yourself. TabControl1.TabPages.Clear() TabControl1.TabPages.Add(TabPage1) TabControl1.TabPages.Add(TabPage2) TabControl1.TabPages.Add(TabPage3) ...Show All
SQL Server insert only time in sql server database
hi, i want to insert only time in my sql server database.but when m try to insert time in database it takes time+default date. i want to eliminate this default date. plz any one know this then tell me. Regards, shruti. Can't be done Huh. I was seaching for the answer to this today. Alright, I can deal with having the default date in there. But what really confuses me now is that all of the existing values in this column in this database are only the time value. Existing asp pages (which both create and update these records) seem to have no problem just putting the time in there. No acrobatics. Now, I'm using an UPDATE query, and they're using an ADODB.Recordset object. I guess that makes a difference 1 ...Show All
Visual Studio Express Editions Simple program to test RS232
Hi Guys! I'm really new on this... I heard about visual basic but to be honest this is my first time in programming. Well I decided to download and install Microsoft Visual Basic 2005 Express Edition and I have some questions: This version of VB is free to use (visual basic 2005 express edition), can I create alot programs Other question, is a good program for beginners Last question: I download and installed Visual Basic 2005 Express Edition to learn about programming and to create a simple program to test RS232 with my printer controller...I want to know if it is possible to do this with visual basic 2005 express edition. This is what I'm planning to do... I'm looking for a simple program to test RS232 with my printer controllers. He i ...Show All
SQL Server Adding Row Numbers to Flat File Source
Hi, I was wondering if it was possible to add an identity column to a flat file data source as it is being processed in a data flow. I need to know the record number of each row in the file. Can this be done with the derived column task or is it possible to return the value of row count on each row of the data Any help on this is greatly recieved. Cheers, Grant Grant Swan wrote: Jamie, Sorry, I'd had a previous link open from the same website and was looking at this which had some resemblence to what i wanted to do: http://www.sqlis.com/default.aspx 93 As apposed to the link i'd clicked from your post. Apologies and i'll mark your post as an answer also. Its been a bad day and i've got so many SSIS ...Show All
Visual Studio is it possible to programmatically dock a tool window?
I'm trying to figure out if it is possible to programmatically dock/tab a tool window the same way that windows such as Solution Explorer and other builtin windows are docked when they are first opened. I've tried CreateLinkedWindowFrame, but this doesn't seem to do quite what I want. It does allow multiple windows to be tabbed together, but it creates a floating frame. I would like to be able to add my tool window into the existing tool windows that are already docked the first time it comes up. Any ideas SetFramePos didn't work for me either. What did work was: windowFrame.SetProperty((int)__VSFPROPID.VSFPROPID_FrameMode, VSFRAMEMODE.VSFM_MdiChild); The other frame modes are: name ...Show All
SQL Server Stored Proc - Calling a Remote Stored Proc
I am having trouble executing a stored procedure on a remote server. On my local server, I have a linked server setup as follows: Server1.abcd.myserver.com\SQLServer2005,1563 This works fine on my local server: Select * From [Server1.abcd.myserver.com\SQLServer2005,1563].DatabaseName.dbo.TableName This does not work (Attempting to execute a remote stored proc named 'Data_Add': Exec [Server1.abcd.myserver.com\SQLServer2005,1563].DatabaseName.Data_Add 1,'Hello Moto' When I attempt to run the above, I get the following error: Could not locate entry in sysdatabases for database 'Server1.abcd.myserver.com\SQLServer2005,1563'. No entry found with that name. Make sure that the name is entered correctly. Could anyone shed some light o ...Show All
Software Development for Windows Vista I have a problem..
hi I am working in a project. Acc. to my scenario, a worker fills a form and then manager approve or reject the worker's request but after the worker fills the form, manager cannot reply the request immediately. The workflow should wait the response of the manager. How to do this break without a problem and how to continue the workflow from that point. Please help me. Here are more explanations : I've removed the threadpool code which is interesting but not mandatory here. : public void RequestAdd(int x, int y) { Guid instanceID = WorkflowEnvironment.instanceId; int result=x+y; // we encapsulate the result in the Event argument; specifying the workflow is important ...Show All
Visual C++ Question about const_cast
Here's round two of my silly questions. How come this compiles: ---------------------------------- int main (int argc, char * argv[]) { const int test1 = 5; const int test2 = const_cast<const int &> (test1); return 0; } ---------------------------------- But this does not. ---------------------------------- int main (int argc, char * argv[]) { const int test1 = 5; const int test2 = const_cast<const int> (test1); return 0; } ---------------------------------- Error 1 error C2440: 'const_cast' : cannot convert from 'const int' to 'int' j:\test\main.cpp 4 ---------------------------------- I definitely have the latest version of VC++ Express Edition this time. Oh. In the dr ...Show All
SQL Server SSRS 2005 - "Server Error in '/Reports' Application."
When trying to open the reports server \\servername\reports we are getting an error page titled "Server Error in '/Reports' Application." The server has been restarted, and as this is a new deployment, there has been very little access for individuals to make changes. Any ideas on how to resolve the problem Thanks in advace After getting the above message, I replaced the referenced 'machine.config' file with the 'machine.default' file and shutdown/restarted services. No change. Thanks for any help ...Show All
.NET Development TCP socket does not detect client initiated disconnect (CLOSE_WAIT)
Hi all, I'm having some problem with a client server communication. The problem is, that the server does not seem to detect that the client has closed connection until it tries to send something to it. The session is stuck in CLOSE_WAIT state, even though I have done everything I could find in the MSDN to detect the Disconnected state... This is, what my Disconnected function looks like: private static bool Connected(Socket c) { try { if (!s.Connected) return false; if (!s.Poll(-1, SelectMode.SelectWrite)) return false; bool BlockingState = s.Blocking; s.Blocking = false; SocketError errorCode = SocketError.Success; s.Send(new byte[1], 0, 0, SocketFlags.None, out errorCode); s.Blocking ...Show All
Visual Studio Express Editions Click on Link Label "vb 2005"
HI I won't do do the following thing... When I'm clicking on LinkLabel that must open Internet Explorer, with for example " www.microsoft.com ". How can i do this Thanks! Hi, try it with the following code: Private Sub LinkLabel1_LinkClicked( ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked Process.Start(LinkLabel1.Text) End Sub Andrej ...Show All
SQL Server Full Text Search Weighted Question
Hello, I have the following query: USE test SELECT new.[key], new.rank, test_Class.Manufacturer, test_Class.Model, test_Class.Title, test_Class.Description FROM test_Class INNER JOIN FREETEXTTABLE(test_Class, (Manufacturer, Model, Title, Description), 'Logan') AS new --CONTAINSTABLE(test_Class, (Manufacturer, Title, Description), 'Logan Magnolia') AS new --FREETEXTTABLE(test_Class, (Manufacturer, Title, Description), 'Logan') AS new on test_Classs.Class_ID = new.[key] ORDER by rank desc I want to have the search work so that if the word logan is in the Manufacturer Column it has a higher rank than if it apeared twice in the description. Basically I want to weight the colomn instead of specific words in the search, which I know how to do. A ...Show All
Smart Device Development dll files
i make dll file for serial driver that will load by another program, it was written by C++ and Assembly when i use it on windows 98 it work very good but when i decide to use it on windows xp there is an error message appeared and it doesn't work so what i can do what is the best solution and is i can change any settings of windows or not thanks This forum is smart device development related. Since your question is not related to smart device development, it's off topic here. If you’re having a hardware issue, please contact hardware manufacturer or reseller. If you having an issue with 3rd party software, please contact respective software manufacturer or reseller. Otherwise please post to relevant forum or news ...Show All
