AnthonyE's Q&A profile
Windows Forms How can I get the Virtual Dir form the Installation Address dialog
I am developing a websetup project. There is a Installation Address Dialog in the User Interface. User can input the virtual directory in this dialog. I want to user the value of virtual directory in Custom Action. How can I get the value of virtual directory in Custom Action Pass the TARGETVDIR property into the custom action via CustomActionData. If it's an installer class, use something like: /vdir=[TARGETVDIR] ...Show All
Visual Studio Force a target to rebuild?
I have a target that I would like to run twice during my build. Once, before I do any work, I want to clean up some files in a directory. Then, later on in the build, after I've created some files, I want to do the same cleanup on the same directory using the exact same algorithm. Is there a way to call my target again and force it to run The only thing I could think of doing was using the Exec task to run MSBuild. CallTarget and MSBuild both remember what targets have already run, so that won't work. Dependency checking is awesome...except when you don't want it. Many thanks, Taylor ...Show All
Visual Studio 2008 (Pre-release) Installing Windows Presentation Foundation
I installed WinFX RTC founded at http://msdn.microsoft.com/windowsvista/getthebeta/default.aspx . Then I try to install Windows SDK but a receive an error and installation abort. The error log is here: ----------------------------------------------- 14.08.10 venerdi 13 gennaio 2006: [SDKSetup:Info] Begin 14.08.10 venerdi 13 gennaio 2006: [SDKSetup:Info] SDKSetupDll_DoTasks: Starting 14.08.10 venerdi 13 gennaio 2006: [SDKSetup:Info] SDKSetupDll_DoTasksWithGUI: Starting 14.08.11 venerdi 13 gennaio 2006: [SDKSetup:Info] Config_Products_Detect: Begin detection of product: Microsoft Document Explorer 2005 14.08.13 venerdi 13 gennaio 2 ...Show All
.NET Development Array class problems.
Hi, I have som array problems, I have looked for informations about my problem, but can't find any solutions. The code below i a simpel exampel of my problem. Gratuful for any answear of my question. BR Matt Sweden --- using System; public class TelephoneBook { //!QUESTION!-HOW SHOULD A CONTRUCTOR LOOK LIKE FOR "arrPhoneBook" //!QUESTION!-HOW SHOULD A DESTRUCTOR LOOK LIKE FOR "arrPhoneBook" //Methods public void setPhonebook(string connection_type) { //!QUESTION!-HOW SHOULD I DECLARE "arrPhoneBook" IF I DON'T KNOW THE ARRAY ITEM AMOUNT 3,2 string[,] arrPhonebook = new string[3,2]; ...Show All
Windows Forms How to specify XML file Path relative to application
I am developing a control which reads information from the XML file. How can I specify the Path of XMl file(not hardcoded),so that I can always use it from the Application's(which is using the control) Bin directory. When I do something like : Dim FileName as String FileName = Path.Combine( Application.StartUpPath,"ControlConfig.XML") By default Application.StartUpPath returns D:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\ ControlConfig.XML I want it to set to MyApplication\bin at the design time..how can I do it The option of section handler does not fit into my purpose as the XMl file ...Show All
Windows Forms ListBox
hi iam filling a listbox from a datareader and i have added for example the name what i need is to give that name the value of its id the name should be displayed on the listbox and when i click on it the id wiil be given to a varibale for examle. The ListBox control in VB6 exposed the ItemData property which held  ...Show All
Windows Forms Ugh... Hosting UserControls in IE...
I am repeating similar posts here - my apologies to all, but I have tried all of the trouble shooting I can find here and across the net. I have been unable to resolve my issues. Fortunately, I have very little hair, or I would have likely pulled it all out. I have a simple control that inherits from UserControl - I obviously want ...Show All
Visual Studio Express Editions Can Visual Studio 2005 express be used to create Win32 applications or for future .net versions?
Hi, two questions: * Can visual studio 2005 express (as in like VB and C++) be used to create Win32 applications If not, why and which program (or which SDK do I need) should I use to develop for Win32. That is, for an audience without having .NET installed. *Lastly, I read in the faqs that Visual Studio 2005 can ONLY be used to develop applications for .NET 2, well then, what about .net 3 when that comes out or for that matter, even for .NET 1.1 If not, why. If it can only be used to develop apps for .NET 2, well, when .NET 3 comes out wouldn't VStudio 2005 be 'obsolete' That sounds like a bad investment of money for me if thats the c ...Show All
Visual C++ Having several Heaps
This is a little advanced question and didn't know where to post it. I'm doing windows system programming. We can create several Heaps for the same Process. My question is, how can I copy and duplicate a Heap and create an exact copy of it in a different Heap. Both Heaps will be in the same Process of course. Perhaps you could use HeapWalk and CopyMemory SamDav wrote: This is a little advanced question and didn't know where to post it. I'm doing windows system programming. We can create several Heaps for the same Process. My question is, how can I copy and duplicate a Heap and create an exact copy o ...Show All
Visual C++ Implementation for _aligned_malloc?
Hi. I'd like to see the implementation for _aligned_malloc, in order to make a version with further capabilities. This function is part of MS C stdlib. Hmm, it just occurred to me that Microsoft's implementation of stdlib may be secret. Is that why I can't find stdlib's source Thanks from a new arrival from the PPC/CodeWarrior world... Try stepping into the method or actually preprocess the file containing a call to it. If the implementation is there, you should see it in the preprocessed version of the file. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio Team System Load Test: .Net Data Provider for <Server>: Performance Counters
Hi i have added .Net Data Provider for oracle Performance Counters to my load test counters. the instance that i get for each counter is "defualtdomain[3128]" and No counter values at all during the load. can you help me with this problem thanks Udi yes, i can view these counters using the perfmon but the instance is still "defaultdomain[3128]", i would expect somthing like "_Total" as an instance name. i have added these counters to The controller that is map to the local machine. and another intersting case before that when i have tried to add these counters i was not able to view them at ...Show All
Software Development for Windows Vista how to get output pin from mpeg4 stream (simple profile) located in reserved area memory (RAM) ?
Hi ! I try to do preview of mpeg4 stream (simple profile) which I get to reserved area memory (RAM). I`d like to decode this stream by divx filter so I must get a output pin from this stream in order to connect my stream with divx filter. This problem would by solved if I have got a movie file by function: RenderFile of IGraphBuilder. Is it possible to make preview of that stream I'm not sure I'm following what you are trying to do here. It sounds like your current filtergraph is: File->Divx decoder->Renderer And what you want is: File | V Divx Decoder | V something -> renderer ...Show All
Visual Studio Express Editions SQL Insert Statement
I keep getting a syntax error. I don't see anything wrong maybe you guys will. strSQL = "INSERT [Names] VALUES (" & LastNameTextBox.Text & "," & FirstNameTextBox.Text & "," & MiddleNameTextBox.Text & "," & RaceTextBox.Text & ")" Thanks Try putting the text values is single quotes. VALUES('" & LastNameTextBox.Text & "', '" & etc.... ...Show All
Windows Forms Overriding CreateParams in derived Form
I'm making a class derived from the Windows::Forms::Form class, and need to override the CreateParams property so that it's a layered window when its instanced. I've found a million examples of this in C#, but none in C++. I've tried old syntax, new syntax, and I always end up with a string of errors starting with "Windows::Forms::CreateParams is not a class, union, or struct" and then an endless list of syntax errors. I'd post a code snippet, but I've tried so many variations with the same result, I wouldn't know which to post. Can someone post an example of the proper syntax for this in Visual Studio 2005 usi ...Show All
Visual Studio Team System Where is the Check out ?
I've been playing for some time with the TFS part in the sdk. There is something I didn't see.I didn't see CheckOut command or anything similar to it. Saw checkout,get... but no CheckOut command or any event linked to it. Doe's it go by a different name Avi The Workspace class exposes methods for pending edits against items. For example: PendEdit PendAdd PendDelete PendBranch PendRename PendUndelete Merge Undo Each method has a varying number of overloads. Robert. ...Show All
