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# > february 2004 > threads for saturday february 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

Division Confusion
Posted by Dave Brown at 2/7/2004 11:24:22 PM
Hi all, I'm having trouble understanding which data type to use to get results I expect. using float, decimal, and double I have tried the following, .. float test = 55/60; I always get 0 as the results. I expect 0.916666 I dont understand why its rounding down. Any pointers anybody ? ...more >>


CryptoStream question
Posted by Fede at 2/7/2004 10:30:32 PM
I have a file that contains initialization vector and key crypted with the key 'passwd'. My problem is that when I execute the code TripleDESCryptoServiceProvider pk = new TripleDESCryptoServiceProvider(); FileStream fin = new FileStream("iv_key_cry.txt",FileMode.Open,FileAccess.Read); Crypto...more >>

Exceptions
Posted by C# Learner at 2/7/2004 10:18:37 PM
Is there a nicer way to write the following? private static bool TryWriteToStream(NetworkStream ns, byte[] bytes, int size) { bool result = true; try { ns.Write(bytes, 0, size); } catch { result = false; } return result; } I mean - is there a way of determining failure/...more >>

Couple of newbie questions...
Posted by Carlo Razzeto at 2/7/2004 10:06:58 PM
Hey there, I'm a bit of a C# newbie and I have some questions regarding syntax. #1: Unsafe code blocks: From what I understand (based on what I've read from the C# Essentials O'Reilly book) memory managment in C# unsafe code blocks are handled almost in good old C++ way (i.e. memory allocat...more >>

What's your favorite novice book on MS's .NET?
Posted by Bupkas at 2/7/2004 7:37:06 PM
I'm just starting out on learning this new technology and although I have a degree in CS, I really never programmed and it's time to get my feet wet. ...more >>

Replacing a Filestream with a Memorystream
Posted by Kai Bohli at 2/7/2004 7:32:53 PM
Hi all ! This message has been posted on .net.general, but I reposts it here due to lack of replies. This is my first day with Visual Studio and C#, and I'm trying to send "raw data" to the printer port. I found the SendFileToPrinter example below in a knowledge base at MS site It works, but...more >>

