Click here to Skip to main content
15,892,927 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Looking for Suggetions Pin
pxmedia10-Apr-09 2:47
pxmedia10-Apr-09 2:47 
QuestionIE6 and IE7 problem Pin
anujbanka17842-Apr-09 20:56
anujbanka17842-Apr-09 20:56 
Questionmaking a new file extension Pin
moonshaddow2-Apr-09 17:27
moonshaddow2-Apr-09 17:27 
AnswerRe: making a new file extension Pin
Roger Wright2-Apr-09 19:23
professionalRoger Wright2-Apr-09 19:23 
GeneralRe: making a new file extension Pin
moonshaddow2-Apr-09 19:46
moonshaddow2-Apr-09 19:46 
GeneralRe: making a new file extension Pin
dybs15-Apr-09 14:41
dybs15-Apr-09 14:41 
GeneralRe: making a new file extension Pin
moonshaddow21-Apr-09 16:04
moonshaddow21-Apr-09 16:04 
GeneralRe: making a new file extension Pin
jmussetter4-May-09 19:09
jmussetter4-May-09 19:09 
I don't think you can do that, as far as I recall is only .EXE and .COM files can be executable in Windows/DOS (going all the way back to the beginning of time).

I have seen something similar done that is the opposite of what you're describing. Where-in you have an .exe "program" that is labeled as such, and it stores or has extra data written to it after then end of the executable code. So basically the file structure on the drive looks something like this:
"[exe header][exe executable code]||[extra data]".exe

This way, the OS can run the file, as the header, entry point of program, and all executable code addresses are retained, while the data that needs to be accessed is appended to the end. It would be up to the program to track where the end of the code was for instance:

Const FixedProgramLength = (an integer that represents how many bytes the exe code is)
Const StartOfDataAddr = FixedProgramLength + 1

The only other way I could think of to make a .hnh file executable would be to make an axillary service that would be running prior (at startup) and somehow initiate the executable code stored within. (Similar in concept to Java .jar files, in that without the Java Runtime library installed and running the OS doesn't know that it's a program of any kind).

However, I would venture that the first solution would be the easiest... And besides, as mentioned, there's no good reason that a program should have a different extension that isn't unethecal
GeneralRe: making a new file extension Pin
moonshaddow4-May-09 19:15
moonshaddow4-May-09 19:15 
QuestionForms vs Dialogs - A Question of Architecture Pin
Roger Wright1-Apr-09 19:43
professionalRoger Wright1-Apr-09 19:43 
AnswerRe: Forms vs Dialogs - A Question of Architecture Pin
led mike2-Apr-09 8:45
led mike2-Apr-09 8:45 
GeneralRe: Forms vs Dialogs - A Question of Architecture Pin
Roger Wright2-Apr-09 17:52
professionalRoger Wright2-Apr-09 17:52 
GeneralRe: Forms vs Dialogs - A Question of Architecture Pin
led mike3-Apr-09 5:27
led mike3-Apr-09 5:27 
AnswerRe: Forms vs Dialogs - A Question of Architecture Pin
dealon2-Apr-09 20:50
dealon2-Apr-09 20:50 
QuestionClass methods Pin
CrimeanTurtle200831-Mar-09 14:01
CrimeanTurtle200831-Mar-09 14:01 
AnswerRe: Class methods Pin
led mike2-Apr-09 8:22
led mike2-Apr-09 8:22 
QuestionOOP Programming, Two approachs for a problem Pin
Quake2Player22-Mar-09 16:52
Quake2Player22-Mar-09 16:52 
AnswerRe: OOP Programming, Two approachs for a problem Pin
PIEBALDconsult22-Mar-09 17:45
mvePIEBALDconsult22-Mar-09 17:45 
AnswerRe: OOP Programming, Two approachs for a problem Pin
Jonathan Davies23-Mar-09 3:13
Jonathan Davies23-Mar-09 3:13 
GeneralRe: OOP Programming, Two approachs for a problem Pin
Quake2Player23-Mar-09 6:53
Quake2Player23-Mar-09 6:53 
GeneralRe: OOP Programming, Two approachs for a problem Pin
Jonathan Davies23-Mar-09 8:25
Jonathan Davies23-Mar-09 8:25 
GeneralRe: OOP Programming, Two approachs for a problem Pin
Quake2Player23-Mar-09 8:42
Quake2Player23-Mar-09 8:42 
GeneralRe: OOP Programming, Two approachs for a problem Pin
led mike23-Mar-09 8:31
led mike23-Mar-09 8:31 
AnswerRe: OOP Programming, Two approachs for a problem Pin
Quake2Player24-Mar-09 7:31
Quake2Player24-Mar-09 7:31 
GeneralRe: OOP Programming, Two approachs for a problem Pin
Jonathan Davies24-Mar-09 8:51
Jonathan Davies24-Mar-09 8:51 

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.