Colin Carter's Q&A profile
.NET Development Type.GetTypeFromProgID vs. GetTypeFromCLSID
Hi, I am using the above methods to remotely instantiate an object registered in COM+ without using a proxy on the client machine. I want to be able to connect to different servers, so that's why I'm not using a proxy. I noticed that the method GetTypeFromProgID doesn't work (generates an exception) if the server object (or its proxy) is not registered locally. Surprisingly, GetTypeFromCLSID works fine, which makes me believe that the first ...Show All
Visual Studio 2008 (Pre-release) Real World Localization of WPF Project
Hi All, So I have read the articles about WPF localization. The bottom line is that after a 9 step process (create neutral, add "current culture code', add UIDs, update csproj, rebuild, extract with locbaml, translate csv, create target folder, generate target with locbaml) we end up with a YourApp.resources.dll which contains the GUI of your XAML in the target language. OK. Now a real app has some resources such as strings and ima ...Show All
Visual Basic Almost connected via serial port using VB 2005.... What is wrong with this app?
Hi There! I need to establish communication between my pc an analytical balance using VB 2005. I have a Form that can pick up an available COM port, send data (using serialPort.WriteLine(txtDatatoSend.Text & vbCrLf) and receive data (using System.IO.Ports.SerialDataReceivedEventArgs) from it but something in the code is still wrong. Using this Form I sent a connection command to the balance (CMD=SI) to get the weight on the balance back ...Show All
Visual C++ calling a WINAPI function from a managed main creates linker error
OK, here is the latest saga from this newbie: Whenever I try to call EnumDesktopWindows or GetWindowsText the linker vomits out the following: LocateWindow.obj : error LNK2028: unresolved token (0A00000D) "int __stdcall EnumDesktopWindows(struct HDESK__ *,int (__stdcall*)(struct HWND__ *,long),long)" ( EnumDesktopWindows@@$$J212YGHPAUHDESK__@@P6GHPAUHWND__@@J@ZJ@Z) referenced in function "public: void __thiscall LocateWindow::setPopulateWindow ...Show All
Visual Studio Team System Beta 3 Setup Error: Windows SharePoint Services is not configured as recommended by Team Foundation Server
I am trying to install Team Foundation Server Beta 3 as single server installation and installed all required software components. However, during the installation, it gives me "Windows SharePoint Services is not configured as recommended by Team Foundation Server" error under "Recommened Components" dialog box. I exactly have followed an instruction specified in setup guide for Team Foundation Server Beta 3 for SharePoint services installation. ...Show All
Software Development for Windows Vista LoadLibrary (regsvr32) fails without Visual Studio 2005
I've just upgraded from Visual Studio 6 to Visual Studio 2005. I've got the latest DirectShow stuff (in the platform SDK) and am using it. Everything builds and runs fine on my development machine (which has Visual Studio 2005 installed) but when I try: "regsvr32 "myfilter.ax" on a different machine (without Visual Studio 2005, both machines are WinXP Pro and up to date AFAIK), I get the error: LoadLibrary ("myfilter.ax") failed - ...Show All
.NET Development Query for inserting data into a database
Hi.Can someone please attempt this and help me. I am jus constructing a simple system that saves info into the database from 4 textboxes on the form. The three text boxes take in the title, surname and name of a given person. I have dropped an OleDbConnection Command on to the system thus setting up the connection to the database. I have also dropped an OleDbCommand object onto the form. I have renamed the OleDbCommand to ObjSaveCus. This will b ...Show All
SQL Server Reporting Services Error -- Could not find stored procedure 'spPM_ProjectManager'
Hi All, I built this report same way like the other reports but in different database. When preview in visual stuodio, it is fine. When deploy to the server, I got this message: Report Services Error An error has occurred during report processing. (rsProcessingAborted) Get Online Help Query execution failed for data set 'ProjectManager'. (rsErrorExecutingCommand) Get Online Help Could not find stored procedure 'sp ...Show All
Windows Forms MDI Keystrokes
So I have a MDI application, all MDI child windows extend a MDI base form class so they all have common code. What I want to do is capture keystrokes and look for a special key event from a barcode scanner, when this keystroke is inte ...Show All
Visual Studio Re-installing VSTS 180-day trial
Hi all I've had Visual Studio 2005 Team System 180-day trial installed for a while. After some trouble I had to uninstall everything VS2005-related. Now, when I try to install the trial again, it refuses to install with the message "A trial edition is already installed on this computer. You must uninstall the previous trial before installing another trial edition." . It's not "another trial edition" of course, it's t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I need e-book for directx programming
hi.... i need e-book for directx programming on C#... please help me! Yes Glenn's blog is now at http://www.virtualrealm.com.au/ I will edit that old link out of the posts. You are correct that after it expired it was taken over by someone else. ...Show All
SQL Server cursor usage
hi guys i have a table that contains a tremendous amount of row. i have written a stored procedure that takes a summary of that information and updates it's master table as well as another table. the problem is it takes very long to do. is what i am doing correct or is there a better way. here is the source CREATE PROCEDURE update_cvrbatches AS declare @code varchar(25),@type varchar(3),@batchno varchar(10),@batchqty Float,@issued floa ...Show All
Visual C# Multiline strings?
My second question of the morning ;-) I have a snippet of code that I'm using to create a .sln file for a bunch of .csproj files. The snippet works well enough but it strikes me as being rather clumsy. Is there a better way to create a multiline string than to use an array and string.Join Regards, Angus string[] slnTemplateArray = { "Microsoft Visual Studio Solution File, Format Version 9.00", "# Visual Studio 2005&q ...Show All
Visual Studio Nested Sub Report Feature in CR for VS .NET 2005 Beta 2
Hi, Is the nested subreport (sub reports within a sub report) feature is supported in CR for VS.NET 2005 Beta 2 When we open a sub report from the main report in the designer, and we right click in the designer of sub report, the sub report menu item is disabled and can't be chosen. If it's supported, how Look forward to the answer. Thanks in advance. Hello David, Nested subreports or multiple levels of s ...Show All
Windows Forms Databinding and custom control
I have a custom combobox that has a on it. When I databind to that property, it doesn't seem to work. What do I need to add to the property code to make it databind compatible Public Property SelectedKeyID() As String Get Dim obj As Object Dim _SelectedObject As Koolsoft.ListItem If Me .SelectedItem IsNot Nothing Then obj = Me .SelectedItem If obj.GetType.ToString.Trim.ToLower.EndsWit ...Show All
