all groups > c# > may 2004 > threads for wednesday may 26
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
what is the best for TABLE?
Posted by Bad_Kid at 5/26/2004 11:59:41 PM
I have to program something like dynamic table generator.
table has to look like x axe = numbers, y axe = characters, and table
elements are strings:
input is from file like: a5 = "hey"; a6 = "helou"; b1="haha";
c3="qwert"...
what to use as table??? Which is the easiest way?
thanx! bye
... more >>
XML CDATA
Posted by msnews.microsoft.com at 5/26/2004 11:49:23 PM
Hello.
How can I add CDATA section into XmlDocument from my code?
... more >>
Operator overloading, structs and boxing
Posted by Andrew Larder at 5/26/2004 11:48:44 PM
Hi,
I'm trying to write a high performance numerical app in C#, and would like
to use operator overloading, but currently things are running a bit slower
than non op-overloaded code.
If I overload operators on a struct, lets for example say a Vector3 (3D
vector), does this mean when I write... more >>
How to get the size when a struct array in aother struct ?
Posted by stephen NO[at]SPAM moneydj.com at 5/26/2004 10:59:24 PM
two struct in c#
[StructLayout(LayoutKind.Sequential, Pack=1, CharSet=CharSet.Ansi)]
public class A
{
int i1;
byte i2;
}
[StructLayout(LayoutKind.Sequential, Pack=1, CharSet=CharSet.Ansi)]
public class B
{
[MarshalAs( UnmanagedType.ByValArray, SizeConst=25 )]
A[] a;
}
... more >>
XML in String
Posted by msnews.microsoft.com at 5/26/2004 10:40:22 PM
How can I save XmlDocument XML in string?
... more >>
Why 'A' denotes namespace?
Posted by Alex Sedow at 5/26/2004 10:04:02 PM
Why MSVC# compiler in this error example say that 'A' is a namespace?
'A' is a class, not a namespace.
// lookup5.cs
namespace Lookup
{
namespace Case5
{
class D : B
{
T x;
}
}
namespace Case5
{
using Case5.N.N2.N3;
... more >>
C Syntax
Posted by C# Learner at 5/26/2004 10:02:42 PM
Why is C syntax so uneasy on the eye?
In its day, was it _really_ designed by snobby programmers to scare away
potential "n00bs"? If so, and after 50+ years of programming research,
why are programming languages still being designed with C's syntax?
These questions drive me insane. Every... more >>
How to access sql server database ?
Posted by ¹ùÑÇ·æ at 5/26/2004 9:05:08 PM
I have several SQL Server .
I want to write a program to select/update/delete data in one of these
servers when I fill username and password in my app.
I suppose to Write a DataLayer ,But how can I ?
Any Template will be best for me !
And
Thank you to every who replys in advance.
----------... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
how can I send an image to the printer???
Posted by Drunkalot at 5/26/2004 8:49:12 PM
I found only how i do i send an image to the scream...
... more >>
Binding a DropDownList to a cell in a grid...
Posted by rmorvay at 5/26/2004 8:37:18 PM
I am trying to dynamically build a dropdownlist and bind it to a cell in a
grid. I tried to utilize the following code but I am stuck at the point
where I bind the dropdownlist to the grid cell. I get the following message
for this code but I suspect that the "
UltraWebGrid1.Rows[intCtr].Cells... more >>
How to Access Database dynamicly ?
Posted by ¹ùÑÇ·æ at 5/26/2004 8:18:31 PM
I am a beginner in Programming in c#.
I now can use wizard to create a sqlserver data access program.
but i want to access database without DataSet ,can it possible ?
if can ,How ?
Thanks in advance for any ideas or suggestions!
---------------------------------------
Albert Guo
... more >>
Can I get attributes for a field without a reference to the class that contains it?
Posted by johnfofawn NO[at]SPAM hotmail.com at 5/26/2004 8:12:23 PM
Hi,
I have a method that takes a reference to a TextBox as its only
parameter. I have a custom attribute that may be applied to this
TextBox. Is there a way for me to see if this attribute is present
without having a reference to the class that the TextBox is in?
Is something like this some... more >>
Use COM object made with Borland C++ Builder
Posted by Peter at 5/26/2004 7:49:35 PM
Hi,
I have a COM object in a dll and it is registered on the system.
The COM object was made with Borland C++ Builder and works nicely when used
in BC++ projects.
I'm TOTALLY new to .NET (first day) and I have no clue how to use make use
of the COM object.
I made a small test app with a bu... more >>
Regular Expression question
Posted by Natalia DeBow at 5/26/2004 7:44:21 PM
Hi,
I am stuck trying to come up with a regular expression for the following
pattern:
A string that contains "/*" but that does not contain */ within it.
Basically I am searching for C-style multiline comments and would much
rather use Regex than strings.
Here is what I have, but it does n... more >>
How to topmost???
Posted by Son Ha at 5/26/2004 7:32:04 PM
Here my code:
[System.Runtime.InteropServices.DllImport("user32.dll")]
public static extern int SetWindowPos(IntPtr hwnd, IntPtr
hWndInsertAfter,int x,int y,int cx,int cy,int wFlags);
[System.Runtime.InteropServices.DllImport("user32.dll")]
public static extern int BringWindowToT... more >>
How do you use CDATA with XML
Posted by microsoft.public.dotnet.languages.csharp at 5/26/2004 7:26:55 PM
I need to store data similar to the following in an XML file:
<b>Today's Message</b>
<font color=red>Some text goes here....</font>
I am trying to store data that is a daily devotional. My web hoster
only supports MS Access databases and Access only has memo fields which
can store 255 char... more >>
Converting byte array to string.
Posted by Prabhu at 5/26/2004 6:27:19 PM
Hi,
We are having problem in converting a byte array to string, The byte array
has char(174), char(175), char(240), char(242) and char(247) as delimiters
for the message.
when we use "System.Text.Encoding.ASCII.GetString(bytearray)" of .Net
library, we found that the char (delimiters) speci... more >>
How to play sounds?
Posted by Diego F. at 5/26/2004 6:01:21 PM
I need a sound in a Windows application. How can I play a sound in a Windows
Forms application? Just a simple sound is enough.
Regards,
Diego F.
... more >>
what's the difference...
Posted by Bad_Kid at 5/26/2004 6:00:13 PM
arraylist / array ???
what is better for what?
... more >>
InitialDirectory on OpenFileDialog
Posted by Derrick at 5/26/2004 5:40:51 PM
I am explicitly setting the InitialDirectory property on an OpenFileDialog,
after opening, navigating to another dir, close, open again, it does not
start at the InitialDirectory property I am setting, it seems to "remember"
the last dir it looked it.
Is there any way to make it *always* obey ... more >>
sizeof(), C# and managed code
Posted by Paul at 5/26/2004 5:37:22 PM
I'm porting a C++ function which reads a file in binary mode, sometimes
reading 2 bytes into an unsigned short, 4 bytes into a long, etc into a C#
implementation. When using the FileStream.Read function, I'd like to code
it to read the size of a C# ushort, for example. The documentation says th... more >>
Any webpage i can read this group
Posted by shinma at 5/26/2004 5:06:48 PM
In my company, I couldn't install any software in my desktop, but unluckily,
we don't have news reading software like outlook express. Does any one know
any website cached this newsgroup so i can read it at work ?
... more >>
Access hardware directly via C#?
Posted by I.P. Freely at 5/26/2004 4:38:08 PM
Greetings my dear friend,
Let's say I wanted to write an application that talks directly to a
network card. For example, say I'm designing a firewall or packet sniffer.
Do I need to use unmanaged code to do this? I'm wondering how I should
arrange the "division of labor" between managed an... more >>
GetString and ANSI
Posted by Alex Leduc at 5/26/2004 4:23:12 PM
I have some french accentuated characters that I'm trying to read from a
text file. The ASCIIEncoding Class's GetString doesn't support
characters with Char values above (char)127. I have a byte who's value
is (char)233 and I would like to know how to know how to get the
expected accentuated... more >>
Win32 Apis
Posted by adrian maull at 5/26/2004 4:04:07 PM
Anyone know of a good resource thats maps win32 APIs (structs, functions,
etc) to c#?
... more >>
Send/ Receive SMS messages
Posted by Mark at 5/26/2004 3:35:16 PM
Hi all, about 2 years ago I wrote a small utility that was used to send and
receive SMS messages via a mobile phone (3rd party COM object as used as
interface). I now have to write another program that does pretty much the
same thing.
My old program simply sent and received SMS messages via a ... more >>
OnKeyDown event doesn't response
Posted by pkujchliu NO[at]SPAM yahoo.com at 5/26/2004 3:22:16 PM
I am writing a customized control to draw a ellipse. I want it to
response key events and mouse events. However only mouse events got
fired. Key events doesn't response. Any idea? Thanks very much in
advance.
Jingcheng
public class GraphNode : Control
{
protected override void OnPai... more >>
class problems
Posted by Timothy V at 5/26/2004 3:10:36 PM
Hi,
I'm having trouble figuring out something. How do i pass a class instance to
a function without 'creating a copy'. In C/C++ i would use &. For example
(C/C++):
class CLASS;
void function(CLASS &c);
Would someone be able to explain this?
Thank you very much in advance,
Timothy.
... more >>
BITS, C#, background intelligent transfer service, and EVENTS
Posted by kentrussell NO[at]SPAM hotmail.com at 5/26/2004 2:20:32 PM
I am successfully using BITS in my C# application. I am, however,
polling for changes in the state of BITS jobs. Does anyone have any
example code for receiving events for this notifications in C#???? Is
this possible????
I would like to add prioritization of the jobs but I feel I can only
... more >>
String as Datetime
Posted by msnews.microsoft.com at 5/26/2004 1:45:01 PM
Hello.
How can I specify datetime by string?
In VB.NET I can write by "#" simbol like this: #10/12/2004 12:00#.
How can I do it in C#?
... more >>
XML
Posted by msnews.microsoft.com at 5/26/2004 1:42:17 PM
Hello.
How can I read value of XML node?
... more >>
Interop with embedded array within C/C++ data structure
Posted by Peter Nguyen at 5/26/2004 1:41:06 PM
Hello all
I am looking for a way to retrieve data from the unmanaged code (legacy) DLL to the .NET code as described below. I could NOT find any articles that would help me to do so successfully. Please help
Unmanaged-Code DLL (LEGACY.DLL)
---------------------------
struct EMBEDDED_ARRAY... more >>
C#, COM Interop & Default parameters
Posted by CMan at 5/26/2004 1:12:51 PM
Hi All,
I am trying to use a COM component that has methods with default parameters.
How can I call these methods from C#. Not all default values are in the
documentation of the control.
Thanks
Colin
... more >>
crazy idea?? named parameters in constructor
Posted by Daniel Billingsley at 5/26/2004 12:42:26 PM
I think it's really nice to be able to do code like
someVariable = someMethod(new SomeClass("some text"));
However, as method signatures are number and types of parameters, you're
limited to having one constructor that accepts a single string, for example.
Call me crazy, but wouldn't it be... more >>
How do I simulate an Alt-PrintScreen
Posted by John Galt at 5/26/2004 11:32:26 AM
I have a request to add a button that will automatically create an image
copy of the current screen. For whatever reason, the user does not want to
do the Alt-PrintScreen. I would like to associate this with a button to
accomplish the same thing.
Is this possible?
... more >>
bit representation of a number
Posted by Jack Black at 5/26/2004 11:16:50 AM
Is there way to convert an int or byte into a string representation of its
bits. For example, an int with a value of 7 would be displayed as "0111".
Thanks for helping.
... more >>
Manually generating Interop assembly failing......
Posted by Ollie at 5/26/2004 10:56:08 AM
I am trying to generate a strong name assembly from the unmanaged DLL for
the COM + 1.0 Admin Type Library located in the
C:\WINDOWS\system32\Com\comadmin.dll, but when I run the following command
it fails....
C:\work\BillAnalyser\Bin>tlbimp.exe comadmin.dll /delaysign
/publickey:C:\work\key\... more >>
Create delegate to currently running method.
Posted by Clinton Pierce at 5/26/2004 10:52:46 AM
I can create a delegate like this, and everything works fine:
class Foo
{
private delegate void NextPanel();
private NextPanel myself;
// And later in a method
private void EffStart()
{
this.myself = new NextPanel(this.EffStart);
}
}
This program has ... more >>
Left shift operator (<<), why?
Posted by Kevin at 5/26/2004 10:42:11 AM
I was looking through some source code and noticed the used of the C# <<
operator. Why is this being used here and under what circumstances is an
left-shift operator useful.
internal enum InterestLevel
{
Ignore = 0,
Display = 1<<0,
I... more >>
Problem with Hashtable
Posted by Ronin at 5/26/2004 10:16:05 AM
Hi
i am using following code which extracts information from XML file and creates an instance of class which it adds to hash table. problem is i am unable to extract information from hashtable : here is the piece of code
public void readEmailRecords()
XmlTextReader reader = new XmlTextRea... more >>
C# App Crashes the system
Posted by Seelan at 5/26/2004 9:45:02 AM
Hey Guys,
I wrote a small C# web application to display items from a database. It
seems to work fine when I type, http://localhost/App1.aspx but when i try to
access this using my ip or from my friend's place...my computer crashes...it
brings up the blue screen and says DUMPING OF PHYSICAL MEM... more >>
Existing form
Posted by Paul M at 5/26/2004 8:54:12 AM
Hy all
I want to test if my form exist before create one.
In delphi was like
if not Assigned (frmmyform) then frmmyform.create(self);
how is this possible in c#?
TIA
Paul
... more >>
Regular Expression question
Posted by kristian NO[at]SPAM detandetfirma.dk at 5/26/2004 8:50:23 AM
Hi.
Can any one tell me why this code does not return what its supposed
to:
public string From(){
return POP3Message.Token( "From: (.*)" );
}
private static string Token( string _pat ){
Match match = Regex.Match( msg, _pat, RegexOptions.IgnoreCase );
if( match.Success ){
return match.... more >>
Please Help!!
Posted by Vai2000 at 5/26/2004 8:42:33 AM
Hi All, I am writing a winsvc which monitors file changes on two or more
network paths...How can I accomplish this using the FileSystemWatcher?
I know the above can be applied to Sub Directories etc...but my requirement
is for multiple Paths on Network which aren't technically Sub Dirs
TIA
... more >>
Reading the value stored at a memory location
Posted by aquaboltar NO[at]SPAM hotmail.com at 5/26/2004 7:45:37 AM
Hello,
I am relatively new to C#.
There is a particular address in memory on my computer that stores a
string value. The address is 57E777.
Does anyone know how I can retrieve the string value stored at this
address and store it in a string variable?
I have tried using pointers to do t... more >>
Properties Grid
Posted by Martin Montgomery at 5/26/2004 5:26:02 AM
I have, for example, a property called myProperty. I would like, when using a property grid to display the property name as "My Property". Is this possible. Is there an attribute etc
Thank
Martin... more >>
Network explorer...
Posted by Steve Randall at 5/26/2004 1:56:04 AM
I need to build an application that allows the user to select folders from any number of drives located on any number of servers on a network. In effect, I am trying to mimic the functionality of the Windows Explorer in being able to expand the "My Network Places", "Entire Network", and "Microsoft W... more >>
70-315 Training
Posted by m3ckon at 5/26/2004 1:47:07 AM
Hi there,
I've been developing asp sites for 4 years now and for the past few
months have been learning c# to build .net apps.
I want to take exam 70-315 so that I have a formal qualification behind
me.
However I'm stuck as to what training material to prepare for the exam??
I was go... more >>
treenode - treeview
Posted by Dean L. Howen at 5/26/2004 1:24:55 AM
Hi,
I want to add some attributes to TreeNode, so I create a new class MyNode
that inheritance from System.Windows.Forms.TreeNode,
I want to TreeView use MyNode instead of TreeNode, so I can manipulate with
new attributes
How can? Please give me some ideas,
Thanks.
Because the TreeNode do... more >>
Command Prompt
Posted by Hareth at 5/26/2004 1:07:14 AM
How do I do a "shutdown -i" from the command prompt.
ive tried this method but it doesnt work
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = "explorer";
proc.StartInfo.Arguments = "shutdown""-i";
... more >>
name space "Microsoft.WindowsCE.Form" is not found
Posted by ginee at 5/26/2004 12:46:07 AM
Hi all,
While i try to build a example c# project, i get a error message "The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?)". This error occures in "using Microsoft.WindowCE
..Form".
I am installing .net visual studio 2003 and... more >>
|