Click to See Complete Forum and Search --> : Please fix bugs


Vjy
February 22nd, 2007, 07:54 AM
Iam doing an application in VC++..

Iam getting errors like..

RegisterDeviceNotification() function undeclared identifiers
DBT_DEVTYP_DEVICEINTERFACE, undeclared identifiers
PDEV_BROADCAST_DEVICEINTERFACE, undeclared identifiers
HDEVNOTIFY, undeclared identifiers
DEVICE_NOTIFY_WINDOW_HANDLE undeclared identifiers

I tried with many header files.... but of no use..


http://lvr.com/hidpage.htm#MyExampleCode ..
in this site it is given to set WINVER to 0x500 or more in stdafx.h ......
I tried with it,
again errors like..
cannot open file '.\Debug\StdAfx.sbr': No such file or directory
fatal error C1017: invalid integer constant expression

Can anyone help me...

waiting for suggestions..
Thanks in advance..

Krishnaa
February 22nd, 2007, 08:05 AM
Get the latest platform SDK (http://www.microsoft.com/msdownload/platformsdk/sdkupdate/) and do a full rebuild.

alex_gusev
February 22nd, 2007, 08:07 AM
first of all try to remove all release and debug folders to start from scratch
second, that page you've pointed out states that you have to use WinDDK, so do you have it installed?

Vjy
February 22nd, 2007, 08:14 AM
Thanks for suggestions..

I didnot install DDK.

Regarding Platform SDK, Is there any no other chance....with the present one