zarkorgon's Q&A profile
Visual Studio RootComponent in IDesignerHost
I am trying to access the Form in the current DesignerHost thru a macro. The following code almost works, but the accessing the RootComponent gives Remote Exceptions. Sub DesignerTest() Dim host As IDesignerHost Dim rootForm As Form For Each w As Window In DTE.ActiveDocument.Windows If ( TypeOf w.Object Is IDesignerHost) Then host = w.Object If ( TypeOf host.RootComponent Is Form) Then MsgBo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Positioning a caret with an ID3DXFont
I made a caret object, just a small blinking quad, and I'd like to have it show up at the end of a string. I can't figure out a way to know what the exact length of a given string is. Is there any way to get the logical width of a single character from a font The average width from GetTextMetrics doesn't cut it, but it must be basing that on individual character widths somehow. It's amazing how a little thing like this can eat up ...Show All
Windows Forms Custom prerequisites?
Hi, I'd like to add custom prerequisites for ClickOnce deployment like WordViewer and ExcelViewer. Is that possible or would I have to do that on my own Thanks, Tom There’s a GUI tool to help you do that at: http://www.gotdotnet.com/workspaces/workspace.aspx id=ddb4f08c-7d7c-4f44-a009-ea19fc812545 In short, you author a set of XML files that describe the installation rules, and then p ...Show All
Visual Studio Team System Personas
Has anyone out there in MSF land got some examples of Personas that I could take a look at please There is one included within the MSF Agile process but I would like to review others from people creating them in real projects if possible. We are currently in our first MSF Agile project and are about to embark on creating Personas. Many thanks in advance, David Hi David, There is a new book coming out that is all ab ...Show All
SQL Server What is the difference between Crystal report and SQL 2005 Report?
hi, As default, VS2005 is able to create crystal report project, what is the difference between crystal report and SQL Server report These are two totally different products with nothing in common other than that they both integrate into the VS shell. ...Show All
Windows Forms Forms application development with an Sql Express database
Hello all, I've posted this to the Sql Express forum with no responses. I'm trying here too... I would like my newly converted to .NET 2.0 Windows Forms application to use an Sql Express database instead of MSDE. Previously, development was done on the default SQL Server instance using the full SQL Server 7.0. When deployed, MSDE was used with a named instance. The connection string in the application settings needed to be modified as par ...Show All
Visual Studio Tools for Office Help on exporting data from C# 2005 to an excel worksheet
I am having a lot of difficulty exporting data from C# VS2005 to an excel worksheet where I can manipulate the data as I please. I am just wanting to export three different objects at a time and be able to append this sheet upon a button click. I would appreciate any help I can get. Thanks. try out example in link http://www.c-sharpcorner.com/Code/2005/Feb/Query2Excel.asp It shows how to export data i ...Show All
Visual Studio strange assert behavior
Hello, This code #include <cassert> int main() { assert(false); return 0; } compiled like that "/cygdrive/c/Program Files (x86)/Microsoft Visual Studio 8/VC/BIN/amd64/CL.EXE -MD -D_CONSOLE -nologo assertion.cpp produces the output: Assertion failed: false, file assertion.cpp, line 5 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more info ...Show All
SQL Server SSIS Requests...
May be it's too late, but I think this requests could be scheduled at least for a SP1 if it's not possible for the RTM. 1) Execute Task without debugger: it would be very nice to be able to execute a single task without going in debugging mode. Just as you would ask "Start Without Debugging CTRL+F5" but for a single task 2) Customize default properties for task and component: when you drag a task on the package you get a default value for the ...Show All
Visual Studio Team System Looking for a model/methodology to capture system capabilities
Hi - We have numerous, interdependant systems within our environment. Many of these systems are integrated at the data, and business tiers. The problem is when a change occurs w/in the environment (like application A changes a business rule or an interface, it breaks applications B, C, D). Question: Is there a model or methodology that will help us too: 1) List all the capabilities of our systems 2) Show dependencies between our systems 3) Hel ...Show All
Visual Studio Team System How do I install Team Explorer?
I've successfully installed VS 2005 Suite (Trial) and SQL Server 2005 standard edition, tried it both on Win 2000 SP4 and Win XP. Then I'm trying to install Team Explorer, an error dialog is displayed: """ Thank you for participating in the Beta program. You must uninstall all pre release products in a specific order before you can continue with the setup. .... these pre-installed products include, but are not limitied to the following ...Show All
.NET Development Requiring authentication using WSE3 and UsernameToken
I am writing a web service that uses WSE3. I want to require that all method calls to the web service have a valid UsernameToken in the SOAP header. Encryption and signing of the messages is not required. (I do not want to use X509 or Kerberos either.) I have created a custom UsernameTokenManager class and it is configured to validate the credentials in the token. I have been able to create a usernameToken and attach it to the client pr ...Show All
Visual C# How to get USB Bluetooth Adapter information ?
Dear All, Using WMI, I managed to get information about device ID and manufacturer of my USB Bluetooth adapter. However, I CANNOT GET Blueooth Device Screen Name ! :( I tried with many diffrent WMI classes, but with no results). Since the Bluetooth device in XP is in the Device Manager, not Registry, I thought WMI will be useful. If I can get it from WMI, which class I have to use Is there any other soultions All responses are appri ...Show All
Visual Studio Team System Entering Dynamic Value for a field
How do I enter a dynamic value ABC1, ABC2, ABC3... like this for particular field for the web test. I am running .webtest file only. I have not generated any code right now. I tried with implement this with Extraction Rule. I do not want to bring the data from database with data binding. Please suggest me. Thanks Tampali You can write a webtestplugin which adds a dynamic value to the context and then bind th ...Show All
Visual C++ How to convert string object to char array?
Hello, I am writing MFC program. There is a string object that needs to give its content as char [] array. Is there anyway to extract string object as char Array Thanks, vcboy Hi, if you're talking about the string from the STL then all you have to do is call the c_str() method that returns a pointer to the first char in the string: std::string str("test string"); char* s = str. ...Show All
