|
foreach is earlier defined as a function to search any kind of object we need to find in a list.
FktFunction pointer is assigned to
int TDriverLayer_RegisterDevice(struct TDevice * newdev)
|
|
|
|
|
ajorge2008 wrote: foreach is earlier defined as a function to search any kind of object we need to find in a list.
OK.
ajorge2008 wrote: FktFunction pointer is assigned to
int TDriverLayer_RegisterDevice(struct TDevice * newdev)
Nope: RegistFuncPtr points to TDriverLayer_RegisterDevice .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
i have 2 files a.cpp and b.cpp
i want to use the variable (suppose int x) which is public in .cpp1 in .cpp2(means i want to asign the value in d=x in cpp2).then how i can acess the value x in cpp2 .
remember
cpp2 is a class
cpp1 is cpp1 is a class derived publilicly from ccdialog
|
|
|
|
|
If x is a member of the cpp1 class (what a bad name for a class) the you must have access to an instance of the cpp1 class in order to gain access to x .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
why do we need to use CreateCompatibleDC to create a DC even though we can create a Dc using CreateDC?
Regards,
KDevloper
|
|
|
|
|
Performance!!!
BitBlt between compatible DC as many TIMES faster than otherwise.
|
|
|
|
|
They are two different functions that create different kinds of DCs.
You don't "need" to use CreateCompatibleDC. You use it when you need
a memory DC compatible with an existing DC.
It's not the same as CreateDC.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
how i can use the code available in code project to my project..means suppose i need a different style buttons(whose .h and .cpp i download from net)and i want to use that perticular style button in my project then waht is the setting for that
thanks a lot
|
|
|
|
|
|
if u can't then don't ....
|
|
|
|
|
Now excuse me sir!
Have a think about it before you ask such foolish and useless questions.
What bloody button code? Which bloody article?
What was the response you got when you asked how to use the code on the page you downloaded it from? Is there not an example application that may be obtained from the article page?
Like you said - if you can't ask a reasonable & sensible question, then just don't!
|
|
|
|
|
I am using COXTreeCtrl from the Ultimate Toolbox in my code. I have a parent tree and under it, 4000 child items with unique IDs. When I click on the "ID" column for this tree, it is calling a CALLBCK procedure to sort these 4000 items.
But the real problem is THE TIME IT IS TAKING to sort 4000 items -- More than 5 Min.
Is there any way I could sort the column, which will take less time to sort??
|
|
|
|
|
Does it draw the tree during the sort process? I mean, do you see as items get swapped? Becuase you can speed up things a lot if you disable the repainting of the control while the process is running. You can try using SetRedraw(FALSE) just before you begin the sort and SetRedraw(TRUE) and RedrawWindow(NULL), after it. I hope that can help some.
|
|
|
|
|
No, the items are not getting swapped. I think it will draw the tree items only after completing the sorting process. And drawing of 4000 items is taking approximately 10 Sec of time.
I also tried SetRedraw() function while sorting but could not see any improvement.
While debugging, I observed that for sorting 4000 items, it is entering into callback procedure >100000 times.
Is there any way to sort the list using other than callback method??
|
|
|
|
|
Hi all,
I've got an error once I include <local> herder file
<br />
#include <locale><br />
The error message is,
<br />
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocmon(249): error C2061: syntax error : identifier '_DebugHeapTag'<br />
Can someone tell me what's going on.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
I believe this means that you are linking with both the Release and Debug C Run-Time Libraries[^]. Check your project settings for each project in the solution and choose one or the other but not both.
Best Wishes,
-David Delaune
|
|
|
|
|
Hi All
how can i open a application through shortcut key?My application is running in hidden mode.Plz help me
|
|
|
|
|
You mean you are able to intercept the shortcut key and now you want to execute your application. then you can use ShellExecute(/*parameters*/) or CreateProcess(/*parameters*/) depending upon your needs
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
i have View in that view a line is there(say link)
how to set the color of a lik to grey color
|
|
|
|
|
Not sure I understand your question, but if the red, green, and blue components are a color are the same, you get a shade of grey.
RGB (80, 80, 80) is dark grey, and RGB (200, 200, 200) is light grey.
|
|
|
|
|
|
What's your question exactly ? You simply want the tabs or how to put the images in the tabs ? If you want to show some tabs, you have to use a CTabCtrl for that purpose.
For the images, I'm not sure but you could try to add an image list to your tabcontrol (see here[^]) and supply the image index when adding a new item (see here[^]). You'll have to supply TCIF_IMAGE for the nMask. I don't know if that works because I never tried it but you could check it and see what it does.
|
|
|
|
|
Hello member..
Do you mean a TabbedToolBar in which tabs you' going to put buttons ??
Something like :
http://www.bcgsoft.com/featuretour/tour26.htm[^]
If that is the case, then check if you cabn find this in the MFC Feature Pack since BCGControlBar has been integrated into MFC.
|
|
|
|
|
Thank you,hINTModuleState! Is there any free source code for the tab view(/dialog) like 3ds max?
|
|
|
|