|
hi,
I have retrieved data from a edit Control box, now i need to send the data to the socket. how do i send the data?
Thank you,
yj
|
|
|
|
|
yijia_24 wrote: need to send the data to the socket
CAsyncSocket::Send() Sends data to a connected socket.
CAsyncSocket::SendTo() Sends data to a specific destination.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
You can see an example on codeproject I think it was not sure(Transfer files with socket)
|
|
|
|
|
Is there any function to get the current version number of the application(.exe)...?
thanks in before
James
|
|
|
|
|
|
Do you need to GetFileVersionInfo ?
|
|
|
|
|
i want the current version number in about dailog of the application..in another dailog....how to get the version number...from resource...?
thanks in before
james
|
|
|
|
|
did you have a look at the link i gave you ?
it does recover perfectly the resource version table, and in the OnInitDialog() of your AboutDlg you set it to be displayed...
|
|
|
|
|
kindly help me in my project
#sanroop#
|
|
|
|
|
View This Site /[^]
may be it will help u out
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
this is not a question. if you need help about aspecific point, explain it. otherwise, read the documentation/article provided with the lib...
|
|
|
|
|
Have a read of the xmltest.cpp file that ships with the library. I know it can be a little intimidating at first, so many functions, so many overloads, but it is really quite easy. This is an example from my project
TiXmlDocument doc;
TiXmlNode* node = 0;
TiXmlElement* root = 0;
TiXmlElement* element = 0;
char *country = NULL;
char *province = NULL;
char *city = NULL;
char *enName = NULL;
char *chName = NULL;
char *lpIn;
bool bUsedFile = false;
if ( doc.LoadFile(lpIn) )
{
root = doc.RootElement();
if ( ! root ) {
if ( bUsedFile )
delete [] pszBuf;
return false;
}
node = root->FirstChildElement("Region");
if ( node )
{
country = (char*)node->ToElement()->Attribute("Country");
province = (char*)node->ToElement()->Attribute("Province");
city = (char*)node->ToElement()->Attribute("City");
}
element = root->FirstChildElement("Name");
if ( element )
{
enName = (char*)element->GetText();
}
element = root->FirstChildElement("ChName");
if ( element )
{
chName = (char*)element->GetText();
}
if (country) _mbscpy((unsigned char*)lpBuf[i].szCountry, (unsigned char*)country);
if (province) _mbscpy((unsigned char*)lpBuf[i].szProvince, (unsigned char*)province);
if (city) _mbscpy((unsigned char*)lpBuf[i].szCity, (unsigned char*)city);
if (enName) _mbscpy((unsigned char*)lpBuf[i].szName, (unsigned char*)enName);
if (chName) _mbscpy((unsigned char*)lpBuf[i].szChineseName, (unsigned char*)chName);
}
Hope it helps
|
|
|
|
|
Can anyone have a knowledge of Multilingual languages Standards in Unicode.How Encoding and Decoding is done and mapping between Language and Unicode ....
If anyone knows any Site ...plz send it to me
Thanks in Advance ....
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Is this[^] helpful for you?
|
|
|
|
|
Thanks ....
that is what i exactly want but for UNICODE standard ...It is really helpful for me .....
Thanks a lot ....
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
If you find an answer given to you be useful, you can rate it by using the rating option at the bottom right of the post. Its optional though.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
when i see that site and load that project it is not working ...fatal error occur ...if u have solution plz do reply me .....thanks
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Its a minumum info can you be more specific why it doesnt work what files?
|
|
|
|
|
when i compile that application fatal error occur ...
fatal error RC1015: cannot open include file 'res\UniTest.rc2'.
Error executing rc.exe.
and when i click on resource view it gives me error msg that load fails
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
You create a folder called "res" in the project directory (where the .dsw file exists) and then put the files "UniTest.rc2" and "UniTest.ico" inside that directory. Set to release configuration and build.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
yae i think that it is one solution but the main thing is that UniTest.ico is not available ....than what can i do
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Shilpi Boosar wrote: but the main thing is that UniTest.ico is not available
Please look into the contents of the zip file. IT IS THERE!.
And if well does it not be there, you can put any damn icon into the res folder and rename it to "UniTest.ico".
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
Yae now its properly working ....thanks ............
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
It seems this file not exist on this project you can delete it of rc file and then complie it.
|
|
|
|
|
Hi,
I want to use a custom menu for my SDI application, that is, to call CMyMenu's DrawItem virtual method. (but I cannot
So, I set CREATESTRUCT's cs.hMenu to NULL to cancel the original menu.
Prepared the class CMyMenu with its DrawItem and MeasureItem virtual functions overriden, and put the following code in CMainFrame::OnCreate;
<br />
m_mymenu.LoadMenu(IDR_MAINFRAME);<br />
SetMenu(&m_mymenu);
... Menu is appeared as assumed, but no DrawItem/MeasureItem is getting called!
Could you please help me with calling those methods?
Thanks in advance.
--
======
Arman
|
|
|
|