Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > c# > july 2003 > threads for tuesday july 15

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Calling unmanaged C++ DLLs
Posted by Andrew Cumming at 7/15/2003 10:02:40 PM
I am having trouble using Platform Invoke to call C++ DLLs from C# windows applications. The DLLs seem to load, but I get run-time errors to the effect that the named entry points cannot be found. The DLLs are compiled in MS Visual C++ Version 6 and the C# applications are written in MS VS ...more >>


Function name
Posted by Vadym Stetsyak at 7/15/2003 8:59:36 PM
Hello! How can I get the info about the function at which goes the execution. I mean information that can be obtained with the help of __FUNCTION__ , __FILE__, __LINE__ in the C-language. -- Vadym Stetsyak ICQ 161730125 He, who commands the past - commands the future He, who command...more >>

Error when comparing a date in an access database
Posted by Jim H at 7/15/2003 8:48:54 PM
I'm trying to get a bunch of records based on client id and a date range. I keep getting an error when I enclose my date string in quotes in the where cleause. The error is: Microsoft JET Database Engine: Data type mismatch in criteria expression. If I remove the quotes and use MyDateVar.T...more >>

Flash and Alpha in windows forms
Posted by Kuba Florczyk at 7/15/2003 8:47:20 PM
Hi I've got a flash.ocx on a form in which i want play a movie, under this movie i've got a image. Everything is ok, but in flash movie some objects got alpha <> 100 and thru flash i should see elements from background image. I know how to set TransparencyKey in form, i know how to set Opacity...more >>

Basic ASP.NET problems
Posted by Boris Zakharin at 7/15/2003 8:39:47 PM
I've been having nothing but problems since trying to create ASP.NET projects in VS.NET 2002. I am using Windsows XP Pro and am primarily logged in as an Advanced User rather than an Administrator. In this configuration I can only create a web project using "use frontpage extensions." And when I ...more >>

