Eric J. Johnson's Q&A profile
Visual Studio Express Editions Numeric Problem
Hello, I am currently writing a gemetric multigrid solver as an exercise at univeristy. Until now i have developed the solver with gcc. But I want to port this project to Visual C++ 2005 Express. My Problem is that exacty the same code compiled with gcc give me the right results. But if i compile it with Visual C++ the program runs but do not give me the right results. The solving process is iterative so the defect is getting smaler with every i ...Show All
Visual C# Timeout expired in SqlCommand.ExecuteNonQuery (insert) for SQL Server 2005
Hi, I am upgrading from VS2000 & SQL Server 2000 to VS2005 & SQL Server 2005. One of my massive programs has an exception after a lot of inserts to a certain table during insert via SqlCommand.ExecuteNonQuery: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. trace: at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnectio ...Show All
SQL Server Looking For Examples Of Stored Procedures in C# or VB.Net.
Hi, Does anyone have any links to examples of stored procedures written in C# or VB.Net instead of T-Sql. I'd like to see how it looks and works. Thanks! Ken. There are several examples available if you installed the samples and documentation. They are located in the C:\Program Files\Microsoft SQL Server\90\Samples\Engine\Programmability\CLR by default. ...Show All
Windows Forms Question about ClickOnce
My scenario is the next: I deploy my application to my clients with ClickOnce, but my clients can modify the code of the application (adding new attributes to the classes), and can personalize the user interface. How I can deploy a new version of my application to my clients without breaking the changes of my clients I need help. ...Show All
Visual Studio Express Editions ActiveForm question
Ok, I know that the ActiveForm object returns the, well, active form. But what about the active form's controls I can't access those because they don't appear as one of the ActiveForm's objects, and when I try to compile like that it says that the property doesn't exist. So how can I access the controls of the active form Please help! The ActiveForm property returns a Form reference because it can be any type of form. Y ...Show All
Visual Basic VBA and missing tab characters in ReadLine from Scripting.TextStream
Hi When I try to read a line of text from a Scripting.TextStream object with the ReadLine method I see that any tab characters that were in the original file have been deleted. They have not been replaced with space character(s). This mucks up my ability to parse the line of text. I tried playing with the Format argument but this didn't help. Does anybody know how to solve this Many thanks in advance Dim FSO As New Scripting.F ...Show All
Visual C++ socket programming-receive() function
Hi, When executed the following,The receive() is returning 18 bytes of data(p=18). But the buf variable is having only 14 characters. SO, i am getting assertion error at i=14 .Can anybody help Here m_connectsocket is an object for class derived from CSocket. void CSockMFCDlg::onreceive() { char buf[256]; Sleep(5000); int p=m_connectsocket.Receive(buf,256); if(p==SOCKET_ERROR) MessageBox("Error in receive",NULL,MB_OK); else { ...Show All
SQL Server Performance Test Info
I'm looking for a source of performance information for SQL Server (Express, though I assume it's the same). I need to know how going from 1,000 x 1000 byte records to 100,000 x 1000 byte records will affect CRUD response times. I recognize there's always the "it depends"; I'm hoping there are some sources of baseline performance metrics out there that I can extropolate from. Any guidance on this would be appreciated. Thanks! ...Show All
Visual Basic Drawing Lines on a form
Ok I've given up trying to draw on a user control ! that seems a right mess seems very buggy to me! So i've transferred my code to drawing on a form surface and it all works ok But!! i have to do it twice for it to work I single step thru my code and can actually see the lines being draw on a Black surface then right at the end the form is repainted with its background colour and all my lines vanish! I've tried re-ordering my code around , s ...Show All
Visual Studio Newbie who's lost on ReportViewer? *confused*
I'm new to VS 2005 and the reporting tools in general. I've tried implementing the steps in the various tutorials (like the ones on gotreportviewer.com) but the more things I try to more confused I get. I don't *think* that what I'm trying to do is difficult but I can't get it to work for the life of me. I have a Stored Procedure that does 4 things. It creates a temp table, it queries several different tables and then inserts those records into ...Show All
Windows Forms Requesting Help
Hi I have one application which is windows installer package (.msi ) i have unpacked that using "wise for windows installer " and i can see inside that dlls ocx and exe files .. and this application is devolped in VB.Net what ...Show All
Windows Forms IIS 6 .NET DLL usercontrol download
Something is preventing the success of downloading a usercontrol in my web page. Yet when I look in my log, it shows a 200 success call to my page and the dll, yet when I look in my GAC (local machine or remote), the DLL was neve ...Show All
Windows Forms Please Help
I am trying to deploy an application to our web server and I get the error Cannot Continue. The application is improperly formatted. Contact the application vendor for assistance (I am the vendor). This is the details: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727 ...Show All
SQL Server sp_executesql, actual sql ?
Hi Guys I pick up the following in a profiler trace. exec sp_cursorexecute 197, @P1 output, @P2 output, @P3 output, @P4 output, 'PSRF_REPORTING_FOLDERS', 'Jan 1 1900 12:00:00:000AM' Normally to find the actual sql that executes i go up in the trace until i find the relevant cursor prepare. In this case the one for 197 cursor prepare. But this time around i cannot find it, these are app servers connected so for all i know the cursor could be p ...Show All
Visual C++ Win32 DLL ??
Hey I create a Win32 DLL with ATL support in Visual Studio 2005 and i compile the dll and everything works fine on my computer there has Visual Studio 2005, but when I tried to run the dll on a machine there does not had VS 2005 i get a error 'Please reinstall the application' I think it has something to do with version of msvc*.dll, but i 'm not sure, if it is how do i set the properties in VS 2005 . To work with older version of msvc*.dll ...Show All
