crazy_one's Q&A profile
Visual Studio Team System MSTest Arguments during MSBuild
During Beta 3 (I think) of TFS, the syntax for MSBuild test in the was: <TestingArgs>/testmetadata:"$(SolutionRoot)\SampleApp.vsmdi" /runconfig:"$(SolutionRoot)\localtestrun.testrunconfig"</TestingArgs> where you could specify the .testrunconfig that you wanted to pass to MSTest. Post beta3, the syntax changed to: <MetaDataFile Include="$(SolutionRoot\SampleSolution\SampleApp.vsmdi"/> <TestList>BVT1;BVT2</TestList> </MetaDataFile> It appears that the ability to specify the .testrunconfig has been removed. Is this still possible, or is another approach nee ...Show All
SQL Server Data Conversion
I need help!!!! I am about to go nuts! I am getting the following error in SSIS: Error at Violations Load [SQL Server Destination [3800]]: The column ""Site No "" can't be inserted because the conversion between types DT_STR and DT_NUMERIC is not supported. I have tried using the data conversion task, modifying all properties to DT_NUMERIC and so on. I just can't figure it out! I am attempting to load a numeric field from a flat file into a SQL Server database. I cannot find any information on this and have tried about everything. I need any help or suggestions anyone can offer! Thank you in ad ...Show All
Visual Basic Programming multi channel sound card
Hi, I am trying to write an app that can play different sound on different channels of a sound card. For example.. when i click on a button1 it will play one.mp3 in channel1 of the sound card...and when i click on button2 it will play two.mp3 and so on....up to 8 channels... I have been searching the web for this...but there are no information on this. It was supposed to be a simple app but it seems not that easy to me...... ! Any ideas anyone thanks I think this requires support from your sound card vendor. Maybe you can contact the vender to see if they have any documentation… ...Show All
.NET Development CheckedListBox datasource
Is it possible to bind a checkedlistbox to a datasource I dont see I datasource property in the properties list either. But their must be a way. Thanks I found a good workaround for this. http://www.codeproject.com/cs/combobox/fixedcheckedlistbox.asp ...Show All
Visual Studio Express Editions Noob Post!!--How to make program access internet?
I'm trying to make a small program that can acces the web, but i can't figure out how to make my 'search' button turn on the 'WebBrowser1' to Google then to search Google and to display results as if i had gone to google.com and typed in the search box there. First off--Is this even possible Second--Is it hard to do if it is--tell me and i'll mark this post as answered---I'm a noob! If it's easy and possible, could yall give me a sample code Thx. PS~~~(this is added after i orriginally posted this) I think i'll make this simpler...how would i make this search b ...Show All
SQL Server Replication troubleshooting
We have some transactional replication jobs from oracle to mssql2005. I found an error in the replication monitor as below, ============================================ Incorrect syntax near 'index'. If this is intended as a part of a table hint, A WITH keyword and parenthesis are now required. See SQL Server Books Online for proper syntax. (Source: MSSQLServer, Error number: 1018) Get help: http://help/1018 Command attempted: if @@trancount > 0 rollback tran (Transaction sequence number: 0x00000000000000000D4300000000, Command ID: 26290) ============================================ I found the corresponding table from the com ...Show All
Visual Studio 2008 (Pre-release) I cannot install WinFX runtime components 3.0
"An error has occured during setup. Installed files have been removed from your computer. For known issues and troubleshooting information, see the online Readme ." The online Readme is here: http://msdn.microsoft.com/windowsvista/default.aspx pull=/library/en-us/dnlong/html/WinFXSeptPDCReadme.asp I have gone through it with a fine tooth comb and *NOTHING* fixes it. It sucks that the error is hidden and no clues are left anywhere as to why this is failing. I have a clean install of: Win XP SP2 .NET Framework v1.1.4322 .NET Framework v2.0.50727 Are these the right versions Did I miss so ...Show All
Visual C++ ATL
Using Visual Studio .Net 2003. I created a DLL ATL Project using the New Proj. Wizard. Noticed that the generated class is declared and defined solely in the .cpp file, i.e. there is no header. Three questions: 1. From this, I gather that the methods of the class are to be implemented in the class itself I like this because I like defining all class functionality in one file. 2. Also, is no header is needed for ATL COM objects because the importer of the object gets the interface specification from the IDL file (as opposed to the analogous header file as would be used for a standard DLL) 3. This seems to have some commonality ...Show All
Visual C# DataGrid Object
Ok. I know how to show the data from a database in a datagrid view. I just change the DataSource Property. Then it automatically makes a BindingSource, and a TableAdapter. And without either of those objects, the data does not show up in the DataGridView. But what I would like to know is how to do this at runtime. You know, choose the data source for the DataGridView and so forth. Any help would be appreciated. I know this may sound lazy, but could you actually put that in code. Maybe in a button click event, just to give me an idea please. It would be GREATLY appreciated. ...Show All
Visual Studio Team System July CTP - worth installing?
I'm doing production work on Beta 2 and really don't have any specific problems. I do see the occasional crash of visual studio, and there are warts on team system here and there that I know have been fixed since beta 2. My question is - is it worth my effort to upgrade my environment to the July CTP Doing so will require backing up all my code and documents, scraping the machines down to the bare metal and re-installing from scratch (I don't want to risk a beta uninstaller not quite working). Following the rebuild I can reload my source code and documents, but I'll lose all history. So, does anyone (yet!) have ...Show All
Software Development for Windows Vista Infopath and WWF
Hi, I was wondering if/how WWF can be used to manage the state of Infopath forms so that certain elements of the form can be hidden/shown depending on the state. From the tutorials that I've looked at, most of them use a Windows form to input the data rather than an Infopath form. I appreciate the help. You actually dont need the InfoPath Visual Studio Toolkit for the kind of scenario you have mentioned. You could access the Infopath XML in sharepoint storage using sharepoint APIs or webservices and modify the xml directly using Xpath. You can use web services integration of Infopath to invoke the wor ...Show All
Visual Basic Threading Nightmare
Why doesn’t this work: [code] Dim spawner As New EmmaModuleSpawner(moduleType, params) If runInOwnThread Then _ System.Threading.ThreadPool.QueueUserWorkItem(New System.Threading.WaitCallback(AddressOf spawner.open), state) System.Threading.Thread.CurrentThread.ApartmentState = ApartmentState.STA [/code] ERROR: …Current thread must be set to STA mode before OLE calls can be made… But this does: [code] Dim spawner As New EmmaModuleSpawner(moduleType, params) Dim thread As New System.Threading.Thread(AddressOf spawner.open) thread.ApartmentState = Threading.ApartmentState.STA ...Show All
Visual C++ How to redirect STDIN of CMD.exe in C++ programme?
How to redirect STDIN of CMD.exe in C++ programme Hi All I am trying to redirect STD handles of cmd.exe in my programmes. I am able to redierct STDOUT and STDERR, but rediercting STDIN is not workin. I wiash that whenevr i create a new process "CMD.exe" it should obtain its input from a file say input is 'dir' and write the output to a file. I am able to write the output to a file , but I am unable to redirect the STDIN of the process. I have tried using CreatePipe , but eve that is not helpin. Any live CODE example on how to do it will be very helpful. Thanks in advance.. Sumit Chawla I found several link ...Show All
Software Development for Windows Vista State Transitions within a Workflow - how to? Beta 2
(Firstly - how *good* is beta 2!! I dont have to do as much legwork!) Ok onto my question - let me set the scene (simplified): We have a 3 States in a State workflow (activity) 1. Submit 1.1 Mgr Approval 1.2 Super Mgr Approval (let's say) From the Submit shape -> we handle an external event sent to it called 'Approve'. Based on Rules (and data sent to the workflow with the event), we want to transition to either 1.1 or 1.2 Question: Any thoughts on the best way to do this Could Roles be an option We also want the 'Rules' to be externally defined so they can be updated after deployment. (I have this goin ...Show All
Windows Forms Why is ClipRectangle always 1px too wide and high?
As already in the subject. If you have a Graphics objects of a control and check the ClipRectangle property it matches the size of the control, however if you try to draw a border: Brush b = new SolidBrush(SystemColors.ControlDark); Pen p = new Pen(b, 1); e.Graphics.DrawRectangle(p, e.ClipRectangle); the bottom and right lines can't be seen because they're 1px too wide. What am I missing here You ...Show All
