Scott Croisdale's Q&A profile
Visual Studio Not able to Edit a file under source control without checking it out
Hi, I want to edit a file under source control without checking it out. When I try to Edit a File...I get a Pop Up with 3 buttons - checkout, cancel and help. So...I went to Tools->Options->Local Files and unchecked the "Use Read Only Flag for the Files that are not checked out" but still not able to edit the file without checking out. Thanks in advance for the help!! Can you clarify what you're trying to do In SourceSafe, "edit" and "checkout" are synonyms. You may be thinking of other source control systems like CVS where "checkout" means "create a local enlistment." ...Show All
Windows Forms Slow performance of DataSet.Clear() in .Net 2.0?
I want to clear the DataSet and call GC to release memory from my application when the form is closed. ds.Clear(); ds.Dispose(); GC.Collect(); GC.WaitForPendingFinalizers(); However, I found that performance of calling Clear() is very slow for large DataSet in .Net 2.0, any workarounds or solution to this performance problem Thank you very much!!! I would remove the GC.WaitForPendingFinalizers() because it will cause the program to stop until all the trash is taken out. GC.Collect will get the job done in the background. ...Show All
SQL Server NoLock vs ReadPast
I have been experiencing deadlock errors with two stored procs that I am using. SP1 is a read query that gets all unprocessed orders (status = 0) SP2 is an insert query that inserts new orders (Status = 0) uses a transaction. I have a multithreaded application and once in a while the read query (SP1) will try to read a new row that has just been inserted but not committed yet hence the deadlock arises. If i use a hint "With(NoLocks)" this will be a dirty read and still read the uncommitted insert from SP2 - is this correct Where as if I use hint "With(ReadPast)" this will now only read committed rows and hence the deadlock should not arise - it will not read any uncommitted rows - Correct So I think th ...Show All
Visual Studio Tools for Office Can I get the text Range in smart tag Recognize2 method?
I am writing a smart tag recognizer for Word 2007. In the Recognize2 method, I want to get the location of the text so I can recognize different tokens in different parts of the document. However, I can't find any way to get a Range object in the Recognize2 method. Is this possible For example, I only want to recognize certain tokens when they are in a table. If I could get a Range object for the Text, I could use Range.Information[wdWithInTable] to test if the text is in a table. What about deleting the private smart tag and not replacing it with anything That's what I would do if the smart tag doesn't match my criteria to create a public smart tag. Would that cause the Recognizer to re-fire and crea ...Show All
Windows Forms Generic User Controls?
After working on a windows forms project I realized many of my screens do very similar tasks on completely different types of data. I then decided to create a generics based user control to make reuse of all of this common work based on the Type of object the specific instance of the control is using. After I build my control I realized I no longer get any design-time support for my class. It doesn't even show up as a user control available in the tool bar. This makes sense, since an instance of a generic type needs the type defined in order for it to be rendered on the screen, however is there any way I can add this generic type to my windows form and specify its type and then be able to use the design-time support of modifying this co ...Show All
Visual FoxPro convert text files to certain format
Hi there, I would like to convert the text file to a text file but with "" and ; to separate the data. How could I do that Pls advice whether foxpro itself can do that or need to convert it to dbf in order to get the format. Need urgent help. Thanks. Dave Delgado pls note COPY TO command Creates a new file from the contents of the Table not from a Text file what espirit wants to do is convert from a Text file to another Text file with delimited with " and , espirit wrote: I have a file as below format. EQ0003929307:18:22M01208162520NLR105.5 904 NL0004 000000.0010/07/06 I would like to change it to e.g.: "1234","abc","xyz" format. How could I do that for th ...Show All
Software Development for Windows Vista Virtual drives (iso games)
Im having problems finding programs that will give me virtual drives to install my ISO game files I've tried Demontools/alcohol120/virtualclonedvd and none work :( i want my games! help please :D Good afternoon - Bill Wesse from Microsoft here (just joined as a moderator). I will be testing VirtualCD against Vista RC1 tomorrow (product link is http://www.virtualcd-online.com/ ). Please note that the H+H Software GmbH (VirtualCD vendor) Knowledgebase currently indicates that use of their product on Vista is 'at your own risk' until the final release of Vista. Regards, Bill Wesse ...Show All
Visual C# Exception opinions?
I'm just busy writing a dialog box which needs a property to be set before ShowDialog is called. In the OnLoad, I'm checking whether it's been set and throwing an exception if it hasn't. Question is: which exception is most appropriate I'm leaning towards InvalidOperationException. Of course, I could change the dialog's constructor to take the value as an argument, but I've got a notion that dialogs should provide a parameterless constructor --- is that right, or did I dream it The dialog cannot usefully instantiate a default instance of the class whose properties it is modifying, and it would not make sense for the dialog to be displayed without a properly instantiated class. It is up to the calling process to create an instance ...Show All
SQL Server Database Question
Is there a minimum number of operating system files you need when creating a database in 2005 What do you mean by operating system files Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server Error got when cube is processed!!
Hi all, When i process the Cube, i get the following error message <Batch xmlns=" http://schemas.microsoft.com/analysisservices/2003/engine "> <Parallel> <Process xmlns:xsd=" http://www.w3.org/2001/XMLSchema " xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance "> <Object> <DatabaseID>ASP</DatabaseID> <CubeID>Patient Care</CubeID> </Object> <Type>ProcessFull</Type> <WriteBackTableCreation>UseExisting</WriteBackTableCreation> </Process> </Parallel> </Batch> Processing Dimension 'Medical Provider' completed successfully. Start time: 7/16/2006 11:47:16 PM; End time: 7/16/2006 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Scaling my Skybox
Hi guys i hope you can help me with my simple problem. I use the following code to draw my skybox: public void Draw() { Matrix[] transforms = new Matrix[myMesh.Bones.Count]; myMesh.CopyAbsoluteBoneTransformsTo(transforms); foreach (ModelMesh mesh in myMesh.Meshes) { foreach (BasicEffect effect in mesh.Effects) { effect.EnableDefaultLighting(); effect.View = View; effect.Projection = Projection; effect.World = mesh.ParentBone.Transform * Matrix.CreateTranslation(Position); } mesh.Draw(); } } Whats my problem My problem is that my skybox is too small. So how can I scale my skybox or in common how c ...Show All
Internet Explorer Development IE 6 and 7 bug, page does not load after IFrame download
I need to send a download and monitor it's progress to be able to build the rest of the page correctly. This is what happens: The user clicks the download link. Main page refreshes. Title and main menu of the main page are shown The IFrame code with the actual download link is printed, and the download begins PHP waits with sending the rest of Main page, it waits for succesful download or timeout before giving more output. Here the problem starts, after the download completed or timed out, PHP continues to send the rest of Main page but IE won't display it. When you save the page in IE it will refresh the page and save ALL the content, even the content provided after the download which it wouldn't display. There are no security messages. ...Show All
Visual C++ Duplicating System::String assignment in another string-like class
One can create a System::String using the syntax: System::String ^ myString = L"A string literal"; Is it correct to say that this is equivalent to: System::String ^ myString = gcnew System::String(L"A string literal"); which is assigning the reference to another created system string If so, what System::String ^ constructor is being evoked to the right of the assignment operator ( = ) Is there a way I can diplicate this ability in my own string-like class and, if so, how einaros wrote: This will work pretty much as specified in the C++ standard, I suppose. The rvalue will be attempted matched to one of String's constructors, and if no direct matches are found, the rvalue itse ...Show All
Visual Studio Express Editions How can I get results from string formatted formula?
How can I get results from string formatted formula EX)Dim ExampleFormula as string = "((6/2)*5)+2-3+1" Then how can I get results from that string formatted formula I've tried it manually by referencing Java Stack Calculator source, but it was much harder than what I'd thought. Is there any easier way to get it done (such like data parsing) or better example source based on VB Express If you just want to evaluate math forumulas, see http://mmofx.com/codedetails.aspx A=402 . ...Show All
Visual Studio Express Editions Timer won't fire
I have a timer on form1 with the timer_tick set up like this: Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick teaTime = False MessageBox.Show("End timer") End Sub In a module I have: Public Sub Transition1() Form1.Timer1.Enabled = True teaTime = True Dim st As Integer = 0 Do While teaTime ...Show All
