Search Results

Showing results 1 to 40 of 40
Search took 0.01 seconds.
Search: Posts Made By: nschessnerd ; Forum: C++ and child forums
Forum: C++ Jul 29th, 2009
Replies: 0
Views: 262
Posted By nschessnerd
Hey, I've been stuck on this for a long time now and ive tried various things...
i need to send multiple packets to a server for an infinite amount of time at an unknown rate, maybe 1 packet every...
Forum: C++ Jun 28th, 2009
Replies: 9
Views: 642
Posted By nschessnerd
yea, i ended up coming across it and fixing it... i think it was a delete vs delete[] statement somewhere
Forum: C++ Jun 22nd, 2009
Replies: 2
Views: 353
Posted By nschessnerd
thanks! that worked great...

you just know the answer to everything dont you?
Forum: C++ Jun 22nd, 2009
Replies: 2
Views: 353
Posted By nschessnerd
Hey, Im using readprocessmemory to get information on a game, but for some reason it skips two bytes..

part of my structure is similar to

WORD a;
DWORD b;
DWORD c;
DWORD d;
Forum: C++ Jun 15th, 2009
Replies: 9
Views: 642
Posted By nschessnerd
i think i figured it out... im using System::string (m$) and i called delete [] String

yea... this is the first major app ive done in c++
Forum: C++ Jun 14th, 2009
Replies: 9
Views: 642
Posted By nschessnerd
hey, thanks for your response. Unfortounately i am developping for/on windows... however i did add a null byte to the end of a char* i was using strlen on. so far no crashes.. but they werent too...
Forum: C++ Jun 13th, 2009
Replies: 9
Views: 642
Posted By nschessnerd
its a really long program, and im not sure where the error is coming from.
Forum: C++ Jun 13th, 2009
Replies: 9
Views: 642
Posted By nschessnerd
Hey, Ive been working on a program for a while, and once in a while it will crash for an unknown reason. I checked the error log and it says exception 0xc0000005 which means i'm writing somewhere i...
Forum: C++ May 24th, 2009
Replies: 0
Views: 511
Posted By nschessnerd
Hey,
I need help keeping a http connection alive.
I have used setsockopt to set keepalive to 1, and in the http packet i set keep-alive to 300, but the server replies with:

Connection: close
...
Forum: C++ May 19th, 2009
Replies: 9
Views: 733
Posted By nschessnerd
there is no more code- than what ive posted

