How can I use SetWindowLongPtr function in VC6 ?
-
Hi everyone . I try to use SetWindowLongPtr function to change behaviour of CComboBox control , but I get an error :
error C2065: 'SetWindowLongPtr' : undeclared identifier
what I can do ? I read somewhere that I need to install SDK , it's really necesary ? I mention that I use VC6 .
-
Hi everyone . I try to use SetWindowLongPtr function to change behaviour of CComboBox control , but I get an error :
error C2065: 'SetWindowLongPtr' : undeclared identifier
what I can do ? I read somewhere that I need to install SDK , it's really necesary ? I mention that I use VC6 .
I think you will find that
[SetWindowLong()](http://msdn.microsoft.com/en-us/library/ms633591\(VS.85\).aspx)[[^](http://msdn.microsoft.com/en-us/library/ms633591\(VS.85\).aspx "New Window")]
should do what you want.I must get a clever new signature for 2011.
-
Hi everyone . I try to use SetWindowLongPtr function to change behaviour of CComboBox control , but I get an error :
error C2065: 'SetWindowLongPtr' : undeclared identifier
what I can do ? I read somewhere that I need to install SDK , it's really necesary ? I mention that I use VC6 .
mesajflaviu wrote:
what I can do ?
Are you including the correct header file?
mesajflaviu wrote:
I read somewhere that I need to install SDK , it's really necesary ?
Not for
SetWindowsLong()
, but it is highly recommended."One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
-
I think you will find that
[SetWindowLong()](http://msdn.microsoft.com/en-us/library/ms633591\(VS.85\).aspx)[[^](http://msdn.microsoft.com/en-us/library/ms633591\(VS.85\).aspx "New Window")]
should do what you want.I must get a clever new signature for 2011.
I'd agree, although it's worth to mention that it's not supported for 64-bit versions of Windows. After a bit of googling I found this[^] forum post, which seems to solve the problem. Sadly, the download link to the feb 2003 platform SDK is broken, but maybe you can get it from somewhere else (I haven't tried).
-
mesajflaviu wrote:
what I can do ?
Are you including the correct header file?
mesajflaviu wrote:
I read somewhere that I need to install SDK , it's really necesary ?
Not for
SetWindowsLong()
, but it is highly recommended."One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
-
I'd agree, although it's worth to mention that it's not supported for 64-bit versions of Windows. After a bit of googling I found this[^] forum post, which seems to solve the problem. Sadly, the download link to the feb 2003 platform SDK is broken, but maybe you can get it from somewhere else (I haven't tried).
-
mesajflaviu wrote:
what I can do ?
Are you including the correct header file?
mesajflaviu wrote:
I read somewhere that I need to install SDK , it's really necesary ?
Not for
SetWindowsLong()
, but it is highly recommended."One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
I try
#include <Windows.h>
but didn't work.