COM interop problem.
Posted by Ashish at 7/15/2003 4:13:28 PM
Hi All, I have a COM dll that has a method: [id(3), helpstring("method Add")] HRESULT Add([in] DOUBLE nFirst, DOUBLE nSecond, [out,retval] DOUBLE* nSum); STDMETHODIMP CTest::Add(DOUBLE nFirst, DOUBLE nSecond, DOUBLE* nSum) { // TODO: Add your implementation code here if (nSum = NU...more >>

VB newbie to C# - DLL Reference problem
Posted by Andrew Mueller at 7/15/2003 4:03:01 PM
Hello, I have been searching for quite awhile and probably just do not know what to search on.... Here is my issue: I am creating a Windows Service and I referenced a dll. I have used this dll many times with Visual Studio 6, but never 2003. I have no problem instantiating ...more >>

add reference programmatically
Posted by Gary Brewer at 7/15/2003 3:46:57 PM
Hi, I have a Windows Forms application stub (Admin.exe) that runs on a local machine. It loads assemblies from a website programmatically using the Assembly.LoadFrom static method. One of the assemblies it loads is called RTC.dll, which, in the VS.NET designer has a reference to RTCremotin...more >>



string 2 date conversion
Posted by Michael Wu at 7/15/2003 3:35:16 PM
I have a string looked this "2003-07-08T13:04:00.0000000" How do I convert it into a System.DateTime object? Regards Michael ...more >>

How do I get info regarding the calling method
Posted by CGuy at 7/15/2003 3:10:35 PM
Hi, I'm trying to implement a custom trace listener. I would like the WriteLine method of this tracelistener to also write out information regarding the method from which Trace was called. For example, public void Method1() { Trace.WriteLine("Sample Text"); } public void Method...more >>

Handle to a window
Posted by JJ at 7/15/2003 3:05:29 PM
Hi All, How can I get the handle to a window in c#? I did notice that for a form in C# there is a hwnd property, is this one and the same? Thanks, JJ ...more >>

DataGrid Retrieval?
Posted by Supramanian Murugesan at 7/15/2003 2:48:48 PM
Hi, I have a datagrid filled by some rows from the db. When I click a particular row in the datagrid I should able to insert the selected rows value to a DataRow / Array. Is there anyway of doing this? thanks in advance, SP.Murugesan. ...more >>

DeviceIoControl to compress files
Posted by Jules Crown at 7/15/2003 1:40:00 PM
Everyone, greetings, newbee here. What I'm trying to do is to compress files on NTFS from C#. I've been fishing around for info and gathered the hereafter. I'd like to know what's wrong with it. [DllImport("kernel32.dll")] public static extern int DeviceIoControl( IntPtr hDevice, [Marsha...more >>

creating color object
Posted by fragget at 7/15/2003 1:09:45 PM
hi i have a string like "ffff032d" which represents a color. i want to create a color object given this value but am having trouble. this is what i have so far. Color myColor = Color.FromArgb(Convert.ToInt32 ("ffff032d")); it fails to convert the string to an int. thx - fg...more >>

Newbie - When to use MarshalAs.UnmanagedType??
Posted by dirkschulze777 NO[at]SPAM hotmail.com at 7/15/2003 1:03:01 PM
Hello, please have a look at the fallowing code: /* NetWkstaGetInfo - WKSTA_INFO_100 typedef struct WKSTA_INFO_100 { DWORD wki100_platform_id; LPWSTR wki100_computername; LPWSTR wki100_langroup; DWORD wki100_ver_major; DWORD wki100_ver_minor; }*/ [StructLayout(LayoutKind.Se...more >>

C# enum
Posted by coder5811 NO[at]SPAM yahoo.com at 7/15/2003 12:55:05 PM
Hi, I have the following: private enum LineFormat { LEFT_TO_RIGHT, RIGHT_TO_LEFT }; private void DrawLine ( LineFormat ) { // draw differently depending on the parameter } So how do have an enum as a parameter. I know I can put an int parameter and it will be fine, but I want oth...more >>

VS.NET repositions code
Posted by Tom at 7/15/2003 12:41:32 PM
Has anyone had this happen. I'm in a ASP.NET application using c#. I drag a label and text box to my page. I add a table add some <tr>'s <td>'s. Then I nest another table, line my code up so it all indents just the way I like it. I then switch to design view, then back to HTML view o...more >>

Excel RowCount
Posted by John Barr at 7/15/2003 11:38:32 AM
I am using C# to import data from an Excel File, and trying only want to get a rowcount of rows with data in them, not 65536. Is there a way to do this, or do I need to cycle through all the rows to determine if data exists..?...more >>

How test if System.Object's are same type and equal?
Posted by Ed Sutton at 7/15/2003 11:23:29 AM
I have variables that are declared as objects. Ints, strings and other data types are then assigned to these objects. How can I write a compare objects function? I tried objOne==objTwo. I am guessing that this must be comparing references and not values because it returns false. // Test ...more >>

name.exe.config is getting killed by 2003?
Posted by Les Caudle at 7/15/2003 10:59:52 AM
When I compile my project in VS.NET 2003, the projectName.exe.config file in the BIN directory is deleted. This was not the case in VS.NET 2002. How can I resolve this? -- Thanks in advance, Les Caudle...more >>

System.Runtime.InteropServices.SEHException
Posted by Dave Harris at 7/15/2003 10:44:37 AM
Using .NET 1.1 on XP, we are getting this exception under certain circumstances. Can anybody describe in better detail what this exception signifies and possibly give any advice for tracking this down. The most reproducable scenario happens when a modal dialog (in managed C# code) is ope...more >>

using System.Management
Posted by Andrew Chen at 7/15/2003 9:47:07 AM
Hi: I've been unable to compile the namespace System.Management, which returns an error decribing the reference does not exist. Can anyone tell what happened there? My thinking is that I need to upgrade .NET framework to version 1.1!?! ...more >>

Listbox problems
Posted by Karin at 7/15/2003 9:46:59 AM
Hi, Can anyone explain to me why SelectedIndex is automatically changed to 0 when I set it to -1? This happens when I set SelectedIndex = -1 from the click-eventhandler of a button. My ListBox is bound to an ArrayList. Thanks! /K ...more >>

Combobox populating Value ??????????
Posted by Richard Kvist at 7/15/2003 9:30:49 AM
Hi ! Is there a way to populate the Combobox value without using the databind property, I use a foreach clause instead. Richard ...more >>

Why do I keep getting a warning that a reference cannot be overwritten when I compile?
Posted by nfr at 7/15/2003 8:49:41 AM
I keep getting the following warning in my compile: Warning: The dependency 'WBWebServices, Version=1.0.1289.13943, Culture=neutral' in project 'WBWin' cannot be copied to the run directory because it would overwrite the reference 'WBWebServices, Version=1.0.1289.15088, Culture=neutral'. If I...more >>

How best implement ASP.NET Forms Authentication?
Posted by Ronald S. Cook at 7/15/2003 8:44:00 AM
In my ASP.NET app, I have a few pages that I want to be public (i.e. accessible by everyone) and the rest private (user has to be signed in). In the examples I've seen, the public files have been in the root folder with it's own Web.config file and the private ones in a subfolder with a separate...more >>

Checkbox Problem
Posted by bearbaba at 7/15/2003 6:36:21 AM
Question: The checkbox can use on the treeview nodes. But when I checked treeview checkbox , I can not get the checkbox status value which true or false. How can I get the value of checkbox in the treeview nodes, thankyou....more >>

How to instantiate an object using a string in C#
Posted by Prashant at 7/15/2003 5:26:33 AM
Hi , Need some help ! . I am storing Classnames in an XML file and depending on the user's choice of process want to : 1) Read the classname of that process from the XML file 2) Instantiate an object of that class from the string received from the XML (which is the classname) No ...more >>

Captionless window
Posted by All Rise at 7/15/2003 12:01:33 AM
Hi all, I want to show a window without a caption bar but having smooth edges like normal windows have. Thanx. ...more >>


DevelopmentNow Blog