RUNNING WINDOWS APP. NOTEPAD.EXE....
Posted by BLOOD... at 2/7/2004 7:11:56 PM
I want to run notepad.exe from ASP.NET (C#) i am using javascript: <script language="JScript"> function fnShellExecuteJ() { var objShell = new ActiveXObject("Shell.Application"); objShell.ShellExecute("notepad.exe", "", "", "open", 1); } </script> ERROR: Perm...more >>

Marshaling Problem when calling API function! Please help!
Posted by Webdiyer at 2/7/2004 3:50:16 PM
I want to integrate SecurID two-factor authentication system of the RSASecurity.inc into our asp.net application,but I get into trouble when trying to call the API functions of the ACE Agent,I got an error message saying "Cannot marshal parameter #2: Invalid managed/unmanaged type combination (t...more >>



C# Email Client
Posted by crgsmrt NO[at]SPAM hotmail.com at 2/7/2004 3:23:22 PM
Hiya Everyone, I've just started the development of an email client using the .NET classes and C# ( I figured its a good way to get my hands dirty with ..NET). Anyhow, here's the situation... I created a simple 'Windows Forms' app (using Borland's wonderful free C# Builder IDE) that allows ...more >>

C# Standard and UserControls
Posted by Frank Oquendo at 2/7/2004 1:53:58 PM
Can I compile a UserControl even though the IDE won't let me design one? -- There are 10 kinds of people. Those who understand binary and those who don't. http://code.acadx.com (Pull the pin to reply) ...more >>

Call VBScript from C#
Posted by Art Vandelay at 2/7/2004 1:00:48 PM
Hello, I am trying to execute a VBScript, that exists inside of my project (via Add New Item>VBScript), through a button1_click event. I have not been able to find any code samples to achieving this. Can someone lend a hand? Thanks...more >>

Why are there no indexed properties?
Posted by Russell Bearden at 2/7/2004 12:39:09 PM
Why are there no indexed properties in C#? For example: class blah { public Node Child[index] { get { ..... some code return someNode[index]; } set { ... some code someNode[index] = value; } } I prefer to not retu...more >>

Where's the NG to complain about VS 2003 IDE?
Posted by Bret Pehrson at 2/7/2004 12:12:53 PM
Hey, which newsgroup is for complaining about how amazingly crappy the Visual Studio 2003 IDE is? Thanks -- Bret Pehrson mailto:bret@infowest.com NOSPAM - Include this key in all e-mail correspondence <<38952rglkwdsl>>...more >>

Most Difficult to Programme
Posted by Manu at 2/7/2004 12:03:07 PM
Hi! All I was wondering what is the most difficult part of windows programming Is it Network Programming Etc.. ...more >>

pinning types via 'Fixed'
Posted by finlaysonc NO[at]SPAM yahoo.com at 2/7/2004 11:21:05 AM
Hello: I have a question on pinning types via 'fixed'. In "Com and .NET interoperability" by Andrew Troelsen, he provides a simple example of ..NET -> Native interoperability: int[] theVals={1,2,3,4}; MyCustomDLLWrapper.AddArray(theVals,theVals.Length) where MyCustomDLLWrapper wraps a n...more >>

which collection to use
Posted by Saso Zagoranski at 2/7/2004 11:01:24 AM
Hi! I need an array-type of collection when the entries would look like: object myObject, int myInt, string myString Which collection should I use? I know I could declare a multidimensional array of objects but adding and deleting to that array would require distribution of objects each ti...more >>

How to make intellisence show for your own written class???
Posted by Joseph Grant at 2/7/2004 9:47:48 AM
Help! I'm a newbie, and would like some info on this please: I have a project that requires me to write my own class. So far everything is working well, my class is working and compiling just fine. However, it sure would be nice to be able use the methods and properties from my class and ha...more >>

writing C# code which doesn't target the common language runtime (CLR).
Posted by larrym996 NO[at]SPAM yahoo.com at 2/7/2004 7:22:36 AM
I was just looking at a demo training that mindleaders has on .net training: http://www.mindleaders.com/products/democourse3.asp And I don't believe this is correct or at least is misleading to me: "The search for an easy, productive, and very powerful programming language led to the birt...more >>

info reqd: referencing/using object from AppDomin of an other process
Posted by qpro at 2/7/2004 6:34:07 AM
hi, if dotnet exe applications A, B and C are running as separate process each (separate exe process in windows), i want to reference/use an object from application A's appdomin in application B and C. can anyone help in the above scenario? is it possible in dotnet? TIA qpro ...more >>

The directory the program is launched from?
Posted by Peter at 2/7/2004 6:31:06 AM
Hello, Thanks for looking at my question. This is an easy one. When my program is launched, I would like to know the directory it was launched from. Do you know where I can get this information? Peter...more >>

sending message to app on other computer
Posted by Sput at 2/7/2004 2:08:16 AM
Again me My program is running on a client computer, while on a server is running a C++ application. I need to send a message containing some numbers to it from time to time. I was thinking of using sendmessage, but how to find target program on another computer? ...more >>

Calling a static function in a dynamically loaded assembly (DLL)
Posted by Jonathan Roewen at 2/7/2004 1:56:05 AM
Hi I've got loading assemblies dynamically done (wasn't too difficult). Now I want to lookup a static function in the loaded assembly, and if found, return it somehow, and call it from my app. So far, my efforts have failed miserably My function takes custom objects as parameters, along the line...more >>

DDE Execute and Request
Posted by jochen NO[at]SPAM ingenieurteam2.com at 2/7/2004 1:01:15 AM
How to send DDE Execute and Request with c#. Thanks Jochen...more >>

Font Question
Posted by Stephan Rose at 2/7/2004 12:07:31 AM
Ok here's my situation... Creating a electronics engineering app..using DirectX for rendering as GDI+ is just too slow for this purpose...so far, so good. Now it just so happens that certain things...require an *overline* (as in, over the letters rather than under), ie certain names for pins...more >>


DevelopmentNow Blog