Ok i want to know how to use other files in my programs so i can change them with my programs. Like fixed .exe or just controlling another program with mine would be nice. Any help in the direction i should go would be nice.
Ok i want to know how to use other files in my programs so i can change them with my programs. Like fixed .exe or just controlling another program with mine would be nice. Any help in the direction i should go would be nice.
There is a FAQ about running other programs from inside your own.
What do you mean by 'change' and 'control'.
like controling xfire with a program. Or stuff of that nature. not necisarily my code.
Control - like a debugger can control the execution of the program, modify variables, kill the program etc?
Control - like you control say cmd.exe by typing in valid commands like "dir" and obtaining a set of results?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
control like a debugger. so I would be able to replace variables in a prompt with my program.
such as place info in a text box on xfire or msn. (not my intended purpose) but i would like to know. I know im being a bit vague and im sorry i dont really kno how to explain it.
Hijacking programs? Now I hate to say this but you don't quite seem to be anywhere near that level yet...
Code:#include <stdio.h> void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){ puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9 /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i] ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][ t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}
i know i am very low level, i still want to know how to do it tho. any info would help other than "you are not good enough" just lead me in the right direction plz.
Right direction hmm... hard when you seem to want to go the wrong direction.
Ok... anyways, this is more or less the list of things you need to learn...
Assembler and C and/or C++.
Have... erm... fun.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
Yeah. You're probably going to want to look into debugging API's and get overwhelmed, unless those applications offer SDK's so you can interface with them in a more reasonable manner.
Meh, this is kinda treading on thin ice I think. This is treading very close to hacking commercial programs, and it can certainly lead to that, if you are controlling the process itself. Learn C/C++ and such, but if you want to hack anything, play with your own programs that you write.
How good are you at programming? Not just C, you know. If I give you an ELF binary string can you figure out what it does? DLLs? Now make a program which can figure out what it does. If you are not good enough to do this, then you are not good enough. You can learn and maybe in the future you'll have enough experience to get about it.
You must think I'm rude and assuming. The thing is, by reading your previous posts it's clear you don't have much experience and skills to take on stuff like this. We're talking DECADES spending hours per day hacking x86 assembler and bash.
Code:#include <stdio.h> void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){ puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9 /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i] ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][ t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}
alright ty, for all your help!! i have been programming for about a year from books. It is a bit hard to learn without help. =)