|
Bob Stanneveld wrote:
First, why do you wan't to know how the message macro's work?
Out of curiosity, and what's more I'm trying to understand how my dialog based class hear the Windows calling, such that I'm not take for granted everytime I put a message macro in my class!Your reply did help!
Thanks Bob!
|
|
|
|
|
You're welcome
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Dear all,
I have a problem in Visual Studio .NET 2003 about implementing tooltips for dialog based controls e.g. buttons migrating from Visual Studio 6.0 which drives me crazy. In VS 6.0 the tooltips work without any problem for all controls using the method listed below:
void ...:: OnInitDialog()
{ ...
EnableToolTips (TRUE);
... };
ON_NOTIFY_EX(TTN_NEEDTEXT, 0, OnToolTipNotify)
BOOL ...::OnToolTipNotify (UINT id, NMHDR* pNMHDR, LRESULT* pResult)
{
// Tooltip Daten holen
TOOLTIPTEXT *pTTT = (TOOLTIPTEXT*) pNMHDR;
// ID des sendenden Dialogelementes holen
UINT nID = pTTT->hdr.idFrom;
...}
If I compile and link the source code using .NET 2003 Professional the tooltips appear for some controls, and for some controls NOT. I don't know why. I found that for some controls the message handler OnToolTipNotify will be started, for some controls not. I could check it setting a break point.
Is there any solution for this problem known ? Thanks for all help.
Ulrich
|
|
|
|
|
Hi all,
iam working in vc++, i want to fetch the columns from a table.
CDatabase db;
CRecordset myset(&db);
myset.open(CRecordset::snapshot,"Select *from mytable");
this my code. Here error is
"No columns were bound prior to calling SQLFetchScroll/SQLExtendedFetch"
so what is it mean. Mytable contains 4 rows and two columns
how can i slove this problem...........
plz help me
|
|
|
|
|
I had this error before and I think I solved it by opening the recordset with the CRecordset::dynaset option:
myset.open(CRecordset::dynaset,"Select *from mytable");<br />
But I'm not sure anymore, so don't blame me if this doesn't work
|
|
|
|
|
Hello all,
I am using iocp in an application that routes frames between
clients.
However the threads in the iocp framework continue to exit (Return code: 0x0).
Can anyone throw any ideas of what can make them do this?
In advance thanks.
Michael Olsen
|
|
|
|
|
Difficult to say with such a level of info I have. But when I assume that you implemented the iocp correctly, it can be that you simply end the thread proc. somewhere - forgotten return, uncatched exception whatever like that
|
|
|
|
|
I am trying to show jpeg images in an ordinary dialog using visual c++ but
i am looking for help. Many thanx
Phil
|
|
|
|
|
jj921 wrote:
I am trying to show jpeg images in an ordinary dialog using visual c++
This link will Help :-
CEnBitmap[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
|
Please Check again!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi All
Can anyone plz give sample code for receiving call by using Tapi3.0 or higher.
Thanks
Nayan
|
|
|
|
|
I see this statement "#if(WINVER >= 0x0500)" in winuser.h . I am using WinXP still I cant use the definitions defined below it. What compiler settings do i need ?
|
|
|
|
|
|
You need to set the WINVER macro to a higer version. If you are using VC 6. the windows version is set to 0x0400. This is because MS thinks that you must know what platform you are targetting if you wan't to use functions that are not supported by previous versions of windows.
See here[^] for more information about windows versions and the marcos associated with it.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
so, I have an .exe-file on my USB-stick(I wrote this exe.-file myself). now I need a command for another application. this application has to search where is USB-stick (A: or C: or D: or F with my .exe-file. Because the location of it is different at all users. at me for example the location is F: , at my friend E: . and then this .exe-file must run automaticaly...
thank you
|
|
|
|
|
If the file is always in a constant location on the volume, you could just iterate through each volume, tack on the path and file, until you find it.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Hi !
I have created a menu on the fly. Now I want to catch messages when an item is selected from menu. How do i do it. I am doing it by catching WM_MENUCOMMAND but I get undeclared error. I defined it my cpp file with the value of 0x0126 which i checked in winuser.h . Still I dont catch any msg.
Can some1 explain me the mechanism and why do i I get this compile error when I use WM_MENUCOMMAND while on the other hand WM_COMMAND or WM_MENUSELECT can be used without any prob. ?
Regards
|
|
|
|
|
|
|
I'm using a control derived from CHtmlView and I'd like to detect if a page hasn't been loaded properly because it doesn't exist. Concretely, I want to open a local folder (like explorer does) using CHtmlView::Navigate2. All works fine if the folder exists but, if it doesn't, I can't detect it.
There's an OnDocumentComplete fired when the navigation has been done succesfully but there isn't a way to know if the page haven't been loaded (almost in VC++6).
Any idea?
Thanks in advance,
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
See OnDownloadComplete, which according to MSDN is fired when "a navigation operation finished, was halted, or failed."
See also OnNavigateError, which is fired "if navigation to a hyperlink fails."
Hope that helps,
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Jose Lamas Rios wrote:
See OnDownloadComplete
OnDownloadComplete maybe it's fired, a part that for when it's ok, when it receives a 404 error code but not when you are requesting a local folder and it doesn't exist ... strange
Jose Lamas Rios wrote:
See also OnNavigateError
Yep!! But for MFC7 and I need it for MFC42.
I've finally solved by setting a Timer when OnBeforeNavigate it's fired and asking for the status (GetBusy) at OnTimer ... it's not as clean as I'd like but it works.
Thanks,
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
Using VS7..
class A
{
int answer = 42;
}
"only const static integral data members can be initialized inside a class or struct"
class B
{
static const int answer = 42;
}
But..
class C
{
static const float answer = 42.0f;
}
The msdn help page for error C2864 mentions nothing about floats not being able to be initialised like this - a quick bit of googling makes this look like it's a VC7 compiler bug.
Can anyone shed any light on this?
--
Help me! I'm turning into a grapefruit!
Buzzwords!
|
|
|
|
|
I think the answer in in the error message:
"only const static integral data members can be initialized inside a class or struct"
I always thought that integral type meant one defined by the compiler, char , int , float etc, but perhaps someone thinks it means data members that can hold integral (ie no floating point) values...
[Edit]
this forum conversation[^] is of the opinion that the standard does not allow floating point constants in a class.
[/Edit]
|
|
|
|