Maarten Zaagman's Q&A profile
Visual Studio Team System List of Workspaces for a given Team Project
Hi, How to get list of all workspaces for a given Team Project irrespective of User Name Please provide some pointers. This should do. Please keep in mind - this is just code sample. //We query for all workspaces on server, no constraints Workspace [] workspaces = vcs.QueryWorkspaces( null , null , null ); String teamProjectName = "xxxx" ; Dictionary < Workspace , Object > teamProjectWorkspaces = new Dictionary < Workspace , object >(); foreach ( Workspace w in workspaces) { foreach ( WorkingFolder wf in w.Folders) { if (!wf.IsCloaked) { String serverItem = wf.ServerItem; if (teamProjectName.Equals( VersionCon ...Show All
Visual C++ Problem with x64 hello world app...
Hi all, I've been trying to port a 32bit app to 64bit these past days, and finally got the thing to compile and link after a long struggle. needless to say, the thing refuses to run on my x64 XP machine, it's missing a number of libraries (assemblies, or whatever the term en vogue these days may be. God, does anybody remember the days when code was just code Sigh.) Anyhow.... I thus am now trying to create the simplest of all apps, a hello world app built to the x64 target. Same thing happens though. Now interestingly I ran 64bit dependency walker, and on my (big) application it finds that MSJAVA.DLL is missing (what a load of bollocks. I don't use java, nowhere and never) and the hello world app is missing MSVCR80.DLL as well as MSJA ...Show All
Windows Forms Making a form modal on a thread
Hello, I have a winforms application that calls another form. I'd like this form to be modal, in the sense that the user must and should close this form to get back to the parent form. So, for this purpose i'm showing the child form as ShowDialog(). It works fine. The problem I have is when I call the same child form from a thread spawned by the original form. Then the child doesnt act modal. How can make the child modal across threads too Thanks!! I tried both ways and it worked. Thanks guys. In this context, i have a question. I keep reading that calling controls (such as textbox) from a thread will cause an exception. In the case that a thread should output state information to the text ...Show All
Audio and Video Development Elementary VC-1 for WME SE
Is there a release date in sight for elementary VC-1 support with the WMEncoder Studio Edition The resulting ASVs from the current release are great, but they don't work (because they're non-elementary streams) for authoring to media. This makes it difficult for our C&A division to sync projects with our HDi group... Unfortunately, we don't have a date for the next version of WMV SE. PEP is our supported tool for VC-1 elementary stream encoding. ...Show All
Visual Studio Express Editions help a noob out!
Okay, here's my problem: When i start a project, then set it aside and work on a new project, I can't go back and edit the ui! anybody know why please help me! I spent 12 hours straight on my web browser to have it uneditable! after loading it drag 'form1.vb' into visual basic and the go edit>>view designer it should all be back and you don't need to do it twice for the same project if you start it again. i don't know why this happens. ...Show All
Visual Studio Team System Trying to customize the "Assigned To" field
I am trying to customize the Assigned To field for a workitem to include my QA group (as the group) so that when a bug has been fixed by a developer it can be forwarded to QA without having to pick a certain individual. I have done a fair amount of searching on these forums and it seemed that I should customize each work item's Assigned To field as follows: <FIELD name="Assigned To" refname="System.AssignedTo" type="String" reportable="dimension"> <ALLOWEDVALUES expanditems="true"> <LISTITEM value = "Contributors" /> <LISTITEM value = "NITSS QA" /> <LISTITEM value = "Project Lead" /> --> </A ...Show All
.NET Development How to update data based on dataset entries
I have a xml < xml version="1.0" > <Amazonbooks> <Mybook> <MyBooktitle>Astronomy</title> <booknumber>b121</booknumber> <city>SHILLINGTON</city> <state>PA</state> <description>Astronomy b121 Description on 19 dec</description> </Mybook> <Mybook> <MyBooktitle>Geology</title> <booknumber>b212</booknumber> <city>West Palm Beach</city> <state>FL</state> <description>Geology b212 Description on 19 dec</description> </Mybook> <Mybook> <MyBooktitle>Astrology </ ...Show All
Visual Studio Express Editions manually highlighting start menu entries through VB
Here's what I would like to do.... You know how windows will highlight newly installed entries in the start menu for a short period after you install them ..... well, I would like to be able to control this. I would like certain start menu entries to always be highlighted so they stand out and are easy to find. In short, I would like to write a program that would allow me (or another user) to choose which entries are highlighted and which are not, and to control how long they are highlighted for. Could anyone point me in the right direction for implementing this functionality using VB (I have access to a machine with VB Enterprise also, in case this isn't possible in Express Edition) Many thanks for any help :) These forums have ...Show All
Smart Device Development Need Help With Ras and Error 632 invald struct size
Not sure this is the right place for this post, but here goes I have a small app that runs on a orange spv m600 xda unit, it switches gprs connections when one is not available. I have not been able to hang up the dead connection using ConnMgrReleaseConnection as its does work, i was told that i could use ras and enumerate through connections and then hang them up. I keep getting the above error , the struct is as follows: [ StructLayout ( LayoutKind .Sequential, CharSet = CharSet .Auto)] public struct RASCONN { public Int32 dwSize; public IntPtr hRasConn; [ MarshalAs ( UnmanagedType .ByValTStr, SizeConst = 255)] public string szEntryName; } and the code that uses it // create ...Show All
.NET Development How to extract a value from an object in a form of string?
string dts="valueOfX"; int valueOfX=1575; How to use the reflection to extract the value of 1575 if the only object that I get is a string called dts Need some help here pls! I've been reading about reflection but need example pls! Thanks Thanks for the speedy response! public partial class Form1 : Form { public Form1() { InitializeComponent(); string dts = "valueOfX" ; int valueOfX = 3; Type t = this .GetType(); FieldInfo f = t.GetField( "dts" ); object o = f.GetValue( this ); string fieldName = o.ToString(); f = t.GetField(fieldName); o = ...Show All
Visual C# How to write to Excel file?
I am using Visual Studio 2005 standard verison。 And I want to save data from SerialPort to an Excel file since the TXT file is not powerful... Is there any related material about realizing this I do not have the VSTO and there are few examples using Visual Studio C#... Thanks! Hi, AlexBB You may refer to : http://www.filehelpers.com/ The FileHelpers are an easy to use library to import/export data from fixed length or delimited flat files (like the CSV). Also has support to import/export data from different data storages (Excel, Acces, SqlServer) Examples on codeproject: http://www.codeproject.com/useritems/filehelpers.asp I should also read these documentation to see whether I can use this library ...Show All
Visual C++ Dll issue
Hello! I am using windows API functions in my program , to be specific i am using the IcmpCreateFiel() and IcmpSendEcho() functions. For this i have added these hader files: - icmpapi.h - ipexport.h i also read in the documentation that "iphlpapi.lib" needs to be linked as well. So, what i have done is using the floowing path "VC 6->projects->settings->Link" i have added the "iphlpapi.lib" in the space provided for Object / Library modules . But when i run the program the following error occurs : "The procedure entry point IcmpSendEcho could not be located in the dynamic link library iphlpapi.dll" Am i missing some important step Please suggest what should be done abo ...Show All
Visual C# Right click : find all references crashes the ide
It start prosessing but after a while its non-responsive and dosent seem to do anything more. My solution is a mix of a web site, some class librares, some test console applikations and a setup. About 20 prosjekts in all. Anything I can do to work around this bug 1: The ide hangs 2: all are C# 3: class library 4: .cs file 5: vs 2005 (help about: se bottom) basicaly im in the project "systemFramework" in a file called shoppingbasket.cs and a function called addproduct. I right click on "addproduct" and choose "find all references" then i get a box where it says preparing files for project "..." preparing file ".." for refactoring. It goes on for a while re ...Show All
Smart Device Development Device Emulator COM port problems
I'm using Pocket PC 2003 device emulator v8.0.50727.42 and am trying to use the COM ports by mapping them to COM1 of my PC I can successfully create a handle for serial port 0 (COM1) or serial port 2 (COM3), but it fails for serial port 1 (COM2 ). In addition if I try and write to serial port 0 I get the first byte out of my PC COM port but then my application on the emulator appears to block on the call to WriteFile. If I click on the emulator frame a few more bytes get sent and then it blocks again. If I write to serial port 2 the application appears to successfully send the data i.e. no block this time, but nothing comes out of my PC COM port. I've run the application on a HP Pocket PC using it's COM1 port and the application works fine ...Show All
Visual Studio Express Editions create web browser control
Hello everyone :) I was just tring to make something like a tabbed web browser interface using a TabControl but im not to sure how to create objects inside a newly created tab. This is what im tring to do, when a person enters a url in a textbox and hits GO it would create a new tab with a new web browser control inside the new tab. I solved on how to create a new tab but i don't know how to create a web browser within the new tab. Any help would be appreciated. Thank you in advance :) hey, im glad i ran accross your post! i wanna make that same thing, a web browser with tabs but the thing is, i dont know "jack" about how to program in C#. can you help be get the basics down for setting up the address bar and go button so i ...Show All
