all groups > c# > may 2007 > threads for thursday may 3
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 31
concatanate string and byte array
Posted by Peted at 5/3/2007 9:35:01 PM
Is it possible to concatanate a string and a byte array, into a
"string" variable, send it as a string to an ip socket device and have
the bytes, seen as a sequence of bytes, not char or string ?
I have a machine connected to a ip signal routing device. The ip
routing only takes strings as d... more >>
Complex numbers
Posted by Jon Harrop at 5/3/2007 8:24:18 PM
I can't seem to find an implementation of complex numbers in the C# standard
library. Is there one?
--
Dr Jon D Harrop, Flying Frog Consultancy
The F#.NET Journal
http://www.ffconsultancy.com/products/fsharp_journal/?usenet... more >>
Using threading to call sql script
Posted by VMI at 5/3/2007 5:16:50 PM
How can I use threading in my Windows Form to call a sql script that takes a
few seconds to run? When I click on a button, I'd like to call the SP,
display in my Form message a "Please wait" message, and then when the script
is done, fill the grids with this data.
I've read deveral articles on m... more >>
Simple C# type conversion problem
Posted by Eric at 5/3/2007 2:52:46 PM
Hello,
I'm trying to write a really simple C# test harness app, can someone
tell me why this doesn't work?
catch (Exception ex) {
string MyException = ex.ToString;
Console.WriteLine(MyException);
}
I get:
Error 10 Cannot convert... more >>
Position of XmlNode in XML-File
Posted by Christof Nordiek at 5/3/2007 2:47:48 PM
When I load a XML-Document from a file, and then get an XmlNode from it, is
there any way to get the its original position in the file (line,
character)?
I want to report it, when there is something odd about that node, so that a
user can find the position in the file. Similar to the errorm... more >>
DateTime + representing only the time
Posted by DaTurk at 5/3/2007 2:45:05 PM
Hi,
I only need to represent the time, not the day. Is there any other
structure I can use beside DateTime? Because the constructor doesn't
have the ability to take the time alone.
Thanks
... more >>
NULL values in dataset
Posted by GotDotNet? at 5/3/2007 2:30:55 PM
I have a dataset and I have to loop through it and some of the values for an
insertition into the db. Some of the fields are integers and booleans but
contain a NULL in the field.
how can I check for a NULL and if its NULL insert DBNull into the db?
Currently I'm getting error message
Sys... more >>
CodeDOM Delegate
Posted by Chuck B at 5/3/2007 12:58:39 PM
I have an object factory that creates customized objects with a method that
is dependant on the name of the object. Much of the method is similar but
some parameters within the method will be added from an XML dataset that
dependents on the name of the object. This method will be duplicated ab... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Permission Architecture
Posted by sklaun NO[at]SPAM gmail.com at 5/3/2007 12:24:20 PM
The thread http://forums.asp.net/thread/1693719.aspx
One of the posters above in that thread posted but is his solution the
recommended approach? (I like his approach)
And here's the original question:
I have a Car Image class, a car class, and a car comments class:
CarImage, Car, CarCommen... more >>
Using classes/properties vs datasets
Posted by Ronald S. Cook at 5/3/2007 12:23:18 PM
We're designing an app and see two basic ways to return data from the
business tier to the client:
1) Everything in DataSets
2) Fill properties of objects and manage accordingly
Any opinions as to overall approach?
Thanks.
... more >>
Copy/paste in datagrid pasting junk
Posted by SeeSharp Bint at 5/3/2007 12:09:57 PM
I have a form with a datagrid containing 3 columns linked to an in memory
dataset. Only the 3rd column is editable.
Beneath that I have a rich text box bound to the same data as the 3rd column
and this is also editable.
The user can enter text in the column or rich text box.
If I press CTRL... more >>
C# project with 'Register for COM Interop' set to true
Posted by Jo at 5/3/2007 11:58:59 AM
Hi all,
I have a dll written in C#. I need this dll being called by some un-managed
dll or app through COM.
My question is, do I have to set 'Register for COM Interop' set to true in
the project settings?
If you can point some articles about this that will be helpful also.
TIA,
Jo... more >>
Why Does Console.WriteLine() Not Write to Command Window?
Posted by joey.powell NO[at]SPAM topscene.com at 5/3/2007 11:56:25 AM
I have a windows form app in C# in VS2005. In the "program.cs" file, I
take some command line arguments and use "Console.WriteLine("fsdfsd")
to give feedback to users. When I step through the program, the code
block is executing, but no text is written to the command line.
What might be causin... more >>
ArgumentException when adding a form to a panel
Posted by Regis Fontes at 5/3/2007 11:51:02 AM
Hi,
I have the following code, that worked OK with Visual Studio 2003:
Form2 v_Frm2 = new Form2();
m_pnlForms.Controls.Add(v_Frm2);
v_Frm2.Show();
v_Frm2.BringToFront();
It makes Form2 to appear inside a panel inside Form1. However, this sa... more >>
Writing an e-mail program to go to gmail, get e-mails and download attachments automatically.
Posted by Mufasa at 5/3/2007 10:48:38 AM
Does anybody have any code that would go out to an e-mail account (I'm using
g-mail), get the e-mails and if there are any attachments, get those and
save them on the local hard drive?
I don't need a fancy user interface, I just need the guts of this.
I want a program that runs in the back... more >>
how to find out the level IO
Posted by GS at 5/3/2007 10:06:12 AM
I would like to create on file server (w2k3) an application service that
gets active only if hard disk io is not heavily loaded and if the CPU is not
busy either. Furthermore, I want the service yield to other demands. where
can I find the reference or better yet an example like this?
what... more >>
passing a struct with an array by reference
Posted by abhiM at 5/3/2007 9:53:30 AM
I have a struct that has an array in it. I need to assign space to the
array in a function and pass the corresponding struct by reference to
another function so that it can store values into the array. When I
try it with the following code i get these errors
1. Use of possibly unassigned field '... more >>
Code to handle a proxy server?
Posted by Mufasa at 5/3/2007 8:31:32 AM
Does anybody have any code that will handle proxy servers? Specifically I
need something that will handle all the assorted options - no proxy, static
proxy, dynamic proxy by a script.
TIA - Jeff.
... more >>
const in .cs
Posted by stef at 5/3/2007 7:39:36 AM
Hello
I would like to use const declaration in the same manner as C does (in
a .h file)
How can I do that ?
For now, I declare a class which contains only all my const
declarations... but sounds bad :(
Do you have any ideas ?
thanks...
... more >>
MSBuild Zip tasks
Posted by Shikhar at 5/3/2007 7:20:04 AM
Hi All,
I am new to VSTS and MS Build.
I want to do a Zip (As in NANT) in MSBUILD proj file.
Can anyone please help me in this.
Also i want to create labels in Team Foundation Server (for all build
files) before building it.
Thanks.
Regards,
Shikhar
... more >>
DllImport Attribute Issue
Posted by SAL at 5/3/2007 6:33:01 AM
Hello,
I am getting the following error:
"An attribute argument must be a constant expression, typeof expression or
array creation expression"
with this line of code on my GetDLLName() that gets the DllName parameter
for the DllImport:
[DllImport(GetDLLName(), EntryPoint = "Logon", C... more >>
A Generalized Way of Testing Bits in "[Flags]"
Posted by Alex Maghen at 5/3/2007 6:17:01 AM
Let's say I have an Enum:
[Flags]
public enum DaysOfTheWeek : short
{
Sunday = 0x1,
Monday = 0x2,
Tuesday = 0x4,
Wednesday = 0x8,
Thursday = 0x10,
Friday = 0x20,
Saturday = 0x40
}
and I want to create two functions... more >>
IComparable Byte-Array Comparison
Posted by Stephen.Schoenberger NO[at]SPAM gmail.com at 5/3/2007 5:36:43 AM
Hello,
I am trying to figure out how to make an IComparable Byte Array
Comparison class in C# and keep running into dead ends. I have read
where this isn't possible and have seen a few hints that it might be,
but wanted to ask on here if anyone had advice.
Thanks!
... more >>
Connection strings and resource files
Posted by Mike P at 5/3/2007 5:00:08 AM
I've always put my connection strings in the web.config, but I've just
recently seen an example of a connection string in a resource file.
What are the advantages of doing this, and could you do it for other
stuff that you would normally put in your web.config?
*** Sent via Developersdex h... more >>
problem with start external application and hook keyboard
Posted by cvairetti NO[at]SPAM mcgestioni.it at 5/3/2007 1:09:31 AM
Hi,
I just write an application in C# that show an interface with five
button, each button starts an external application that it comes in
front of the main C# application with focus on. When the users finish
to use the external program and close it, under there is still the c#
application that... more >>
who know the windows2003's IE temp fold
Posted by cgd at 5/3/2007 12:22:10 AM
windows2003+sp2
i use the ie7 download a file,
i want to know where is the temp fold?
thanks
... more >>
Application.Exit();
Posted by Yasin cepeci at 5/3/2007 12:00:00 AM
I want to close my application when the user submit cancal button on a
messagebox and go on if user submit ok button on a messagebox?
I couldnt find where is the triggers of messagebox?:(
... more >>
|