|
prasad_som wrote: How you are sending last parameter ? i.e. language Id.
ret = str.LoadStringW((HINSTANCE)AfxGetInstanceHandle(),IDS_STRING102,(WORD)1097);<br />
It is unicode and of course different from english. I don't know if its defined in .rc file. How do I do that?
|
|
|
|
|
prasad_som wrote: How you are sending last parameter ? i.e. language Id.
<br />
ret = str.LoadStringW((HINSTANCE)AfxGetInstanceHandle(),IDS_STRING102,(WORD)1097);<br />
It's of course not english. I don't know if its defined in .rc. How do I do that?
|
|
|
|
|
Are you sure a stringtable entry exists for id "IDS_STRING102" in the language section "1097"?
The error indicates it doesn't exist.
|
|
|
|
|
Mark Salsbery wrote: in the language section "1097"?
I think I need to check out that. What is the language section? the string IDS_STRING102 does exist in stringtable and the value of that is a unicode string. If i put a non unicode string, it gets loaded.
|
|
|
|
|
The STRINGTABLE resource has a LANGUAGE option but apparently tha's not the problem if it
works for a non-unicode string table entry.
|
|
|
|
|
Hi
I m writing a client server program. in that i recevice some data from client, and that may be too large some times, so i have a MSG SIZE field in my message. so if i receive less number of bytes than MSG SIZE icall receive again assuming there will be some data to receive.
But when i call recv function i dont if i would get the remainig data or the whole data including the last received data.
What is the exact behaviour of recv() in receiving fragmented messages.
please reply ASAP. thank you
bye
P.Somasundaram
|
|
|
|
|
you can see the socket as a FIFO. what recv() as returned you is definitely extracted from the queue.
|
|
|
|
|
hi toxcct,
so you mean, say if i had received 256 bytes in recv() and if the MSG SIZE is 1600, then the second call will receive the remianing 1344 bytes isnt it.
but i tried uppending the first received message to the second received message but the format was not correct. i dont think it does so.
|
|
|
|
|
|
thank you
i will read and come back
bye
|
|
|
|
|
I have 2 CEdit - m_edit1,m_edit2.
CString sRezult;
m_edit1.GetWindowText(sRezult);
if(sRezult == "20")
{
m_edit2.SetWindowText("World");
break;
}
But i want this to work if i enter 200 or 2000 or 2006!
How?
Bravoone
|
|
|
|
|
Hi,
you can change
if(sRezult == "20")
to
if( sRezult.Left(2).Compare( "20" ) == 0 )
-----------
Mila
|
|
|
|
|
if((sRezult == "2006") || (sResult == "200") || (sResult == "20")) { ...
|
|
|
|
|
Do you want to check OR or AND?
|
|
|
|
|
WhiteSky wrote: Do you want to check OR or AND?
Bravoone_2006 wrote: But i want this to work if i enter 200 or 2000 or 2006!
i think it's or
|
|
|
|
|
And also I think yes because if he needs to and he reply to my post
|
|
|
|
|
Hi alll,
I have a requirement to restrict the child dialog movement with in the paren window.
Please help me if any one knows the way.
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
Can you be a little more clear about what you want? A child window is not able to draw outside of it's parent window. If you want to move the child window then call MoveWindow() or SetWindowPos()
|
|
|
|
|
hi,
when it is tried to move the child dialog using mouse, normaly it will move outside of the parent dialog. But i want to restrict it with in the cordinates of the parent window.
do you have any idea???
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
Dear All,
I need to create a XML file using VC++.
is there any lib files/api's available for doing this ?
Kindly gice me good idea about this.
Thanks.
|
|
|
|
|
MsXML , TinyXML , PugXML , etc...
|
|
|
|
|
hi
I dont know about these thinks.
Can you expalin those more ?
Thanks.
|
|
|
|
|
|
I still don't understand, why did you change the colour to blue?
|
|
|
|
|
hum, i'm not sure to get you at all...
|
|
|
|