DavidC#2005's Q&A profile
Visual C++ Type casting question
I need to convert one legacy C++ type to .NET type.I would like to know which is the preferred one.I am writing code in managed C++. int a; 1)System::Int32 i = (System::Int32)a; 2)System::Int32 i = Convert::ToInt32(a); Thanks in advance Jimmy Martin, This actually confused me.This syntax looks like legacy C++ casting.Is this preferred in C++.NET What is your reason for using the same ...Show All
.NET Development now that .Net 2 framework is out... how long will .Net 1.1 framework be supported
now that .Net 2 framework is out... how long will .Net 1.1 framework be supported.... and the Visual Studio 2003 Allow me to introduce you to the Microsoft Lifecycle Information page that contains all of those dirty details on many many Microsoft products. To answer your question though, Mainstream support for the 1.1 Framework and Visual Studio .NET 2003 ends on 10/14/2008 while extended support will end on ...Show All
Windows Forms Custom TreeView
Hi I'm trying to create a custom TreeView using C#. What I want to do is to paint the background of the TreeView with fill gradient colors. The problem is, even when I override the OnPaint event, the control still has the white, original, ...Show All
Visual Studio 2008 (Pre-release) opening infopath using avalon application
hi, Please help me in opening infopath using avalon application when button is clicked. Thanks in advance for help Chanduu. Thank you very much for your help. Can you please explain me how to open existing infopath when a button is clicked in my WPF application. ...Show All
Smart Device Development Automated Test Tools For Compact Framework?
Whats recommended/what exists Thanks! Nothing exists yet unfortunately. VS2005 offers unit testing but even that is not supported on netcf: http://www.danielmoth.com/Blog/2005/05/compact-framework-unit-testing.html Cheers Daniel ...Show All
Visual Basic Convert a long into a dword
The registry setting below hides\shows the my document's icon on the desktop. I'm having a problem entering the appropriate values. Both methods below give aconversion error at runtime. If I don't specify the value type, a reg string value is created, but the value needs to be a dword. Private Sub HideShow( ByVal iconvisible As Boolean ) If iconvisible = True Then My .Computer.Registry.SetValue( "HKEY_CURRENT_USER\Software\Mic ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multiple configs & EULA
Hiya, I just had a quick look at XNA Build in between waiting for builds. :) It certainly looks nice and I'm encouraged by what I've seen. I do have some questions though: I can't figure out how to handle multiple configs such as a sku or a platform, is this possible in the Designer window Assuming the above, can I specify what to include/exclude for each config Is it possible to specify what to build E.g.: a particular entity ...Show All
SQL Server from Express to 2005? - How to?
I have a database on SQL 2005 Express and i want to restore in SQL Server 2005 Beta 2 but it's not accepting it so how can i do it please any tool ..and in addition to that the license of beta is no longer valid since the RTM was published. if you want to move forward get a RTM version of developer or any version you want to migrate to. HTH, Jens Suessmeyer. --- http://www.sqlsevrer2005.de --- ...Show All
Visual C# What is a Hashtable?
Hi, Can anyoane explain to me what is a hashtable Thank you, Hashtable is a member of System.Collections which is a collection of key/value pairs that are organized based on the hash code of the key. Read more about it on MSDN: http://msdn2.microsoft.com/en-us/library/system.collections.hashtable(VS.80).aspx ...Show All
Software Development for Windows Vista Alpha-Blended DirectX Overlay
Hi, I would like to create an overlay with a surface that overlays another surface. The specific application is to take the video rendered from a AX control drawing using DX, then create an menu overlay with another DX surface and have the menu alpha-blended over the video surface. So far I have tried a transparent dialog box, but the video underneith flickers as the region is invalidated. The overlay box fades in and out perfectly, b ...Show All
Visual Studio Team System Custom Work Item Types and Sort Order
I would like to create a custom work item field that has its own sort order. This would be like an enumerated type, for example: Low Medium High Alphabetically, these show up sorted as Low, High, Medium. That's not really desirable. If the user sorts in ascending order you'd like it to retain Low, Medium, High sequence. In addition, in descending order you'd like it to sort as follows: High, Medium, Low. Aside from preceding these with "1 - ...Show All
Visual Basic Unicode question
After I have compiled my application are there ANY possible ways that UNICODE can affect the running of the application in any way at all For example (run on these systems characters typed and entered into fields will they be 4 byte characters ) If there is any possibility of any problems at all then how do I know when this is happening and how do I resolve the problems Michael J. Dyrnaes I keep asking you ... HOW do I know wh ...Show All
.NET Development Getting System.Type from static method
Is it possible to get the System.Type of a subclass from a static method in an abstract class public abstract class MyBase { public static void MyMethod() { //Get System.Type here } } public class MyDerived: MyBase { } When I call MyDerived.MyMethod(); Is it then possible to get the type of MyDerived in the method MyMethod() Thanks Brian I'm having the same problem and I haven't yet been able to find ...Show All
Visual Studio Printing without the ReportViewer
In a Win Forms app, is it possible to print a report without using the ReportViewer control I want to provide a print button on a Form (like Outlook does) and then use an embedded Report to print the data so I don't really need the ReportViewer. I would want to display the PrinterDialog though and use the settings from here to control the printed Report. Is this possible too Regards Graham Well, I'm so clo ...Show All
.NET Development Unable to convert input xml file content to a DataSet from DataSet Designer
First of all, here's the error: Error 1 Unable to convert input xml file content to a DataSet. 0 is not a valid value for Int32. Input string was not in a correct format. C:\Documents and Settings\dolan\My Documents\Visual Studio 2005\WebSites\ReproProject\App_Code\DataSet1.xsd 1 Second: I didn't do anything other than drag a table from server explorer into the designer. Immediately I save it and try to build the website as a test and get t ...Show All
