|
Thanks, I tried a lot of memory leaks detector software (included those indicated by you) but they did't give me useful information, this is the cause that make me to think that the memory increse when I "Play" multiple time has another cause.
|
|
|
|
|
Agavriloaie Constantin wrote: When I run it multiply time the total used memory reported by Windows Task Manager...
The numbers from TM are not telling you how much memory your program is consuming. They are the amount of address space that is in use, which will be less than the amount of address space your program is actually using.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Thanks David, maybe u are right, can you give me more info about this, it is the fist time when I heard about it (TM ). How can i find the exactly amount of memory used by app?
have a nice wked
|
|
|
|
|
Maybe the Performance Monitor has something you can use (e.g., Process(yourprocess)\Private Bytes).
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I want to load a codejock skin,but not msstyles,
Does any body have and would like to share it?
|
|
|
|
|
You'll have to buy something that's sold for money. Nobody here is going to share it with you.
However, you could take a look at The Ultimate Toolbox Application Skins[^], which is free for use.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi guys,
I'm trying to make a routine that save an icon (HICON) to png file with GDI+
Bitmap* bmp = new Bitmap(icon);
GetEncoderClsid(L"image/png", &encoderClsid);
bmp->Save(L"xxx.png", &encoderClsid, NULL);
So far so good. But when I open the png ... it is not transluctant (semi transparent).
Any ideas why???
And I found that GDI+ has A LOT of problems with icons
P.S. If you have another suggestion how to do this, please share fragment of code.
|
|
|
|
|
I'm not sure that you can do this directly as you suggest. Icons are 'special' file types that Windows understands and paints in a slightly different manner to ordinary bitmaps. Take a look at Icons in MSDN for more information.
|
|
|
|
|
Is my question so hard? Nobody had similar experience?
|
|
|
|
|
It has been answered many years ago on Google (Groups), Win32
|
|
|
|
|
Could share direct link? I'm no a member of these groups?
|
|
|
|
|
hi,
I am working on a PTZ camera, and successfully accessed the pan/tilt/up/down..zoom/focus and iris features.
now i am stuckup with the query commands and response.
protocol is pelco D and i want to send the query pan position(0x51) to the camera and the camera have to respond me back with
query pan position response(0x59)... if anybody worked on these stuffs please help me...
|
|
|
|
|
Hey rajapp,
If you find any solution please share it with us because we have same problem as you....
if you contact please send mesaage to "hkaratoy@gmail.com"
|
|
|
|
|
hey ppl were any of you able to solve this problem?? i am stuck too
|
|
|
|
|
Hi All
I am gatting problem to destroy Model less dialog.
I have a Dialog A and insert dialog B(Model less dialog).I dialog A call model less dialog like this
CDialogB* m_modell (In Dialog A cpp class).Create model less dialog in Dialog A cpp class like this
m_modell= new CDialogB(this);
m_modell->Create(CDialogB::IDD,this);
Now i have a thread WorkerThreadProc.In the WorkerThreadProc i use to show model less dialog
m_modell->ShowWindow(SW_SHOW);
It's working fine but how i destory model less dialog.
plz help me
|
|
|
|
|
|
thank for reply but try to understand my problem.
I know how to create but i have a problem to destroywindow(Model less dialog).
|
|
|
|
|
MsmVc wrote: I know how to create but i have a problem to destroywindow
The link I provided shows how to properly destroy the modeless dialog. Have you tried it?
Best Wishes,
-David Delaune
|
|
|
|
|
yes i try this.
Create Model less dialog in Class Adlg.cpp
m_modell= new CDialogB(this);
m_modell->Create(CDialogB::IDD,this);
Show Model less dialog in thread
m_modell->ShowWindow(SW_SHOW);
Try to delete or destroy in Class Adlg.cpp then it's working.
m_modell->DestroyWindow();
But how to destroy in thread.It's not working in thread.
Plz help me
|
|
|
|
|
MsmVc wrote: But how to destroy in thread.It's not working in thread.
Don't do it that way. Never touch anything from the UI from within a thread, this is a recipe for disaster. Instead, post a custom message to your UI informing it that it needs to close the dialog.
Check this article[^] for more information about thread (a must read for everybody starting to work with threads).
|
|
|
|
|
If you have followed the instructions in the article then you can use PostMessage to close to your modeless dialog.
::PostMessage(m_modell->m_hWnd,WM_COMMAND,MAKEWPARAM(IDCANCEL, BN_CLICKED),0);
Make sure that you have added the WM_POSTNCDESTROY handler and override OnCancel just like in the Help and Support article.
Best Wishes,
-David Delaune
|
|
|
|
|
Hi,
We need to extract strings from a .EXE file. What are ways to do that?
|
|
|
|
|
Use LoadLibrary[^] to load the EXE.
Call LoadString[^] and pass the handle returned by LoadLibrary as the first parameter.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thanks for the reply.
We have tried these functions but loadstring function requires the string ID. How do we find that? Can you provide any links which have the sample code?
|
|
|
|
|