darthziv's Q&A profile
Visual Studio Team System Getting latest versions for non-labeled elements in Get by Label operation
IMy requirement is as follows: I have label on folder but that label is not present on files inside except one. Now whenever i get labeled version of folder, i get only labeled file in it. Now is there any way so that i can specify that give me latest version for all those files inside folder which are not labeled. In other words, can i get versions by specifying two rules, so that if first rule is not applicable for some element, then second rule is applied. Can someone help me in this We are facing similar kind of issue. When we try to get specific version on particular label, TFS gets the files under that label but deletes all other files from the working folder on disk. Any ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Changing sprite origin from top-left to center
In the XNA help I see the following: The origin is a specific point on the sprite—by default the top left of the sprite (0,0). How do I change the origin to the center of the sprite Is this something that is done in the DirectX Texture Tool Thanks in advance! I know you can cast them, but it seems odd that the Vector2 type takes floats and the rectangle type takes ints. I can understand how you would want ints for this instance as it needs to be drawn at a certain pixel onscreen, however "rectangle" is a general conecpt, I can think of a rectangle with non-integer dimensions, so limiting this class seems like a bad idea. If it is just used for drawing onscreen then screenRectangle woul ...Show All
SQL Server SQL parameter Syntax
Guys, Wahts the right way to specify a parameter in an Execute SQL Task when the param is a varchar should I use apostrophe's around the or not I have two SQL tasks .. one where the query is specified like : WHERE FIA.BaseCurrency = Which SSIS likes and doesn't complain about...(the but then I have another query.. [below].. which SSIS complains about unless I have apostrophes around the So its like: AND FIA.BaseCurrency = ' ' So.. which should it be The problem for me here is that when I DO put the apostrophes around the I get no results back from the query... PJ The problem query: SELECT ForeignCurrency, RateFromFile AS YesterdaysRate --The ISNULL just protects us from situati ...Show All
Visual Studio Fonts of the report
I have a report that use Wingdings 2 font ( T for a checked box ), it runs well on local machine ( in reportviewer or PDF ). however, on the server, the reportviewer shows the right thing, but when I export the report to PDF file, it shows "T" instead of a checked box. Can anybody help me out Thanks in advance. Long Thanks for the reply. I have figured out that when I use reportviewer to view the report, it uses local fonts. I have installed the font on the server, however, when I export the file to pdf file, it still use the wrong font. The insteresting thing is, when I run the local web application, the export file shows the correct font. Any ideas Long ...Show All
SQL Server Exporting a table with changing column names to an excel file
I'm trying to write an SSIS package that exports a table that has changing column names to an excel file. The column names change due to the fact that the table is created by a pivot daily. the only thing I'm missing is the ability to dynamically map the tables' columns to the excel destination. Is this possible I read in another thread that "It is not possible to create packages or new objects within packages using SSIS." I also read in the books online that "The input and the input columns of the Excel destination have no custom properties." To me this means that I cannot programmatically create or remove columns in the excel destination. Please tell me I'm wrong. So, to summarize my research so far. In writing an ...Show All
Windows Forms Trying to get GUI to appear for logged in user, from a service running as System.....
I've got a service that runs from system, and it needs to reboot the client, but I can't get any gui to be displayed to the current user. Has anyone got any suggestions on how I can get some kind of popup to give the user warning the machine is about to reboot and wait for user input before the reboot takes place Thanks, Eric- One can send a message to a user to the "Net Send" on the command line. To find out about the parameters use C:\>net send The syntax of this command is: NET SEND{name | * | /DOMAIN[:name] | /USERS} message To send a message, use the local machine name NET SEND {ComputerName} Shutdown Occuring ...Show All
Visual J# Choose a form to open first.
How can I choose which form will be appear first after compile Thanks. In a project you will find a file called "Program.jsl". Open it and locate this method: public static void main( String [] args) This is the start point in your application. Application .Run( new Form1 ()); This line tells me that the application will start with the Form1 dialog. Regards, Lars-Inge Tonnessen Microsoft VJ# MVP ...Show All
Visual C++ Template Selection Visual C++ 2005
Keyword C++ Template Matching Selection I thought in many circumstances the more specialized template is chosen. So the actual template selection by the great compiler seems contrary to my expectation. This concerns overloading the operator = via templates in a C++ class. Desired: To have member template methods (operator =) called in certain object types thus producing other or same objects. Expression Templates. I want to manually write these templates for the educational value. (template frenzy).( I dont want use boost::lamda ... just yet). Other metrics being equal .. I would like to use a lesser number of member functions. Actual: I get template matching that is contrary to my intention. (I dont understand the actual template ...Show All
Windows Forms How to hide database
------------------------------------------------------------------- Development tool: Visual Studio 2005 Language: Visual Basic .NET ISSUE: Package database into program ------------------------------------------------------------------- DETAILS: I have a windows forms application that uses an Access Database. I am new to windows forms applications, so there is still a LOT for me to learn. Currently the only way I can figure out how to map out the connection string for the database is to place the file on the users C: drive in the program folder of the application. So my connection string looks like "C:\Program Files\MyApplication\access_db\MyDB.mdb" Then when I create the setup and deploy on an "end- ...Show All
Visual C++ Is there a recommended standard name for a C++/CLI member function to free resources?
I have just been learning about finalizers in C++/CLI and saw quite a bit of sample code that duplicated the same resource-freeing code in both the destructor and finalizer. It seems obvious to me that I should put the resource-freeing code in a single place -- another private member function (see sample code at the end of this message). So I have to questions: Am I doing the correct thing in this sample code Am I missing any important concept Is there a recommended standard name for the C++/CLI member function to free resources Many thanks for your help! - Kevin Hall ref class Resource { private: // Is there a recommended standard // name for this member function void FreeResources() { Console:: ...Show All
.NET Development extract values from transparent proxy
I'm trying to extract the _rp.serviceChannel.InnerChannel.RemoteAddress value from my System.Runtime.Remoting.Proxies.__TransparentProxy. Is this possible I got it working via (( IClientChannel ) <transparent proxy> ).RemoteAddress.ToString(). ...Show All
.NET Development Problems with IndexOf
I have problems with IndexOf in C#. It doesn't work properly. This is the code: string i = " public MceaString getCHORA()"; int a = i.IndexOf("getC"); The value of int a after executing the code is -1. Anybody knows why this happen Could you help me Sorry I'll point out the exact code: string i = " public MceaString getCHORA()"; int a = i.IndexOf("getC"); After executing the code in debug mode "a" value is "-1". I'm executing the code with Visual Studio 2003 Version 7.1.3088 and Framework 1.1 Version 1.1.4322. Could this problem be a result of the Visual Studio version Or Framework version ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multiple Soundbanks and Streaming Audio Now?
Just wondering if the bugs are fixed. I seem to get an error "The Resource Could Not Be Created" on GetCue. "An unhandled exception of type 'System.InvalidOperationException' occurred in Microsoft.Xna.Framework.dll Additional information: This resource could not be created." ...Show All
Audio and Video Development No sound with Windows Vista
I have a Dell Inspiron E1705. I just downloaded Vista Beta and love it. Except for hot having any sound. My speaker volume is up and not muted. All updates are complete. I did a driver update and it gave an up to date message. Any suggestions Thank you for your time, BD Hello! I have just put a fresh copy of Vista onto my machine, it has picked everything up apart from my on board sound ALC655. I have been to the realtek site and downloaded the driver and installed it and nothing.....windows reports the driver has installed but in device manager i still get "unknown multimedia device". THis is getting really annoying i have removed the hardware and tried installing the driver that way and nothing.....my next p ...Show All
Visual FoxPro Preventing key strokes to be passed to control
Hi, I have a form that needs to read data from a bar code reader. The bar code reader connects to the keyboard plug and functions like a keyboard. So what I would like to do is to have the user click a "Barcode Read" button and then scan all the bar codes he needs to scan and then click a "Done" Button. I was going to intercept the barcode data in the forms "Keypress" event and store it in a table. Problem is that I have so far found no way to stop the keypress data to be passed to the current control. As each set of data is terminated by a CR each time a barcode is read you jump to the next control and when you get to one of the buttons <CR> just clicks that button. So what I need is to intercept the ...Show All
