|
But what happens if you then receive a shorter string of characters from the socket? Parts of "Manchester United" will still be intact. While calling ZeroMemory() may to work, a better solution was suggested by chandu004.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
what roger has suggested is good.
but i think, your receive function should return, the number of bytes actually read.
so based on that number, you can cut your string to that many number of bytes.
im not sure but just try it out.
|
|
|
|
|
chandu004 wrote: so based on that number, you can cut your string to that many number of bytes.
And then NULL terminate...
Jeff
|
|
|
|
|
|
chandu004 wrote: yah obviously.
Perhaps not...
|
|
|
|
|
Hi Friends
In my program there are too many child windows arraged horizontally. How can change size of each sub windows
thanks in advance
-RisKhan-
|
|
|
|
|
|
|
RisKhan wrote: In my program there are too many child windows arraged horizontally.
So can't you just rearrange them via the resource editor?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I'm not entirely sure I see your problem. If it is your program, don't put too many in a row in the first place.
Either by using the resource editor as David suggested, or putting something in the Y parameter of CreateWindow when you call that.
If these windows can move depending on other conditions, and there are a lot of them, then you should look at the DeferWindowPos family of functions.
Iain.
|
|
|
|
|
Hi all,
I want to implement a timer in my simple sdi applcation. How to do it?
Thanks in advance
|
|
|
|
|
neha.agarwal27 wrote:
I want to implement a timer in my simple sdi applcation. How to do it?
See Here[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
You can use of WM_TIMER and SetTimer.
|
|
|
|
|
my systems all c++ .h files showing 0 bytes can i write any programme to recover my data back
RajeshGupta
|
|
|
|
|
Try using data recovery softwares. I Hope you will get all your files back in working.
Regards,
Paresh.
|
|
|
|
|
0 bytes? Did you delete content of these files?
|
|
|
|
|
I try may data recovery softwres but could not recover the file .
can you suggest me some other softwares. i donot know how the data becomes zero bytes in every files . is there any conditions in data recovery
Rajesh
|
|
|
|
|
Have you deleted the contents of the files ?
Regards,
Paresh.
|
|
|
|
|
no I have not deleted content of the files. all .cpp .h and all other
.sln .dsw .dsp turn to 0 bytes .
Rajesh
|
|
|
|
|
Any virus attack ?
Regards,
Paresh.
|
|
|
|
|
may be possible the virus attack.
Rajesh
|
|
|
|
|
rajeshgupta1253 wrote: may be possible the virus attack.
try to open that file and see is actually empty or not.. might be problem with Window OS ude to virus attack!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Buw how OS shows 0 byte but file has content is it a bug?
|
|
|
|
|
Hamid. wrote: Buw how OS shows 0 byte but file has content is it a bug?
no OS doesn't contain bug.. [May be ] but Virus could do anything.. couldn't it!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
I think if we awareof our system(its behavior) we dont need to anti virus of course it seems to knowledge each someone.
|
|
|
|