|
When searching for nodes using XPath, use @ to specify that you're searching an attribute.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Don't start new threads all the time: when the topic continues to be the same, as
is obvious from your post, add a message to your earlier thread.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
when you can't help me, why post here ?
|
|
|
|
|
hdv212 wrote: when you can't help me, why post here ?
With over 300 messages posted, you should already be aware it is considered
rude to start a new thread unnecessarily, to modify a message without marking
it as modified, as well as to delete a message once it has one or more replies.
At the time I could not help you, since your message seemed empty;
now I can't because it's gone.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Luc Pattyn wrote: Don't start new threads all the time: when the topic continues to be the same
Geeze, that is still going on around here
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Did you ever notice a little checkbox marked "Ignore HTML tags in this message" ?
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
I have changed it
Thanks for the tip.
Can you help me?
|
|
|
|
|
i have two web applications
i want to host both the sites in the same webspace
can i do it
if so how can i do it
please help me out...
thanks bye
|
|
|
|
|
Wrong area to post try ASP.net forums:->
|
|
|
|
|
I am currently developing a File Downloader using C#.net 2005.
So,In My Project How to catch Url from internet explorer when user try to download that file from internet?Means when user click for downloading particular file then the Url of that file is catched in my Downloader so my Downloader will start downloading that file.So how to integrate my Downloader with internet explorer?
|
|
|
|
|
Hi,
I'd like to know why after calling
_tcpClient.Client.LingerState = new LingerOption(false, 0);
_tcpClient.Client.Shutdown(SocketShutdown.Both);
_tcpClient.Client.Disconnect(true);
, when I try to connect again, I get a Socket already connected exception.
I dont know what else to try, please help!
|
|
|
|
|
pease gime me date time picker(dtp)surce code for send values oledb database
|
|
|
|
|
Please don't double post. Your question is unintelligible. You just pass a datetime to the database, the datetime picker is irrelevant to the process.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: question is unintelligible
Yes, and it is a simple process he is trying to do.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
i make progamm.database is oledb.how to send c# date time picker detail to oledb database.please help.give me this soruce code.
|
|
|
|
|
you need to oledbconnection
oledbcommand or oledbdataadapter
command="insert into tablename (dateTime)values('"+datetime.date.now()+"')";
Rami Abdalhalim
|
|
|
|
|
Don't double post. See the response you got from Christian.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hello all,
I wonder if the following problem is possible in c#:
I have two classes named class1 & class2 both having two functions named func1 & func2 . Although the function names are the same, what they do are different for two classes.
I want to declare only one object to use these functions.
In order to do what the following code portion does
class1 obj1 = new class1();
class2 obj2 = new class2();
if (selection == 1)
obj1.func1();
else if (selection == 2)
obj2.func1();
I need a shorter and smarter way i.e;
The above code is possible but it is too long. You should write if statements every time you want to call the functions. So I want to do this with a shorter code:
I have an object which is assigned to the obj1 or obj2 (which are declared as above) depending on the selection at the beginning of the program, then you can call the funcs just by obj.func1()
I dont want to write if statements each time i am calling the functions.
Declaring an object of type object is OK but this time you have to cast the obj which is of type object to class1 (or class2 ) each time you are calling the functions. So casting is a not a solution either. I think i am looking for something like "Permanent casting" (if exists of course)?
P.S : One of the classes may have extra funcs which the other doesnt contain so "Inheritance" is not enough
Regards
Zafer
-- modified at 4:36 Saturday 25th August, 2007
|
|
|
|
|
Create a base class, and two derived classes, then you can call the method, and it's different based on which type of class the instance is.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks for your post Christian.
What if one of the classes have an extra func that the other class does not have. Is it possible to call that function in that case? Because as the object is of type baseclass I will not be able to see it.
Zafer
|
|
|
|
|
Not unless you first check if it's that type, or define those methods in an interface ( which you would still have to cast to ). That's how inheritance works. You CAN define a method in the base class that doesn't do anything in the base class, and then does in derived ones.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Define an interface that has those two functions. implement that interface in both classes. cast the selected object to that interface.
public interface fred
{
void func1();
void func2();
}
public class class1 : fred
{...} etc
class1 c1 =...
class2 c2 =...
fred doer;
if (...)
{
doer = c1;
}
else
{
doer = c2;
}
doer.func1();
etc
Philip Painter
|
|
|
|
|
Hi!
i am trying to copy nodes from one xml to another, i am doing a simple action, appending the first xml the node that i want from the other xml using the XmlNodeList(specific node).
I always get the error that this node belongs to another xml document:
"the node to be inserted is from a diffrent document content"
how should i do this copy??
Thanks
|
|
|
|
|
You need to create a new node and copy it into the new document, otherwise, the same node ( as it's passed by reference ) is in two documents, and this is verboten.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|