|
|
|
Uhh... this question really isn't appropriate for this forum... oh, and you've cross posted this on other boards?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</A>
|
|
|
|
|
Hi Peter,
i dont like cross-posting nor do i like to
ask questions especially on wrong boards, but
as a developer i know that most of use have
a huge knowledge on this area. This is a very
strange and big problem for me, since i didnt
find the problem by my own and it really is hard
to find. I am a experienced developer and
administrator, but this is a very hard thing!
Anyway, thanks,....
Best regards
K.
|
|
|
|
|
True -- there's people here who know a lot.
But cross-posting a link to another site.....?
Why not post the question directly here? Short and direct. I have to say, I started reading the other post, got half way, and stopped.
Edit your question, make it appropriate for this group, and post it directly here.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</A>
|
|
|
|
|
TheNETCoder wrote: ...nor do i like to
ask questions especially on wrong boards, but
as a developer i know that most of use have
a huge knowledge on this area.
So do the right thing, and post the question in the Hardware forum. Those same folks that have "huge knowledge" also frequent the Hardware forum.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i want to notify my application when system gets logoff or login so where will i use WTSRegisterSessionNotification in my Application my Application is a Peopertysheet(Kind)and i want this application run only in admin privilage(means any limited user cant close this window)
Thanks in advance
RYK
|
|
|
|
|
When your window is created, you can add it to the WTS session notificatio by passing in the window handle (which you now know), and when it is destroyed, remove it from the session notification list.
Create a message handler for the session notification message. Process the messages of interest to your program from this handler.
|
|
|
|
|
mshtmhst.h
mshtml.h
exdisp.h
Does anyone know if these files (above) are installed with C++.net 2003 or C++.net Express 2005?
|
|
|
|
|
In VC++ 2003, they are located in the subdirectory...
\Vc7\PlatformSDK\Include
They also came up in my other Platform SDK's when searched for on those directory structures.
Hope that helps.
|
|
|
|
|
Thanks, I saw them.
But, I keep on getting this error:
test1 error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup
Would you know a solution?
|
|
|
|
|
Try changing your _main to _tmain
|
|
|
|
|
I know Scott Meyers says something about "don't provide default behavior in a virtual method at the base class level".
However, I left my book at work and can't remember "why".
I seem to need default behavior in my base class for a specific virtual function but I'd hate to do it without going over the pro's, cons, tradeoffs, gotha's...
Does anyone remember the reasons why a base class virtual function should not have a default implementation? Or am I remembering what he states incorrectly?
-- modified at 10:46 Thursday 16th August, 2007
UPDATE:
Now that I've had a chance to look at the book, I'm guessing I remembered incorrectly as I can't find anything close to resembling this topic in Meyer's books so forget the question ever existed as my brain is obviously overloaded and functioning improperly.
|
|
|
|
|
Virtual functions are for runtime cadidates (late binding or dynamic binding) which are valid via pointer access. To provide the default behavior of the base (as you stated), it would be compile-time binding (static binding), and it gets far away from what virtual was intended for.
Maxwell Chen
|
|
|
|
|
I typially provide a reasonable defualt implementation unless it is declared as pure virtual.
My reaspning is I want something known to happen. If it is overridden in a derived class, they must want 'something else' to happen.
|
|
|
|
|
Maxwell Chen wrote: To provide the default behavior of the base (as you stated), it would be compile-time binding (static binding),
How do you figure?
If a base class A has a virtual function Foo() and a derived class B implements it and I have an array of A* that point to objects that have runtime types of A or B, it will decide which version of Foo() gets called at runtime.
How is that getting away from the original intention of virtual?
|
|
|
|
|
bob16972 wrote: If a base class A has a virtual function Foo() and a derived class B implements it and I have an array of A* that point to objects that have runtime types of A or B, it will decide which version of Foo() gets called at runtime.
You are right!
Maxwell Chen
|
|
|
|
|
Hey all,
I am trying to create a dialog bar that contains a single track bar control. My problem comes with determining the proper size of the dialog bar so that it will show the entire track bar without having a bunch of extra space. Is there a way to determine the area needed to display the track bar, especially if I were to make the tick marks user selectable?
The track bar control has the TBM_GETCHANNELRECT and TBM_GETTHUMBRECT messages to get the area of the channel and thumb components of the control, but it does not have a way, that I know of, of getting the area needed for the entire control. I could take the channel rect and OR it with the thumb rect to get close, but I was wondering if there was a better way.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
PJ Arends wrote: Is there a way to determine the area needed to display the track bar, especially if I were to make the tick marks user selectable?
Have you looked at GetSystemMetrics() ?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: Have you looked at GetSystemMetrics()?
I had, as well as at SystemParametersInfo , but I could not find what I was looking for. With GetSystemMetrics can you tell me which index (SM_) value you had in mind?
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
PJ Arends wrote: With GetSystemMetrics can you tell me which index (SM_) value you had in mind?
See if SM_CXHSCROLL , SM_CYHSCROLL , SM_CXVSCROLL , and SM_CYVSCROLL produce anything useful. This is just a guess on my part, PJ.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: See if SM_CXHSCROLL, SM_CYHSCROLL, SM_CXVSCROLL, and SM_CYVSCROLL produce anything useful.
No good, those are only useful for scroll bars, not track bars. Thanks anyway.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
My bad. I thought track bar and scroll bar were the same thing. I now see that you are referring to a "slider control." Can you get the dimensions of the dialog bar, and then add a few to those dimensions during the creation of the track bar?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I guess that I should use IDockingWindow::ShowDW method, but how do I get
pointer to IDockingWindow ? I want to show/hide Quick Launch deskband.
thanks
Vilius
|
|
|
|
|
How many dll's can an application dynamically load in windows?
Artificial Intelligence is no match for Natural Stupidity
No one can understand the truth until he drinks of coffee's frothy goodness. ~Sheik Abd-al-Kadir
I can't always be wrong ... or can I?
|
|
|
|