Click here to Skip to main content
15,891,248 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: RegisterDeviceNotification in dbt.h undeclared identifier?? Pin
«_Superman_»24-Jul-13 18:38
professional«_Superman_»24-Jul-13 18:38 
AnswerRe: RegisterDeviceNotification in dbt.h undeclared identifier?? Pin
«_Superman_»24-Jul-13 18:40
professional«_Superman_»24-Jul-13 18:40 
AnswerRe: RegisterDeviceNotification in dbt.h undeclared identifier?? Pin
Richard MacCutchan24-Jul-13 21:24
mveRichard MacCutchan24-Jul-13 21:24 
GeneralRe: RegisterDeviceNotification in dbt.h undeclared identifier?? Pin
Vaclav_25-Jul-13 7:17
Vaclav_25-Jul-13 7:17 
GeneralRe: RegisterDeviceNotification in dbt.h undeclared identifier?? Pin
Jochen Arndt25-Jul-13 7:43
professionalJochen Arndt25-Jul-13 7:43 
GeneralRe: RegisterDeviceNotification in dbt.h undeclared identifier?? SOLVED Pin
Vaclav_26-Jul-13 5:50
Vaclav_26-Jul-13 5:50 
AnswerRe: RegisterDeviceNotification in dbt.h undeclared identifier?? SOLVED Pin
Richard Andrew x6426-Jul-13 12:26
professionalRichard Andrew x6426-Jul-13 12:26 
GeneralRe: RegisterDeviceNotification in dbt.h undeclared identifier?? Pin
Richard MacCutchan25-Jul-13 9:14
mveRichard MacCutchan25-Jul-13 9:14 
Vaclav_Sal wrote:
Just noticed (in preview) that all #include lines have only #include in it!
Yes, because as has been suggested before, you should put your code blocks between <pre> tags (use the code button) like:
C++
#define WINVER 0x0500
#include <C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include\Winuser.h> 
#include <stdio.h>


Vaclav_Sal wrote:
AS I stated in OP - dbt.h DOES NOT define that function, only makes refrerence to it.
The link to the documentation that I provided earlier, clearly states that this function is defined in winuser.h and suggests including windows.h to get it. That will also ensure that you get the correct WINVER value for the platform you are building on.

Also, judging by the fact that you have to provide the full path for C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include\Winuser.h, your installation of Visual Studio has not been set up correctly, as this directoy should be one of the default include locations for all projects.
Use the best guess

QuestionProblem with loop in C++ Pin
Kripa Khanal24-Jul-13 5:40
Kripa Khanal24-Jul-13 5:40 
AnswerRe: Problem with loop in C++ Pin
pasztorpisti24-Jul-13 7:21
pasztorpisti24-Jul-13 7:21 
GeneralRe: Problem with loop in C++ Pin
Kripa Khanal25-Jul-13 12:06
Kripa Khanal25-Jul-13 12:06 
GeneralRe: Problem with loop in C++ Pin
pasztorpisti25-Jul-13 22:59
pasztorpisti25-Jul-13 22:59 
AnswerRe: Problem with loop in C++ Pin
Member 1014853124-Jul-13 16:13
Member 1014853124-Jul-13 16:13 
QuestionSerial Port Functor Pin
Jonathan Davies24-Jul-13 1:51
Jonathan Davies24-Jul-13 1:51 
AnswerRe: Serial Port Functor Pin
pasztorpisti24-Jul-13 3:29
pasztorpisti24-Jul-13 3:29 
AnswerRe: Serial Port Functor Pin
Chris Losinger24-Jul-13 10:26
professionalChris Losinger24-Jul-13 10:26 
GeneralRe: Serial Port Functor Pin
Jonathan Davies24-Jul-13 10:36
Jonathan Davies24-Jul-13 10:36 
QuestionGetModuleFileName and case sensitivity Pin
vikramlinux23-Jul-13 23:19
vikramlinux23-Jul-13 23:19 
AnswerRe: GetModuleFileName and case sensitivity Pin
«_Superman_»23-Jul-13 23:27
professional«_Superman_»23-Jul-13 23:27 
GeneralRe: GetModuleFileName and case sensitivity Pin
vikramlinux23-Jul-13 23:32
vikramlinux23-Jul-13 23:32 
GeneralRe: GetModuleFileName and case sensitivity Pin
vikramlinux23-Jul-13 23:36
vikramlinux23-Jul-13 23:36 
GeneralRe: GetModuleFileName and case sensitivity Pin
Richard MacCutchan24-Jul-13 0:25
mveRichard MacCutchan24-Jul-13 0:25 
AnswerRe: GetModuleFileName and case sensitivity Pin
SajeeshCheviry24-Jul-13 0:24
SajeeshCheviry24-Jul-13 0:24 
GeneralRe: GetModuleFileName and case sensitivity Pin
vikramlinux24-Jul-13 1:23
vikramlinux24-Jul-13 1:23 
SuggestionRe: GetModuleFileName and case sensitivity Pin
Richard MacCutchan24-Jul-13 4:56
mveRichard MacCutchan24-Jul-13 4:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.