KDX's Q&A profile
Visual C# writing into *csv file: inconsistent result
string cur_drive = c2.const2 ( ); // this is just the current drive ("D:") string pathq = cur_drive + " \\VFP_Projects\\Data\\Stoxx\\ " + symbol + ".csv"; File.Delete ( pathq ); using ( StreamWriter sw = new StreamWriter ( pathq ) ) { sw.Write ( response ); sw.Close ( ); } response is a string variable that contains a whole *.csv file downloaded from Yahoo. The trouble is: I find the file (a) deleted, (b) created, and (c) the very first line filled in 100% of cases. The rest of the file appears EMPTY in about 50%. I have to look into the file and repeat the operation which is a great inconvenience. Is there a way to improve performance Why does it happen How can I get a feedback as to th ...Show All
SQL Server error when connect to sqlserver from another machine
hi .. i install sqlserver and make app with vb6 using ADO to connect to the database and successfully i put that application on another pc on the network when i open it it says "can't login computername\guest" !! any help thanks in advance. It's hard to describe "domain controller" and related stuff in short words. I recommend you find some documents related to Windows Networks to read. Are you sure your client is running under the user account you created and you used that account to login to the server It means you may need to login the client Windows system and run your client app under that account. If you user Administrator or even logon the computer without a user/password, it won't work. ...Show All
Software Development for Windows Vista Reasoning behind CardSpace's secure desktop
The CardSpace's secure desktop is displayed in order to submit your card. I don't fully understand the reasoning behind the decision to disallow interaction with the desktop while selecting and submitting a card. Can anyone explain this What I'm most interesting in, is the fact that there is a Firefox Identity Selector plug in available at http://www.xmldap.org/ . This plugin, being based on Java, does not lock up the desktop. So, given that there may be valid reasons for having a secure desktop for identity selection, would that mean that any non-Microsoft identity selection solution will be 'sub-optimal' One of the advantages of building an identity selector for a particular Operating System is ...Show All
Visual FoxPro Shed any new light on VFPOLEDB directions?
Any info available on VFPOLEDB new versions or updates coming down the pipe I'm not holding my breath, but let me know if there is any info available...... Thanks Dan Ribar If there was anything that could be shared publicly it would be posted here: http://msdn2.microsoft.com/en-us/vfoxpro/bb264582.aspx Milind Lele, the VFP Program Manager, publishes a monthly letter with news.. ...Show All
.NET Development HttpPostedFile.FileName not fully qualified?
I use the following code in an aspx file to read the file name which I am uploading from the client PC onto the server; Dim MyFileName As String Dim MyFileColl As HttpFileCollection = Request.Files MyFileName = MyFileColl.Item(0).FileName The Filename value is simply the file name ("text.txt"). I want the fully qualified name of the file ("c:\temp\text.txt"). The documentation says this is what I should be getting but I don't Does anyone how I can get the fully qualified name of the uploaded file Thank You. I believe you need to use HttpPostedFile class. It will allow you to get info on the file and save the file....Check out the info on HttpPostedFile here. ...Show All
Visual Studio 2008 (Pre-release) WPF/E will be will be released in this third season?
anybody sure ...Show All
Software Development for Windows Vista hide buttons from workflowview
Hello! Does any body now, how can I access (delete/hide) Print Preview, Zoom level & Pan buttons which are located in the right bottom corner of workflowview Thx. No, the controls are a part of the WorkflowView and there aren’t any options to disable them. ...Show All
SQL Server Is there a free ms sql host?
I am looking for a free ms sql database for my programs, but i don't want to host it on my computer, because my web host does not allow servers to be run and people connecting to thme. SQL Express is free to download and use...but you would have to find your own host for it... http://msdn2.microsoft.com/en-us/sql/aa336346.aspx ...Show All
Visual C++ Inserting a char into textbox
Hi all need a l ittle help. I need to insert hexadecimal number as is into a textbox. I am using itoa to convert it to char but i dont know how to display it in the textbox. When i am inserting the char into the text box i get a convertion eror the i have tried to use .toString() on the char but then i get the ASCII value and not the hexadecimal character. I am using visual studio 2005. Will apritiate any help. ...Show All
SQL Server Space allocation for NULL
hi, what is the best method to know the space consumption by a table object is it DBCC showcontig another thing is i have a table named tbl1 and having 2 columns Id and name , when i put 5 records with name as null as below Id Name 1 NULL 2 NULL 3 NULL 4 NULL 5 NULL will sql server allocates space for null values if so how much Mat Hi it seems there is some confusion here to avoid that i will put the scenario more clear... Table Name-T1 columns-Name(Varchar(50)),Null select * from T1 Name NULL NULL NULL NULL NULL dbcc showcontig(T1) DBCC SHOWCONTIG scanning 't1' table... Table: 't1' (258099960); index ID: 0, database ID: 5 TABLE level scan performed. - Pages Scanned........................... ...Show All
Smart Device Development Help regarding DirectShow
Hi, Can any1 tell how to implement the DirectShow api with CameraCaptureDialog combined in a single appln Thanx in advance neither of these API are supported directly by .NET Compact Framework. You will get better support in one of the Windows Mobile newsgroups. Windows Mobile API : microsoft.public.pocketpc.developer microsoft.public.smartphone.developer Windows CE API : microsoft.public.windowsce.embedded General programming (not VisualStudio related) : microsoft.public.windowsce.embedded microsoft.public.windowsce.app.development Native compilers : microsoft.public.windowsce.embedded.vc ActiveSync : microsoft.public.pocketpc.activesync ...Show All
Architecture dataSet Vs DataReader
Hi All, I have one question regarding implementing data reader and dataset in my project. My project is a windows application with the database in a separate server. I have numerous records to be retrieved and processed.My application has many master data tables and has many transaction tables too. Is it a good approach to frequently hit database server to get the data using datareader or to get the data using dataset with minimal round trips. Which is good approach Please advice me on this. Thanks in advance. I agree that it depends on the scenario. Certainly if the data is being directly serialized into a different format then using datasets makes no sense. Also if you are just using the data for a mom ...Show All
Software Development for Windows Vista App Verifier 3.3 Stop code heap 0x13 in IE7
Hi, I am testing our AP in App Verifier 3.3. The AP uses html pages as the UI. I got the following error when start AP. But if I use normal page heap, the AP launches successfully. If I test it under XP and IE6 with full page heap, AP also launches well. This error is only happened with IE7 and full page heap test in App Verifier3.3. What should I do to fix this bug Pls help. Raff - < avrf:logSession TimeStarted =" 2006-12-11 : 18:10:07 " PID =" 4052 " Version =" 2 " > - < avrf:logEntry Time =" 2006-12-11 : 18:10:24 " LayerName =" Heaps " StopCode =" 0x13 " Severity =" Error " > & ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Re-focusing XNA game window
I am sure this is easy, but I am new to C# and having a hard time re-focusing the XNA window to the front after my splash screen is done.... when the splash screen goes I need someway to call something similar to this.focus....Help please =).. Thanks..... dczraptor wrote: Couldn't you just display your splash screen _inside_ of your XNA app That could be a solution, however I want it up as soon as possible. Displaying a MOTD and an image to let the user know it is loading... before all the initializations that occur.. those can take many seconds... Kyle_W wrote: This issue speaks to the general lack of APIs for manipulating the game window as discussed on this thread: http://fo ...Show All
.NET Development Problem with creation URI like "http://s3.amazonaws.com/turk-worker-upload/part%2Fpart%2F?parameters"
The subject somehow results in: "http://s3.amazonaws.com/turk-worker-upload/part/part/ parameters" Is there any way to exclude such behavior Hi, I will try to be more detailed. Input: string url = "http://s3.amazonaws.com/turk-worker-upload/part%2Fpart%2F parameters"; Uri uri = new Uri(url); Expected result: uri.AbsoluteUri is "http://s3.amazonaws.com/turk-worker-upload/part%2Fpart%2F parameters"; Actual result: uri.AbsoluteUri is "http://s3.amazonaws.com/turk-worker-upload/part/part/ parameters" ; And as result 404s error after: WebClient web = new WebClient(); byte[] bytes = web.DownloadData(uri); This thing is really annoying... Can anyone please help or maybe I am missi ...Show All
