|
Thanks Michael!
But what about editing the executable?
Aidman » over and out
|
|
|
|
|
GetModuleFileName(NULL, &szFilepath, sizeof(szFilePath);
I have not looked at the FAQ but I assume it is in there. An FAQ is always a good starting point.
|
|
|
|
|
huh?
I meant... what about the altering the data in the executable it-self?
Is it possible for a program to alter its own executable program file or another already executed program's executable file??? hope you understod the question
Please reply anyone
|
|
|
|
|
Yes you can alter the data in an EXE file, providing that you can open it for writing.
|
|
|
|
|
|
Thanks Dominik!
This article is great, exactly what a needed, thanks again!
Aidman » over and out
|
|
|
|
|
CFileFinder finder("Appname.exe");
finder.FindFile();
CString path=finder.GetFileFolder();
-Steven
By reading this message you are held fully responsible for any of the mispelln's or grammer, issues, found on, codeproject.com.
For those who were wondering, actual (Linux) Penguins were harmed in creating this message.
|
|
|
|
|
hi,
when i'm trying to create a ChooseColor dialog my app just crash and generated an unhandled exception.... then i've tryied to cretae a open filename dialog through GetOpenFileName and it worked. this is weird for me since both functions use commdlg.h and comdlg32.lib. i've initaliazed a very simple CHOOSECOLOR struct for my test :
static CHOOSECOLOR cc = {
sizeof(CHOOSECOLOR),
0,
0,
0,
0,
0,
0,
0,
0
};
any hint ?? thanks
haust
|
|
|
|
|
ok,
forget it. i've just discovered (from an exemple on code project ) that the lpCustColors member from the CHOOSECOLOR struct _must_ be valid.... i _thought_ that is was _optional_, it was _not_
well, i guess i've learnt something once more 2day....
|
|
|
|
|
I am working on a Windows Explorer style program and don't know to to get a CListCtrl to display files. I can get it to display hard drives but not the contents of folders. Is there a way to do this with a CListCtrl?
-- Steve
|
|
|
|
|
CListCtrl doesn't know anything about files / directories. You need to monitor the list view control
for (e.g.) NM_DBLCLK notifications in the parent window, or subclass the ListCtrl and use message reflection
to monitor for these notications.
Then refill the list with the contents of the double clicked directory. Or run the double clicked file.
If you are being very clever, you may want to look in the SDK in the Shell Interface COM area to let the
microsoft programmers do your work. But that is probably a little too complex... I wouldn't want to it!
Iain.
|
|
|
|
|
|
Can anyone point me to some links about creating tab controls under Win 32. I have gotten as for as putting one on a dialog box, setting all the tabs, now I am stuck on the actual content of the tabs. Am I right in thinking that I can just create the content with the resource editor (a bunch of dialogs) and then place them over the main dialog at the appropriate time? Even if I am right, I have no I idea how to do this? Thanks...
|
|
|
|
|
If you are being pure SDK, then you need to look in the
Platform SDK\User Interface Services\Windows Common Controls\Tab Controls
for all the info in the Tab control.
You can send TCM_INSERTITEM messages, or use the TabCtrl_InsertItem (which ends up the same) as
you wish. You also need to keep an eye out for TCN_SELCHANGE notifications...
I hope that helped,
Iain.
|
|
|
|
|
Hi, I have looked at the SDK documentation and I have inserted all the tabs I want. Now I am stuck at the second step which is adding the content of tab. I have made the associated dialogs for each tab but what I don't know is how to put them on the dialog. I have used FindResourse/LoadResource/LockResource as is explained in the SDK documentation. Is it the SetWindowPos() function that actually displays each dialog? If so the first parameter require a handle to a window. I don't know how to get the HWND of the dialog resource. For my other dialogs I have used GetDlgItem() (the ones which don't have a tab control) to get a handle but for these one since they are not directly associated with the dialog can I still use the current dialog as the parent and follow the same procedure? I think I have confused you! Thanks for the help.
|
|
|
|
|
Hi,
I'm looking for instructions on how to display a wizard using CPropertySheetEx stored in a DLL from an SDI application. I've successfully made the wizard display in its own dialog based application, but when I stored the files in a DLL and tried to display the dialog (I exported the whole class) from my SDI app, I got a variety of memory leaks, an assertion failure, and a few other errors.
Please help, thanks in advance.
-- Joe
|
|
|
|
|
So do I.
Did you ever work out how to fix it?
|
|
|
|
|
Hi
i was asked in this Site about Drag-n-Drop some objects. mr christian told me that using some windows (CWnd objects) to manage the Bitmaps are one of the best way. about 1 week i work on my project using these CWnd objects.my project is Some kind of AVL tree, in my project all of the Nodes are connect to each other. when u Drag a node ,each Node that connected to that node will move.
my problem is when the number of windows become more than 12 or 13 the moving will become VERY VERY SLOW, and FlickerFul.(i think the reason is CWnd objects get lot's of memory) i based my program on CWnds and it seems that there is no way back.
tell me if there is a way to modify the project to solve this.
it seems that using windows to manage Bitmaps is not a UseFul Way. how can i moving Some Bitmaps in the main window?
thanks a Lot
|
|
|
|
|
Drag and drop is usually done with artifical objects CERTAINLY NOT CWNDS!
Look at the DrawCli example in MSDN.
|
|
|
|
|
thanks for your answer
plz can u breifly tell me what the artifical objects is ?
thanks any way
|
|
|
|
|
Hi
I was working on ActiveX object and wanted to kill an instance and start another.
Why can't i do this?
Thanks for your reply.
Yogi
|
|
|
|
|
i want to send some messages programatically to all computers of the network using
some socket programming and a perticuler port say (999).
is it possible that i send this message using broadcaste ip like 192.168.0.255:999.
when i use this command on command prompt then it sends message on all computers of the network
------------------------
net send * some message
------------------------
in the above command what does * means?
what is the value of this ip address is?
r00d0034@yahoo.com
|
|
|
|
|
I would venture to say * is simply a wildcard for the machines on your network. Much like doing: dir *.txt If you are sending a popup message for server maintenance purposes, then the * should get to all the users authenticated by the server you're working on. (i think) There are some net send utilities out there that let you do more much easier than the command prompt.
Note: However, if you are considering mass SPAM via winpopup... *lights the flame thrower*
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
Where I can download Xtreme toolkit retail version, or delete nag screens from my program wich I made using evalution version.
|
|
|
|
|
LOL...
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|