|
Everything is working fine...
Thanks again!
|
|
|
|
|
Hi,
i m taking help from
http://www.codeproject.com/KB/dialog/wizard2000.aspx[^]
article its very gud article of wizard.
i m having 8 pages,there are no. of controls present.
if i run the application than its works fine but after some its look like hang or its not responding.
i m checking the memory usage from task manager than i have noticed that in thisapplication when i reached the last page of wizard the the memory of application constant.
but in my application after reached on last page,if i coninously click on back or next button than memory is still increase i think thats why it becomes not responding and looks like hang the applicaton.
please help me for this.
i m waiting for your reply.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Seems you have the problem mentioned here[^]
|
|
|
|
|
In this example property sheet not use to add property pages.
here the class is used for add pages is derived from CDialog base type class.
now what can i do.
please help me for this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
|
AnithaSubramani wrote: Is it possible the listener for menu bar in MFC?
Listener??? What do you mean?
|
|
|
|
|
Are you wantig to write a hook? That's the closest thing I can imagine...
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Do you mean you want to handle user clicks on menu entries?
|
|
|
|
|
Hello,
I'm writing an add-in in for Visual Studio in C++ and need to get access to the DebuggerEvents in Visual Studio. See here for a description: http://msdn.microsoft.com/de-de/libr...s_members.aspx . Especially I need to receive events from "OnEnterBreakMode". Unfortunately all these methods are marked as "internal use only". There is also no definition in the headers.
The interesting part is, that I can access and get notification from all these events within C# without any problem. (C# reference on DebuggerEvents: http://msdn.microsoft.com/de-de/libr...us,VS.71).aspx) So how can I manage to access the DebuggerEvents in C++?
thanks for your help in advance!
Peter
modified on Saturday, January 24, 2009 4:53 AM
|
|
|
|
|
hi,
i am trying to transparent the dialog with color using this code. I included the windows.h and winuser.h
<pre>
SetLayeredWindowAttributes(GetSafeHwnd(),RGB(10,34,56),10,(LWA_COLORKEY|LWA_ALPHA));
</pre>
But it gives following error.
\\ITD254\VCC\Notes\NotesDlg.cpp(168) : error C2065: 'SetLayeredWindowAttributes' : undeclared identifier
\\ITD254\VCC\Notes\NotesDlg.cpp(168) : error C2065: 'LWA_COLORKEY' : undeclared identifier
\\ITD254\VCC\Notes\NotesDlg.cpp(168) : error C2065: 'LWA_ALPHA' : undeclared identifier
what i have to do
Ganesh
|
|
|
|
|
Which version of visual studio are you using? Have you set win version (_WIN32_WINNT ) to 0x0501 ?
|
|
|
|
|
vc 6.0 and i tried #define WINVER 0x0500
Os- winxp
|
|
|
|
|
i opened the winuser.h and found that SetLayeredWindowAttributes() is not available.
for that i downloaded winuser.h, which has SetLayeredWindowAttributes() and replaced original but now compiler tells so many errors in winuser.h
any solution
|
|
|
|
|
ganesh.dp wrote: i opened the winuser.h and found that SetLayeredWindowAttributes() is not available.
The SetLayeredWindowAttributes () will not be existing in the header files that comes with visual studio 6. So either you can download the platform SDK from here[^] and integrate it with VC6
or
Call the SetLayeredWindowAttributes () dynamically, using the LoadLibrary () and GetProcAddress () functions. The SetLayeredWindowAttributes exists in user32.dll dll and the value of LWA_COLORKEY and LWA_ALPHA are...
#define LWA_COLORKEY 0x00000001
#define LWA_ALPHA 0x00000002
|
|
|
|
|
i got user32.dll
but i have some doubt.
1. can i load that dll from my project folder(because i download that from web, my don't doesn't)
2. if load that file in dynamic mode, but before that compiler gives error(for setlayeredwondowattributes()).
Frankly saying i'm new to VC so please guide me
|
|
|
|
|
ganesh.dp wrote: 1. can i load that dll from my project folder(because i download that from web, my don't doesn't)
No you dont have to download it from net. That dll comes with the installation of OS. it exists in the "c:\WINDOWS\system32\user32.dll"
ganesh.dp wrote: 2. if load that file in dynamic mode, but before that compiler gives error(for setlayeredwondowattributes()).
ok. This is how to call that function dynamically.
#define LWA_COLORKEY 0x00000001
#define LWA_ALPHA 0x00000002
typedef BOOL (WINAPI *pSetLayeredWindowAttributes)( HWND hwnd, COLORREF crKey, BYTE bAlpha, DWORD dwFlags );
HMODULE hUser32 = LoadLibrary( _T("User32.dll"));
pSetLayeredWindowAttributes fnSetLayeredWindowAttributes = (pSetLayeredWindowAttributes)GetProcAddress( hUser32, "SetLayeredWindowAttributes");
if( 0 == fnSetLayeredWindowAttributes )
{
AfxMessageBox( _T("Failed to load SetLayeredWindowAttributes function"));
}
else
{
fnSetLayeredWindowAttributes( m_hWnd, 0, 100, LWA_ALPHA );
}
FreeLibrary( hUser32 );
|
|
|
|
|
thanx...
bit more problem now, there is no compilation error but no transparent or color change is happened..
|
|
|
|
|
ganesh.dp wrote: bit more problem now, there is no compilation error but no transparent or color change is happened..
Have you set WS_EX_LAYERED style? This style is necessary for the SetLayeredWindowAttributes() function to work.
|
|
|
|
|
i got it...
thanx a lot...
|
|
|
|
|
Can any one help me where i can get c++ source code for Casino War game. It should be with the below logic
1)Game Engine
2)Client
3)Server Object
IF it wont be avilable over net..can any one help me to understand how to do a casino war game with C++, which should have a)game engine b) client and c)server object.
if nothing is avilable ..pl let me know where i can get these information.
Thanks,
Nandu
|
|
|
|
|
When I Compile my project I got this Warning
"warning C4819: The file contains a character that cannot be represented in the current code page (874). Save the file in Unicode format to prevent data loss"
I want to solve this problem, Please advise
How can I save the file in Unicode format
|
|
|
|
|
Does this page[^] help? It's talking about how to save files with different encodings in VS2005, using the File Save dialog.
|
|
|
|
|
VS editor now supports Unicode characters as well (for strings to be used in the code). If you don't know what Unicode is, I suggest you to please read up on that.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi all,
I have a list control in which there can be very large number of items and there can be very few items also.....
Property of my list is that it is almost sorted.....
So, i wanted to know that which sorting alogorithm will best suit this situation.....
Thanks in advance
|
|
|
|
|
hi,
u Want to sort list on what basis? Is it a image list??
Samir
|
|
|
|