Gess Man's Q&A profile
Visual Studio Problems with DSL Tools Version 1
Hello I recently installed Visual Studio SDK September 06 which includes DSL Tools V1. The new features are really great and I was stunned what progress was made since the last version. But now I encountered two problems. A small one and a bigger one. Let's start with the bigger one: I created an language called ETDL. In the Debugging solution, when I create a new ETDL file, I'm able to open it in the designer and add shapes and connectors and stuff. But then, when I close the file and reopen it, I get an error saying "Cannot load xxx.etdl: An item with the same key has already been added." or the file is opened in the designer but the location of all shapes weren't saved. The second problem is a small one. I added some element ...Show All
SQL Server 64 Bit and 32 Bit Reporting Servers in same web farm
Can I mix 64 Bit and 32 Bit Reporting Servers in same web farm I currently have a distributed environment with 2 32 Bit Web Servers and a 32 Bit Reporting Services Database server. I would like to add 64 Bit web servers to this configuration. Are there any issues with this This wasn't really a tested scenario, but I think in theory it should work. I mean I don't see anything in the RS product code that prevents you from doing so. It's always interesting when a theory is put to test though :). If you decide to go down this route, let us know any problems you find. ...Show All
Visual C++ How do I pass cin values into a constructor function
I'm right at the beginning of my C++ journey, and I'm having trouble modifying code to do what I want! readers of SAMS will be familiar with the code example, if not the problem! I have a Class (Cat) that can be used to create Cat Objects (Frisky, Shandy, etc.) from header file cat.hpp:- //this is cat.hpp #include <iostream> class Cat { public : Cat ( int initialAge); // Constructor - initialises the class with the variable initialAge ~Cat(); // destructor - does nothing int GetAge() const { return itsAge;} // inline! void SetAge ( int age) { itsAge = age;} // inline! void Meow() { std::cout << "Meow.\n" ;} // inline! private : int itsAge; }; ...Show All
Visual C# PInvokeStackImbalance was detected
Hi, I keep getting this error when I try to run my project from the IDE.This does not happen when running the exe. The details specify that the Stack Imbalance was detected in a third party dll which I am using. How can I fix this. Thanks, tribal A call to PInvoke function ThirdPartyDll!Namespace.ClassName.NativeMethods::ImageList_DrawEx' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. I encountered the same issue when trying to encorporate XPExplorerBar into one of my projects. It turned out that the vers ...Show All
Visual Studio Express Editions How to Highlight Textbox Text on Gaining Focus
How to Highlight Textbox Text on Gaining Focus I used these codes: Private Sub txtAns_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtAns1.KeyDown, txtAns2.KeyDown, txtAns3.KeyDown, txtAns4.KeyDown, txtAns5.KeyDown, txtAns6.KeyDown, txtAns7.KeyDown, txtAns8.KeyDown, txtAns9.KeyDown, txtAns10.KeyDown, txtAns11.KeyDown, txtAns12.KeyDown, txtAns13.KeyDown, txtAns14.KeyDown, txtAns15.KeyDown, txtAns16.KeyDown, txtAns17.KeyDown, txtAns18.KeyDown, txtAns19.KeyDown, txtAns20.KeyDown, txtAns21.KeyDown, txtAns22.KeyDown, txtAns23.KeyDown, txtAns24.KeyDown, txtAns25.KeyDown, txtAns26.KeyDown, txtAns27.KeyDown, txtAns28.KeyDown, txtAns29.KeyDown, txtAns30.KeyDown, txtAns31.K ...Show All
Software Development for Windows Vista InkCanvas selection adorner
Hello. Is there any way to modify the default selection adorner in an InkCanvas For example, I would like to make the resize handles round instead of square, change their color, or even enable/disable some of them depending on the element selected. If this is not possible with InkCanvas, where should I start to building towards this result Thank you. Stefan, Thanks for your answer. Do you happen to have anything that would get me started on (b) If I understand this correctly, I would need to create my own "selection" EditingMode (let's call it MySelectionEditingMode) that I will use in place of the default selection editing mode, like so: whenever selection behavior is needed, in ...Show All
Visual Studio Express Editions arraylist() or class to listview - is it the correct workflow???
If I understand correcty some of the basics of VB with my log_files I would create a/several class/es where to load all my data. The reason to use a class is that I can mix various data types like Integer/datetime/string, that would be my properties and use some methods applied to it like filters,sort. To display the class/es I would use a listview because of the rows and column format. I understand that readign the various messages here and there that I getting myself in to a difficult situation the best way would probably to go via ADO.NET with some kind of DB structure, but my origin are text files and I really don't want ot have too much stuff to install. Any suggestions, reccomendations Am I going down the right rou ...Show All
Windows Forms how to to fill a combobox diplay property with multiple columns not only one datafield
I have two fields : fld1 and fld2 I bind my ComboBox to the table: MyTable Butb I want both fields fld1 and fld2 to aappear in my displayed list of the combobox Any ideas thanks That's easy, You can't but with a bit of trickery and ownerdraw you can rol your own. you know what , here is some code for a combobox with multiple columns and autocomplete, it's written in vs vb.net 2003 : todo: 1. create a usercontrol 2 Replace all the code with the code below 3 build project, now on the my usercontrols tab on the toolbox there is a multicolumnCombo 4 drop a instance on a form, a set as usualy value,display member, datasource etc. 5 ...Show All
Smart Device Development Beta of Microsoft Certification Exam 70-540
Microsoft Certification Exam 70-540 is available in Beta form right now! This is a Technology Specialist exam for application developers in the mobility space. The Preparation Guide is available for the Exam at: http://www.microsoft.com/learning/exams/70-540.mspx . To register visit one of our independent testing providers: * Thomson Prometric: http://www.prometric.com/ContactUs/T...rs/default.htm * Pearson VUE: http://www.vue.com/ms/ Please use the following promotional codes when registering: Exam 71-540: BTA540 Best of luck! Howard Dierking Product Planner Developer and Database Certifications Microsoft Corporation Hi Howard, Now that's a bummer. Guess I should stop checking my exam ...Show All
Visual FoxPro Forcing code into a Click Event
I have added a grid to a form. I'm using the code below to control the contents of the grid. I want to react when the user clicks on Column4.Text1. How can I add an IF...ENDIF set of code to the ThisForm.Grid1.Column4.Text1.Click event WITH ThisForm.Grid1 .RecordSource = 'viols' .Column1.ControlSource = 'viols.oxv' .Column1.Width = 83 .Column1.Header1.Caption = 'Current status' .Column2.ControlSource = 'viols.violation' .Column2.Width = 320 .Column2.Header1.Caption = 'Violation' .Column3.ControlSource = 'viols.allowed' .Column3.Width = 81 .Column3.Header1.Caption = 'Violation Amt' .Column4.ControlSource = 'viols.new_oxv' .Column4.Width = 104 .Column4.Header1.Caption = 'Change status to:' ENDWITH ThisForm.Grid1.Column4.Tex ...Show All
SQL Server SQL 2005 auto-attach vs. traditional databases
This is my first post on Microsoft forums so please be gentle. I am not a developer, just trying to write some documentation and having a little trouble finding information. Is "traditional" an appropriate term for registering databases the old-fashioned way (not using auto-attach), or is there a better term What are the benefits and drawbacks of using auto-attach vs. traditional database representation It would seem to simplify deployment but present possible administration challenges. Is it possible to control the name of the database when using auto-attach, or must it always be the full path to the file Thanks, I think I will stick with the term traditional. Is it possible to ...Show All
Windows Forms Simple splash screen on o separate thread
Hello, i would like to ask someone kind to post simple splash screen on o separate thread example. Splash screen should consist of background image only and should be closed after mainform is fully loaded and initialized. Thank you. what you are asking is alot - look at how to create threads and events. http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemthreadingthreadclasstopic.asp take a look at this too: http://www.codeproject.com/csharp/apploadingarticle.asp df=100&forumid=14122&exp=0&select=407584 ...Show All
SQL Server Conversion of "True" or "False" textfields to display "Yes" or "No"
Hi All, I've created a report that has some textfields containing "TRUE" or "FALSE" as data output when I run the report. How do I convert these textfields to display "YES" or "NO" in the output when I run my report. (bits) Please advise. Thanks for your time and help. Thanks Brad !! I have another question...Is it possible to represent this column data as a Checkbox Please advise. THanks. ...Show All
Visual Basic Running a batch file
Is there a special way of running a batch file I have tried process.start but it is not working. The batch file works when I double click it but not when I try to run it through my program. Thank you, Troy L The following will work without any clicking at all and will start xyz.bat with no arguments. Process.start("xyz.bat","") If your requiring a double click - then its probably something in your code or the bat file as process.start should not require any user involvement. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Detecting a controller button press?
I'm using the following code to toggle my grid on/off at runtime: if ( GamePad .GetState( PlayerIndex .One).Buttons.Y == ButtonState .Pressed) grid1.ShowGrid = !grid1.ShowGrid; But it's badly flawed, in that the Y button is "Pressed" every time the button is down (eg. if I hold it down for 1 second, it would toggle 60 times). How can I reliably find if a button was pressed (eg. it's initial down state), without having to keep track of Up/Down states for every button myself AuzingLG wrote: The SpaceWar starter kit has a helper class which can keep track of the states for you. I'll take a look. Still, strikes me as something that should be in the framework :( ...Show All
