Ben Alden's Q&A profile
Visual C# C# and COM Interop and HRESULTs
Hi, I have a COM object that I am using via c#. THe object supports a method that checks an angle lower and upper limits and returns a bool. The result is either a pass or fail, if it fails further information is passed via the HRESULT indicating whether it failed the upper limit or lower limit check. So this is not an error just a logical failure. Is there anyway I can look at the contents of the HRESULT after the call, even when an exception ...Show All
Visual Studio Express Editions Find an element in a ComboBox with a list of objects
I have a class Class clMark as public id As Integer public name As String ............ ............ Public Overrides Function toString() As String toString = me.name End Function Public Overrides Function Equals(ByVal obj As Object) As Boolean If (obj.GetType Is Me.GetType) Then Equals = (Me.id = obj.id) Else Equals = False End If End Function end class ...Show All
Windows Forms DataGridView Struggle - Password chars, delete buttons and dialog box
Hello to all forum members, For more then few days I struggle with the DataGridView Control of C# - with little success. I will appreciate your help for the following issues: I have a dB with a table that contains one column of passwords. I'm interested in displaying the information in this column as '*' and not the real content. How can I do this (Can't do casting to textbox). How would I add a 'delete' button, by which I can remov ...Show All
Visual C# Questions about using Active X controls in C#
Hi, I am trying to use a activeX control in C#. I add the control to references. I need to call one of the function of the ActiveX Obj. I got confused here. It was defined as **.Register(int hWndCtrl, object Flags); VC++ provided sample as HWND hwndTop = GetDlgItem( IDC_EDITTOP ); hRes = m_pIDgnDictEditTop->Register( (long)hwndTop, CComVariant() ); In VC#,& ...Show All
Visual J# java (J2EE 1.4) convert to J#
Hi, I want to convert my application in java (J2EE 1.4) to J# with minimum changes. Where can I get the script Thank's Alexei (I have tryed JLCA 2.0, 3.0 and it gives me about 100,000 errors becouse it convert to C#. I don't have a time for working on errors. I read that Java can be converted to J# with minimum errors.) Generally my experience doing this always leads me to running the J2EE code under Object Web or JBoss's free J2EE se ...Show All
SQL Server Express cannot convert different data types automaticly????
I have a SQL Server 2000 database which works like a charm in my asp app. Joining tables by id columns which are of different data types (eg. int in one table and varchar in the other) is no problem with the SQL Server engine, but Native Client refuses to do so and hands me back an error. Even if columns have a slightly different collation (like Slovenian_CI_AS and SQL_Server_1250_CI_AS) SQL Express native client returns an ERROR !!! Is it pos ...Show All
SQL Server Sql Server 2005 - 1 processor license on a dual processor server.
Can I install a Sql Server 2005 - 1 processor license on a dual processor server (physical processor, not dual core). Is sql2005 clever enough to restrict itself to just one processor Or is it a breach of the license agreement thanks hb If both CPUs are used by the operating systems you need dual CPU license for SQL Server. http://www.microsoft.com/sql/howtobuy/processor.mspx ...Show All
Visual C# WebBrowser control as Editor With RitchTextBox For Code??
hi..Everybody.. I have make WebBrowser like html editor..which i have take the code of that from some site..But the question is how i can make the html editor with RitchTextBox run syncronizelly..Like Exactly MS-FrontPage..2003..i want like when i type any character on WebBroswer Editor..i want to render each character writen to RitchTextBox.. basically like ms frontag page way.. Kind Regards.. Bassam Basamad hi..thanks ...Show All
Visual Studio Team System Delete folder changes check in
G'day, I was performing delete folder operation within the following sequence (I have C# class library project open in VS and under source code control as prerequisite;the project contains folder Test with files Class1.cs and Class2.cs): Delete folder Test using pop-up menu "Delete" in Solution Explorer The project file is checked out (I have automatic check out on edit enabled, so VS does check out automatically) Now, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creating a simulation using Direct3D
Hello, I am working on a project to create a simluation of a football (or soccer ball) flight after it has been kicked. This includes velocity, spin, etc in 2D and then 3D. The software that this needs to intergrate with is written in VC++. Thus the sim needs to be able to access some data/variables from this software.The simulation needs to be embedded within the control software (running on XP Tablet) and automatically displayed rather t ...Show All
Windows Forms Statrt Up for Smart Client Projects
I have been reading the articles and overviews on Smart Clients. But have been unable to find some simple/example solution/projects to get started. Where can I find some sample apps to get started Also is the a Smart Client forums somewhere, havent been able to find smart client forums This forum seemed most relavent place to post. TIA Have a look at the following page: http://www.windowsforms.net/Default.aspx tabindex=8&tabid=3 The ...Show All
Windows Forms datetime value doesn't display on the datagrid
hello everyone, I have a DataTable which bind on the DataGrid. My problem is the field with a datetime value doesn't display as datetime format, only date format display. the datatable was fill from a datasource from sql server. <SELECT EMPNO, MEMBER_DATE  ...Show All
Windows Forms Dataview Value
Hi, I have a form that use a dataview derived from a dataset. The dataview populates a combobox to allow for row selection and is databound to a textbox called cost which displys the cost of the selected item. Is there a way that I can&nbs ...Show All
Visual Basic DataTables??
I need to figure out how to take data from one table and create a table in memory with my own columns. How do I create this table in memory and pass the data to it Hi, Here is code snippet to create a datatable in memory. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim dt As New DataTable("MyTable") Dim dc As New DataColum ...Show All
Visual C++ Linking-Error with VSC++ 8.0
hey ho, I just updated my project from VSC++ 7.1 to VSC++ 8.0 Express Edition. Unfortunately, i get a linker error every time i compile my project: 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" ( $ ...Show All
