Aleks K's Q&A profile
Visual Studio How to replace default CL.exe called by MSBUILD.exe
Hi, I need MSBUILD to use a CL.exe other than the one in the Visual Studio directory. Currently it uses the cl.exe in "C:\Program Files\Microsoft Visual Studio 8\VC\bin". But I need it to call another CL.exe (for OACRCL.exe). (OACRCL.exe will in turn call CL.exe as needed.) Is there a proper way to do this It seems like writing a "custom task" might be the way to go, but I am not sure. At this point we have several .proj files...I wonder if I can just edit the .proj files. One more related question... How does MSBUILD.exe know that CL.exe is located in "C:\Program Files\Microsoft Visual Studio 8\VC\bin" You might try the ToolPath property on the VCBuild task ...Show All
Visual Studio Team System Problem with source control (Data is Null. This method or property cannot be called on Null values)
Hi, VS hangs up during project loading. Re-getting the project from source control does not help. VS installation does not help either :( The following error in the server's event log: Edit: it does not hang. After a few minutes in unfreezes and says 'look into your server event log'. the project is open as source-control ounbound. TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 6/26/2006 12:48:55 PM Machine: VSSERVER Application Domain: /LM/W3SVC/3/Root/VersionControl-1-127957963704837131 Assembly: Microsoft.TeamFoundation.Common, Version ...Show All
Windows Live Developer Forums Creating setup for the add-in
Hi How can I create a setup file for my Add-in that automatically registers it without the need to manually add it to the messenger Tal Hi james Thanks for the answer Is the registry modification supported by microsoft Do you have documentation for each registry key ...Show All
Visual Studio 2008 (Pre-release) RichTextBox Blocks
Hi, I would like to know if it is possible to make an option that can maybe be exposed to alter the behaviour of the richtextbox. At the moment, when the richtextbox is empty, or if you are on an empty line, the default behaviour when adding InlineUIComponents is to create them as BlockUIContainers. This is very frustrating as I only want my "unique" object to stay a specific size, and to still add text after and before it (like having a small image that you can have in the same line as the text) What I would like to happen is when I create an InlinUIContainer on a blank line, is instead of making it a BlockUIContainer, create a paragraph and add it as an inline, so that I don't have to do post processing work to get it to ...Show All
Visual Basic Image Lists
Is it possible to make an image box load its images from an image list Image box Do you mean a PictureBox If so... Not directly with an ImageList and ImageIndex property like so many other controls have... instead you can manually use the image within the ImageList as a source: PictureBox1.Image = ImageList1.Images(0) ...Show All
Visual C# Debugging a multithreaded app
Hello all I have an app which is divided into two main components which are decoupled from one another by the use of an event mechanism. The only way the two components communicate with one another is by firing and responding to events (one component is consistently the caller, the other is consistently the callee). You can find more background on this particular app's issues in this post but some of that information is now outdated. Basically I have a static object in the caller component which fires an event to the callee component which results in the callee loading a component in a COM DLL via an RCW assembly. Originally, the COM DLL was not being properly released at the end of execution but after moving the 'unloading' code up into t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Ignoring mouse events outside of window / while app is not focused
I see that the mouse / keyboard state reflects the state of the mouse / keyboard even when the application is not focused. In a way, this makes perfect sense. What I'd like to know is what is a good way to make sure my application does not process these events when the app isn't focused or a click happens outside of the app window. Thanks! by using this : for not fullscreen : Resolution_Height = graphics.GraphicsDevice.Viewport.Height; Resolution_Width = graphics.GraphicsDevice.Viewport.Width; Resolution_X = graphics.GraphicsDevice.Viewport.X; Resolution_Y = graphics.GraphicsDevice.Viewport.Y; you can check if the mouse is inside your game. for fullscreen : You have to check if it is fullscreen, if not you can do a pause ...Show All
Visual Studio Express Editions unprogramed sound
I have programed a game that uses three short sound recordings and there is another sound in it ! ! It sounds like interference almost or sort of static. I think it may just be that it tries to play to many sounds at once but it used to work. If anyone has had the same problem then PLEASE tell me! The code that I used: My .Computer.Audio.Play( My .Resources.bleep1, _ AudioPlayMode.Background) It is the same thing for all three of my sounds. could may well be intereference, I'm guessing you are using onboard audio Even though you shouldnt but no harm, tried rebooting the machine to refresh it Where is this "bleep1" Have you tried to play u ...Show All
SQL Server Does SP1 change the way strings or data are processed?
We've just patched our Dev server, and, of our 3 servers (Dev, Test, Prod), we see major changes in the output of a raw data import process that runs nightly. Each night we import tables from a Remedy helpdesk system running on Oracle and place each ticket into a row on a table, tracking the changes and history of the ticket, etc. This includes tracking when supervisor groups are changed during the course of a ticket (ie Helpdesk to Data Comms to Billing etc). Now, after SP1, the results on Dev are skewed with partial strings showing in the From and To fields, broken in odd places (like the middle of words). Has anyone noticed any changes in which post-SP1 SQL Server 2005 processes strings Does it automatically trim spaces or convert NULL ...Show All
SQL Server Running DTSX package under SQL Serrver Agent
hey there guys, i have a weird error and cannot seem to work it out.. I have a SSIS Saved as a DTSX file, and i have setup a job to run the dtsx package with the following command: dtexec /file " \\mamssql\sqlobs\DTSPackages\rf\RF Despatch Upload.dtsx" Now, when i run this from the command prompt, it works fine, but when i schedule it, it fails with the following error code: ------------------------------------------------------------------------------- ate 5/09/2006 12:21:14 PM Log Job History (RF Despatch Upload) Step ID 1 Server MAMSSQL Job Name RF Despatch Upload Step Name Upload Duration 00:00:00 Sql Severity 0 Sql Message ID 0 Operator Emailed Operator Net sent Operator Paged Retries Attempt ...Show All
Software Development for Windows Vista SSL Problem
I have unzipped and installed the batch file in 'Creating Managed Cards.zip'. The batch file displays success for all 4 installations : 'CAPICOM, Certificates, host, web sites'. However, when the browser attempts to enter the page https://www.fabrikam.com/CardSpace the following message appears. The security certificate presented by this website was not issued by a trusted certificate authority. The security certificate presented by this website was issued for a different website's address. Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server. This persists even I have imported the www.fabrikam.com certificate, www.fabrikam.com.pfx , into the trusted people store. ...Show All
Visual Studio Async download won't work when started from VS on an Athlon64
Hello. I have a small application that uses the async design pattern to save a web response (in background) and update a progess form. It works perfectly... Except when run from Visual Studio on my 2GHz a64... I have a form displaying the progress of the download. When run from VS on my a64, whith or without vshosting, the application takes ~15-20% cpu time, and VS the WHOLE rest! The form refreshes correcly according to the progress delegate call, but is not responsive. The window can be moved, but the content of the window in unaccessible, behind a sandhour pointer. I can not click the cancel button. ;) The content of the progress form is responsive when run on my a64 from outside VS (but the application still ...Show All
Visual Studio 2008 (Pre-release) System.Windows.Markup.XamlParseException:Type reference cannot find public type named
I am attempting to use XamlReader to load styles dynamically. The XAML below works without issue when it is included it in my project, i.e. it gets compiled into the assembly, however when I try load it dynamically at runtime it fails with the exception below. I assume that even although I have the namespace defined in the XAML " xmlns:sbc="clr-namespace:MyNameSpace;assembly=CO.MyAssembly" ", the XAML Parser is still failing to resolve the type. So how to I get around/solve the problem Thanks Kendrew Exception; :System.Windows.Markup.XamlParseException:Type reference cannot find public type named 'MyClass'. at System.Windows.Markup.XamlReaderHelper.Read(XamlNode& xamlNode) at System.W ...Show All
Visual Studio Team System Replace SNK file by PFX file before automated build
Hi all, We want to replace the SNK files by PFX files before building our projects with our Team Foundation Server. The intention is that the developers use a SNK file and that the build server uses PFX files. What is the easiest way to do this Also, when we change the SNK file by a PFX file, we need to change the InternalsVisibleTo attribute. How can I do this Thanks in advance, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog If the file names are in .csproj, etc. files, you would need to write a custom task to change those files, as well as change InternalsVisibleTo. You may find tasks to either do what you need or help in one of the collections of msbuild tasks: http://blogs.msdn.c ...Show All
Visual C++ Error message PSAPI.DLL
I am getting a error pop up saying Get Process Image file name w. could not be located in the dynamic link library psapi.dll What should I do to fix this. April Does anyone know whether this DLL is required to be distributed when installing on Win2K/XP In other words, does psapi.dll is part of Windows 2K/XP installation Thanks, Irit. ...Show All
