Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 11:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Problem with fstream

Discussion on Problem with fstream within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
ιllυѕιve's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 354
Received Thanks: 282
Problem with fstream

Hey there guys
So i am trying to make a pattern scanner for S4League
It's a dll and i want it to create a file and put the address that it obtained in a txt file
But it does not work , it doesn't create any txt file

Source code :

Header.h

Functions.h

Source.cpp


Why am i doing this in a dll and not in a exe (console based app ) ?
Because The scan method seems to not work in a console based app

I would appreciate if someone could show me how to do the scanning in a console

But first , i'm looking forward to make it output to the txt file :c
ιllυѕιve is offline  
Old 09/24/2014, 19:13   #2





 
Omdi's Avatar
 
elite*gold: 1371
Join Date: Apr 2010
Posts: 13,792
Received Thanks: 15,050
Code:
myfile.open ("addys.txt", std::ofstream::out);
The file will be created in the injected executable's path (S4 League path)
Omdi is offline  
Old 09/24/2014, 19:20   #3
 
ιllυѕιve's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 354
Received Thanks: 282
Quote:
Originally Posted by Omdihar View Post
Code:
myfile.open ("addys.txt", std::ofstream::out);
The file will be created in the injected executable's path (S4 League path)
Thank you very much , didn't think of that lol.
So now if anyone is willing to show me the right way of pattern scanning in a console based app , i would be really thankfull
ιllυѕιve is offline  
Old 09/24/2014, 19:37   #4





 
Omdi's Avatar
 
elite*gold: 1371
Join Date: Apr 2010
Posts: 13,792
Received Thanks: 15,050
Quote:
Originally Posted by ιllυѕιve View Post
Thank you very much , didn't think of that lol.
So now if anyone is willing to show me the right way of pattern scanning in a console based app , i would be really thankfull
OpenProcess ReadProcessMemory

These two functions should do it
Omdi is offline  
Reply


Similar Threads Similar Threads
[Problem]Habe ein Problem und zwar spinnt mein VPC etwas(ohne Grund)?!
07/28/2011 - Metin2 Private Server - 10 Replies
Also wie schon gesagt meins Server spinnt wodurch kiks usw. kommen :( ich lade euch die Screens in den Anhang, mit der Hoffnung, dass ihr mir helfen könnt :) wäre echt sehr nice :)
[C++]Variable in fstream öffnen
08/02/2010 - C/C++ - 14 Replies
Wo ist hier der fehler?



All times are GMT +1. The time now is 11:12.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.