Srid_CSF's Q&A profile
Visual Studio Express Editions How to get the size on disk of a file in c#
Hi I want to get the size on disk of a selected file in c#.By using FileInfo.Length i am able to get the file size.But i need " size on disk" in c#. Thanks in advance Thanks Chandu.Sanka The size on disk is returned by the FileInfo object or the StreamReader base object length property- it will get the value on how many bytes are available to read for that file as its true value. I'm curious why you need the other property (Size on disk) ...Show All
Visual Studio Express Editions Win32 application error
I'm trying to install Security Update for Internet Explorer (832894). When I go to run the program I get the error message update\update.exe is not a valid Win 32 application. What can I do to run this without this error message coming up Is there a particular update I need to install or change any setting on my pc There is really no telling but I can only assume that you are a person that would be considered aid. It appears as though you couldn't stave off taking my post personally long enough to make it to the end of my post. Perhaps you may have seen it for what it was. Last time I checked, elements of my post factored directly with the focus here. To clarify my expec ...Show All
Windows Forms How to get or read the last letter from a text box? - Vb.net or VS 2005
Hi I have a TextBox in a windows form to enter 10 digit number followed by 2 letters. (Ex: 304528929 GH ) I have a code (got from my other thread) to calculate the total of the above digits(3+0+4+....) and dividing the total by someother value to get the reminder . IT ALL WORKS FINE Also I have list of alphabets with equivalant value like below A = 3 B = 7 C = 1 H = 12 ........ ........ Z = 22 My question: If the reminder matches one of the above list , for example reminder from the above calculation is 12. So it matches with H = 12 . So If H is the last letter of 304528929 GH , then the user input is right. In Short : HOW DO I GET THE LAST LETTER (ex. 'H' in the above case) From the textbox and check w ...Show All
SQL Server Database Documentation
Hi guys, my manager asked me that to do documentation; right now we are using MSSQL SERVER 2005 Databases, here you assume I am new to make documents on any database but good idea about databases currently that data warehouse in development environment need to done this documentation before go on test environment . So that way you advise me to prepare a document. Here is my main concerned how to start and what things should we keep in mind while preparing document (what are measurements).if you any prepared documents could help to start or there tool we should use (power point) them. any help appreciated Hello - did you get everything you needed I have some more info on building your own documentor here: http://www.i ...Show All
Windows Forms Abstract UserControl?
Hi I have four UserControls that inherit from another UserControl, A. These 4 user controls contain a Label + another Control (LabelTextBox for instance). (The Label control is located in A (contains only this control)) All four controls have a method IsInputCorrect(). (This method also sets the background to red if input is not correct) I want to have this method abstract in A. But's that not possible because I can not set A as abstract. (The designer complains). If I set it to "virtual" in A, I need to implement the body. But this isn't really ok, because I dont have any input in A to check. The thing is that I want to do: // Check if fields are correctly filled in. // And focus the first incorrect one. private void CheckAl ...Show All
Smart Device Development Where is WM5 project type in VS2005?
I have seen several references to selecting Windows Mobile 5 as the project type when creating a project for that type of unit. Under Smart Devices, my VS2005 (standard) has 2003 PocketPC, 2003 Smartphone and Windows CE 5.0, which as I understand it is not WM5. I have also downloaded and installed SP1 which takes forever for me but it did complete just fine - the choices for smart device projects are the same Perhaps I just don't understand but if I want to target my new IPAQ 2495b with WM5, then that's what I want to select - just like it's mentioned. Thanks Unfortunately, that did not work. I still have PPC 2003, Smartphone 2003, and Windows CE 5.0 as the Project types. I installed the Windo ...Show All
Visual Basic Updating a dataset (Syntax error (missing operator) in query expression)
Hi all I keep getting a syntax error when I try updating my dataset. I can add and delete no problem it is just when I try to edit existing records. I have attached my update code below. Private Sub UpdateDataSet() 'Procedure to update the dataset if new record is to be added 'or existing one edited. Try Cursor.Current = Cursors.WaitCursor '------------------------------------------------------------------ Dim updateCommandBuilder As OleDbCommandBuilder = New OleDbCommandBuilder(daComplaints) '------------------------------------------------------------------ If CurrProcess = "ADDING" Then 'Create a new row and add to table. Dim newRowValues As DataRow newRowVa ...Show All
Visual Studio How can i attach files with generated exe?
Hello, I am a c# developer. I am using msbuild utility as per my requriement of project. I want to attach some text files as well as exe file with my Project exe file, The Project exe will be generated runtime using engine class's build project file method. when i run my generated exe than those file should be accesible by me. Has anybody having idea ragarding this Any kind of help is appreciable Thanks in advance Irfan Kothari ...Show All
Visual Studio Tools for Office Workbook.save() not behaving as expected.
I have a VSTO 2005 SE add-in for excel in which I need to programatically save the document on an event. When I tried workbook.save() to accomplish this the workbook gets saved with its temporary name eg "Book1.xlsx" in My Documents and doesnt pop-up a save as dialogue even with a document which is previously unsaved. I tried this with a word document and there the behaviour was as expected ie. it shows a save-as dialogue for a fresh document and doesn't when the document has been previously saved. Is there a workaround to avoid this behaviour As a crude workaround I wrote the following code. string path = workbook .Path; if ( String .IsNullOrEmpty(path)) { SaveFileDialog dialog = new SaveFileDialog (); ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I protect my code when distributing it?
Having read the FAQ. I noticed that in order to share your game creations (and lets face it, you can't get recognised without sharing your games), you need to send the other person the entire uncompiled game. This includes sourcecode, graphics, music, sound etc. etc. They then compile the code and download it to their xbox360 account and then only if they too are on the games creation program. My key worry here is that you send them everything you have just worked incredibly hard to create. Presumably they can then send this stuff on to whoever they please and god forbid, even sell it on! It strikes me that there isn't much incentive to distribute things this way. How is Microsoft going to prevent the above scenario Is there going to be a ...Show All
Software Development for Windows Vista Windows Software Development Kit (SDK) for RC1 For XP SP2
Hi, I am using Windows Communication Foundation (.net 3.0 RC1) on a XP SP2 environment. I would like to get hold of the svcutil.exe tool. However, I can't seem to find a link to the SDK for .net 3.0 RC1 for XP. The only links I can find are for Vista. Any help would be much appreciated. Regards Vikram try this url http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.1.cab ... http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.16.cab but last number can be incorrect. Nevertheless, start from first URL and change last number for download all. ...Show All
Visual Studio Team System Testing for diferent config files
I have some code that should throw some exceptions if config file is not written correctly. To test this I need to have different config files for different tests. Is it posible to do Thanks. Hmmm I have use something to simulate different config files, is not production code as it haven't been test enough, and I think I read something about any other option easier. For having different config files, you should execute your code in new application domain, as config files belongs to the application domain, but it can't be changed once the app domain is started, so I use some .NET code from Reflection, which allows to create new AppDomain, main properties of it I copied from the actual AppDomain, b ...Show All
Visual Studio Team System where can i see all the team projects i created
besides team explorer can list all the team project that i created, where can i find them on team foundation server or can i access them not only though team explorer thank you for help jiajia The Source Control Explorer will also list the projects on a TFS server. If you are looking for something else, you could create a custom solution to list them all outside of the TFS environment. -paul ...Show All
Visual Studio Team System Debuger fails when trying to debug on the team build server
Hi, I'm using Team build to build my code and so on. One of the task's in my team build script is to deploy the code, also the binaries to another location. The problem is that when I'm trying to debug my code on the team build server the debugger fails, because he can't find the new location of the binaries (he is looking in the default location). Who can I solve this problem Thanks in advance, Shmulik. ...Show All
Visual C++ Reading delimited data files using ifstream and getline? (sample erroneous code included)
Hey guys! I have a question about reading delimited text files. I have a file in the following format delimited by space: JAMES SMITH 0 6 7 14 0 9 4 18 BARBARA WILSON 7 6 12 2 1 16 18 15 JENNIFER THOMAS 11 4 7 19 15 14 MARY JOHNSON 1 0 JOHN WILLIAMS 2 5 4 5 5 1 7 The problem is that my code doesn't read all lines. For instance, the file that i'm reading contains 450 entries, while the code will only process half of that. The others are just skipped. The Code i'm using is provided bellow: enum stdColumn { stdFirstName = 0, stdLastName = 1, stdStudentID = 2, stdNumOfCourses = 3, stdCourse1 = 4, stdCourse2 = 5, stdCourse3 = 6, stdCourse4 = 7, stdCourse5 = 8, stdCourse6 = 9 }; int stdLoadData( ...Show All
