Click here to Skip to main content
15,896,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwhat are the best CButton derived classes ? Pin
Thomas Haller8-Dec-04 22:53
Thomas Haller8-Dec-04 22:53 
AnswerRe: what are the best CButton derived classes ? Pin
Maximilien9-Dec-04 2:27
Maximilien9-Dec-04 2:27 
GeneralRe: what are the best CButton derived classes ? Pin
Thomas Haller9-Dec-04 3:00
Thomas Haller9-Dec-04 3:00 
AnswerRe: what are the best CButton derived classes ? Pin
David Crow9-Dec-04 2:40
David Crow9-Dec-04 2:40 
GeneralRe: what are the best CButton derived classes ? Pin
Thomas Haller9-Dec-04 3:16
Thomas Haller9-Dec-04 3:16 
Generalwriting data in to an XML Pin
manimalap8-Dec-04 21:55
manimalap8-Dec-04 21:55 
GeneralRe: writing data in to an XML Pin
Ritu Kwatra8-Dec-04 23:57
Ritu Kwatra8-Dec-04 23:57 
GeneralProtection of to-be-executed written file Pin
Donny Tytgat8-Dec-04 21:38
Donny Tytgat8-Dec-04 21:38 
Hi
Sorry for the confusing title, but i didn't have a clue how to summarize my question.


This is the situation:

I'm making a program which creates an exe (in memory), writing this exe to disk, and executing it from within the program (on another thread). The user then uses that program which was written to disk, and when he exists it he returns to the main program, and the exe gets deleted.

This is the problem:

I need to somehow protect the written exe from being read by another app. As i implemented it atm, you can just alt-tab out of the program (which was written to the disk, and executed from the main program) and copy the generated exe somewhere else. When alt-tabbing back to the program, and exiting it, the user has this exe which shouldn't be possible.

Solution?

Is there a way to protect the written exe so the user can't copy it to another location (or read it with some hex editor), but the OS can execute that same exe? I've tried different stuff already, but all without succes. The best would be i could execute the program from in-memory, but i don't think thats possible, right?


Thx in advance for any help.
GeneralRe: Protection of to-be-executed written file Pin
David Crow9-Dec-04 2:46
David Crow9-Dec-04 2:46 
GeneralRe: Protection of to-be-executed written file Pin
Donny Tytgat9-Dec-04 6:36
Donny Tytgat9-Dec-04 6:36 
Generalcharacter size more than 2 bytes Pin
parag8-Dec-04 21:17
parag8-Dec-04 21:17 
GeneralRe: character size more than 2 bytes Pin
vikramlinux8-Dec-04 22:09
vikramlinux8-Dec-04 22:09 
GeneralRe: character size more than 2 bytes Pin
soundman328-Dec-04 22:17
soundman328-Dec-04 22:17 
GeneralRe: character size more than 2 bytes Pin
parag8-Dec-04 22:27
parag8-Dec-04 22:27 
GeneralRe: character size more than 2 bytes Pin
Prakash Nadar9-Dec-04 4:26
Prakash Nadar9-Dec-04 4:26 
GeneralRe: character size more than 2 bytes Pin
Henry miller9-Dec-04 5:36
Henry miller9-Dec-04 5:36 
GeneralRe: character size more than 2 bytes Pin
toxcct8-Dec-04 22:24
toxcct8-Dec-04 22:24 
GeneralRe: character size more than 2 bytes Pin
Thomas Haller9-Dec-04 2:28
Thomas Haller9-Dec-04 2:28 
GeneralRe: character size more than 2 bytes Pin
Henry miller9-Dec-04 5:40
Henry miller9-Dec-04 5:40 
GeneralA CRecordset Problem. Pin
willyfu8-Dec-04 21:01
willyfu8-Dec-04 21:01 
GeneralRe: A CRecordset Problem. Pin
David Crow9-Dec-04 3:16
David Crow9-Dec-04 3:16 
GeneralThank you ,and I have used the ODBC API Pin
willyfu9-Dec-04 18:16
willyfu9-Dec-04 18:16 
GeneralRe: Thank you ,and I have used the ODBC API Pin
David Crow14-Dec-04 3:22
David Crow14-Dec-04 3:22 
QuestionWhat am I doing wrong??? Pin
aaadetos8-Dec-04 20:48
aaadetos8-Dec-04 20:48 
Generalfilter all application messages Pin
A T I F8-Dec-04 20:24
A T I F8-Dec-04 20:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.