Brihadish's Q&A profile
Visual C++ (Newbie) - getline - Import/Export file
OK There I go i'm having a Hell to understand how Import/Export file work in C++ i need to save stuff in a external file and get them later when i re-run the program. To be more specific, i would like to save ''accounts'' without using Databases. only to master Import/Export. I just don't know how to procede I tried something with getline() but every time I enter the information shown on msdn, I get an error saying it was expec ...Show All
Visual Studio 2008 (Pre-release) WCF thread switching on async IO when hosted in ASP.NET
Do the issues relating to thread switching when performing async IO discussed at http://www.lhotka.net/WeBlog/ASPNETThreadSwitching.aspx apply apply to WCF services hosted in ASP.NET Thanks. ...Show All
Windows Forms Start Windows Service After Install
Im setting up a deployment for my first windows service and I have a few questions. 1. How would I go about starting a windows service as soon as it is finished being installed Or, could I force a reboot after the installation, since the service is set to auto start after being rebooted 2. My program also requires that the 'Allow service to Interact with desktop' option ...Show All
SQL Server Scheduled SQL Server Agent SSIS Package Job Problem
HELP! I have been banging my head against a brick wall on this one all this morning AAAAAAGGGHHH! 1. I have an SSIS package that runs a simple SQL script and then updates a few tables by downloading some XML of the web. It runs fine when I kick it off manually under SSMS. 2. I created a SQL Server Agent job to run it every day. This always fails. The error information in the log is useless ("Executed as user: domain\user. The package ...Show All
Windows Forms Input string was not in a correct format
I am trying to use a data reader to find values, then use code to find the value in another table and update the row. I receive Input string was not in a correct format on the highlighted lines. Please help. 'open connections If cnn1.State = ConnectionState.Closed Then cnn1.Open() End If 'go thru schedule Dim strQuery As String = "SELECT * FROM schedule WHERE week = " & cboWeek.Text Dim ...Show All
Game Technologies: DirectX, XNA, XACT, etc. CreateDevice.cs(13)
I'm trying to compile example projects that came with DirectX SDK 9.0 and I get this error: CreateDevice.cs(13): The type or namespace name 'DirectX' does not exist in the class or namespace 'Microsoft' (are you missing an assembly reference ) The only reference I found to this error was from 2003 and did not help me. I also downloaded the 9.0b development runtime for directx. Do I need to move files to fix this or is there an update I should do ...Show All
Visual Studio Team System Custom Exception causes "Not Authorized to View this page"
Hi, I am having a problem throwing custom exceptions. Whenever my web application throws an unhandled custom exception it does something so that the next time I run the application I get a "You are not authorized to view this page" message. I have tried manipulating the Directory Security in the website property pages and on the physical directoreis themselves with no luck. It seems to work just fine if the exception thrown is a system exc ...Show All
Visual Studio Express Editions SQL Express saving
Hello, A quick couple of questions. If I upgrade to VS 2005 Pro from Express. 1. Will my express database application still work if i connect the mdf to a server hosted SQL 2005 Server. 2. What exactly happens (if the above is possible) if more than 1 person uses the DB Front end I have built and submit changes to the same table at the same time. I understand that the database information is cached when you are wo ...Show All
SQL Server Cant upload report (rdl-file) in Reporting Services 2005
When uploading a report definition file in Report Manager I get following error: An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC2000] compiler initialization failed unexpectedly: Project already has a reference to assembly System. A second reference to 'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll' cannot be added.’. (rsUnexpectedCompilerError) Any suggestions ...Show All
.NET Development LinkedList<string>.ToArray() ???
is there a way to do the equivalent of these in 2.0: List<string>.InsertBefore() List<string>.InsertAfter() List<string>.InsertAt() I also tried using LinkedList<>, but I can't find this method: LinkedList<string>.ToArray() You can actually do this: List< string > list = new List< string >() list.Add("World"); list.Insert(0, "Hello"); list.Insert(2, "1"); ...Show All
Visual Studio 2008 (Pre-release) DLinq Sql Tracing
Hi, I have been looking through the documentation and cannot identify a convenient way to trace (log) out the sql being run under the covers. I have been looking for an event on the DataContext, but to no avail. What would be a good approach to accomplish this Thanks Mirko To see the SQL, use the following line. db.Log = Console .Out; I have posted a sample that I used in my PDC demo including the line a ...Show All
Visual Basic Arrays
I have a text file in the format of: ID number Income # or Persons when I load my form an open dialog comes up with the text file there. How do I put the information from the textfile into an array, and then call the array to load the information to the form into their respective listboxes Brian Ph wrote: I have a text file in the format of: ID number Income # or Persons when I load my form an open dialog ...Show All
SQL Server Conversion between data types
Lets say I execute: SELECT hashbytes ( 'MD5' ,' IMTIAZ' ) Which returns: 0x60D164C6B64EE81C7E7395C01D838FEE How do I get a varchar: 60D164C6B64EE81C7E7395C01D838FEE Not converted. How do I get the 0x removed from the string Regards Imtiaz You have to write your own TSQL/SQLCLR scalar UDF to do the conversion from varbinary to hexadecimal string. Please do no ...Show All
Visual Studio Stuck to solve custom metadata puzzle
Hello, I have an MsBuild project that runs unit tests and generate code coverage information. To do this it needs to know not just file names, but also namespaces for each assembly being tested. We have the following convention: - If assembly is called MyCompany.MyAssembly.dll, then it contains namespace MyCompany.MyAssembly; - Unit tests for assembly MyCompany.MyAssembly.dll are placed in MyCompany.MyAssembly.Tests.dll. So for each ass ...Show All
Windows Forms How to add/remove icons to/from the system tray
Is there a way to add/remove icons to/from the system tray using VB.NET without using all of the API calls VB6 required Check out the NotifyIcon component. It's purpose is to reside in the SystemTray. There are plenty of ex ...Show All
