|
If I were to embed a binary file into my resources, how could I execute that file without having to write it to disk first? I know it's possible but have no idea how to do it.
|
|
|
|
|
I really doubt this is possible.
i this the binary must be copied to a temporary folder, then executed (and if you want, delete it after that)
BTW, an Off Topic Notice : you have a problem in your signature[^]. don't forget to close the <font> tag
|
|
|
|
|
I'm pretty sure it's possible. I'm guessing it's a matter of reading the files PE header and passing control.
The problem with my sig is that there's not enough room to close the font. Not a big problem.
BTW did you ever finish that XML library you were working on?
|
|
|
|
|
WalderMort wrote: The problem with my sig is that there's not enough room to close the font. Not a big problem.
hey, how can you say it's not a big problem when you deliberately break a site with your badly formatted HTML ?!
if your sig is too big, then change it to something smaller, hey !
|
|
|
|
|
WalderMort wrote: BTW did you ever finish that XML library you were working on?
abandonned... using MSXML instead ^^
|
|
|
|
|
WalderMort wrote: I'm pretty sure it's possible.
AFAIK, it's not possible.
Cheers
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Oh, but I must disagree. It's simply a matter of reading the PE header, loading the dll's and calling winCRTmain(). Along with a few hooks of course.
|
|
|
|
|
|
I want to define a new sas type, consider for example clicking a button. How can I do this? the MSDN documents couldn't help me. because it was written only that you should define a new sas type, more than 0 to 127, but it hasn't been mentioned that how can I do that?
Thanks in advance,
Regards
|
|
|
|
|
Hi,
Mine is a SDI application with different form views.I have button controls in the form views.When clicked on these buttons some dilaogs will open.How to get the handle to the child window which is opened when clicked on buttons.
Thanks.
|
|
|
|
|
radhika28 wrote: some dilaogs will open
Are those dialogs shown as modal?
- NS -
|
|
|
|
|
|
Once we have discussed something like this, right?
The same can be used here too... Try this[^]
- NS -
|
|
|
|
|
ya that is true but,I had another problem i.e when i opened a dilaog from one of the views and opened a dilaog from the tray menu option with out closing the first one.So,i will have two modal dilaogs opened.Now when i close one window,i am able to access the main window even though one modal dialog is opened,which is a odd behavior.So,i want to get the handle of the child window,which remained when i close one of the window's and disable the main window untill the child window is closed.Is it correct or there is any other option.
Thanks
|
|
|
|
|
Is it good to show two modal dialogs at the same time? From my point of view, I dont like it... anyway I am not sure about your requirements. So I think your idea of disabling the main window is not bad.
Then you will get the window handle from dialog object if it is set as global or member object.
- NS -
|
|
|
|
|
|
Welcome
Take care of that point, Roger Broomfield said, if you dont need to show two dialogs at the same time.
- NS -
|
|
|
|
|
In my opinion your problem isn't in the main window. When you display a Modal Dialog from the main window, it will automatically apply the WS_DISABLED style to the main window (check it out using the Spy++ tool), so what you propose really won't make any difference. Your problem is in the handler for the tray menu, where you are allowing the selecting of the menu option to open another modal dialog even though the main window is disabled. Your tray menu handler should process WM_INITMENU and check whether or not the main window is disabled and enable menu options accordingly.
|
|
|
|
|
can anyone help me regarding developing the registry cleaner software for window xp i am exploring on Regclean code by Chakrapani Ramachandran but it's not working well.
|
|
|
|
|
niki dutta wrote: i am exploring on Regclean code by Chakrapani Ramachandran but it's not working well.
whats the problem in that!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
please you give some idea to develope registry cleaner software for window xp
and i just hook on working the regclean of Chakrapani Ramachandran after the successful execution of the program it prompts only"fail to read file" so let me what type of i need to give with command prompt where i am executing the exe file
|
|
|
|
|
When you double click on a file in the explorer window, it will run the default application for that file type. For example clicking on a .jpeg file might open up photoshop.
How do I get access to this information? Ideally I want some function like DoDefaultAction(filename). Does such a function exist in the windows API?
|
|
|
|
|
\\HKEY_CLASSES_ROOT\.jpg
Default (REG_SZ) = "ACDSee 9.0.jpg"
Maxwell Chen
|
|
|
|
|
Look in the registry under HKEY_CLASSES_ROOT
|
|
|
|
|
Thanks for the information. I can see there is some information about the file types there but I am not sure how you get from there to running the correct application with the file. For example I set up PNG files to be displayed with PSP.exe, but in the registry I get these entries for .PNG:
[default] REG_SZ pngfile
[Content Type] REG_SZ image/png
[PerceivedType] REG_SZ image
Do I perhaps have to cross-reference this data somehow with some data elsewhere in the registry?
|
|
|
|