|
Hi,
Please have a look at this[^].
Use CDC::SetBkMode .
Regards,
Paresh.
|
|
|
|
|
Hi all,
I would like to know the length of
CList m_list
m_list.GetAt(pos).GetLength().
Which type does it return?(long ? ULONGLONG? or else?
Many thanks in advance
Specialhaha
|
|
|
|
|
m_list.GetCount() returns the number of elements of a your list. Return value type is an INT_PTR , i.e. an int on 32-bit systems (an _int64 on 64-bit ones).
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]
|
|
|
|
|
CList::GetAt returns a reference to the stored object - so GetLength will only work if that object has a stored object. As it is a method belonging to your TYPE object, you can look that up to see the result.
As you didn't enclose your chunk of code in pre tags like the how-to-post post says, we can't read your CList declaration.
Those guidelines are not decorative.
eg:
CList < CString, CString & > m_List;
...
m_List.GetAt(pos).GetLength ();
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
CList < CString, CString & > m_List;
...
m_List.GetAt(pos).GetLength ();
and the type is ULONGLONG,right?
ULONGLONG m_long = m_List.GetAt(pos).GetLength ();
Thnks
|
|
|
|
|
specialhaha wrote: and the type is ULONGLONG,right?
I don't know. But as I said before, GetLength is a member function of the CString object, so *one* of us is going to have to look in the documentation for CString.
(Or just type it in, and let the compiler tell us. I'm lazy enough to do that!)
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
Hai,
Any body knows any freeware OR Tool is available to detect memory leak in Vc++ code.
Please refer the links...
Rply me,
Jhony...
Born to win...!
|
|
|
|
|
Search Codeproject for Visual Leak Detector...
|
|
|
|
|
|
|
|
Hi, Im programming in visualC++ with MFC in vs2008.
When using some applications like instant messenger, whenver someone signs in there is a popup in the bottom right corner of the screen saying 'xyz has signed in'. I want to make a popup like that. It should rise up from the status bar and then drop back down into it the way it happens in messenger. In addition the rest of the program should not stop running when that popup is rising up and lowering down.
Except I have no idea how to do this.. Can anyone offer some tips, name some APIs or link me to some articles on this? Im not exactly sure what this topic is called so I cant even do a decent search on it.
Thanks for any help.
|
|
|
|
|
garyofcourse wrote: Hi, Im programming in visualC++ with MFC in vs2008.
garyofcourse wrote: When using some applications like instant messenger, whenver someone signs in there is a popup in the bottom right corner of the screen saying 'xyz has signed in'. I want to make a popup like that. It should rise up from the status bar and then drop back down into it the way it happens in messenger. In addition the rest of the program should not stop running when that popup is rising up and lowering down.
You can use CMFCDesktopAlertWnd[^] if you are using MFC feature pack.
Else you need to create a top most popup window most probably a captionless dialog will do and then use AnimateWindow to make the window slide/fade in.
Also you've got to make the window appear alongside the window's taskbar so take note of the taskbar position too.
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
|
when i look into 7z's code,
find this:
namespace NSignature
{
UInt32 kLocalFileHeader = 0x04034B50 + 1;
UInt32 kDataDescriptor = 0x08074B50 + 1;
UInt32 kCentralFileHeader = 0x02014B50 + 1;
UInt32 kEndOfCentralDir = 0x06054B50 + 1;
UInt32 kZip64EndOfCentralDir = 0x06064B50 + 1;
UInt32 kZip64EndOfCentralDirLocator = 0x07064B50 + 1;
class CMarkersInitializer
{
public:
CMarkersInitializer()
{
kLocalFileHeader--;
kDataDescriptor--;
kCentralFileHeader--;
kEndOfCentralDir--;
kZip64EndOfCentralDir--;
kZip64EndOfCentralDirLocator--;
}
};
static CMarkersInitializer g_MarkerInitializer;
}
i really wonder why they did this?
do any body have read this code?
Thanks
|
|
|
|
|
0x04034B50;
0x08074B50;
0x02014B50;
0x06054B50;
0x06064B50;
0x07064B50;
those code are const, why add 1 and then sub 1?
|
|
|
|
|
I guess for getting the number in the first instance. A second gets it lowered by 1.
Greetings from Germany
|
|
|
|
|
Hi all,
Can anyone tell me how can i set the text of any button at runtime.
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
SetWindowText()[^] ?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Visual C++ MVP
|
|
|
|
|
buttonObj.SetWindowText(/*parameter*/)
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Use SetWindowText API.
Regards,
Paresh.
|
|
|
|
|
Or you can use of SetDlgItemText or WM_SETTEXT .
|
|
|
|
|
Hi,
I read that if Vista sees an external manifest file if will enable prompt. That's why we have to embed manifest file in the exe to enable application for UAC. Is it right? If any one knows that link can u send me that link.
I am trying to find that link for couple of hours but i am not able to find it now.
Thanks
|
|
|
|
|
Which link?
If you have a query, may be someone can answer you, not that you have to go back to that link.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Visual C++ MVP
|
|
|
|
|
My question is why should I embed manifest file in the exe to run in Vista.
Regards
|
|
|
|