|
Probably this one[^].
It can be found here at CP as well from same author.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Thanks for the link, Roger. But David Crow had once cut shorted this theory into two lines and that was what I was looking for.
It is: Don't use TM to determine your app's memory usage. Those numbers represent the amount of address space that is in use. They have nothing to do with the amount of that address space your program is actually using.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
You're most welcome brahmma.
David's statement summrizes it quite well, but if you want "why" answered you should read Newcomer's article.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Indeed Mr. Joseph's website is full of useful information. I am writing a short note on memory allocation, for an internal meet here and that (the info which I've got now) was one thing remaining. So, I took help from you guys.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
brahmma wrote: So, I took help from you guys.
:->
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Why is the below code incorrect in so far as compiler and casts are concerned. In what situations could the same fail?
int __cdecl mythread(void *p)<br />
<br />
AfxBeginThread((AFX_THREADPROC)mythread, NULL);
|
|
|
|
|
tom groezer wrote: In what situations could the same fail?
int __cdecl mythread(void *p)
Documentation requires the prototype to be this...
UINT MyControllingFunction( LPVOID pParam );
|
|
|
|
|
Dear all
I want to log the thread CPU usage of one process in file.
I have a process which includes 7 threads in it.
now I want to log the CPU usage of each thread.
But I dont know how to access the process and how to measure the cpu usage of each thread.
Please help me about this
Regards
Monhi
|
|
|
|
|
Can you not use PerfMon?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Thanks alot
|
|
|
|
|
On the examples of MSDN see Performance I think it will be helpful for you.
|
|
|
|
|
Hi all,
I am making one win32 application that includes some Flash movies. I want to embed flash movie into my Dialog Box. I am able to add it in Windows Form using AxShockwaveFlashObjects but it is not working for Win32 dialog box. How ca I add Flash into Dialog box?
Thanks in advance,
Priyank
|
|
|
|
|
|
I've this class
class CImageBase : public CImagePan
{
public:
CImageBase();
virtual ~CImageBase();
virtual BOOL Decode(char *pcMemBuff, long lFileLength) PUREVIRTUAL;
// Implementation of pure virtual functions in CImagePan class
virtual int GetEffWidth() const { return EffWidth; };
virtual int GetWidth( void ) const { return Width; };
virtual int GetHeight( void ) const { return Height; };
virtual int GetDepth( void ) const { return Depth; };
virtual int GetColorType( void ) const { return ColorType; };
virtual BOOL Inside(int x, int y) const { return (0<=y && y<height &&="" 0<="x" x<width);="" }
="" virtual="" int="" getindex(int="" x,="" y);
="" bool="" setindex(int="" y,="" index);
="" getrgb(int="" byte*="" r,="" g,="" b);
="" setrgb(int="" byte="" imagepointertype="" getrawimage()="" {="" return="" rawimage;="" getrawimagesize()=""
="" {
="" (lpbi-="">biSize + lpbi->biSizeImage);
}
virtual LPBITMAPINFOHEADER GetBitmapInfoHeader() { return lpbi; }
virtual void BGR2RGB(unsigned char* pBuffer,int iCount);
protected:
ImagePointerType RawImage; // Image data
void AllocateImage();
int Width, Height; // Dimensions
int Depth; // (bits x pixel)
int ColorType; // Bit 1 = Palette used
// Bit 2 = Color used
// Bit 3 = Alpha used
int RawImageSize;
long EffWidth; // Effective Width
LPBITMAPINFOHEADER lpbi;
int bgindex;
friend class CImageIterator;
};
How can i transform a Cimage object in a Bitmap^ bmp ?
Thanks, regards
|
|
|
|
|
Do you need to a handle of CImage class?
|
|
|
|
|
I've another ref class where i declare in a method{
func()
{
....
CImage jpgframe;
jpgframe.CreateImage(bufferjpg,mycam->jpg->len,1);
jpgframe.Decode(bufferjpg,mycam->jpg->len);
...
}
and i want to use jpgframe to create a Bitmap^ bmp but i dont't know how.
Can you help me?
Thank a lot, regards.
|
|
|
|
|
Hi All
I want to use tooltip on toolbar in other than default font. So how can i create customize tooltip so that font of tooltip can change.
Thanks and Regards
Atul
|
|
|
|
|
|
See Here[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi all,
Can anyone suggest how to place a dialog in an other dialog just llike placing some control in a dialog.
Thanks
|
|
|
|
|
|
LRESULT DlgProc( HWND hWnd , UINT message , WPARAM wParam , LPARAM lParam )
{
switch( message )
{
case WM_COMMAND :
//process commnads here
break ;
case WM_CLOSE :
::PostQuitMessage(0);
break ;
}
return ::DefWindowProc(hWnd , message , wParam , lParam ) ;
}
void CchiDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
if ((nID & 0xFFF0) == IDM_ABOUTBOX)
{
CAboutDlg dlgAbout;
HWND hWnd =::CreateDialog( 0 , MAKEINTRESOURCE(IDD_ABOUTBOX), this->GetSafeHwnd() , (DLGPROC)DlgProc) ;
MSG msg ;
while( ! GetMessage( &msg , 0 , 0 , 0 ) )
{
::TranslateMessage( &msg ) ;
::DispatchMessage( &msg ) ;
};
::ShowWindow( hWnd , SW_SHOW ) ;
}
else
{
CDialog::OnSysCommand(nID, lParam);
}
}
//i dont know u r trying on win32 or mfc.
//best wishes
|
|
|
|
|
|
//add WS_CHILD style to your child form
//eithor in dialog propery (style) or by using
//SetWindowLong( hWnd , GWL_STYLE , GetWindowLong( hWnd , GWL_STYLE ) | WS_CHILD ) ;
//the dialog must be called modlessly
|
|
|
|
|
Hello,
I am creating an application in non- Doc -View architecture where I want to create the mainframe window using Create. In the parameters I don't understand what will be the parent of the mainframe window and where is the option to provide CMenu object for the menu that I want to attach to the Mainframe window.I do not want to use menu resource for the mainframe.
And if I don't use the Loadframe() of the FrameWnd then how do I provide other resources to the mainframe window.
Prithaa
|
|
|
|