all groups > c# > september 2004 > threads for tuesday september 14
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
How many timers?
Posted by William Stacey [MVP] at 9/14/2004 11:09:02 PM
How many System.Threading.Timer timers can os "reasonably" handle? What is
the cost in mem? I think this is a wraper for win32 TimerQueueTimer (not
sure), but wonder what general implementation is. A queue of objects that
one thread keeps checking to see it time expired, etc. TIA
--
Wil... more >>
checking if file is in use by another process
Posted by siddharthkhare NO[at]SPAM hotmail.com at 9/14/2004 9:07:47 PM
hiAll,
is there a way in .net/c# to check if a file is in use with another
process.
so i am trying to do a File.Move(source,destination)..and if the file
is in use, this would through an error..System.IO.IOException..
so before i try to move the file i some how want to check if the fil... more >>
HttpWebRequest file upload problem
Posted by R Reyes at 9/14/2004 8:29:01 PM
I am trying to code a file uploader (for forum/email attachments) from the
client computer to a remote web server via the PUT method (since POST is not
allowed [405 error]). However, the upload works ONLY when the file is inside
a shared folder on my computer. If I try to upload from any oth... more >>
XML - get data
Posted by Mark at 9/14/2004 8:02:15 PM
I've pasted a shortened XML file I have below. The path to the file is
strored in a string titled "myFile".
What would be the syntax for getting the crse_no and prog_type columns where
the sect_key = 176902?
Thanks in advance.
Mark
************ XML FILE BELOW **********
<?xml version... more >>
conceptual difference between 'struct' and 'class' ???
Posted by Chris at 9/14/2004 7:19:29 PM
Hi,
I don't get the difference between a struct and a class !
ok, I know that a struct is a value type, the other a reference type, I
understand the technical differences between both, but conceptually speaking
: when do I define something as 'struct' and when as 'class' ?
for example : i... more >>
static classes and events
Posted by Michael Maercker at 9/14/2004 5:33:08 PM
Hi!
I'm designing several different user controls in c#.net where each instance
is supposed to react to the fired events of one "data manager class". How
can I (at design-time) tell all the controls (set a DataManager-property) to
react to the same DataManager-instance?
I hope my question i... more >>
TIFF
Posted by Ivan G. at 9/14/2004 5:28:01 PM
Hello, All!
Do you know some free or commercial library for .net or c++ which can read
TIFF images?
With best regards, Ivan G.. E-mail: ivan_gavrilyuk@hotmail.com
... more >>
System.Diagnostics.Switch problems
Posted by Michael Riggio at 9/14/2004 5:17:15 PM
Has anyone tried to utilize this class? Unfortunately, the MSDN
documentation is pretty weak for this class and the examples they provide
are pretty lame.
I created a class that derives from System.Diagnostics.Switch and it
successfully retrieves the correct value from the configuration file.... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
String implementation ?
Posted by Chris at 9/14/2004 5:02:15 PM
Hi,
how is a String implemented in .NET :
as in VB.NET : using a length-prefix located in front of the actual
characters
or
as in C : using '\0' (backslash null)
thnx
Chris
... more >>
how can i make my apps to look like MS Outlook
Posted by cecille19 at 9/14/2004 4:58:36 PM
hi,
how can i make my apps to look like MS Outlook with its crafty
controls??
Or what microsoft controls do i need to use to create that effect??
thanks.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
View remote desktop
Posted by Jose Ines at 9/14/2004 4:41:42 PM
Hello,
I want to create an application that allows me to view another users
desktop in realtime. I tried sending screenshots at a certain interval of
time but it was too slow. Someone suggested me to use GDI Hooks but I dont
know exactly what that means, he also told me about installing a "v... more >>
marshal unsigned char pointer
Posted by cbachellam at 9/14/2004 4:13:05 PM
Hello,
I am trying to call c++ dll function calls from C#. The c++ dll function
takes in pointer to unsigned char array. Can anybody help me in what
marshalling parameter value that i have to declare in C# side.
For eg:
in c++ X.dll the function is:
extern "C" __declspec(dllexport) void G... more >>
Static inheritence
Posted by spam1 NO[at]SPAM rpc-scandinavia.dk at 9/14/2004 3:29:46 PM
Hi.
Considering the following code, I want this call:
Something.Method();
To return "Something".
public class BaseClass {
public static string Method() {
return <type where the method was called>.Name;
}
}
public class Something : BaseClass {
}
The code ill... more >>
getting the size of c type in c#
Posted by SteveK at 9/14/2004 3:02:20 PM
I am reading a binary file spit out from C FILE*
I would like to use Marshal.SizeOf() to get the size of the types I'm
reading, but I just realized that a C# boolean is 4 bytes versus the C 1
byte.
So, I found some snippets that I could play with and thought maybe this
would work;
int sz = M... more >>
treeview in datagrid
Posted by Grey at 9/14/2004 2:58:33 PM
I want to design a datagrid form with treeview inside the row. The datagrid
would first display the subtotal of the sales in each row. When user click
the "+" from each row, the breakdown sales figure would be come out. Is it
possible to do that in windows application with C#??
Million thank... more >>
Getting name of caller
Posted by Dan at 9/14/2004 2:57:40 PM
I'm implementing a tracing class with a WriteLine method, and would like to
record the name of the function which is calling WriteLine. Is there a way
to do this?
... more >>
Automatic code injection/invocation. Does it exist?
Posted by bobben at 9/14/2004 2:53:27 PM
Hi everybody.
I don't know if this is possible, but I am looking for a way to
automatically inject code.
I would like to fire a Debug.Writeline() automatically when a method is
invoked and when the method exists.
Anybody knows if this is at all possible? Or is any other variant possible ?... more >>
How does Windows Explorer sort file names? Emulate this in table...
Posted by VMI at 9/14/2004 2:26:18 PM
I have a Windows datagrid whose column values are
(1,10,100,1000,101,10-1,103,11,1710,2). When the column's sorted (the
column's of type String), it'll sort this way
[1,10,100,1000,101,10-1,103,11,1710,2], which is wrong. But in Windows
Explorer, when there are files with these same names , Ex... more >>
Reflector how can you secure your effort?
Posted by kids_pro at 9/14/2004 2:14:24 PM
With the reflector tool .exe, .dll can be decompile?
how can we secure our work?
... more >>
Favorite Books on Graphics (in C#)
Posted by Les at 9/14/2004 1:42:15 PM
In ancient times I had a desire to make a game and I
started to do so, I quickly found the project was beyond
the hardware's capability for that era (even in
assembler) and had to shelf the project. I retried in the
dark ages of computers, when I was in college, and got
much further before... more >>
DataView
Posted by Mark at 9/14/2004 12:50:22 PM
Assume you have a DataView with 50 records that has a DataTable in it. You
specify a filter that reduces the number of available records in the
DataView to ONE record. What is the syntax for storing that data in a new
variable of type DataRow?
Thanks in advance.
Mark
... more >>
overloading the ctor question
Posted by Eric Sabine at 9/14/2004 12:26:13 PM
Here should be an easy question. I want to overload the ctor of the class
with 2 versions, one takes 3 input parameters and the other takes 2, if I
call the "2" version I want to simply call the 3 version but pass in a
private variable for the missing parameter. But at compile time, I get
"... more >>
Source control
Posted by mailer at 9/14/2004 12:04:26 PM
Can someone give me some recommendations on source control software for
dotnet projects.
Regards
Dan... more >>
session in winform
Posted by Tom at 9/14/2004 11:32:23 AM
hi friends.
I'm still unfamiliar with winform does it have a session or application
storage that allows session to be passed from one form to the next ?
thanks
Tom
... more >>
DirectX SDK and References: using Microsoft.DirectX
Posted by Diego_Atos at 9/14/2004 10:33:44 AM
I want to create objects using directX. I downloaded SDK version of
DirectX. I've installed it.
Which is the right dll to add to references?
I can't find it.
thanks
--
-Diego (Atos)-
-L'uomo è superiore agli animali-
-Fanno eccezione il nano e la giraffa-
-A.Bergonzoni-
-Per rispo... more >>
Embedded C#
Posted by Frank at 9/14/2004 10:33:19 AM
Hello,
does anybody knows which was the new URL for the embedded C# website? The
old link www.ecsharp.net does not exist anymore.
Thanks
Frank
... more >>
Configuration files for Services and Class Libraries
Posted by Florida Coder at 9/14/2004 10:18:43 AM
I have the need to store some application specific configuration data to be
used by a class library and or a windows service. I would like to do this
in a fashion similar to the way we do with applications and web services
without having to use the machine.config file.
I know that I could... more >>
Findout RightToLeft
Posted by Mohammad-Reza at 9/14/2004 10:15:02 AM
Hi
Please tell me how can I find out that the parent of my control is right to
left or not.
Like MenuItem.
MenuItem by itself doesn't any RightToLeft property but when you change the
right to left of the form (ex: to true) it will change.
By the way please have a look at my previous message ... more >>
COM+ question
Posted by Niko at 9/14/2004 10:14:27 AM
I have a very simple serviced component, which is installed under com+
application, but when I go in Component services (status) to watch my
com+ in action I don’t see any information that my object vas activated,
pooled …
Usually I can see that when I work with com object written in old
fa... more >>
so I have a byte[], how to copy to int, string, etc..
Posted by SteveK at 9/14/2004 9:57:25 AM
I'm trying to write a quick migrate tool to convert our old binary flat DB
to SQL Server. I thought I would use C# and get started with a managed
language. I have found plenty of examples of how to read a binary file into
an array of bytes, great. But what do I do with it then?
How can I co... more >>
How do I prefix attributes with a namespace?
Posted by Sam-I-Am at 9/14/2004 9:43:22 AM
I need to create xml like the following:
<item mynamespace:name="MyName" mynamespace:age="100" />
I am using code similar to this:
XmlDocument meegoInfo = _LoadTemplateXml("Avatar");
// Create downlevel item
XmlNode node= xmlDoc.DocumentElement;
XmlElement item = xmlDoc.CreateEle... more >>
unassigned use of local variable q
Posted by Eric Sabine at 9/14/2004 9:05:58 AM
I just need to understand this bit. In some code, I had the following give
me an error at build time
XmlDocument xmlDoc;
xmlDoc.LoadXml(xmlString);
The error was "unassigned use of local variable" on the second line at
xmlDoc
I ammended the first line to include " = null" and it compi... more >>
WinForms Question
Posted by Jake at 9/14/2004 8:44:07 AM
Hi,
I am having a problem capturing a key event in a form. The problem I am
running into is on a form that returns a dialog result (OK or Cancel which
represented by two buttons) and I am trying to capture the enter key event
in a certain textbox on this form. Hwoerver the enter key returns ... more >>
Re: Sharing code between Smart Device Project and desktop project
Posted by Dan at 9/14/2004 7:10:02 AM
Chris--
Thanks very much, but I'm not sure that follow. Are you saying that I can
compile a library against the desktop framework and then run that library on
a smart device, as long as I check the OS for those methods which are
implemented differently on the SmartDevice?
Dan
"Chris Tac... more >>
Date EpochSeconds conversion
Posted by kiran_rallabandi NO[at]SPAM yahoo.com at 9/14/2004 4:02:16 AM
Hi Folks,
Please advise me on the conversion of EpochSeconds to DD-MMM-YYYY format in c#.
given are the few examples.
1093128564
1093128537
1093128419
Thanks in advance.
Regards,
Kiran... more >>
problems with XmlReader and HasAttributes
Posted by mj.heitland NO[at]SPAM onlinehome.de at 9/14/2004 2:48:25 AM
Hello everybody,
I saw the following code from MS and really have no idea, why the
attributes have to be parsed twice.
Can I omit the second loop?
If I lose some data, please explain it to me with a short XML data
example.
Thanks,
Michael Heitland
XmlTextReader rdr = new XmlTextReader ... more >>
Import rows from Table A/Server X to Table B/Server Y
Posted by robert-castuki NO[at]SPAM voila.fr at 9/14/2004 12:59:28 AM
Hi,
i need to import data from table A (Oracle Server X) to table B (Oracle Server Y)
i've got my both OracleConnection object initialized & working
do u think i can do that using OracleAdapter (Update method...) ?
Thanx for your help... more >>
Use class instance over solution
Posted by gaetanog at 9/14/2004 12:29:03 AM
Hi there..
I have a question about instance usage...
I created a VStudio 2003 solution within 3 projects as follow:
1) Proj One: Main form
2) Proj Two: User Control
3) Proj Three: Class
I need to instance the class in project three ad use the same instance in
the user
control. i.e. I... more >>
Image into byte[]
Posted by Josema at 9/14/2004 12:27:19 AM
Hi,to all
I would like to know how could i put the content of image file into byte[]
cause im trying to copy the image as a file and the image its copied at the
path that i want, but i cant open cause i dont copy it as a byte[].
Any help will be grateful.
Thnx.... more >>
Fastest way to access data from a file.
Posted by Ignacio X. Domínguez at 9/14/2004 12:13:21 AM
Hi. I'm developing a desktop application that needs to store some data in a
local file. Let's say for example that I want to have an address book with
names and phone numbers in a file. I would like to be able to retrieve the
name by searching for a given phone number the fastest I can.
I h... more >>
C# vs. Java
Posted by Tim923 at 9/14/2004 12:07:44 AM
The code in C# looks very similiar to what I remember from Java, but
we haven't done much manual coding yet. How similiar are they?... more >>
|