Mike Hildner's Q&A profile
Visual Studio Get source control information from add-in
Is it possible to find out what source control provider is currently used, the name of the server and a files path on the source control server from an add-in Using the DTE.SourceControl object I can find out if an item is under source control, but it doesn't provide any more information than that. Hi Appel, Unfortunately, the current SCC provider is not exposed via DTE. This information can only be obtained via the VSIP interfaces. Thanks, Aaron Marten ...Show All
Visual Studio Express Editions Another Problem
Hi, I was wondering if there is anyway to turn a huge amount of code into a simple function. Right now I have a bunch of check boxes and they are all named C1-C7 and W1-W7, instead of putting in code for each one when clicked, which results in a large amount of code, is there anyway I could make one function to handle all of these. I tried something like this. If C(num).checked=true then W(num).checked=false endif its just a basic example of what i want and i could really use this later on. Thanks The following is just for three buttons per set. Just add more handles clauses as required. Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.Ev ...Show All
SQL Server "Error converting data type nvarchar to real" using LIKE operator on CHAR column
View1 has a CHAR column of CharCol1. While using LIKE operator on this column, I receive below error. Select * from View1 Where CharCol1 Like '%77%' Msg 8114, Level 16, State 5, Line 1 Error converting data type nvarchar to real. But all of below syntax works: Select * from View1 Where CharCol1 like N '%77%' Select * from View1 Where CharCol1 Like '77' Select * from View1 Where CharCol1 = '77' Why does SQL 2005 treat '%77%' as real This used to be working in SQL 2000. Actually the view was being used in SQL 2000 and after SQL 2005 upgrade, this error has started. Last view used a view and that view also uses another view. There are three l ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Managed Direct3D 10
Since XNA only supports DirectX 9.0 Where is Managed Direct3D 10 I hope there will be Managed wrapper for Direct3D 10 thanks Jononet wrote: XNA only lets you use an entire window for the graphicscomponent. This is not much use to people like me that make business apps with 3D elements in them, for us being able to create a device in a control within a Windows Form is essential. Our applications are never going to hit the XBox so we would end up moving away to OpenGL libraries rather than use C++ which is too much of an overhead in a RAD environment. Though it's not stated in the docs, XNA does in fact let you manually create the device and render to a control in a ...Show All
.NET Development problem converting string to datetime datatype
This code has been working for 2-3 mnths; now when we have moved both the site and the backend to a new server it throws this error... "Conversion from string "29/02/07" to type 'Date' is not valid." Dim username As String Dim reqrddate As Date = Format(CDate(txtrequireddate.Text), "dd MMM yyyy").ToString Dim nhi As String Dim eventnum As Integer Dim accnum As String = "" Dim reqstdate As String = txtrequestdate.Text Dim delivery As String '= "" Dim ward As String = txtward.Text Dim i As Integer Dim Item As String = Nothing Dim j As Integer Dim acclength As Integer <--more code --> Dim sql As String = "insert into requests ( [User_name ...Show All
Visual Basic Controlling the serial port from VB2005
I made a VB2005 app which is *supposed* to open the serial port and receive data from it (the serial port is controlled by a SerialPort control named com0new). However, it fails with an exception: "UnauthorizedAccessException Access to the port 'COM1' is denied." COM1 is the only serial port my computer has, and I know it is unused when I run the program. The following is the function generating the exception: Function ReceiveSerialData() As String ' Receive strings from a serial port. Dim returnStr As String = "" Using com0new As IO.Ports.SerialPort = _ ...Show All
Visual Studio Express Editions Wim32 application problem
I have programmed server and client application (win32 console) in VC++ 2005 Express Edition (+SDK). When I try to run client application on computer without VC++ (clear PC with windows XP), there is an error - system cannot run the application. What are causes sorry for my english... Most probably the cause is that you are linking dynamically to the CRT but you haven't deployed the needed binaries on the other machine. Take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=398802&SiteID=1 for deployment options. Thanks, Ayman Shoukry VC++ Team ...Show All
SQL Server Jet.OLEDB.4.0 and Linked Servers (SQL standard 2005 on Win2003 SP1)
I have been trying to figure out for some time why Linked Servers do not continue to run. I start up my SQL Server Database service, and then using SQL Server Management Studio I create one or more linked servers to Microsoft Access Databases using the Jet Provider. I then run some queries to that access those linked servers without any problems. (One currently is called 'THE') After some time has passed, possibly minutes, hours or days, I can no longer access any of the linked servers. No data, queries, tables, or anything is accessible to me anymore. I use this command "EXEC sp_testlinkedserver N 'THE' " to test the linked server and get the following error msg. OLE DB provider "Microsoft.Jet.OL ...Show All
SQL Server How do they control the distinct records in a table without using any keys in SQL Server 2000?
Hi, all, Thank you very much for your kind attention. I have just restored a database backup file generated by SQL Server 2000 to my SQL Server 2005 database engine, and I found that some tables dont use any keys at all. But have checked the distinct records in those tables finding that each record in those tables is exactly disctinct without any duplicate rows. How did it work out to control the distinct record in those tables Thank you very much in advance for your kind and advanced guidance. With best regards, Yours sincerely, it could be using a unique index you can find it expanding the table and the index folder inside it if you find some index right click and clcik on properties then you can find o ...Show All
Visual Studio Express Editions Access table creation conundrum in VB2005E
Hello, An Access database was created and opened in VB. This database has no tables. Never had. Hoped that will be the same procedure to create a table as is with an sql database i.e. right click on Tables>Define Table. The database.mdf icon is there but only Query is possible, unfortunately there is nothing to query, because the table was not defined yet. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Private Sub btnCreateTable_Click( ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles btnCreateTable.Click Dim conADO As ADODB.ConnectionClass = New ADODB.ConnectionCla ...Show All
.NET Development Class serialization problem (with an Assembly as one of the members of the class)
Hello, We are experiencing problem with binary serialization / deserialization of assembly (as a member of other class). Suppose we have (in C#): [Serializable] public class SomeDataContainer { public List<string> someImportantData; public Assembly dynCompiledAssembly; ... ... } dynCompiledAssembly is created with CSharpCodeProvider, contains a class and several methods. Then we serialize the SomeDataContainer class instance with BinaryFormatter (to disk). Everything's fine so far. While trying to deserialize the saved instance, a FileNotFoundException is thrown, specifying that it is not possible to load an assembly with certain name, version and evidence - in short, the same dynamically created assembly that was supposed (by simple ...Show All
Visual Studio 2008 (Pre-release) How-to skin application?
Hello, I am looking into the subject and have to say, that I feel a bit disoriented... :( My goal is to build the main application and allow our partners to develop skins that can be distributed/sold to product users. Obviously, we would like to make it hack-proof, so that "outsiders" cannot modify skins/develop new skins. Solution that comes to mind would be to have signed assemblies that would contain ResourceDictionaries (with optional related code), so that application could load those assemblies at run-time, validate them, and apply templates. I would guess that it is something easy to do, but I have unfortunate feeling that I am becoming almost sure that this scenario is not supported by WPF (I refuse t ...Show All
Smart Device Development IRDA file transfer problems
I am trying to trasfer some database files using IRDA between PPC 2003 devices running the compact framework 2. When transfering a very small text file, it works fine. When transferring a 288KB .sdf file, I get an IOException on both devices. I am using c# using the sample code provided here: http://msdn2.microsoft.com/en-us/library/system.net.sockets.irdaclient.aspx#Mtps_DropDownFilterText Looking at the code, I don't see any reason for it to throw an exception. On the receiving device I get this exception: IOException Unable to read data from the transport connection. On the sending device I get this exception: IOException Unable to write data to the transport connection. It is not consistent exactly how many times it will loop before th ...Show All
Smart Device Development Mobile Datagrid Format
I am using a datagrid in 2003 SE. I am not able to find a way to format the column (i.e. set them to display currency.) The easiest way to do this is to add a calculated field to the table: Assuming that the currency column is called cost: tbl.Columns.Add("FormattedCost", typeof(string), "'$' + Convert(cost, 'System.String')"); Then bind your grid column to this calculated column. Another approach is described here: http://www.alexfeinman.com/download.asp doc=GridDemo2.zip This one is most flexible as formatting is done on the fly in .net code. Finally, in CF2.0 SP1 you can override cell painting ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX10 only on Vista?
I've searched everywhere but all I can find is rumors, rumors and even more rumors. Will the final version of directX 10 run on windows XP Yes the aero shell is built on D3d9 EX (the ex is the version that is modified slightly to allow it to run on the Vista driver model). OpenGL - I believe the current plan is that it somehow layers over DirectX and the feeling from the OpenGL community is not very positive http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi ubb=get_topic;f=12;t=000001 . However Vista is still in beta so any perf issues are early days. I'm not an OpenGL person so I'm not really following the progress on that issue. ...Show All
