all groups > c# > february 2004 > threads for sunday february 22
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
null on SqlString
Posted by John Smith at 2/22/2004 11:20:22 PM
I'm wondering why the following code do not throw a null exception?
In the third line I set s to null (make it to point nowhere), however later
I can call it's IsNull property.
AFAIK, if I set a reference-type variable to null, I cannot call anything on
that.
Can somebody explain this? (I... more >>
volatile keyword
Posted by Graeme Prentice at 2/22/2004 11:09:31 PM
According to this web page
http://www.jaggersoft.com/csharp_standard/17.4.3.htm
making data volatile results in ordered reads and writes. Does this
mean that the following (pseudo) code should work (assuming flag1 and
flag2 are volatile)
// thread 1
flag1 = true;
if ( !flag2 )
// per... more >>
Windows Forms look good
Posted by steve at 2/22/2004 11:06:55 PM
Does anyone know how to make windows forms applications look good? Some
kind of skin maybe.
... more >>
encryption and compression
Posted by VM at 2/22/2004 10:38:18 PM
Does C# work with encryption and compression? I know that there are C#
Encryption class(es) but my client is also interested in compressing the
data. We want to use some encryption in the generated output data ascii
files and also some type of compression since these data files can be huge.
Th... more >>
[OT] Creating a VS.NET Addin
Posted by C# Learner at 2/22/2004 10:12:52 PM
I know this is off-topic, but the chance of getting a reply in the IDE
group is probably similar to that of finding a gold mine.
Anyway, I have VS.NET 2003 and was looking at making an addin. I've
tried searching the web, and all tutorials involve using File -> New
-> Addin or whatever.
Th... more >>
How to call C# DLL in VC++ Project ??
Posted by Paul at 2/22/2004 9:51:05 PM
Hi all
may I know how to use C# DLL inside my VC++ Project ?
Thanks in advance.... more >>
Clocking transfer rate in c#
Posted by maniac4cs NO[at]SPAM hotmail.com at 2/22/2004 9:11:18 PM
I'm using the HttpWebRequest/Response methods and I'm trying to figure
out how to calculate the effective transfer rare the file is being
received at (like you see in IE when you download something). I have
already learned how to do a "progress bar" type solution, which lets
me calculate percent... more >>
bug with .NET/Redemeption while accessing Redemption Recipients colln in .NET - pls clarify
Posted by v_anushya NO[at]SPAM hotmail.com at 2/22/2004 8:18:25 PM
Hi
Recipients collection is not working properly in .NET.
dont know whether the bug is with redemption/NET.
Even when i loop thru it displays the first address every time.
for(int intK=0;intK<rMailItem.Recipients.Count;intK++)
{
MessageBox.Show(rMailItem.Recipients[intK].Type.ToString()... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
C# Excel Automation Add-In
Posted by Frank X at 2/22/2004 6:26:49 PM
Excel 2002 introduced a capability to add custom worksheet functions to
Excel direct from a COM/ActiveX object.
I can use C# to develop a COM object which I can use fine from Excel/VBA,
however I can't see it using the Excel Tools/Add-Ins - Automation button.
Now this appears to be because ... more >>
Comparing Array Objects
Posted by Raphael Iloh at 2/22/2004 4:13:05 PM
Hi all, I'm having problems comparing array objects. Take a look at this:
int[] array1 = new int[]{1};
int[] array2 = new int[]{1};
Console.Writeln(array1.Equals(array2));
One would expect the above expression to return true as both arrays are
identically the same but it keeps returning fal... more >>
Hide process or automatically restart it
Posted by G. van den Broek at 2/22/2004 3:19:46 PM
Does anyone know how to hide a c# application from the process list (Win 2k,
XP etc.)?
Or if this is 'impossible', how can I let my application automatically
restart when it gets killed?
... more >>
exception info
Posted by Rob Teixeira [MVP] at 2/22/2004 2:46:40 PM
Some of you guys (particularly the MVPs) are already aware of this, but i'll
post for the others who might not have seen it and might be interested
(btw - sorry for being absent for so long).
A while back there was a long discussion about checked exceptions and
expected exception lists. I couldn... more >>
GetEmbedded Resource from Derived class
Posted by John at 2/22/2004 2:40:17 PM
Hi,
I have a base class that's compiled in an assembly.
public class mybase
{
public void mymethod()
{
//can i get the embeded resources?
//Stream st =
assembly.GetCallingAssembly.GetManifestResourceStream("ResourceName");
}
}
I create another project, adde... more >>
Using a MFC dll in C#
Posted by Steven Blair at 2/22/2004 2:05:01 PM
Hi,
I want to use a MFC dll I have written in a C# project. Is this possible,
and if the answer is ye, how can this be done ?
Steven
www.stevenblair.com
... more >>
WndPolice
Posted by Bonj at 2/22/2004 1:56:13 PM
http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=2091&lngWId=10
... more >>
Timing
Posted by Shawn B. at 2/22/2004 1:55:35 PM
Greetings,
I'm creating a 65c02 processor simulator in C#. It's coming along very
nicely. But there is an aspect I cannot determine. The processor in
question I want to throttle to 1MHz or 2.5MHz, or [Custom]MHz. How do I go
about determining how much of a delay I should implement for each... more >>
FTP in C#
Posted by Steven Blair at 2/22/2004 1:00:13 PM
Hi,
Starting a new project in the next week involving C#. One of the
requirements is to use FTP for sending and receiving files. Having done a
little research, I have discovered that .NET does not have FTP classes. I
have found one or two components which must be purchased.
Anyone got any a... more >>
How to programmatically select items (rows) of a ListView in C#.NET?
Posted by Dave Wijay at 2/22/2004 11:36:06 AM
Hi
Does anybody know how to programmatically select items (rows) of a ListView in C#.NET
Thanks in advanc
Dave... more >>
Send large block of data failed
Posted by zhimin at 2/22/2004 10:55:18 AM
Hi,
I'm writing a program to send large file(100m) through dotnet using
TCPListener & TCPClient, I'm sending the file with a ask and response loop:
1. Client send a flag 1 to server indicate it has data send to server.
2. Client send the buffer block size.
3. Client send the actual buffer to ... more >>
Datagrid crashes program, when input data is too large
Posted by polarz at 2/22/2004 9:22:08 AM
I've written a program that pulls data from the internet and puts it
into a datagrid. When the number of rows reaches a certain point my
program freezes.
Is there a limit to the number of rows you can add? If so, is there a
way to get around this?
Any suggestions are much appreciated. Tha... more >>
iterating folder collection
Posted by v_anushya NO[at]SPAM hotmail.com at 2/22/2004 7:17:15 AM
Hi
when i try to browse thru all the folders in outlook recursively
starting from the root folder, i couldnot explore the USER FOLDERS
which comes straight under root folder.
Wot is the problem,
1)i am using folders(1) as the root folder??
2)Or the user folders created under root folde... more >>
copy ArrayList to ArrayList
Posted by will at 2/22/2004 2:12:17 AM
hi,
i have two ArrayLists with identical elements, is it possible to join
them together? the ArrayList.CopyTo only copies to an array, but not
arraylist.
thanks
will.... more >>
Odd string encoding behaviour
Posted by Miki Watts at 2/22/2004 1:51:28 AM
I'm having a problem with encoding a string... here's my code:
byte[] s = System.Text.Encoding.ASCII.GetBytes(FieldContent);
Now, this works fine, as long as there are no bytes that are over 128, for
example, a 0x99 byte turns out as 0x3f byte.
I know that ASCII is just 7 bits, but i tried t... more >>
Calendar custom control
Posted by Karthik Seetharaman at 2/22/2004 1:50:36 AM
http://demos.deloittes.net/datepicker/default.aspx
How do they construct it ? overriding the postback but still capturing
the date ?... more >>
EnableVisualStyles and ImageLists
Posted by desa at 2/22/2004 12:39:37 AM
If I call EnableVisualStyles none the images in my ImageLists show up in my
controls anymore.
Is this a known issue? How do I fix this? I'm using VS.NET 2003.
... more >>
Browser Plugins
Posted by Alan D. at 2/22/2004 12:35:27 AM
Hello. I was wondering if anybody had any good resources on creating
browser plugins using C#. Right now I'm only worried about Internet
Explorer plugins as I already have some documentation on writing
Mozilla/Netscape plugins. All I've really managed to find so far is that
they are sometimes... more >>
Outlook + redemption
Posted by v_anushya NO[at]SPAM hotmail.com at 2/22/2004 12:17:56 AM
Hi
I have a problem when i loop thru recipients collection of
Redemption.SafeMailItem in .net. In this code
for(int intK=0;intK<rMailItem.Recipients.Count;intK++)
{
MessageBox.Show(rMailItem.Recipients[intK].Type.ToString());
MessageBox.Show(rMailItem.Recipients[intK].Address.ToString());
... more >>
|