all groups > c# > january 2005 > threads for sunday january 16
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
how to use xsd proof xml-string from xmldocument
Posted by David at 1/16/2005 11:58:57 PM
I have a xmldocument like this:
XmlDocument doc = new XmlDocument();
doc.LoadXml(xml-string);
and I have a .xsd file, "schema.xsd".
How do I use this xsd file to valid the string?
Otherwise how do I trans the doc to XmlTextReader and valid it?
Thanks for any advice, David.
... more >>
How to Move Many Web Form TextBox Strings into/out of a Database
Posted by Edward Mitchell at 1/16/2005 11:33:40 PM
I have Web Form (.aspx file) with a fair number of textboxes (<asp:textbox
.... />) that I need to fill from a database and then save back to the
database when I'm done. This presumably must be a fairly common problem.
If I use brute force, I finish up with a lot of assignments in the
Page_... more >>
Definitive reference book?
Posted by Adie at 1/16/2005 10:36:14 PM
Hi, is there a C# equivalent to Bjarne Stroustrop's "Programming in C++"
yet?
If so, what is it?... more >>
Convert int to enum
Posted by Shimon Sim at 1/16/2005 9:55:28 PM
I am writing general method that would take Type that should represent a
enum that do something with it.
In the middle of the method I need to cast it to this enum. I tried
Convert.ChangeType but it throws an exception - InvalidCast.
Wanted to know is it possible to make cast if you don't... more >>
Deploying a C# program
Posted by slip at 1/16/2005 9:41:02 PM
Can I deploy a C# executable on a machine running Win 2000 that doesn't have
the .net framework on it??... more >>
A function to be called at a particulat timestamp
Posted by Reshma Prabhu at 1/16/2005 9:23:01 PM
Hello,
I want a function to be called at a particular timestamp. Can any tell me
please which class i should use.
Thanks,
Reshma... more >>
Assembly.LoadFile(filename) <---- AGGGG
Posted by Dani at 1/16/2005 9:11:23 PM
Hi, I have used the static method LOADFILE from class Assembly. I am getting
all assembly from file. Then that great, it works. But after that i want to
destroy that file, but i can`t do it. There is another application using it.
How I can destroy, or desassembly the file during my applicatio... more >>
P/Invoke for pointer to pointer argument.
Posted by Can Balioglu at 1/16/2005 8:01:13 PM
Hi,
I need to call the native function DnsQuery(..., PDNS_RECORD
*ppQueryResultsSet,...). The problem is; the function allocates a block of
memory and initializes it with the DNS query results and returns a pointer
to pointer to refer to this unmanaged memory area. I already created the
wrapp... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
MSComm. Exception from HRESULT: 0x800A1F4C
Posted by caidaer NO[at]SPAM yahoo.co-dot-nz.no-spam.invalid at 1/16/2005 5:55:10 PM
Hi there.
I'm writing a C# app (in VS.NET 2003) that sends a binary sms using
MSComm. I got it going with a gsm modem, but ideally we want to use a
cellphone as the sending device. However, when I use a cellphone
(Nokia 7210) with the same code, I get the above exception.
The first communic... more >>
how to use trace?
Posted by Aaron at 1/16/2005 5:28:37 PM
this is what I want to do.
i have an input box and a submit button. the input gets processed by my
program and it returns the results. depending on the input, not all the
functions in my program are called, some might be called multiple
times, the order of functions called might be different e... more >>
Reading Registry Values
Posted by dakkar NO[at]SPAM sylveria.gen-dot-tr.no-spam.invalid at 1/16/2005 4:54:15 PM
Is it possible to read registry values with c# ?
I want to check if a program exist and if its exist i want to take its
path from registry is that possible if it is how?
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*... more >>
#include like in c++
Posted by dakkar NO[at]SPAM sylveria.gen-dot-tr.no-spam.invalid at 1/16/2005 3:54:13 PM
i want to add several cs files to my c# project does visual c# 2005
see everypage automaticaly or do i have to use a method like #include
if i have
what is the usage of it?
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*... more >>
Performace problem with DataView.RowFilter
Posted by Joe at 1/16/2005 2:56:24 PM
Not sure what group this question is better suited for so I sent it to both.
I have a DataTable which contains 1545 rows. I have a method that returns a
DataTable of distinct rows based on one column. This table ends up with 386
rows.
I need to loop through the smaller table and filter a D... more >>
SQLDMO
Posted by T. at 1/16/2005 2:41:01 PM
I have this code:
foreach(SQLDMO.Database db in sqlsvr.Databases)
dblist.Add(db.Name.ToString());
But I am getting this error "Object reference not set to an instance of an
object". When I debug this piece of code, db is not an object of type
SQLDMO.Database. It is something else othe... more >>
SQLDMO
Posted by T. at 1/16/2005 2:35:02 PM
I have this code:
foreach(SQLDMO.Database db in sqlsvr.Databases)
dblist.Add(db.Name.ToString());
When I run this code I get an error "Object reference not set to an instance
of an object". When I debug this code, db is not an object of
SQLDMO.Database, and has none of the properties ... more >>
Monitor unblock priority
Posted by vooose at 1/16/2005 1:46:11 PM
Suppose execution of a particular thread T1 hits
Monitor.Enter(obj);
//critical section
and blocks at the first line. (ie someone else is in the critical
section) Now suppose more threads T2, T3... try to enter the critical
section and are blocked.
What is the order that the threads get... more >>
How do I read the registry in C#?
Posted by Tony at 1/16/2005 12:55:03 PM
Weather forecast web service???
Posted by Selçuk Giray Özdamar at 1/16/2005 12:49:17 PM
Hi,
I'm looking for a public web service about the weather forecast ,
(for all of the cities in the world), is there any web service?
Thanks...
... more >>
This is what my hosting service said
Posted by jty202 at 1/16/2005 12:39:23 PM
"Although we do support the ASP.NET Starter Kits, we do not do the
installation for you. You can run the installation file locally, then
upload the kit. You will not be able to compile on the server. You will be
able to set your .NET virtual directories through our web based control
panel. ... more >>
constructor
Posted by Wilfried Mestdagh at 1/16/2005 12:17:01 PM
Hi,
It seems to me (using C# 2005 beta and NET 2 beta) that both of these are
the same:
public class test
{
int t = 500;
}
pulbic class test
{
int t;
public test()
{
t = 500;
}
}
Meaning in such case you dont need the constructor. Is that right ? A... more >>
Look for a really good Charting package
Posted by Joe at 1/16/2005 11:49:15 AM
I've been testing ChartFX but the performance doesn't seem to be too good.
I have used ProEssentials but it seems to be lacking some of what we need.
Any recommendations? We're primarily using a scatter plots.
Thanks,
Joe
... more >>
Magic Instantiation! Most Annoying! :-(
Posted by thechaosengine at 1/16/2005 9:37:19 AM
Hi all,
I get the following problem crop up every once in a while. I'm wondering
if anyone can tell me how to avoid it because its driving me absolutely insane!
I have a Project class that contains a User property amongst lots of other
properties.
In the Project class's constructor I in... more >>
CodeDom -- create virtual method
Posted by Mark at 1/16/2005 9:30:19 AM
Using the CodeDom namespace, how to do you specify that a generated method
should be virtual?
CodeMemberMethod method = new CodeMemberMethod();
method.Name = "MyMethod";
method.Attributes = MemberAttributes.???????;
Thanks in advance.
Mark
... more >>
FileNotFoundException was Handled
Posted by dakkar NO[at]SPAM sylveria.gen-dot-tr.no-spam.invalid at 1/16/2005 7:53:52 AM
I wrote my program like this and its using c# mysqldriver for
connecting mysql but after pushing the connet button im taking this
error
what must i do
Error:
File or assembly name 'MySQLDriverCS, Version=3.0.1735.36021,
Culture=neutral, PublicKeyToken=172f94dfb0faf263', or one of its
dep... more >>
How to compare 2 int arrays?
Posted by yaya via DotNetMonster.com at 1/16/2005 7:40:30 AM
Hi, is that any way to compare 2 int arrays without comparing each of the elements ?
int []p = new int[3] {1,2,3};
int []q = new int[3] {1,2,3};
if(p == q)
MessageBox.Show(" Arrays are equal! ");
But the (p==q) return false while the arrays p and q have the same elements.
Thankz,
ya... more >>
a simple web browser without using axwebbrowser?
Posted by sauron8888 at 1/16/2005 6:39:04 AM
how can i prepare a web browser without using axwebbrowser?... more >>
Object reference not set to an instance of an object
Posted by dakkar NO[at]SPAM sylveria.gen-dot-tr.no-spam.invalid at 1/16/2005 5:54:04 AM
I made my code like this and im getting the error that i write on the
topic
what should be the problem?
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Drawing;
using MySQLDriverCS;
public class baglanti : Form
{
private Button btn;
... more >>
re-initialize an object in same variable
Posted by Wilfried Mestdagh at 1/16/2005 5:39:04 AM
Hi,
When I use same variable for a new created object, then whill the old one
destroyed by garbage collection, or do I first have to set it to null ?
eg:
SomeObject o = new SomeObject();
// and a while later:
o = new SomeObject();
or should I do:
o = null; // or call destructor? how... more >>
Where to put my code?
Posted by thechaosengine at 1/16/2005 5:16:42 AM
Hi all,
I have a very simple issue that I often come up against. I'm just wondering
what the common consensus is on dealing with it.
I have a Project class, that has amongst other properties, an int representing
a ProjectManager. The question is what should I do when I want more details
... more >>
How to get list of tables from access database ?
Posted by Nicolas H. at 1/16/2005 3:45:03 AM
I'm writing a dynamic tool to get structure of access databases.
I search the way to get the lit of tables.
I try from C# the request :
SELECT MSysObjects.Name FROM MSysObjects WHERE MSysObjects.Type=1 AND
MSysObjects.Name NOT LIKE 'MSys*'
This works, only if the MSysObjects is set to... more >>
Preventing multiple instances of an app - with a flourish
Posted by Patrick B at 1/16/2005 2:38:34 AM
Here is the code I use to stop a user from starting multiple instances
of my application:
mutex = new Mutex(true, "MyMutex", out onlyInstance);
if (! onlyInstance) { return; }
This code works. If the user starts my program, and then tries to start
it a second time, the second instan... more >>
App that uses multiple thread remain active after Application.Exit()
Posted by TomTom at 1/16/2005 12:53:15 AM
My MainWinForm creates worker thread to do a long processing. Sometimes I
want to close the tool and click the Exit button (Application.Exit()) on
MainWinForm to kill it. However, the tool is still running in the
background, probably because of the worker thread and I have to the Task
Manage... more >>
|