Donno the exact code, just try googling "C++ Sending Keys"
You will have to work with the Windows API, sending messages, getting handle to window, that kinda stuff. Might be better off posting...
Type: Posts; User: avalanche333
Donno the exact code, just try googling "C++ Sending Keys"
You will have to work with the Windows API, sending messages, getting handle to window, that kinda stuff. Might be better off posting...
ah gotcha.
Well you can still take the approach I suggested but instead of having a m_value, you would use the coordinates or location that you required and change the algorithym used to find if...
What is ment by overlap? I am guessing thats a triangle fits into square or circle, or square fits into a circle?
You can have a protected variable say m_value in shape and have constructors for...
Looks like you are passing by reference ok, but you are assigning card=get_card(suit,val) when get_card returns void.
By the looks of things you are passing by reference for no purpose at all...
ah, thank for the heads up
Yes I am in linux. I'll try it out, thanks for the suggestion. I've been looking for something like this and ran into a few programs but they seemed to conly catch basic memory leaks... dumb things...
What is the right way to declare it?
I think it was something like SendFile( void** pVal ), then pass SendFile by reference.
With regards to the mutex... is is created/initalized with
...
Look into Design Pattern's. There are many of them and that should keep you busy for a while.
If you want to buy a book or find an eBook, look into Design Patterns by Erich Gamma. Very good...
Probably shouldnt say this on a C++ board... but if your board of it try a different language? I personally enjoy multi tier development with VB for front end, C# for business/Data layer, and any DB...
Here is a small sample of what I am doing without much of the logic.. basically the threading part. Could someone tell me if this is memory leak free?
If it is not, what could I do to make it...
ah thanks.
I'm finding if i send many messages in a row I need to use a sleep because som of my messages are being recv conncatinated.
Is there a way I can send and recv messages between client and server...
Is it bad programming practice to make a class that has a protected Constructor/Destructor?
I want this class to be like an abstract class (can't create instance) but it will not have any pure...
What I have done is:
- I still use select but only to make sure there is data to be sent (to be same).. and this is before the recv loop
- To break out of the loop I send the file size...
Finally I think everything is resolved.
What I did is I went back to old way as suggested to read data from the buffer until 0 bytes are read and its the end of file. I send that data (is not...
Dang I just realized a stupid mistake in my solution. The way i made it, it will overwrite what was previously in the sendBuff when it reads.... this will not work.
transferFile.gcount() tells you the number of bytes read
What I am thinking of doing is something like this:
UINT bytesToSend = _FILEBUFFSIZE;
do
{
bytesToSend = _FILEBUFFSIZE;
That is not true. read actually returns *this.
If I would have listened to the 1st reply I prob wouldnt have had the problem of small files not sending. The issue was that I was using TCHAR. ...
If I would have listened to the 1st reply I prob wouldnt have had the problem of small files not sending. The issue was that I was using TCHAR. After changing file transfer to use plain char it...
Hey I tried Putty out, works great and I'm sure it will help me out w/ this project. When i transfer the file Putty does display all the contents of my small text file, so it looks like the server...
Thanks guys, this worked very well.
However the other problem of small files not sending any bytes exists.
Any idea why this could be.
Thank, I ll be sure to try everything out tomorrow before dinner. its a little late now and Im going to bed. One thing I wanted to point out that I may not have made clear is that when I say that...
I am working on a socket library in windows. I am able to send a file but there are 2 problems I am encountering.
Issue 1:
IF the file is small, say 120 bytes When i send the file from server...
Hmmm Well I am developing in VS 2005, Windows XP.... But this will also need to work under SUSE 10.1, with the gcc compiler.
Any Known issues with name() there?
What I ened up doing is:
template <typename T>
void showType()
{
cout << typeid(T).name() << endl;
}