|
use CBitmapButtons
CBitmapButton bezier;
bezier.LoadBitmaps(_T("IMAGE27UP"), _T("IMAGE27DOWN"), _T("IMAGE27DOWN"), _T("IMAGE27GREY"));
bezier.SubclassDlgItem(IDC_BUTTON_BEZIER, this);
bezier.SizeToContent();
then, if you want to change the image just use
bezier.LoadBitmaps(_T("IMAGE29UP"), _T("IMAGE29DOWN"));
|
|
|
|
|
Hi,
Is it possible to obtain beginning & ending addresses of public member functions of C++ object, outside the object? If yes How?
Thanks
Yogesh
|
|
|
|
|
If the class has no inheritance or just single inheritance, you can get its starting address:
class A
{
public:
int func() { return 1; }
};
int (A::*ptr_to_method)() = A::func; ptr_to_method now holds the address of the method. But this address won't always be called if the method can be inlined (as the one above) so every call to A::func() might not go through that address in memory.
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
You cannot truly appreciate Dilbert unless you've read it in the original Klingon.
|
|
|
|
|
As I understand, the function addresses obtained using this way are not the real addresses. They just provide an offset of a member function within an object.
#include <conio.h>
class A
{
public:
int func() { return 1; }
};
void main(){
A x;
int (A::*ptr_to_method)() = A::func;
getch();
}
If for the above program you check inside Watch window of VC++ 6.0, the values of following variables
ptr_to_method
(&x)->func
It shows different addresses. Now which one is the correct address of function "func"?
Also I was not able to capture the value of "(&x)->func" inside program.
|
|
|
|
|
Also is there any way to find an address where the function ends?
|
|
|
|
|
i want to know what the throughput of my modem is down and up but have no clue how to get it.
|
|
|
|
|
Try:
http://www.testmyspeed.com/
http://www.numion.com/YourSpeed/
http://reviews.cnet.com/Bandwidth_meter/7004-7254_7-0.html
http://www.bandwidthplace.com/speedtest/
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
My job is to list all the folder that shared on local machine (My Computer), but i don't know how ... any one help me plz?
thanks alot.
thanks
|
|
|
|
|
One solution is SHGetFileInfo().
Kuphryn
|
|
|
|
|
sometimes i need import a bitmap resource to be used the flash screen and so on,but to my disappointed ,many beautful bitmap i want to import ,but program warn :the bitmap's color value is more than 256,so it cant not been import,about the question ,do you meet?my display set i have adjusted most scale 1024*768,32 colors.
|
|
|
|
|
That is normal. VC++ will import the bitmap and not show it. You can still use the bitmap resource in the project.
Kuphryn
|
|
|
|
|
hi: i used to use odbc to do some database application development,now i want to know whether it is easy to transfer into ADO?which one is better between them according your developing experience?
i want to learn more detail ,thank you very much you give me instruction
|
|
|
|
|
hi: how do you do?i met a trouble
i am doing a mp3 player,how to include a AVI player into my dialog?
thx all
|
|
|
|
|
oh,just now i found a way ,click ALT+F7,Then in link tab sheet ,add VFW32.lib ,it is ok
if you have another way ,please tell me,thankyou very much
|
|
|
|
|
Hi.
I wonder if anyone can help with a problem that I am having ?.
I want to be able to create an MDI application that simply allows me to create text document(s) that I can edit and save/load.
I have tried using the AppWizard that ships with the above named software version, but it simply does not work.
After building the app. and running it, I create a new doc. and type the words 'hello there' in the 'new' doc. window, save it and reload, and all I get is the first character of the string plus four characters of rubbish.
I have tried to determine what is wrong but to no avail.
In desperation I re-installed a very old copy of VC++.6 and it works fine.
Does anyone know of any changes or prehaps new clauses that need to be added to either the view or document classe(s)?
Best regards.
James
|
|
|
|
|
Why don't you use VC++ 6
it is not old. it is just not the newest.
gabby
|
|
|
|
|
Thank you for your very helpful and constructive comment.
|
|
|
|
|
I want to know a way of binding 2 executables. Is there a way?
gabby
|
|
|
|
|
What's the purpose and how should this work?
modified 12-Sep-18 21:01pm.
|
|
|
|
|
well the purpose is actually kind of stupid. I want that when I start for example VC++ winamp to start as well. So I can have music.
But I want to know how can I do this programaticaly.
How do I bind thei binary data or something. ones into the others'
gabby
|
|
|
|
|
program yourself a batch file dude!
|
|
|
|
|
|
so you're telling me there is no other way than this batch file (.BAT)
gabby
|
|
|
|
|
|
Yes I want to make a progranm that runs the other two but I want the program to bind them.
Look to put it in another way. I make a prg and I want to bind it with another one. How do I di this frm the programming part
gabby
|
|
|
|