Nassir's Q&A profile
Visual Studio Batched Dependencies
If you have a situation where a target depends on another, and both targets are batched on the same items, will the execution order of the batches be consistent In this example, if the Batches item contained 1 and 2, would the execution order be: TargetB, 1 TargetA, 1 TargetB, 2 TargetB, 2 <Target Name="TargetA" DependsOnTarget="TargetB" Inputs="%(Batches)" Outputs="%(Batches)"> </Target> <Target Name="TargetB" Inputs="%(Batches)" Outputs="%(Batches)"> </Target> No. This will happen - TargetB, 1 TargetB, 2 TargetA, 1 TargetA, 2 I think, this is because dependent targets are executed before the I ...Show All
Visual Studio Team System how can i remove files from my drive
and have TFS be aware for instance, i synchronize the entire tree in TFS. later i decide that i only need some of it and want to free disk space. how do i remove those unwanted files from my drive and have TFS be aware when i later decide to get those files again remember, directly deleting files on the local HDD defeats the purpose of TFS. TFS does not know they were deleted so it thinks you still have those files. attempting to do a "get latest" only shows a dialog telling you that your files are up to date. thanks, scott I'm hoping Brian Harry will blog our feature roadmap in the near future. For now, let's just say we are very very familiar with Perforce. ...Show All
Visual Studio 2008 (Pre-release) UserName authentication
Hi, I'm trying the sample about 'username authentication'. I have not changed the sources of sample. I receive this error : "An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail." InnerException : "At least one security token in the message could not be validated." Server stack trace: at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout) at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout) at System.ServiceModel.Security.S ...Show All
.NET Development Web service using complex objects
In a web service we have a web method [webmethod] public Myresponse SendTransaction(MyRequest req) Here MyRequest and MyResponse classes are inherited from MyMessage class. When we view the asmx file http://localhost/DemoServiceExtended/DemoService.asmx op=SendTransaction The sample SOAP request and response xml does not list the public Fields in base class(MyMessage). How to make the base class fields available in listed XML Congratulations, you've discovered a bug in the sample soap messages. You can see the code for the "help page" that generates the sample messages in %windir%\microsoft.net\framework\vx.x.xxxx\config\DefaultWsdlHelpGenerator.aspx. When it's displaying sample xml ...Show All
Software Development for Windows Vista Theme API, Lists & Menus
We currently use owner drawn menus and draw our own lists completely. We'd like to use the theme api to make sure menus & lists both draw and hilite correctly under vista and in particular the aero theme. Can someone please help explain what part/state we should be using to get the correct list/menu hilite Using DrawThemeBackground - we cannot find a part/state that matches what we see by default. Thanks. AeroStyle.xml in the Windows SDK lists the parts that Aero implements, and VSStyle.h lists the values to use for the various parts and states. For the list box, you probably want the Selected state of the Listitem part of the Explorer::Listview class (as mentioned in AeroStyle.xml). ...Show All
Visual Studio Express Editions imapi
can imapi be used in visual basic ..and if so ,how any (not vbaccelerator.com ..as i don`t fully understand what that guy is talking about!!!!) help woul be greatly appreciated. thanks You can use the xp burn component or this sample which activates the cd burn wizard. ...Show All
Visual C# String compa Cannot implicitly
I cannot get the syntaxt to work on the string compare here. I don't know why I keep getting a message saying it's trying to conver an integer to abool in my String.Compare: foreach (string excelDescription in exceldata) { using (ExcelWrapper xl = new ExcelWrapper(excelDescription)) & ...Show All
Internet Explorer Development IE7 Crashes for Unknown Reasons
I have been getting IE7 crashes on a regular basis, on two different computers, after upgrading. Can't replicate the crashes, because they don't occur all the…but the info from the Event Viewer follows: On a P4–3.4E GHz computer with XP Pro & all current updates: “Faulting application iexplore.exe, version 7.0.5730.11, faulting module ntdll.dll, version 5.1.2600.2180, fault address 0x00018fea.” On Centrino 1.83 GHz Dell Inspiron6000 with XP Pro & all current updates: “Faulting application iexplore.exe, version 7.0.5730.11, faulting module unknown, version 0.0.0.0, fault address 0x61df7730.” Extremely annoying...so much so that I may go back to IE6. Anyone have any ideas ...Show All
SQL Server Foreach endless loop
I'm having a problem where I'm using a Execute SQL Task to retrieve a dataset and storing that in an object variable. Then on success of that execute sql task I use a foreach loop task to go through the dataset and do 2 tasks inside the foreach loop. When I execute this package I have ~12 records in the dataset however when I get to the foreach loop in the 2nd iteration it keeps repeating it. It acts like it is stuck on the second record (tuple) and never goes on. I'm using an ForEach ADO Enumerator in the foreach. I've even set a breakpoint on each iteration and no task fails in side the foreach loop. I'm completely perplexed why it will iterate to the 2nd record but get stuck there in an endless loop. I've tried this on 2 different compu ...Show All
.NET Development How to save file with name of the data in the textbox of the window form?
Hi I am try to save an xml file with the name of the data entred into the textbox of the windows form. 1.I am currently using the below code the save the file with GIVEN name(highlighted in blue) Me.saveXML(Me.SDLTDataSet1.Tbl_SDLT1, "..\ SDLM .xml") My question is: How to save file with name of the data in the textbox of the window form example: Me.saveXML(Me.SDLTDataSet1.Tbl_SDLT1, "..\ <texbox-form control> .xml") thank in advance Hi Seregy Thanks for you help. Please read I explaind in detail below. 1.I have a windows form. 2. Access database with 'SdID' as the autonumber of the table 3.I am getting this autonumber (numbers) colum to a 'textbox ' in the windows form . 4. This textbox will be reado ...Show All
Visual Studio Context Sensitive Help Isn't
Hi, I'm using VS 2005 8.0.50727.42 I am editing C/C++ code and highlight any function from the CLR. i.e. "remove" Intellisense correctly identifies the matching function declarations from stdio.h But if I press F1 I get directed to hundreds of pages of C#/Web development/SQL help. I really just want a "man page" for the function. I've tried disabling all the non-C/C++ options on the search page options but all the unrelated help is still shown. Any ideas on how to restrict help to only the CLR help pages Thanks, Steve Hi Steve, Unfortunately in MSDN library for Visual Studio you will have to install the documentation on local drive. If disk space is an issue, you can perfor ...Show All
Software Development for Windows Vista link errors trying to build AMCAP sample
I'm trying to build the AMCAP sample in the Server 2003 R2 SDK, I think this is the latest relevant direct show release. The complier i'm using is the VC Toolkit 2003. Just using nmake from a command prompt I get the sample to compile ok, although I did have to add some headers (include/atl and include/mfc) to the environment. When nmake tries to link it reports atlthunk.lib as missing, and for sure it does not exist on my hard disc. I had to build the baseclasses lib first, so I also searched my HD for any file with thunk in the name, and there are 3 thunk32.libs and some assembler files for atl21somehting. What do i need to do to build the AMCAP sample Where can I get hold of atlthunk.lib Ma ...Show All
SQL Server Transformation Steps
I want to update a char column and remove all the periods (.) - middle initial data. What are the basic steps in SSIS Source Table/Column --> Transform of some kind --> --> I've never had to massage data and replace in the same table in my brief career so far but I see a lot more ahead. There isn't a simple sql statement to do this, is there TIA It just so happens there is a SQL function called Replace, hopefully this will help: http://www.sqlteam.com/item.asp ItemID=7386 ...Show All
SQL Server Large MSMerge_History, MSMerge_genhistory,MSRepl_errors tables in SQL Server 2005 Express edition (Merge Push Subscriber)
SQL Server 2005 Standard Edition act as publisher and distributor. All subscribers are SQL Server 2005 Express Edition. According to 2005 book online, "MSMerge_History table exists in distribution database". Howevey I found this table in Subscriber database which is in SQL Server 2005 Express Edition. The problem is this table (MSMerge_History) and other two tables (MSMerge_genhistory, MSRepl_errors) are quite large. We want to keep SQL Server 2005 Express database as small as possible so we can put more data into it. Is there anyway (Manually or automatically) to clean those tables in SQL Server 2005 Express Please help. On the subscriber typically 10 sessions worth of data are stored in MSmerge_history. Are you running ...Show All
Visual Studio Express Editions Formatting output in a textbox/label
Hi I'm writing a program that basically calculates two numbers entered via text boxes then outputs to a label on the form. Sometimes I get a number with three decimal places. How do I change this to just show 2 decimal places Also, I have six rows of three columns. Is there an easier way of assigning a value to these similar to using an array For example, I currently have to assign a value to an array for (int a = 0; a < 5; a++) { arrayvalue[ a ] = a; } Then output individually to each textbox textbox1.Text = arrayvalue[0]; textbox2.Text = arrayvalue[1]; textbox3.Text = arrayvalue[2]; etc Can this be changed to for (int b=0; b < 5; b++) { textbox[ b ].Text = arrayvalue[ b ]; } Or am I just being super lazy lol! Yes, you'r ...Show All
