blah blah blah is here! blah blah » Close

0
votes
1 answers

Accessing array from multiple threads

Let's say I have two arrays: int[] array1 = new int[2000000]; int[] array2 = new int[2000000]; I stick some values into the arrays and then want to add the contents of array2 to array1 like so: for(int i = 0; i < 2000000; ++i) ...

0
votes
1 answers

Only run one instance of program

In a Forms application, how can I prevent more than one instance of my app from running at the same time? For example, the user tries to open my app while it's already running and instead of starting a second instance, it just sets the foc ...

0
votes
1 answers

Closing a Stream

Suppose I create a StreamReader, StreamWriter, BinaryWriter and/or BinaryReader around a Stream like so: Stream fs = File.OpenRead("myfile.txt"); BinaryReader reader = new BinaryReader(fs); Now, when I'm done with the stream, c ...

0
votes
1 answers

Change tab size in TextBox

How can I change the size of tabs in a TextBox control? If it can't be done in a normal TextBox, can it be done in a RichTextBox? Thanks!

0
votes
1 answers

Anything about Direct3D

Does anybody know if there are any freeware programs available for designing and exporting 3D models as .x (DirectX) files? If not does anyone know of any Managed DirectX forums or somewhere like that where people might know?

0
votes
1 answers

MC++ question

Hi, sorry this question isn't really about C#, but it pertains to the .NET Framework and I was hoping someone here might know. Is a MC++ compiler available without having to purchase anything along with it? If so, where? Thanks!

0
votes
1 answers

XML Documentation

Hi, I'm writing a small library in C# and have included XML documentation. The only problem I have is that there is no line break on the documentation hint between the summary and the paremeters. In sorce code: ///<summary>A cool m ...

0
votes
1 answers

SHA1 Hash Codes

I need to convert a raw 20 byte SHA1 hash to a 32 byte long alpha-numerical string. (Split up the 20 bytes into 5-bit chunks.) Any ideas on how to do this?

0
votes
1 answers

Fullscreen anybody?

Is there a way to enter fullscreen mode (exclusive control of screen, repainting, resolution) without using DirectX?

0
votes
1 answers

C# 2.0 question

I'm thrilled to hear about the great features included in C# 2.0. Does anyone know when it will be released or if it already has? I checked Microsoft's site, but their search returned about a bajillion results and I couldn't find anything ...

0
votes
1 answers

COBS Encoding

Hi, I'm having a very hard time designing COBS encoding/decoding methods in C#. I had no trouble doing this in C++, but without the use of pointers, I'm finding this much more difficult. I want the methods to accept a byte[] reference an ...

0
votes
1 answers

Can I trigger an event on Socket disconnect?

I need my app to quickly respond when a Socket gets disconnected (from the other side). Is there any way other then constantly checking the Socket with another thread to trigger a method when the Socket is disconnected?

0
votes
1 answers

RAM Question

My app needs to know how much RAM the machine it's running on has. How can this information be aquired? Thanks in advance!

0
votes
1 answers

MP3s without DirectX?

How can I play mp3s in my app without using DirectX?

0
votes
1 answers

Really big numbers

Is there a C# counterpart for Java's BigInteger class? I am creating an application that must use integers beyond the range of the decimal class. If not, are there any other ideas for working with very large integers? Thanks in advance!

Feedback