|
Do you still need this? I can email you this as it is too long to post here.
John
|
|
|
|
|
Thanx John!
For the time i don't need to look on virtual memory usage but may be in future i required that.
U can mail me at mmanish3214@rediffmail.com
Manish
|
|
|
|
|
The problem with the code I promsed you is that it is part of a dll (that has over 50K lines of code) and uses a few other classes of the dll. For your purpose these are not necissary so giving you this code requires a little bit of cleanup which I have no problem doing however I am seriously behind a deadline at work. I have been working 12 hour days and although I really try to help others I really can't find the time. Sorry but I will get back to this I promise.
John
|
|
|
|
|
No probs John!!!
I required that just for an alternative to my previous code,whenever u get time do that or evenif not posible dnt worry i got my problem solved.
Manish
|
|
|
|
|
And seehere[^] maybe its some helpful for you
|
|
|
|
|
Is there any way I can access the return address to which control will go when my function returns?
To develop some debugging instrumentation, I would like some of my functions to be able to see where they have been called from. Is there some simple assembly language involved, perhaps, that would allow me to see this address?
--------------------------------
"All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
|
|
|
|
|
One way (assumes 32bit x86):
#pragma optimize("y", off)
void Function()
{
DWORD ReturnAddress;
__asm
{
mov eax, [ebp+4]
mov ReturnAddress, eax
}
}
#pragma optimize("", on)
Or if your your compiler supports it use the _ReturnAddress intrinsic function.
Steve
|
|
|
|
|
Thanks Steve! I had a feeling it was easy.
--------------------------------
"All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
|
|
|
|
|
First,I'm a chinese,My English is very poor
If some mistake in my words, I'm so sorry.
I want to hide my dialog when mouse move out and click, but sometimes I want to hold it.
How to switch the two state?
I mean that I want to change the state by a button or a menu.
But how to do it?
I wish that a class inherit the CDialog can switch the two state, hide and hold.
I'm coding.I'm living
|
|
|
|
|
ShowWindow(SW_HIDE) will hide the window, ShowWindow(SW_SHOW) will show it again. Be sure you have a way for the user to show the dialog once it's been hidden!
|
|
|
|
|
You can toggle the WS_EX_TOPMOST[^] extended window style using the SetWindowPos[^] function.
Window always visible:
SetWindowPos(&wndTop, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE) Window can be hidden behind other windows:
SetWindowPos(&wndNoTopMost, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
In additional do you have any idea for when its hide how to show?
|
|
|
|
|
////////////////////////////////////////////////////////////////////
// The code can control the dialog "autohide" by mouse move out of dialog.
virtual BOOL Create( UINT nIDTemplate, CWnd* pParentWnd = NULL );<br />
BOOL CPropertyDlg::Create( UINT nIDTemplate, CWnd* pParentWnd )<br />
{<br />
return CDialog::Create(nIDTemplate, GetDesktopWindow());<br />
}
////////////////////////////////////////////////////////////////////
// for hide the icon on the dock
DWORD Style = ::GetWindowLong(m_hWnd,GWL_EXSTYLE);<br />
Style |= WS_EX_TOOLWINDOW;<br />
::SetWindowLong(m_hWnd,GWL_EXSTYLE,Style);
//////////////////////////////////////////////////////////////
// to allow autohide
::SetWindowPos(m_hWnd,HWND_NOTOPMOST,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);
// to stop autohide and hold the dialog
::SetWindowPos(m_hWnd,HWND_TOPMOST,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);
/*
* Now I can switch the two states with a button.
* I found it at CSDN ( http://community.csdn.net/Index.htm )
*/
I'm coding.I'm living
|
|
|
|
|
Of course your program is show on TaskManager
|
|
|
|
|
Hi,
Can some one kindly help me find out what exactly these numbers are? Say I see a version number 1.2.3.4
What each number means?
I never used them already. Recently I'm working on a project and I have to version my project (release) executable.
I see 1.0.0.1 In Visual Studio 6.0, when should I change each number andd how?
//This is not a signature
while (I'm_alive) {
printf("I Love Programming");
}
|
|
|
|
|
Click the "ResourceView" tab. Expand the application folder and the "Version" folder inside it. Double click on “VS_VERSION_INFO”. You can edit the version information from here.
Steve
|
|
|
|
|
Thank you, but I knew that.
What I'm seeking is a simple description of those numbers(1.0.0.1)
//This is not a signature
while (I'm_alive) {
printf("I Love Programming");
}
|
|
|
|
|
|
Hi,
Thank you very much indeed.
That will help me a lot.
//This is not a signature
while (I'm_alive) {
printf("I Love Programming");
}
|
|
|
|
|
Hi..I want to ask that which engine to use to create 2d or 3d games...
Where i can get these game engines..
like directx 3d & others
Can any one help me
Khatri
|
|
|
|
|
your best bet would be to look here gamedev.net this is the beginner help page once you've absorbed all that info you can join the forum and get stuck into some serious game dev questions
-= Technomancer =-
|
|
|
|
|
|
|
Well I m a software engineer & i know i can design n implement a very good game. For that i just need an 3d engine to create it. That's y asking u people is there any 3d game engine or api that i could get for free so i can work as a game development for fun.
By the way thank you guys for helping me so far....encourages those who will help more..
Khatri
|
|
|
|
|
Hi everybody,
i have an (ANSI) C++ application that hosts the WebBrowser control.
I write an HTML file to the control via m_spMsHtml->write( sfArray ).
The I use the HTML editing functionality of the webbrowser to
modify the source, lateron I read the content back and save it to
a file again.
This works quite good until I use special characters like german
or greek characters with their HTML encoding.
If a document contains characters like these:
ä
ü
Σ
α
then the "write"-command already translates these into
their unicode-equivalent, so they become to
ä
ü
Σ
α
I would like to keep the HTML-equivalent.
Is there any way to do this?
Any help is appreciated,
thanks in advance!
Jens Doose
|
|
|
|