|
Make "Clean" the default button in the resource editor.
Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers! We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP Linkify!|Fold With Us!
|
|
|
|
|
In my application a variable number of buttons (MFC CButton) are dynamically created. How to dynamically assign callback (OnClick) functions to these buttons? Can someone help me?
Best regards,
Peter de Hon
|
|
|
|
|
P e t e r wrote: In my application a variable number of buttons (MFC CButton) are dynamically created.
There, you must have specified button Id's for those button, use that id and provide function handler in message map.
#define IDC_BUTTON_1 1 //define id
button.Create(...,IDC_BUTTON_1);
BEGIN_MESSAGE_MAP(CMyDlg, CDialog)
ON_BN_CLICKED(IDC_BUTTON_1, OnClickButton1)
END_MESSAGE_MAP()
|
|
|
|
|
Easiest thing to do is just catch all the WM_COMMAND messages with HIWORD (wParam) == BN_CLICKED in your WindowProc and decide which OnClick to call based on the LOWORD (wParam) which will be your button ID.
Judy
|
|
|
|
|
I have read the Marcel Scherpenisse's Article about Dynamic Dialog Class. So I want to use it in my small project, But I have a trouble with ActiveX. I want use an AciveX in my Dialog but I have just made its interface, I can't operate with it such as: change, get its property. Please help me!!!
duc an
|
|
|
|
|
Hi all:
In order to debug the DLL you can specify the "Executable file name"(same thing applies to project property -> Debugging -> Command) on the "Executable For Debug Session" dialog.
So I assume same thing happens to cross project debugging. The scenario was that when you have a solution containing several projects, and one of them set as "StartUp Project"(load the subsequent one by createprocess). This "subsequent" one is the one that I want to debug. But when I have this project "command" setting set as the "StartUp" project, the VS just exited. I don't know if this isn't feasible, or I done something wrong?
BTW what "attach to process" in "Debug" menu is for, Can it applies here?
Thanks
|
|
|
|
|
LiYS wrote: load the subsequent one by createprocess
Can you explain this ?
LiYS wrote: BTW what "attach to process" in "Debug" menu is for, Can it applies here?
LiYS wrote: BTW what "attach to process" in "Debug" menu is for, Can it applies here?
If debug information for process to attach is present in current solution , you can use this option.
|
|
|
|
|
You can start the application which calls CreateProcess from outside the debugger.
Then when you know the process you want to debug has been created you can attach the debugger
to it from Debug/Processes/Attach.
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
Any hint about write a program which can change other's program at runtime?
Just like this one, it can change the UI of live messenger:
http://memskin.fanatic.net.nz[^]
This programe looks like implement a loader to load the customized resource, then load the WLM. Does anyone know some details about this or some materials to study?
Is it possible to change other program's UI when it's running?
|
|
|
|
|
twomol wrote: know some details about this or some materials to study?
Is it possible to change other program's UI when it's running?
Search UpdateResource in MSDN!
|
|
|
|
|
It seems that this can't work at runtime, This function change the resouce in the image file
I want to just change them in memory
|
|
|
|
|
I don't believe there are any functions that will allow you to change an images resources in memory.
If you're doing a simple replacement, like replacing one bitmap with another, if they are the same size, you can use WriteProcessMemory(...) You can find a whole section in MSDN about the debugging functions. You'll have to find out the memory address of the resource.
If you're trying to do more advanced resource changing operations, you're stuck with having to edit the image file; unless you probably do a LOT of work of modifying the PE header and allocating more memory and such, I don't even know if it is technically possible.
What kind of resource are you trying to change, and if possible, why? It may be better to come up with a different solution.
|
|
|
|
|
How about hook the API about loading resource? Memskin(the software I mentioned in first post)'s author said that he use hook to achieve this.
Currently I don't have any ideas to do this in detail
My purpose is want to make a program to change anohter program's 'skin', so it can be customized to my own taste
|
|
|
|
|
I like to play game online. And I learning VC++. Please show me write a progamer can get value on game online.
wqweq
|
|
|
|
|
|
Programm3r wrote: what the .....
control
|
|
|
|
|
|
"I probably learning VC++ in other language"
|
|
|
|
|
sk8er_boy287 wrote: I probably learning VC++ in other language
hummm..
|
|
|
|
|
I was supporting this post's funniness.
|
|
|
|
|
sk8er_boy287 wrote: I was supporting this post's funniness.
|
|
|
|
|
ntboybuon wrote: I like to play game online. And I learning VC++. Please show me write a progamer can get value on game online.
wqw
due to want to create online game in vc++.. is that your question!
|
|
|
|
|
You just have to reference the spine ratio vector and then pull the value array from it. If you wish to do things like change the score you will need to push the do_OR variable type into the games HyperText reference spine.
I normally do this with PHP's powerful game manipulation engine, it loads the game's current spline ratio vector into an object as such:
<?php
$runescape = new gameReferenceObject('http://www.runscape.com', true);
calc_spline_object($runescape);
$runescape->login('Username', 'Password');
echo $runescape->charstats->attack;
$runescape->logout();
close_vector($runescape);
?> As you can see, that is incredibly simple to do thanks to the perilous efforts of the PHP development team.
<?php
$runescape = new gameReferenceObject('http://www.runscape.com', true);
open_pad_object($runescape);
$runescape->login('Username', 'Password');
$runescape->charstats->attack = (do_OR) 99;
$runescape->logout();
$runescape->push();
close_pad($runescape);
?> As you can see, it is also incredibly easy to make modifications to games with this amazing PHP framework.
Hope that helped you.
Brad
Australian
- Bradml on "MVP Status"
If this was posted in a programming board please rate my answer
|
|
|
|
|
Bradml wrote: As you can see, it is also incredibly easy to make modifications to games with this amazing PHP framework
Are you serious ??
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r My Blog: ^_^
|
|
|
|
|
I'm just messing with you all.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|