Ink Sloth's Q&A profile
Visual Studio Custom task failing as part of build process, but not standalone
I have a simple custom task that loads an XML file into an XmlDocument, retrieves a node with a given XPath query, sets a given attribute of that node to a given value and writes the XML file back to disk. Simple stuff. This task, which is the only task in a certain target, executes fine if called explicitly from the command line: msbuild <buildfile> /target:UpdateWebConfig But when that target is called (using CallTarget) from another tar ...Show All
Software Development for Windows Vista SDK problem
Hello, I had used november CTP more times without any notable problem. I will install february ctp version. I've uninstall previuous veersion, download runtime and sdk. I've install runtime and also sdk. But after, nothing work. old applicaion cannot b compiled. I don't found dll for .NET as presentationframework.dll. XAMLPad isn't installed. Only C++ library and help file is installed. What is the problem Thanks for your help. ...Show All
Visual Studio Express Editions Visual Basic Express Resell
I am completly new at using any programing language....but I am looking toward the future in asking the following question. Is it true If you make a program using VBE you can not sell it Thanks CatherineJean I'm pretty sure this is not true. You cannot resell VB Express but the applications you develop using the tool you can. I suppose if you really wanted the absolute answer you would probabl ...Show All
SQL Server Loop through each record and then each field within each record
I need to essentially do 2 loops. One loops through each record and then inside each record row, I want to perform an insert on each column. Something like this maybe using a cursor or something else: For each record in my table (I'll just use the cursor) For each column in current record for cursor perform some sql based on the current column value Ne ...Show All
Visual C# Go To Definition
Can anyone explain why when I right mouse click a class and select Go to Definition, visual studio 2005 shows me the class that is stored in meta data, for example. User currentUser - this class is located in ObjectManagement project in a class call UserManagement.cs but the class it displays is User[from metadata] need some help on this one quickly please!! Hi Jonathan, it is mate. I have one solution with ...Show All
SQL Server Measure Group ID
Hi, What is the thinking behind not allowing us to change the default value of the ID property of a measure group I really don't like the default - I'd like to choose my own. (If thjere is a way to change it in BIDS then plesae let me know!) This wouldn't be a problem except that the XML/A process command references the ID and I would rather have something in there that is intuitive - somehing that represents what the measure group i ...Show All
Visual Studio SortFields
Hi, i'm trying sort a document report by an database field parameter, i make: DatabaseFieldDefinition def = my_report.Database.Tables[ "PLANO" ].Fields[ "DESIG" ]; int c = my_report.DataDefinition.SortFields.Count; my_report.DataDefinition.SortFields[0].Field = def; And receive this exception: Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX)) Description: An unhandled ...Show All
Software Development for Windows Vista SQLWorkflowPersistenceService
I just went through the AtomicTransaction lab (#8) and I was trying to figure out how the SQLWorkflowPersistenceService worked. I put some breakpoints in the code and was trying to spy on the data in the WorkflowStore tables: CompletedScope and InstanceState. However, whenever I looked at the tables, they were empty. Is there any way to spy on these tables and see what is going on under the hood Now, I should say that the example worked co ...Show All
Windows Forms FindControl in Windows Forms?
In a web form i can do this: Page.FindControl("mycontrol") How do i do this in a windows form What I'm essentially trying to do is find a control in a child object such as a user control, or to find a parent object from ...Show All
Visual C++ Internal Compiler Errors & Minimal Rebuilds
Here is a description of a problem I recently had trying to compile a sample program from the Boost library. Here is a suggestion that contained the correct work-around : I believe this is significant for 2 reasons: The compiler should give a decent error message of what it wasn't able to parse, it shouldn't simply say "Internal Compiler Error (x_x)". The Boost library is apparently mature enough to warrant consideration for parts of it fo ...Show All
SQL Server Export to XML file from SQL Server 2005
I have a stored procedure which returns XML using SELECT with the FOR XML PATH, TYPE commands. How do I pipe the results to a file I had assumed that Integration Services would do this, but I see nothing about XML as a destination, only as a source. After you run the FOR XML command, you can get a string like xml. Click that you can see the xml file itself. Then you just save this file. Hope this answer your ...Show All
Visual FoxPro How to check if an Array exists?
Select * from myTable where isnull(myTable.keyField) = .f. into array myArray if alen(myArray) > 0 ** Loop through array and Do processing end if In a situation where records selected by the query are 0 then the array is not created and thus the next statement gives an error. How can I check if myArray exists before doing any further processing Thanks for the indepth explanation CetinBasoz. I see your poin ...Show All
Windows Forms Multi Form application... NOT MDI application
HI... I have so far up to 5 Form in my application... I don't want to use MDI philosophy... Parent and Child Window... So I create all my Form and the code behind... But want to manage every thing in my own Main... and other *.cs file ...Show All
Visual C++ mbsrtowcs link errors
I'm using mbsrtowcs to convert a char[] to a wide, and I'm getting link errors I can't comprehend. The actual code is in a C++ library, which compiles OK, but when I use this library in a C or C++ exe I get unresolved external symbols __imp__mbsrtowcs and void __stdcall _com_issue_error(long)" ( _com_issue_error@@YGXJ@Z ). Can anyone explain what is happening here Thanks! Could you send a repro of the problem Feel fr ...Show All
Visual Studio ACTIVATION CODE FOR SECOND INSTALATION
I'm using VB Express and I want to use it at home too so I can learn it quicker. I installed it there but it needs an activation code. I do not have the internet at home(I live in the sticks). Is there a way to activate it I have searched through the online help, but have not found anything. Thanks! Ken I can help you out with this issue. Please e-mail me at jameslau@microsoft.com and I will be able to help you o ...Show All
