Made only one static member which receives "this" and do the job by itself. Thanks.
Type: Posts; User: siavoshkc
Made only one static member which receives "this" and do the job by itself. Thanks.
What I wanted to do was a nightmare. Well at least now I know about pointer to member functions.
You mean storing this in an static member pointer? Can you please provide an example? Really sorry...
This static member should call non static members to handle the callback. In the mean time I have a pair of one static and one non static function for each handler (As been told by FLTK manual) which...
I want to have one static member for all callbacks.
Now how can I send address of a member function to my object? The object should be aware of "this" for the member function. Can I define a function pointer which accepts a member function address?
So simply I can create an object which can hold the method address and then give it to callback as the second argument. Sure.
If FLTK could accept class member addresses there would be no need for...
Hello laserlight, it was a long time...:)
Is it because of virtual functions? The address of the function I am trying to get is fixed during the lifetime of that class object. I don't see any...
I am writing a program with FLTK and in event handling part wanted to send the address of the handler function to callback function. Type cast just does not wrok.
...
So I also use one static private function. Now the question is how to choose a specific differentiator value for each handler. For example we can give a button integer 1 and another 2 two. Then in...
In FLTK when you create a widget you may assign a callback function to it. This event handler cannot be a non static class member. From what I read and understood there are three ways you can handle...
Incorrect. Compiler ignores /arch:ia32 when is creating x64 executive. That is because there is no x64 CPU with no SSE in real world.
I think at this point you should not worry about how compiler implements it. Just care about the logic of recursion which is the main point. You may provide a non-recursive function to do the job but...
Thanks for sharing your opinion but when you see the assembly it is not CL. The answer is here.
:D Really?
int c =0;
000000013FD223B5 mov dword ptr [rsp+20h],0
float f=0;
000000013FD223BD xorps xmm0,xmm0
000000013FD223C0 movss dword ptr [rsp+24h],xmm0
int a = c + f;...
Sorry. What I meant was limiting normal users is being done by creating a UI that doesn't give anyone the ability to change fundamental settings. You don't have to limit the OS itself.
It only relates to UI.
No doubt Android is better than symbian or maybe Windows mobile. But not being able to run native Linux Apps was a real frustration.
So far mobile OSes were being like a cage. Not flexible at all....
After having so much frustration with Android and abandoning of alternatives like MeeGo, there is a new hope.
A new Ubuntu distro named Touch has been created by Canonical:Ubuntu for phones |...
Thank you. I will continue studying frameworks/GUIs and find a good combination. Have anybody ever used Ultimate++, eGUI or Win32++?
I can serialize my data to harddisk. How can I know it is time to use a database to store my data?
You can also bind data to .Net controls.
So you say we should not use Qt or MFC?
This COM was being around for a long time till recently I decided to see what it is. So I created the COM Control project from MSDN walk-through. First problem was that my control was not registered...
It was better if it was one lib for everything. But I have no problem with combining libs if they are good quality and compatible. I'm an idealist generally but this time I need a practical solution...
What is the benefit of WPF over .Net controls.