void connectSock(){

psock.sockVer = MAKEWORD(1, 1);
psock.ic=false;
WSAStartup(psock.sockVer, &psock.wsaData);
char url[512];...
Forum: C++ May 19th, 2009
Replies: 9
Views: 733
Posted By nschessnerd
so i rewrote it without the threads, but i still get the rst issue i first got

i send 2 packets and on the 3rd it replies with rst... any thoughts on why?
Forum: C++ May 18th, 2009
Replies: 9
Views: 733
Posted By nschessnerd
i need to send traffic at random times. the packets are gathered as the user interacts

if i create a new socket when i want to send i get an error saying the socket is in use, and im using threads...
Forum: C++ May 15th, 2009
Replies: 9
Views: 733
Posted By nschessnerd
since nobody seems to be able to help me can someone give me an example of what im trying to do?
(beej doesnt help)
or point me somewhere they can help me?
Forum: C++ May 13th, 2009
Replies: 6
Views: 265
Posted By nschessnerd
maybe use a helper method to get the values
Forum: C++ May 13th, 2009
Replies: 5
Solved: Fraction
Views: 318
Posted By nschessnerd
where do you call simplify?
Forum: C++ May 12th, 2009
Replies: 9
Views: 733
Posted By nschessnerd
void setPort(String ^port){
connectSock();
P.port=To_string(port);
args.param="";
_beginthread(sendHTTP,0,&args);
args.param="newmap=1";
_beginthread(sendHTTP,0,&args);

}
Forum: C++ May 12th, 2009
Replies: 9
Views: 733
Posted By nschessnerd
Hey, I wrote some code to send http (see below) and i get a connection error 10056 which means its already connected. However on wireshark i see rst packets from the server, and it doesnt send a...
Forum: C++ May 7th, 2009
Replies: 4
Views: 321
Posted By nschessnerd
ive looked at that

doesnt really help me with my questions...
Forum: C++ May 7th, 2009
Replies: 4
Views: 321
Posted By nschessnerd
Forum: C++ May 7th, 2009
Replies: 4
Views: 321
Posted By nschessnerd
Hey
Im writing a program that needs to send data over http, sometimes 45 minutes between packets, sometimes 10 seconds. I noticed that when i shut the server down it sends a lot of fin packets... so...
Forum: C++ Apr 28th, 2009
Replies: 1
Views: 179
Posted By nschessnerd
I have a program that uses http to send information to a remote server... should i be worried about bandwidth if it sends one http packet per player?
basically when a person finishes a game it send...
Forum: C++ Apr 24th, 2009
Replies: 4
Views: 337
Posted By nschessnerd
i mean like when a process freezes on windows and it gives the message about the program not exiting cleanly. But it keeps the process open, and i dont want that if its using all of my cpu
Forum: C++ Apr 24th, 2009
Replies: 4
Views: 337
Posted By nschessnerd
this also happens on win7
Forum: C++ Apr 24th, 2009
Replies: 4
Views: 337
Posted By nschessnerd
i have some code to kill a process

TerminateProcess((HANDLE)sinfo->process->Handle, 0);

what happens is so the process freezes and starts eating up the processor... so i i try to terminate it,...
Forum: C++ Apr 11th, 2009
Replies: 5
Views: 1,026
Posted By nschessnerd
so should i call this from another class?
like player p;
_beginthread(p.OpenProc,0,NULL); ?

i need it to not be static so i can access all the variables...
Forum: C++ Apr 11th, 2009
Replies: 5
Views: 1,026
Posted By nschessnerd
So im using this code to start a thread...


namespace Monitor4vc {
public ref class Stats
{
public:
Stats()
{
}
Forum: C++ Apr 10th, 2009
Replies: 6
Solved: C++ mixed code
Views: 977
Posted By nschessnerd
thank you
Forum: C++ Apr 10th, 2009
Replies: 6
Solved: C++ mixed code
Views: 977
Posted By nschessnerd
that doesnt help....
so when i make that struct a ref struct it gives me the "mixed code" error on the char array

ref struct Playernew
{
char name[11];
signed short kills;
signed short...
Forum: C++ Apr 10th, 2009
Replies: 6
Solved: C++ mixed code
Views: 977
Posted By nschessnerd
this is giving me an error (example)

struct Playernew
{
char name[11];
signed short kills;
signed short assists;
signed short betrays; //+suicide--cf74
signed short deaths;//cf76
signed...
Forum: C++ Apr 9th, 2009
Replies: 6
Solved: C++ mixed code
Views: 977
Posted By nschessnerd
Is there any way to mix visual c++ with normal c++?

like can i enable mixed code?
i want to get rid of this error:

1>tab.h(32) : error C4368: cannot define 'p' as a member of managed...
Forum: C++ Apr 7th, 2009
Replies: 2
Views: 339
Posted By nschessnerd
I fixed it by using _beginthread
Forum: C++ Apr 7th, 2009
Replies: 2
Views: 339
Posted By nschessnerd
I need a nonblocking socket so in an older version of the program i made a new thread to do this. and now that ive migrated into visual c++ it crashes with no explination... yea im really...
Forum: C++ Apr 6th, 2009
Replies: 4
Views: 2,000
Posted By nschessnerd
how do i get the thread id?
Forum: C++ Apr 6th, 2009
Replies: 4
Views: 2,000
Posted By nschessnerd
Hey
so as i mentioned here http://www.daniweb.com/forums/post840142.html i need to check if a process is responding by using sendmessage
however i have no idea how to get the hwnd because i start...
Forum: C++ Apr 5th, 2009
Replies: 4
Views: 897
Posted By nschessnerd
thanks, ill try it
Forum: C++ Apr 5th, 2009
Replies: 4
Views: 897
Posted By nschessnerd
Hey, I want to check if a program is frozen by using send message..

what message should i send it? and will this work?
like could i send it something random like 0xFFFC?
Forum: C++ Mar 18th, 2009
Replies: 2
Views: 290
Posted By nschessnerd
great! thanks
Forum: C++ Mar 18th, 2009
Replies: 2
Views: 290
Posted By nschessnerd
how do i find methods in a .exe so i can create a dll injection that uses those methods?
Forum: C++ Dec 13th, 2008
Replies: 1
Views: 294
Posted By nschessnerd
Hey, so basically i need to decrypt/encrypt traffic on a specific port on my computer. How can i capture incoming/outgoing packets and manipulate them?
Forum: C++ Nov 14th, 2008
Replies: 0
Views: 303
Posted By nschessnerd
Hey all,
I want to write a proxy for a local computer
Basically i run a game server that talks [udp] to multiple people. However the server can be crashed. I want to write a program that captures...
Showing results 1 to 40 of 40

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC