|
thanks! i nailed down problem 2, but even with the allocator, the first problem is still bitching
- Roman -
|
|
|
|
|
oh wait, it worked for problem 1 also
THANKS!
- Roman -
|
|
|
|
|
I'm trying to use the CSMTPConn class in VS.Net but I get compile errors because of this:
CArray<csmtpaddress,csmtpaddress&> m_ToRecipients;
m:\apps\Utils\CSMTPConn\Smtp.h(147): error C2143: syntax error : missing ';' before '<'
What is happening??? I havent't changed the code at all!!!
---------------
http://www.edovia.com
|
|
|
|
|
never mind, i was just missing some includes...
---------------
http://www.edovia.com
|
|
|
|
|
Using the standard Win API how does one toggle between a window being Visible or Invisible? For example, how would one show/hide a button? Please include an example.
Thanks,
Clint
|
|
|
|
|
hide it:
::ShowWindow( hwnd, SW_HIDE );
show it:
::ShowWindow( hwnd, SW_SHOW );
|
|
|
|
|
When MSDN specifies that an API call is "NT Only", like WH_MOUSE_LL, does that include / exclude Win 2000 and XP... which are based on the NT architecture.
I need to use the WH_MOUSE_LL mouse hook, but it is an undeclared identifier even after including the neccesary includes: winuser.h & windows.h.
Is this because I'm developing on a Win2K machine? Or have I missed something else?
-serp13
|
|
|
|
|
It's supported on Windows NT 4.0 Service Pack 3 and greater. This includes 2K and XP, but in order to build a project you'll needed updated headers and includes.
MSDN says the version of winuser.h that ships with VC++ 5 doesn't have it, and I don't know about VC++ 6 off the top of my head. Either way, download or order a copy of the Platform SDK and install it to get newer versions of the headers.
Jeremy Falcon
Imputek
|
|
|
|
|
try adding the following to your code (before including windows.h and winuser.h)
#define _WIN32_WINNT 0x0500
I needed it for the function InitializeCriticalSectionAndSpinCount()
|
|
|
|
|
Since "Windows 2000" and "Windows XP" are just marketdroid names for NT5 and NT5.1, of course they are included in "NT only" stuff.
|
|
|
|
|
I have a dialog that runs on a timer to update the buttons (used like lights). The timer runs, the button values are updated, but they don't actually happen until I press them or pull a window over the top and then move it. I've tried the UpdataData() functions in different places but that doesn't work.
Any ideas?
Thanks!
|
|
|
|
|
Try with RedrawWindow .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I tried this and it does update, but it flickers like mad
|
|
|
|
|
|
Thanks for your help. I will give these a try...next week. I'm off to Tampa in a few minutes.
Thanks again!
|
|
|
|
|
Guys:
I know my program leaks memory. Win32 documentation says, the leaked memory will be acquired by win32 OS once the leaking process terminates. Is it true?
If it is so, how do I make sure that the OS 'really' acquired the leaked bytes? Is there any tool which shows the memory size before and after?
Is the "Mem Usage" in Performance tab of NT-Task Manager indicates this?
|
|
|
|
|
There is nothing you need to do to make sure. All pages assigned to your process will be released. End of story.
I guess my question is what leads you to believe pages are not getting returned? Or are you just making sure?
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Tim:
I just want to make sure. Thats all.
Thanks for your reply.
|
|
|
|
|
It's true.
If memory size is plenty large then you can see it in Task Manager
|
|
|
|
|
right.
mIchAel Liu
__________________________________________________________
The secret of business is to know something that nobody else knows.
|
|
|
|
|
I've installed the latest MS Plateform SDK in a different directory from the directory of VC6. How can I compile my program with the latest SDK files?
Thanks.
mIchAel Liu
|
|
|
|
|
Go to Tools->Options->Directories page, add ?:\PROGRAM FILES\MICROSOFT PLATFORM SDK\INCLUDE path to directories list and move it to the top of the list.
|
|
|
|
|
|
Hello!
I read something about CDragListBox.
How can I create it?
Can I use the same member-functions as in CListBox (like GetText(), GetCurlSel(), SetCurlSel())?
Thank you very much!
Lucky2002
|
|
|
|
|
Yes you can (CDragListBox derives from CListBox .)
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|