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# > september 2003 > threads for sunday september 7

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

Dllimport for mpglib.dll
Posted by purplenachos NO[at]SPAM yahoo.com at 9/7/2003 10:13:41 PM
Hi, I am trying to write a C# wrapper class for the famous mp3 decoder mpg123. I have gotten the win32 .dll version of it, and have a sample C program that uses the .dll which I think is pretty good. I have not found a C# or even a C/C++ wrapper class of mpglib.dll so this might be a difficul...more >>


Doing FTP in C#
Posted by Oleg Mustiazza at 9/7/2003 10:11:04 PM
Are there any classes for doing FTP in C#, similar to the CFtpConnection in MFC? Thanks, ...more >>

serialize into stream
Posted by andrewcw at 9/7/2003 9:39:10 PM
I have an object to serialize. [ this works ] TextWriter writer = new StreamWriter("test.xml"); serializer.Serialize(writer,obj); writer.Close(); but below does not, why ?? I have a file that I will have exclusively opened & I use the stream for that operation. [ error mess Value cannot ...more >>

Get Count of Tables and his names from Database
Posted by Michael Hoffmann at 9/7/2003 9:33:54 PM
Hi, how can I read the count of tables and get there names from a database? cu Michael ...more >>

Saving a file segment
Posted by Richard Brookes at 9/7/2003 7:57:42 PM
Hi there i need to take a segment of a mp3 file say it has 1000 bytes i want bytes 100-300 and save it as a new file. can anyone help? cheers richard ...more >>

OleDbDataReader as parameter
Posted by Dion Heskett at 9/7/2003 6:31:24 PM
I wish to supply the formating as a parameter, I have tried OleDbDataReader but get a null ref. just can't seem to get this to work. I think this has something to do with ExecuteReader. also can't seem to use this as the first pram OleDbDataReader reader = new OleDbDataReader() i.e publ...more >>

Layout-Resize-OnLoad
Posted by John at 9/7/2003 5:52:49 PM
Hi, This is my first experiment with C#, I'm trying to handle the resize event. According to the documentation I should handle the Layout event for this. My question is: how do I register this event? The following code does not work because I never recieve the OnLoad event. What am I doing ...more >>

Inherited ArrayList doesn't show members on indexer.
Posted by Iulian Ionescu at 9/7/2003 5:35:38 PM
I have the following problem. I derived a class from ArrayList to provide some additional events I need. Then I derived 2 different classes from this one and each of them defines an indexer that returns the specified object. For example, the list for Group types will have: public new Grou...more >>



Pen / Drawing Field
Posted by T. F. at 9/7/2003 5:31:08 PM
Hi, I need to create a box / field that the user can draw into (with some kind of pen). I also need to know how I can edit the size of the pen style and how I can "transport" the drawn image into a smaller box (that is only around 10x10 pixel so the original image must be comprimized onto tha...more >>

C# properties... no parameters
Posted by MC D at 9/7/2003 5:10:06 PM
Hi, I'm trying to write a class that inherits from System.Collections.CollectionBase, and I want to expose the Item property for both Get and Set. However because C# doesn't support property parameters, I can NOT do the following: public TabData Item(int index) { get { return (TabData)...more >>

How to compile NUnit Test files.
Posted by d2d at 9/7/2003 5:03:16 PM
How are you doing there folks? I just have this newbie question about how to compile an NUnit test file from command line using "csc.exe" I installed NUnit 2.1 using *.msi file. I was following examples that came with NUnit and when I tried to compile Nunit test file here is the error i r...more >>

Querying data: Stored procedures or Select calls from C# class?
Posted by VM at 9/7/2003 5:02:33 PM
I'm working on a win appication that is constantly querying a small-sized DB. Until now, I've been using Selects from within my app but, all of a sudden I remembered of an application I was working on a year ago (with PowerBuilder) that queried the DB by invoking stored procedures that return t...more >>

Uri problem/bug
Posted by Sunny at 9/7/2003 5:01:19 PM
Hi all, I have found a possible bug in the Uri class constructor. When I make something like this: test = new Uri(@"http://www.test.com/dir1/page1.html"); test2 = new Uri(test, @"../../page2.html"); in test2.AbsolutetPath I receive http://www.test.com/../page2.html. I know that you can n...more >>

#define ?
Posted by Steven Blair at 9/7/2003 3:52:59 PM
Hi, Does C# have something similar to #define (C/C++) I tried using the #define but didnt seem to work. Any help is appreciated. Regards, Steven www.stevenblair.com ...more >>

Parsing a Text File for an SQL Statement
Posted by Amos Soma at 9/7/2003 1:25:53 PM
Has anyone written a utility (preferrably in C#) that takes a text file or string and extracts any SQL statements (e.g., Select, Insert, Update, Delete, Alter etc.) contained in the file or string? Thanks very much. ...more >>

loading Dll at runtime.
Posted by Meital s at 9/7/2003 12:53:28 PM
I want to know how can I load dll, which was created by me, at runtime and once dll is loaded how can it be possible to access it's functions? (in C#) *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

When does garbage collection happen to static members?
Posted by adam2001usa NO[at]SPAM hotmail.com at 9/7/2003 12:50:57 PM
Hi. I have a static arraylist in a class which is populated during the class's static constructor. Will this arraylist or the class objects allocated on it ever be garbage collected if I don't access it for a few hours? Other posts to this board seem to point to no. Thanks in advance. ...more >>

Loading dll during run time
Posted by Dafna m at 9/7/2003 12:33:05 PM
Hi, How can I load a DLL (which I created) during run time Thanks, Dafna *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Video file
Posted by Dafna m at 9/7/2003 12:33:05 PM
Can I present a video file as picture file? (By built-in class) Thanks, Dafna *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Passing IN parameters
Posted by Tal at 9/7/2003 11:58:20 AM
Is there a way to pass class object to a method in CSharp and be sure that nothing will change (like writing const in C++). For example if I have class testClass { int t; } testClass tc = new testClass(); tc.t = 99; And then I'm using it like: aObj.DoSomething (tc); I cannot be sure t...more >>

simple console question
Posted by Sharon and James at 9/7/2003 11:44:36 AM
How can I configure Visual Studio .Net so the console does not go away when I execute console programs. Also, is there a good newsgroup for general Visual Studio .Net questions, non C#. Thank You ...more >>

Creating help files
Posted by Michael A. Covington at 9/7/2003 11:23:46 AM
What is the best way to create help files for a C# (VS .NET) application? ...more >>

VB.NET to C# converter
Posted by Dotnetjunky at 9/7/2003 11:11:23 AM
Hi, What's the best VB.NET to C# converter available for free now ? -- Dotnetjunky ...more >>

Cannot remove a .NET assembly from GAC
Posted by Navin at 9/7/2003 9:10:22 AM
Hi everyone, I am facing this typical problem. I have a .NET assembly called "SecurityLib", which I have kept in GAC using gacutil tool. But now I can not uninstall it from GAC using gacutil. I have tried various parameters gacutil /u gacutil /uf gacutil /ungen gacutil /cdl The error ...more >>

ServiceProcessInstaller.Account=User doesn't work
Posted by greg anderson at 9/7/2003 9:05:29 AM
On a ServiceProcessInstaller, I set the account, username, and password and I get the following exception. I have made sure that the account exists and has the "logon as a service" privilege. {"No mapping between account names and security IDs was done" } [System.ComponentModel.Win32Ex...more >>

Reading Data File, Need Hex Values
Posted by Ron at 9/7/2003 7:09:37 AM
I need a way to read the hex values of an old DBase3 data file. Can anyone give me some info regarding how to grab hex values out of a file? Not sure exactly how to do this. Thanks for your help. ...more >>

Why so hard to load icon from embeded resource?
Posted by Ed Sutton at 9/7/2003 7:02:00 AM
What's the trick to loading an icon from the embedded resources? Here are the steps I have taken: ------------------------- 1 - I added a file named "FOLDER01.ICO" to my solution project 2 - I changed "Build Action" for the file to "Embedded Resource" 3 - At the end of my constructor, I try t...more >>

Installation Program
Posted by Pengyu at 9/7/2003 5:53:34 AM
How to build a installation program that (a) First detects if .NET and Microsoft Data Access Components (MDAC) have already been installed on your computer. If not, install them. (b) Then, installs my own program. Thank you very much in advance! Pengyu....more >>

Overloading operator++
Posted by Andreas Mueller at 9/7/2003 5:38:35 AM
Hi, I want to overload operator++ in my custom iterator class, which I do like this: internal struct IListIterator { public static IListIterator operator++(IListIterator ii) { idx += 1; // copy at the new position->prefix operator return new IListIterator(null, idx ); } } ...more >>

Blend Transitions between two images
Posted by nesculcas NO[at]SPAM hotmail.com at 9/7/2003 5:02:37 AM
Hello, Is there any special functionality in C# to make a blend transition between two images like the messager 6 do. If no, does any one now how its done? how the guys that implemented messager 6 do the transition from a old display picture to a new one? Thanks Nuno...more >>

AnimateWindow in C#
Posted by nesculcas NO[at]SPAM hotmail.com at 9/7/2003 4:57:52 AM
Hello, Just a simple question from a old programer of C++ :) I'm a new in C# and i want to make some simple animations like i do in C++, like this: ::AnimateWindow(m_hMyWnd, 200, (((m_bWndShow)? AW_BLEND:AW_BLEND|AW_HIDE) ) ); My question is if there is something like this, any simi...more >>

Why FileStream can't read data from serial port?
Posted by cczzhh at 9/7/2003 3:53:08 AM
i write the code to access serial port follows: FileStream fs=new FileStream ("COM1:",FileMode.Create);//its OK fs.Write(...);//its OK fs.Read(...);//throw IOException who can help me,thanks very much. ...more >>

calling the "Host"-header in WebClient
Posted by lasabo at 9/7/2003 2:43:46 AM
Hi, I'm trying to write a software that log in to a password- protected page, but when I try to open the page and send inn the password, the server refere to the index.htm before I get to post the password. Right afte the "Host: <ip of the server>" line in the header are sendt, the serv...more >>

HELP close database connection
Posted by kuya789 NO[at]SPAM yahoo.com at 9/7/2003 1:36:49 AM
Can someone please help me close this db connection. I know the connection is not closed because there;s a ldb file in my db folder. dbCommand.Connection.Open(); IDataReader myReader = dbCommand.ExecuteReader(); while (myReader.Read()) { return myReader.GetString(1); } myReader.Close()...more >>

When to use "new" syntax in object creation
Posted by jean_stax NO[at]SPAM hotmail.com at 9/7/2003 1:11:20 AM
Hi ! A couple of pretty basic questions: Value types: As far as I understand, when I create value type without "new" syntax the object is considered as unutilized. Consequently, I have to initialize its member variables manually; otherwise I would get an exception while accessing them. ...more >>

Web application and Web Services - Whats the diff?
Posted by Peter Q at 9/7/2003 12:56:26 AM
As the title suggests, what are the differences between a web app and a web service? What exactly IS a web service?? thanks Peter ...more >>


DevelopmentNow Blog