|
I have appended some elements to my root element using appendchild. Even then getElementsByTagName() returns nothing. What should be done. Here's the code.
pXMLRoot = pXMLDocument->createElement("CDLAYOUT");
pXMLDocument->appendChild(pXMLRoot);
pFamilyNode = pXMLDocument->createElement("FAMILY");
pXMLRoot->appendChild(pFamilyNode);
pFamilyNode->Puttext("tiger");
pOSNode = pXMLDocument->createElement("OS");
pXMLRoot->appendChild(pOSNode);
pOSNode->Puttext("Win2k");
AfxMessageBox(pXMLDocument->xml);
set = pXMLDocument->getElementsByTagName("*");
Thanks in advance
Dipeka.A.J
|
|
|
|
|
A lot would depend on the hardware you are planning to use.
You might want to search for VOIP (Voice over IP).
Michael
CP Blog [^]
|
|
|
|
|
You can't connect a IP connection phone call to a PST standard phone without hardware in the middle to do the swapping.
You would need to find a phone provider who could do that for you. You won't be able to do it with a standard ADSL modem. You can do IP to IP fairly easy but not IP to PST.
Michael
CP Blog [^]
|
|
|
|
|
Does anyone, knows how to make a flexgrid control the same size as the cells size. Got it? Thank you for the answer.
|
|
|
|
|
Hello,
I am trying to manage IP, Masque, DNS, and DHCP in C++ and I can't find a correct method to manage it.
I have developed a programme using Windows Registers but the programme doesn't work on all Windows XP computers sniff.
Can anyone tell me the best method to manage TCP/IP parameters for Win 98 to XP computers???
Thanks for your help.
|
|
|
|
|
|
Hi,
I tried using the code below but the value turns to 'NULL' on the next loop...Pls help.
Rgrds.
CString MyString = "ABCDEF";
char * szMyString = (char *) (LPCTSTR) MyString;
|
|
|
|
|
maybe you should write what you want to do...
the code looks, like you are going to make
a mistake...
|
|
|
|
|
Two options are
// Recognising that LPCTSTR is const TCHAR *
CString MyString("ABCDEF");
LPCTSTR szMyString = MyString;
or
CString MyString( "ABCDEF" );
LPTSTR szMyString = new TCHAR[MyString.GetLength()+1];
_tcscpy(szMyString, MyString);
'G'
|
|
|
|
|
GetBuffer(...) returns pointer to the raw string.
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
I want to run only one instance of my application at a time at my User's PC .
if he try to run another instance by clicking on EXE ,, he will recvie an error message.
i have a little idea , i thin it is by some static function and static data member to have count of instances. ... and there may b a rule of Constructor ..
but i cant do it ..where to write and how
any idea or Code sample
thanx
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------------//
//check if the application is already running...
bool bAlreadyRunning;
HANDLE hMutexOneInstance = CreateMutex( NULL, TRUE, "Pointer to a null-terminated string specifying the name of the mutex object.");
bAlreadyRunning = ( GetLastError() == ERROR_ALREADY_EXISTS );
if ( hMutexOneInstance )
{
ReleaseMutex( hMutexOneInstance );
}
if ( bAlreadyRunning )
{
//AfxMessageBox("Application is already running");
return FALSE;
}
//---------------------------------------------------------------------------------------------------//
Include this code in the InitInstance of your app. This will do the trick for you.
|
|
|
|
|
Hi there guys,
I was wondering if there is a way of having ClassWizard manually going through a project's newly added source files (.cpp/.h) and recognise both the class(es) and their members?
Thanks a lot,
David Nimrod
|
|
|
|
|
it does that already rite ?
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
It won't if you manually create a class after you've created the project -- ClassWizard doesn't seem to recognize the members.
Any ideas?
David
|
|
|
|
|
Hi!
I want with Visual c++ .net write some output to a Ms Word file but not in dos format.
How i do so? I can choose the font too?
I don't speak english very well but i hope you understand my question.
Thanks!!!
TiziaCaia
|
|
|
|
|
Search on "Automation" (not so easy.)
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
|
What I want to do is create a console application that computes the crc of a file and writes the file to a zip file. I have been struggling on this for weeks now and I need some help.
-Ryan M.
|
|
|
|
|
boost[^] has a CRC library. It looks like it's pretty easy to use. There's a sample program just above http://www.boost.org/libs/crc/crc.html#crc_ex[^]
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
How can I be able to Save a Bitmap File to a JPEG File?! Please provide some Source Codes, i'm a bit Confused... thanks!!!
|
|
|
|
|
There are lots of good examples on www.morgan-multimedia.com
|
|
|
|
|
I download a file in my program with code like this:
stream = InternetOpenUrl(session, url, NULL, 0,
INTERNET_FLAG_NO_CACHE_WRITE | INTERNET_FLAG_PRAGMA_NOCACHE, 0);
...
while (more data to read)
InternetReadFile(stream, buffer, DOWNLOAD_BUF_SIZE, &bytesRead))
But sometimes instead of getting the file I'm after, I get a file with this contents:
--------------------
<HTML><HEAD><META HTTP-EQUIV="Refresh" CONTENT="0.1;
URL=/LatestVersion.txt">
<META HTTP-EQUIV="Pragma" CONTENT="no cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD></HTML>
--------------------
The URL I use is "http://www.software3d.com/LatestVersion.txt".
Now "www.software3d.com" is just a redirecting link which sends people to the real site, but I want to use it in case I ever move my site again (this link would then redirect them to the new site).
I'm guessing this redirection has something to do with it though, like it's received the little redirecting page itself, instead of following the redirection, but most of the time it works and finds the right page.
Any clues as to how I can guarantee it will get the right file?
Thanks,
Rob.
|
|
|
|
|
http://www.intel.com/software/products/compilers/cwin/index.htm
It is an add-in compiler for VS.Net and it will replace the default Microsoft compiler.
I ordered "The Software Optimization Cookbook" from Intel press a while ago, and it arrived today. It talked about the Intel C++ compiler, so I wonder if anyone have used it, or is using it.
|
|
|
|