|
I know that but I am getting that assertion message when I execute MoveWindow member function of CDialog
S.Yamini
|
|
|
|
|
too bad for you
|
|
|
|
|
I am sorry. I have added the line MoveWindow and I am getting error I dont know y.Help me
S.Yamini
|
|
|
|
|
yaminisridaran wrote: I dont know y.Help me
You would better have listened to your teacher.
We are here to help you (even now!).
But you need to show the error you get and the code you wrote.
We won't read your mind, see?
For better forum posts read this.[^]
Failure is not an option - it's built right in.
|
|
|
|
|
don't loose your time... i gave up
|
|
|
|
|
|
yaminisridaran wrote: When i insert this control in an exe it shows me debug assertion failed error message.
Can any one help me in this
You have failed to indicate what line of what file is asserting. Without such information, I can only surmise that you are attempting to move a non-existent window.
"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
|
|
|
|
|
You have been a member here long enough to know better than to title your message as 'urgent help'
Read the forum guidelines!
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
leckey wrote: You have been a member here long enough to know better than to title your message as 'urgent help'
Actually, no.
He has a habit of posting qustions with a nondescriptive, panicking title line.
Failure is not an option - it's built right in.
|
|
|
|
|
jhwurmbach wrote: He has a habit of posting qustions with a nondescriptive, panicking title line.
Maybe he generates a lot of "Software Emergencies"
|
|
|
|
|
yaminisridaran wrote: I have added the below line in oncreate
dlg.Create(IDD_DIALOG1,this)
and the below line in ondraw
dlg.MoveWindow(rcBounds,TRUE)
Huh? Is that really where you want to do the create and movewindow?
Mark Salsbery
Microsoft MVP - Visual C++
"Remember the five Ds of dogeball: Dodge, Dip, Duck, Dive, and Dodge."
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
just like we need a :filetOfish:
Happy Friday!
|
|
|
|
|
Indeed!
Cheers!
Mark Salsbery
Microsoft MVP - Visual C++
"Remember the five Ds of dogeball: Dodge, Dip, Duck, Dive, and Dodge."
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
how can i know on which menu item, the mouse pointer is currently hovering
in MFC doc/view architecture?
|
|
|
|
|
Abhijeet Pathak wrote: how can i know on which menu item, the mouse pointer is currently hovering
Try WM_MENUSELECT .
|
|
|
|
|
thanks
that works great for normal menu items...
but if i tried to retrieve menu string (caption) of menu item which contains
popup menu then it fails.
how can i retrieve caption of an menu item which contains popup (sub) menu.
i'm facing difficulties because such menu items don't have an ID.
|
|
|
|
|
Abhijeet Pathak wrote: but if i tried to retrieve menu string (caption) of menu item which contains
popup menu then it fails.
When it's a popup menu then it won't have a command id but it will have an index right. You get index in LOWORD( WPARAM ). Use MF_BYPOSITION with GetMenuString to retrieve menu string.
Tell me if it works.
|
|
|
|
|
|
hi
first of all, this forum is for asking questions related to C++/MFC Programming.
To ask questions like this, use another appropriate forum.
anyways http://en.wikipedia.org/wiki/Online_chat will give you some information.
|
|
|
|
|
Lol :p maybe he means how do you create a chat application? I'm not sure though
--PerspX
"Nowadays, security guys break the Mac every single day. Every single day, they come out with a total exploit, your machine can be taken over totally. I dare anybody to do that once a month on the Windows machine." - Bill Gates
|
|
|
|
|
hari4ur wrote: How to chat with online people.
Get online with them and use a chat program.
"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
|
|
|
|
|
Yeah! Not MSN.. always crashes etc.. typical MS software
--PerspX
"Nowadays, security guys break the Mac every single day. Every single day, they come out with a total exploit, your machine can be taken over totally. I dare anybody to do that once a month on the Windows machine." - Bill Gates
|
|
|
|
|
How to chain calls from a "variable number of argument" function to an other one ?
For exemple
bool IsFlagsCompliant( long Flag1, ...)
{
va_list liste;
long Param;
va_start ( liste, Param);
// code for the test on all parameters
while( Param != 0)
{
// next
Param = va_arg( liste, long);
}
va_end( liste);
}
bool GetCompliantElement( long Flag1, ...)
{
// some code...
bool bResult = IsFlagsCompliant( ???????); // <<<< how to call function ????
return bResult;
}
PDf
|
|
|
|
|
You can chain the variable arguments but only the top level function can use ... (ellipsis)
Here's a trivial example
void CMSErrorHandlingImpl::mxTrace(const mxCHAR* szFormat, ...)
{
va_list args;
va_start(args, szFormat);
CErrorHandling::Trace( szFormat, args );
va_end(args);
}
void CErrorHandling::Trace(LPCTSTR lpszFormat, va_list args)
{
va_list theargs = args;
if( _vftprintf(stderr, lpszFormat, args) < 0 )
{
_ftprintf(stderr, _T("%s"), _T("Trace failure! Unable to format a Trace message\n"));
_ftprintf(stderr, _T("Format:- %s\n"), lpszFormat);
}
TCHAR traceBuffer[1024];
if( _vstprintf(traceBuffer, lpszFormat, theargs) < 0 )
{
}
OutputDebugString(traceBuffer);
va_end(args);
}
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
marcelcerdanjunior wrote: va_start ( liste, Param);
va_start(liste, Flag1);
marcelcerdanjunior wrote: bool bResult = IsFlagsCompliant( ???????); // <<<< how to call function ????
bool bResult = IsFlagsCompliant(1, 2, 3);
bool bResult = IsFlagsCompliant(1, 2, 3, 4, 5);
Also, IsFlagsCompliant() needs to return a value.
"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
|
|
|
|