Can I use the Win32 to write strings to an already existing application and print them?
Example:
I want to write in a chat client when a friend enters:
"Hello - (person) Welcome to My Chat"....
Type: Posts; User: CPP-Null
Can I use the Win32 to write strings to an already existing application and print them?
Example:
I want to write in a chat client when a friend enters:
"Hello - (person) Welcome to My Chat"....
I removed getline(), but the text being stored in the string thats read from the buffer isn't being printed to the string. All I get is the System ("PAUSE") message, not the text stored in the text...
Im running into a problem - its not printing the string filecontent. =( - I tried cout << filecontent; didn't seem to print.
using namespace std;
int main(){
ifstream file1("c:\test.txt");...
Where can I learn more about this topic? - Exspecially on the StringStream class? - also is it possible to divide the contents up in a file and store it at different variables? Like say I declare a =...
I'd say that was quite funny, well you also have to take into account im a 15 year old o.O. - I thought it was a great joke - at the moment =P. I'll be sure to share that with a couple of other...
After I create a random text file called text.txt with
std::fstream fin, fout;
fout.open("c:\text.txt", std:ios::out); //ignore the smily its an ':'':'o';
if(!fout.is_open()) return 0;
//I...
Oaf! Bad looking on me - I forgot to pass it in, your right ^^
::EDIT:: - running into some compiler errors. Aparently #define NETWORK_ERROR -1, and #define NETWORK_OK 0 are both out of scope...
Nice Winsock tutorial here: http://www.hal-pc.org/~johnnie2/winsock.html - I'm using it right now :)
Im having an error when returning an integer variable to a defined function that seems to be specified to return void. This is in the winsock.h header file for version 1.1. This problem lies in the...
Wow! ~ amazing thread - no idea why I haven't looked at the STL since I started C++ programming, never crossed my mind LOL.
Thats the idea =D
Alright than I suppose working with the WinAPI would be the best route so this wayI don't have to decipher what each game packet is and what information is to send it. - The packet thing was just a...
Thank you for the explanation but no I am just looking to see how some people have come to manipulate in game movements while playing on a server, I.E. - moving your character to point A and use...
Thank you very much Lamien - but now this sparks some interest how does a packet sniffer work? - Just saves and prints what the listening socket finds?
Hi - i'm a relative begginer to C/C++ but have a firm foundation of classes, functions and the sort. My question is, is it possible to use the WinSock class & functions to connect to an existing...