Type: Posts; User: A.Russell
Search took 0.01 seconds.
October 25th, 2012, 10:58 PM
If not every student has a location, why don't you just allow that property to be nullable, or have a default value?
October 25th, 2012, 03:24 PM
Have an application that needs to read and analyse numerous text files. Each file will only be about the length of a chapter in a book. I am using StreamReader to load the text. Each text will be...
October 25th, 2012, 03:10 PM
If you read a file as a stream, it can be as large as you like. I searched for a size limit to MS SQL's nvarchar, and couldn't find one.
When it comes to displaying your text, you will be...
October 2nd, 2010, 07:44 AM
I switched to using TableAdapterManager.UpdateAll(), which wraps the changes in a transaction. However it is still very slow.
490 rows took 3 minutes, 4 seconds to update.
Is there anything...
September 28th, 2010, 11:32 AM
Thanks for the reply, TechGnome. I will try your suggestion and post back.
I was opening and closing it like that to try to prevent the transaction from being promoted to DTC, though as you can...
September 26th, 2010, 08:33 AM
I am developing a .NET 4.0 application that connects to a remote MS SQL database.
Calling tableAdapter.Update() on each table is very slow. From what I have read on the Internet, updating the...
After adding multiple rows to a DataGridView, how do you update the database with ALL of the new rows?
I am using the data componenents from VS2008. I have a DataGridView, BindingSource and...
June 22nd, 2007, 10:07 PM
Thank you Philip and Wizard, that really clarified the correct implementation of static member variables for me.
June 22nd, 2007, 07:02 AM
Thank you, that nailed it.
Just wondering, is there no way to set a static variable within the class itself?
June 22nd, 2007, 06:45 AM
I don't understand. The pointer is set in the GetInstance() method (if it hasn't been already). Why do you set it to zero, and where?
Here is my singleton:
// ***** Gravity.h *****
June 22nd, 2007, 06:22 AM
#pragma comment( lib, "libname" )
(include the relative path if it is not in the main application folder -or set Additional Library Directories in the properties dialogue)
June 22nd, 2007, 04:54 AM
Finding clear examples of singleton patterns isn't hard, but I am having trouble implementing them. Mainly, is there a way to set one at class level or am I completely off track?:
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.