| Thread | Last Post | Replies |
|
| How called the dll(written by c++)by c#? | 14 Aug 2007 01:24 GMT | 2 |
Um,i search the problem through the internet.There is a code in *.cs: using System.Runtime.InteropServices; [DllImport("Test.DLL", EntryPoint="TestOne")] public static extern bool TestOne(string src);
|
| What is Output | 14 Aug 2007 00:56 GMT | 6 |
1) What will the value of txt be after executing MyFunction? public void Main() { string txt = MyFunction( “12345” );
|
| Help with Datasets | 14 Aug 2007 00:52 GMT | 4 |
I've been programming in C# for about 3 months now and I've completed a previous project that worked a lot with data, so I know the basics. This is what I need to do, try and see what you would do as an expert C# programmer. I have to make a paired sales analysis which takes the ...
|
| Do something on an uncaught exception. | 14 Aug 2007 00:48 GMT | 8 |
I have a small helper service that is peppered with try-catches for all the exceptional cases I could think of. It industriously logs every error it comes across for debugging later on. Wonderful; however on the odd time it blows a gasket the solution is in
|
| What's 'best practice'--instantiate in the constructor or outside it for collection class? | 13 Aug 2007 23:01 GMT | 16 |
Question: the "myList" below is the same (works the same) whether instantiated inside the (normal) constructor, as below, and as my standard practice, or outside? RL
|
| Strange, but C# does allow multiple inheritance, so long as it's serial | 13 Aug 2007 22:56 GMT | 22 |
Well, contrary to the implication in my 2000 textbook on C# (public beta version), C# does allow multiple inheritance, so long as it's serially chained as follows: class derived02 : derived01
|
| Best Practices: always use new() with objects? | 13 Aug 2007 22:43 GMT | 10 |
Best practices question. When receiving an object passed from another method, is it a good idea to use a shallow copy with a temporary object received on the RHS (right hand side of =), or to use a instantiated object to receive the
|
| Using C# to search several xml files using the least amount of memory as possible? | 13 Aug 2007 22:29 GMT | 4 |
I know I could take all the xml files and loaded them into a single XmlDocument and then use xpath to search for nodes. However, is there a way that would work but not use up so much memory? I am integrating an rss reader into a program. I'd like the ability
|
| what resolution is recommended for developing c# websites... | 13 Aug 2007 21:19 GMT | 4 |
On my development computer, the new site looks and acts great. But when I ask a coleage to check it, the pages never look right: example: 1. the gridviews are always overlaping text.
|
| how to setup C# TCPClient timeout | 13 Aug 2007 21:13 GMT | 8 |
I am wondering if I am using TCPClient class in C#, how to setup timeout value? Timeout I mean, when connects to server for the 1st time, and during <timeout> interval, if no server response is received, the GetStream method will return will return other than wait forever.
|
| multithreaded tcp/ip monitoring application | 13 Aug 2007 21:09 GMT | 29 |
I am new to c# development. I need to develop a windows application that connects remotely to another application using tcp/ip and gathers statistics like, application running or not, application uptime and also some more data that the other application sends to this monitoring ...
|
| "Could not find type 'xxx'" error | 13 Aug 2007 20:01 GMT | 1 |
This one is a little difficult to explain. I placed a RichTextBox control on my form, I called it chiMain, then I wrote CHITextBox.cs. This class extends the RichTextbox class, and has a constructor that looks like this: public CHITextBox () : base()
|
| Capturing key event and remove beep! | 13 Aug 2007 19:36 GMT | 2 |
I have a tabcontrol where I want to capture the CTRL+C key combination. My tabcontrol has on its tabpages some treeView controls. My intention is to intercept the event of pressing the CTRL+C when one of the controls embedded in the tabControl has the focus. I'm doing this using ...
|
| gif as embedded resource | 13 Aug 2007 19:16 GMT | 10 |
I have some problem to retrieve an image from my application. Here is my code : Stream imgStream = null; Assembly a = Assembly.GetExecutingAssembly();
|
| Rectangle = null? | 13 Aug 2007 17:37 GMT | 4 |
Why can't I say the following; Rectangle r = null; The compiler tells me that null is a value type and can't be converted to Rectangle. But I can't generally set any reference type to null.
|