How to write into portable executable (PE) file while running? [closed] - c

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
The problem is that I've a Windows executable (.exe) file, and I want its process to modify some values inside its image file while running, so the next time the program can continue execution from the point it stopped, what is the best way to do that?

Your application can use a file to store configuration and execution data. Open the file on program start to get initial values and modify the values in the file as they are modified in the program. This is certainly better than trying to modify the executable, if it's even possible.

Related

How can I find out what language this file is? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have this file, and I have absolutely no idea what kind of file it is.
When I open it in Notepad++ it reads as
ð X döS
or
(source: gyazo.com)
How can I figure out what language this is?
Looks like that http://patch.us.wizard101.com:12500/ returns some sort of patch file for a game client. Chances are there is some api calls you are missing that tell the server what file to generate and return. But since only game clients need to directly call that file I would delete it and chalk it up to a broken client.
Either that or the site's download handler is broken and is giving a garbage file.
There's no clear answer, because you can't really. You can do some research on the encoding, or see if you can piece it together depending on the file's origin.
This program will test against common file types to see if it can be opened with success: http://download.cnet.com/TrlD-File-Identifier-for-NET/3000-2248_4-10442461.html

Why execute permisiions along with write permissions needed for creating file in c(Linux)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am trying to create a file from my c source code on linux. I am using dd command for reading from a file and writing in to a file by creating there. If i don't have execute permissions(I have write permissions) for target directory(Where the file is going to be created), It is unable to create file. If I have both write and execute permissions, It is able to create file. What is the reason for this?
This question is probably off topic for this site, but in a directory "x" doesn't mean execute, but permission to access the files in the directory. This in contrast to "r", which just gives permission to see the names of the files.

Visual map of Files [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I just finished writing a c program that split a very large program into its different components and stored them in a tree like structure using directories and sub directories.
I was wondering if there are any programs that can graph the file system. I'm trying not to have to write my own program to do that if possible.
If possible the program would be easy to use.
Windows or Linux programs would work.
You can try WinDirStat, it does pretty much what you ask for.
http://windirstat.info/
There is also a version for linux
http://kdirstat.sourceforge.net/

Finding file structure in a drive? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I was wondering if there was anyway to effectively write out in a readable formate the file structure of a drive. So what I mean by this is if it can write out a result simmilar to...
C:/
File here
Another file here
Sub file here
Another file here
So sorta like that. I don't know what it is called but if there is something that does that then that would be great!! Even better if it was possable to do in batch (dosnt matter either way tho) Thanks :)
Open the command prompt in windows. Write:
tree
if you want options write tree /?

Running a program (written in C) in Linux [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I'm using Ubuntu.
I wrote a program in C which interacts with a Mysql Database
The compilation process goes smoothly (excepts several warnings) and I get the executable.
How do I run it in Ubuntu?
I mean, I use this command :
gcc -o magazzino main_magazzino.c -L/usr/include/mysql -lmysqlclient
How do I run magazzino?
if it is in the current directory, run ./magazzino
Usually:
./magazzino
The dot and slash are to tell the shell that you mean the executable in this current directory - otherwise it would search for the program in its $PATH and probably not find it. (Although it's possible to have the current directory in your PATH, this is a bad idea and not recommended for security reasons.)
Just use
/path/to/magazzino
And if your current_folder is same with where magazzino stored use
./magazzino
In the directory type in,
./magazzino

Resources