|
documentElement property of IXMLDOMDocument will return you code tag. Then you need to use firstChild property of IXMLDOMNode to get data node. And again the same to get first album node. Having album node you can use it's nextSibling property to get next album node. So, I hope it's clear how to get all albums and tracks.
By the way, you can use selectSingleNode("/code/data/album") from you document node.
Having IXMLDOMNode you can query IXMLDOMElement interface and its getAttribute method.
With best regards,
Andrew
|
|
|
|
|
|
MYSQL*pMySQL=mysql_init((MYSQL*)0);
if(pMySQL==0) return;
MYSQL*pConnect=mysql_real_connect(pMySQL,
"www.mysite.com",//site name
"mysite_user", //user name
"password", //password
"mysite_maindb", //database name
0,0,0);
mysql_error says:
Access denied for user: 'mysite_user@60.246.13.57' (Using password: YES)
the user, password and database have no problem because they are all work in php (as localhost).
please help me for finding problem.
includeh10
-- modified at 8:50 Saturday 27th August, 2005
|
|
|
|
|
Try setting the password for the MySQL user to an empty string (i.e. no password), and then change your program accordingly. If you get a connection the problem may be caused by a version mismatch. Take a look at this MySQL article which talks about 'old_password' function.
|
|
|
|
|
hi
I am having problem in callling remote components methods..I tried for the same but was tnot sucessful
Any kind of help is appreciated
cheers
hi
|
|
|
|
|
What's your exact problem? Without example code and concrete scenario's, we won't be able to help you...
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
How can I use the C++ Std Lib version of 'isalnum' in VS .NET 2003?
My code is as follows:
#include <locale>
....
locale loc("English_England")
bool result = isalnum('P', loc);
I get the following compiler error: C2660: 'isalnum' : function does not take 2 arguments. The compiler refers to the VC++ version. When I use std::isalnum it then says isalnum is not found within std.
Can anybody help?
I am the handsome one in the crowd.
|
|
|
|
|
this code worked OK for me:
#include "stdafx.h"
#include < locale>
int main(int argc, char* argv[])
{
std::locale loc("English_England");
bool result = std::isalnum('P', loc);
printf("Hello World!\n");
return 0;
}
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
hi,
i had asked a similar query some days back. i wanted to add some text to the menu at runtime when the user clicks a button(similar to Add to Favourites). the solution posted helped to add the string to the menu at run time. but now i want to write a handler for the items added to the menu list; as there can be many strings in the menu we cannot write handlers for all those items. can anyone tell me how to write a single handler for the strings added in the Favourites menu.( i.e. the user would be adding a names of sites or rather strings to the menu and when he clicks one of those added in the menu i should be able to process the string, such as what is the text selected/string name).
thanks
aditya
|
|
|
|
|
Please clarify. Are you asking how to make the function be the handler for all the menu items, or how to write the body of the function?
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
How can I read each cell from each row in a worksheet programmatically.Can some one help me . I have tried it out. I can search a particular string. Also can some1 plz give me a good link for tutorial on it or any other reference
Regards
|
|
|
|
|
|
hi,
i want to use mysql in c++.
i think i need to to download driver or library first.
is mysql.h right c++ head file?
is it inside mysql package?
what files are its lib and dll? where are they?
thanks
includeh10
|
|
|
|
|
|
i don't think it is a good idea to read the huge documents.
includeh10
|
|
|
|
|
thats a shame - in those two references, and the info isnt that hard to find, is all you need to know ..
Im not a mysql expert - I only knew where to find the info - maybe you'll get lucky and someone will give you the exact answer you want, on a plate - if you want to wait that long - else it may take an amount of searching, nouse, and/or self drive .. if you cant be bothered, stick to vb
'g'
|
|
|
|
|
This is another GDI+ question:
Does anyone know how it is possible to randomly /select/draw/get coordinates of/ a point on a circle line of drawn circle?
Thanks in advance,
Sincerely,
Max Pastchenko
|
|
|
|
|
|
You question is not entirely clear. From a general perspective if you need to generate a random point on the circumference of a circle you could generate a random number between [0,360)and then, given that you know the radius and centerpoint of the circle transform your random angle to get the coordinates you need. I do not know what built in function there are for this, but simple geometry will give you the coordinates. You know the origin (centerpoint of your circle) which is a general (x,y) pair. You now also know the angle of a triangle and the length of the hypotenuse. Use trig to compute the x and y offsets: r * sin(theta) = y; r * cos(theta) = x.
I hope this helps. Check my math, my trig my be rusty.
|
|
|
|
|
This is quite helpful. Thank you
Sincerely,
Max Pastchenko
|
|
|
|
|
I want display data to CEdit Control. but I have trouble to show data in a proper format.
What I want to do is show data 16 charactors per line, when reach to the end, start next line. It's pretty simple, but I just failed to figue it out.
Please help me out.
|
|
|
|
|
One way that might work for you is read the data into an temp stirng array and insert '\n' after 16th char. After you finish with the data, then set it to the edit control.
|
|
|
|
|
It won't work. I programed like this:
m_showEdit.ReplaceSel("1234\n\r5678");
it shows 12345678. not
1234
5678
weird!!! any idea?
|
|
|
|
|
Anonymous wrote:
m_showEdit.ReplaceSel("1234\n\r5678");
Use \r\n instead, and make sure the control has the ES_MULTILINE style.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
One fairly simple way to achieve this effect would be to insert a newline every 16 characters before you set the text to the control. Something like this:
void CSomeDialog::SetEditText(char* text)
{
CString str(text);
for(int i = 16; i < str.GetLength(); i+=16)
{
str.Insert(i, "\r\n");
i+=2;
}
m_edit.SetWindowText(str);
}
[Insert witty and relevant signature here]
|
|
|
|