Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

error RC2104: undefined keyword or keyname TBS_NOTIFYBEFOREMOVE

639 views
Skip to first unread message

Kai

unread,
May 6, 2009, 7:08:01 AM5/6/09
to
I used TBS_NOTIFYBEFOREMOVE in my resource file. But when I open my dialog
in the resource file. This message pops up, checking RC2104, no help info for
TBS_NOTIFYBEFOREMOVE. I work in Vista.

CONTROL "",IDC_SLIDER,"msctls_trackbar32",TBS_AUTOTICKS | TBS_BOTH
| TBS_NOTICKS | TBS_NOTIFYBEFOREMOVE | WS_DISABLED | WS_GROUP |
WS_TABSTOP,26,288,351,15

Joseph M. Newcomer

unread,
May 6, 2009, 9:21:26 AM5/6/09
to
What Windows version did you tell the rc compiler you were using? You might not have this
symbol defined because you have not configured things properly.
joe

Joseph M. Newcomer [MVP]
email: newc...@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm

Kai

unread,
May 6, 2009, 9:45:02 AM5/6/09
to
#ifndef WINVER // Specifies that the minimum
required platform is Windows Vista.
#define WINVER 0x0600 // Change this to the appropriate value to
target other versions of Windows.
#endif

#ifndef _WIN32_WINNT // Specifies that the minimum required
platform is Windows Vista.
#define _WIN32_WINNT 0x0600 // Change this to the appropriate value to
target other versions of Windows.
#endif

#ifndef _WIN32_WINDOWS // Specifies that the minimum required
platform is Windows 98.
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to
target Windows Me or later.
#endif

#ifndef _WIN32_IE // Specifies that the minimum
required platform is Internet Explorer 7.0.
#define _WIN32_IE 0x0700 // Change this to the appropriate value to
target other versions of IE.
#endif

in CommCtrl.h

#if (_WIN32_IE >= 0x0600)
#define TBS_NOTIFYBEFOREMOVE 0x0800 // Trackbar should notify parent
before repositioning the slider due to user action (enables snapping)
#endif

Scot T Brennecke

unread,
May 6, 2009, 10:57:07 AM5/6/09
to
I just tested using that style on a slider that I placed on a dialog in a brand new application I
generated in VS 2008 Pro SP1. Which version of Visual Studio are you using?

"Kai" <K...@discussions.microsoft.com> wrote in message
news:DC252023-D176-4C77...@microsoft.com...

Kai

unread,
May 6, 2009, 11:40:07 AM5/6/09
to

Microsoft Visual Studio 2008
Version 9.0.21022.8 RTM
Microsoft .NET Framework
Version 3.5 SP1

Installed Edition: Standard

Microsoft Visual C++ 2008 91851-136-6438725-60651
Microsoft Visual C++ 2008

Hotfix for Microsoft Visual Studio 2008 Standard Edition - ENU (KB944899)
KB944899
This hotfix is for Microsoft Visual Studio 2008 Standard Edition - ENU.
If you later install a more recent service pack, this hotfix will be
uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/944899.

Hotfix for Microsoft Visual Studio 2008 Standard Edition - ENU (KB945282)
KB945282
This hotfix is for Microsoft Visual Studio 2008 Standard Edition - ENU.
If you later install a more recent service pack, this hotfix will be
uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/945282.

Hotfix for Microsoft Visual Studio 2008 Standard Edition - ENU (KB946040)
KB946040
This hotfix is for Microsoft Visual Studio 2008 Standard Edition - ENU.
If you later install a more recent service pack, this hotfix will be
uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946040.

Hotfix for Microsoft Visual Studio 2008 Standard Edition - ENU (KB946308)
KB946308
This hotfix is for Microsoft Visual Studio 2008 Standard Edition - ENU.
If you later install a more recent service pack, this hotfix will be
uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946308.

Hotfix for Microsoft Visual Studio 2008 Standard Edition - ENU (KB946344)
KB946344
This hotfix is for Microsoft Visual Studio 2008 Standard Edition - ENU.
If you later install a more recent service pack, this hotfix will be
uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946344.

Hotfix for Microsoft Visual Studio 2008 Standard Edition - ENU (KB946581)
KB946581
This hotfix is for Microsoft Visual Studio 2008 Standard Edition - ENU.
If you later install a more recent service pack, this hotfix will be
uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946581.

Hotfix for Microsoft Visual Studio 2008 Standard Edition - ENU (KB947173)
KB947173
This hotfix is for Microsoft Visual Studio 2008 Standard Edition - ENU.
If you later install a more recent service pack, this hotfix will be
uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947173.

Hotfix for Microsoft Visual Studio 2008 Standard Edition - ENU (KB947540)
KB947540
This hotfix is for Microsoft Visual Studio 2008 Standard Edition - ENU.
If you later install a more recent service pack, this hotfix will be
uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947540.

