Bartosz's Q&A profile
Visual C# SI Abbreviation Significant Number String Formating on Decimal Resolution
Hi all, Let say I have a string formed from a double value. After a converting function to display desired quantity of significant number with SI Abbreviation. e.g. The original value is a double (12345.678). [1 significant number] : 300 m (string) [2 significant number] : 310 m (string) [3 significant number] : 312 m (string) [4 significant number] : 312.3 m (string) The problem here is that I must do the decimal resolution placing on the string only after which I get out of conversion process. The hard part is that the SI Abbreviation is attached on the output string after the significant number conversion function. I do not have access to modify the significant number conversion function. So, I must carry on modifying the output string ...Show All
Software Development for Windows Vista June CTP Orcas Tools Installation problem
I've got the June CTP WinFX Runtime, the June CTP SDK. But the June CTP Orcas won't install. I get the following error messagebox. Setup has detected that a prerequisite is missing. To use Microsoft Visual Studio Code Name "Orcas" Community Technology Preview - Development Tools for WinFX you must have the WinFX runtime installed. Please install the WinFX runtime and restart setup. Does anyone know how to resolve this I know that WinFX is correctly installed, because I've run many samples, and Expression and XamlPad run fine too. Is there any way to convince the Orcas installer into believing that WinFX is installed I just did an fc/b with the June CTP Orcas tools and the Beta 2 Orcas tools. They are the same file ...Show All
Visual C++ How do a create a new text file, and how do I insert an eof into it?
Hi, I'm looking to create a new text file. I am in second term C++ so we're not using the MFC or anything. We have covered opening, reading, closing ifstream and ostream objects from fstream.h , but nothing about how to create a file if one's not there. Is this possible Also - anyone know how to insert an eof into a file through a text editor or something in Windows I am given to understand the eof flag is represented by a ctrl-Z but I can't insert this using textedit. In the mean time I'm using a pipe symbol '|' as my eof flag which is much less elegant. Thank you o wise sages of the code. dangrmous wrote: You asked me in your last comment the following, and I quote directly: " What happens if you use ofstrea ...Show All
Windows Forms Problems Installing Some Programs
When I try to install some programs such as Photoshop 7 or Freespace 2 (game), the Setup Wizard will not run, but when I shutdown my computer the setup will initialise. What is wrong, and how can i install games I am running Windows XP Home Edition. ...Show All
Windows Forms increase performance
Anyone know any way to increase my performance and make my computer faster without downloads off the internet ...Show All
SQL Server cannot create jobs on x64
Hi all, Just installed sql 2005 x64 (DB Server + Client Tools incl. management tools) on a win2003 x64 server and encountered the following problems: 1) Could not create jobs Getting Error: Unable to cast object of type 'Microsoft.SqlServer.Management.Smo.SimpleObjectKey' to type 'Microsoft.SqlServer.Management.Smo.Agent. JobObjectKey '. (Microsoft.SqlServer.Smo) - Tried several different job types, always same result. - Installing SP1 does not help. - Installing with or without Integration Service does not help. Any help is highly appreciated TIA Dan Anyone learn anything on this I have the same problems after installing the SQL Server 2005 Service Pack 2 for XP (SQLServer2005SP2-KB921896 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can someone point me to a thread that will tell me how to add collision detection to my game?
I know tons of threads exist, but I looked through a few of them, and they didn't really help me to learn how to start a collision detection code. Thanks This is a great tutorial on collision detection in XNA: http://sharky.bluecog.co.nz/ page_id=113 ...Show All
Visual Studio Express Editions Copying Express CD
Hi, I have a copy of the Visual Studio Express CD. Is it okay for me to make duplicate copies of this and share it with my friends as i don't know where i can get anymore... ...Show All
SQL Server Problems with date formats
The date fromat in my country (Australia) is DMY. It seems to be quite difficult to prevent the month and day being swapped around. I had a case recently where we generating a list of dates to be presented in the report server UI (User Interface) as a list box for a parameter selection. We fixed the problem in the data set (on the data tab) by using "SET DateFormat DMY" only to find that the month and day were still swapped around in the UI list box. If this was just a presentation issue we could live with it but it turned out that the value read into the parameter was incorrect (the day and month were actually swapped). To fix the problem, we had to chnage the data type to VarChar() in the data set query, using Convert() to force ...Show All
SQL Server Cannot insert duplicate key in object 'dbo.RunningJobs'
I'm using SSRS 2005 on a Server 2003 machine. Some of my reports run fine but others take a long time to run and sometimes fail with an http error 503. After a report errror happens I find entries in the event log that says: cannot open a connection to the report server When I look at the log files for Reporting services I see an error caused by a primary key violation on the Running Jobs Table: Violation of PRIMARY KEY constraint 'PK_RunningJobs'. Cannot insert duplicate key in object 'dbo.RunningJobs' Does anyone know why do I get such errors Bellow is the error message in the logs: w3wp!library!6!21/08/2006-09:30:22:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailab ...Show All
Smart Device Development Reading Application-Config in CF 2.0
Hi there, is there any chance to read the data stored in a .config-file with CF 2.0 The namespace "System.Configuration" is completely missing in the Objectbrowser! Any chance to get the code without self-coding thanks in advance and best regards Reiner PS.: In the good old days of Win32-Programming my nightmare was the "ERROR_ACCESS_DENIED"-error! Nowadays this is the "NotSupportedException", which I get (at least) 10 times a day!!!! Configuration file is just an XML - open it as XML in DOM or XmlTextReader and read what you need. It's not without coding, but fairly easy. OpenNetcf.org has some classes in OpenNETCF.Configuration namespace to simplify t ...Show All
Visual Studio 2008 (Pre-release) PeerChannel - System.NullReferenceException on connect, intermittent
We are seeing the following PeerChannel problem occur at connect time - intermittently, but daily for the customer. Null reference exception Occasionally, when someone connects, they get a null reference exception like the one shown below. A second attempt to re-connect works the majority of the time, but not from the same AppDomain (e.g. we have to shut down and re-launch the application program). System.NullReferenceException: Object reference not set to an instance of an object. Server stack trace: at System.ServiceModel.Channels.SocketConnectionInitiator.ConnectAsyncResult.StartConnect() at System.ServiceModel.Channels.SocketConnectionInitiator.ConnectAsyncResult..ctor(Uri uri, TimeSpan timeo ...Show All
Software Development for Windows Vista vista 5600 what the difrence between each build
Windows Vista RC1 (x86) (Build 5600) - DVD (Checked Build) (English) Windows Vista RC1 (x86) (Build 5600) - DVD (English) Windows Vista RC1 (Build 5600) WDK - DVD (English) Windows Vista RC1 (Build 5600) SDK - DVD (English) vista 5600build what the difrence between each build and for example lets say i want the vista OS + the SDK do i need to download and install both one build on top of the other so basicly if i want the sdk and to have all the drivers ill need to downlod and install 3 build one on top of another more thhan 6GB all together ...Show All
Visual Studio 2008 (Pre-release) wcf based sample for sync service
Hi Rafik Thanks for the great example. I was actually looking out for a viable solution to implement sync feature with our product. Ours is a health care product and we need to make available the application and the data (partail content) to doctors who go to remote locations to visit patients. I was looking out for various options like SCOAB, SQL Merger Replication, etc.. finally got hold of the ADO.Net sync service, and I hope this would provide me with the right solution to for adoption. I initially had a look at the webcast from Steve, was pretty interesting and then was looking out for samples, which I could run through. then luckily happened to come across your samples, which were of great help. Rafik, do you also have a sam ...Show All
.NET Development At least one element in the source array could not be cast down to the destination array type
Hi I am trying to send an array of doubles to new class which is uisng a Matlab .dll. However I am having problems with the following error: - System.SystemException {"At least one element in the source array could not be cast down to the destination array type."} System.SystemException The Code is private void btnOkActive_Click( object sender, System.EventArgs e) { ArrayList ccyPairsCheckedLogic = new ArrayList(); if (checkBoxEURJPYa.Checked)ccyPairsCheckedLogic.Add("EURJPY"); if (checkBoxEURCHFa.Checked)ccyPairsCheckedLogic.Add("EURCHF"); if (checkBoxEURGBPa.Checked)ccyPairsCheckedLogic.Add("EURGBP"); if (checkBoxEURUSDa.Checked)ccyPairsCheckedLogic.Add(& ...Show All