Hotfix for Microsoft Visual Studio 2008 Standard Edition - ENU (KB947789)
KB947789
This hotfix is for Microsoft Visual Studio 2008 Standard Edition - ENU.
If you later install a more recent service pack, this hotfix will be
uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947789.

Hotfix for Microsoft Visual Studio 2008 Standard Edition - ENU (KB948127)
KB948127
This hotfix is for Microsoft Visual Studio 2008 Standard Edition - ENU.
If you later install a more recent service pack, this hotfix will be
uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/948127.

Hotfix for Microsoft Visual Studio 2008 Standard Edition - ENU (KB952241)
KB952241
This hotfix is for Microsoft Visual Studio 2008 Standard Edition - ENU.
If you later install a more recent service pack, this hotfix will be
uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/952241.

Hotfix for Microsoft Visual Studio 2008 Standard Edition - ENU (KB953256)
KB953256
This hotfix is for Microsoft Visual Studio 2008 Standard Edition - ENU.
If you later install a more recent service pack, this hotfix will be
uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/953256.

Joseph M. Newcomer

unread,
May 6, 2009, 2:27:46 PM5/6/09
to
You have failed to mention what file these were found in. Unless you give reasonable
details, there is no way to tell what is going on.

I don't care how many #defines you have or what they say if you can't say where they are
found. Why is it so difficult to supply necessary information?
joe

Joseph M. Newcomer

unread,
May 6, 2009, 2:29:21 PM5/6/09
to
It is interesting that you provide a ton of totally useless information and forgot to
supply one of the most critical pieces of information: what file held the #includes?

I followed the include chain and if you had included these definitions in your resource
build you should not get the error. But since you didn't say anything about where they
were, it is impossible to tell if you included them in the resource build!
joe

Kai

unread,
May 6, 2009, 3:13:01 PM5/6/09
to
I just provided info for previous question. Can you see VS 2008 version from
the
first a few lines.

Scot T Brennecke

unread,
May 7, 2009, 1:09:19 AM5/7/09
to
I asked him what version of VS he had. He gave a very thorough answer. It demonstrates that he
doesn't have SP1, for instance.

"Joseph M. Newcomer" <newc...@flounder.com> wrote in message
news:ill30515l42t8nsv0...@4ax.com...

Scot T Brennecke

unread,
May 7, 2009, 1:11:24 AM5/7/09
to
Kai,
I tested in my installation, which includes Service Pack 1. I strongly recommend that you
download and install SP1. It may or may not fix this issue, but it will certainly fix many others.
Once you've done that, test again and let me know if it doesn't solve it.

Download details: Visual Studio 2008 Service Pack 1:
http://www.microsoft.com/downloads/details.aspx?familyid=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en

Scot

"Kai" <K...@discussions.microsoft.com> wrote in message

news:F7D4C2FD-C234-49E5...@microsoft.com...

Kai

unread,
May 7, 2009, 8:10:01 AM5/7/09
to
No, the problem is still there.

Scot T Brennecke

unread,
May 7, 2009, 10:54:31 AM5/7/09
to
Then your program differs from what is done for you by default. We should be looking now at what
you've changed. Did you start with an older project and upgrade it to 2008, or did you create this
one in 2008 from the beginning? If created in 2008, did you use a wizard, or did you write the code
yourself, or copy it from elsewhere?

As Joe asked, what file holds those #define statements you shared. Wizard-generated code puts them
in targetver.h, but you may have something different. Most importantly, is the header file also
#included in your RC?

"Kai" <K...@discussions.microsoft.com> wrote in message

news:206FDD60-AC06-4474...@microsoft.com...

Kai

unread,
May 8, 2009, 8:50:03 AM5/8/09
to

"Scot T Brennecke" wrote:

> Then your program differs from what is done for you by default. We should be looking now at what
> you've changed. Did you start with an older project and upgrade it to 2008, or did you create this
> one in 2008 from the beginning?

From the begining


If created in 2008, did you use a wizard, or did you write the code
> yourself, or copy it from elsewhere?

sometimes do by myself


> As Joe asked, what file holds those #define statements you shared. Wizard-generated code puts them
> in targetver.h, but you may have something different. Most importantly, is the header file also
> #included in your RC?

Yes

Scot T Brennecke

unread,
May 10, 2009, 1:09:08 AM5/10/09
to
Kai,
I was hoping those questions would lead to more detailed answers and perhaps some exploration of
the issues. However, it seems your responses got more terse, instead. Are you still encountering
the error? As I said, I generated a new program from scratch, using a wizard, and I added that
style to a slider control I added to the default "about box" dialog. I got no errors. Can you do
the same? If so, compare your problematic program to one that works.

Scot

"Kai" <K...@discussions.microsoft.com> wrote in message

news:F8B7AA32-2B1E-4473...@microsoft.com...

0 new messages