Click here to Skip to main content
15,887,585 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Global key press Pin
Jochen Arndt10-Jul-18 21:21
professionalJochen Arndt10-Jul-18 21:21 
GeneralRe: Global key press Pin
Randor 10-Jul-18 23:53
professional Randor 10-Jul-18 23:53 
GeneralRe: Global key press Pin
Valentinor11-Jul-18 5:09
Valentinor11-Jul-18 5:09 
GeneralRe: Global key press Pin
Jochen Arndt11-Jul-18 6:40
professionalJochen Arndt11-Jul-18 6:40 
GeneralRe: Global key press Pin
Valentinor13-Jul-18 20:45
Valentinor13-Jul-18 20:45 
GeneralRe: Global key press Pin
Jochen Arndt13-Jul-18 21:00
professionalJochen Arndt13-Jul-18 21:00 
GeneralRe: Global key press Pin
Valentinor14-Jul-18 10:58
Valentinor14-Jul-18 10:58 
QuestionOnDeviceChange dbcc_name length Pin
Member 138991789-Jul-18 4:34
Member 138991789-Jul-18 4:34 
Hello,

I have registered USB serial devices for notification and get a device arrival & removal notice now in OnDeviceChange. However, always when I try to print out the dbcc_name, its length is one wide character (as defined in the structure documentation) and nothing more prints out. I have browsed countless examples where the code proceeds to extract for instance a VID/PID from the string. What am I doing wrong? The examples also give me one character. I am using windows 10 & VS2017.

I have even reserved a larger buffer for notification registration to fit in the full dbcc_name string. Nothing helps, just get that one character. I have also tried the WideCharToMultibyte and then instead of a Chinese character I get a single question mark. Please advise.
GeneralRe: OnDeviceChange dbcc_name length Pin
Richard MacCutchan9-Jul-18 5:26
mveRichard MacCutchan9-Jul-18 5:26 
GeneralRe: OnDeviceChange dbcc_name length Pin
Member 138991789-Jul-18 20:37
Member 138991789-Jul-18 20:37 
GeneralRe: OnDeviceChange dbcc_name length Pin
Richard MacCutchan9-Jul-18 21:04
mveRichard MacCutchan9-Jul-18 21:04 
GeneralRe: OnDeviceChange dbcc_name length Pin
Member 138991789-Jul-18 21:06
Member 138991789-Jul-18 21:06 
SuggestionRe: OnDeviceChange dbcc_name length Pin
David Crow9-Jul-18 16:24
David Crow9-Jul-18 16:24 
AnswerRe: OnDeviceChange dbcc_name length Pin
Jochen Arndt9-Jul-18 22:57
professionalJochen Arndt9-Jul-18 22:57 
GeneralRe: OnDeviceChange dbcc_name length Pin
Member 138991789-Jul-18 23:26
Member 138991789-Jul-18 23:26 
GeneralRe: OnDeviceChange dbcc_name length Pin
Jochen Arndt9-Jul-18 23:42
professionalJochen Arndt9-Jul-18 23:42 
GeneralRe: OnDeviceChange dbcc_name length Pin
Member 138991789-Jul-18 23:44
Member 138991789-Jul-18 23:44 
QuestionChanging Display gamma [SOLVED] Pin
Valentinor9-Jul-18 0:48
Valentinor9-Jul-18 0:48 
AnswerRe: Changing Display gamma Pin
Jochen Arndt9-Jul-18 1:05
professionalJochen Arndt9-Jul-18 1:05 
GeneralRe: Changing Display gamma Pin
Valentinor9-Jul-18 2:42
Valentinor9-Jul-18 2:42 
GeneralRe: Changing Display gamma Pin
Jochen Arndt9-Jul-18 2:59
professionalJochen Arndt9-Jul-18 2:59 
GeneralRe: Changing Display gamma Pin
Valentinor9-Jul-18 10:51
Valentinor9-Jul-18 10:51 
GeneralRe: Changing Display gamma Pin
Jochen Arndt9-Jul-18 21:00
professionalJochen Arndt9-Jul-18 21:00 
GeneralRe: Changing Display gamma Pin
Valentinor9-Jul-18 22:36
Valentinor9-Jul-18 22:36 
GeneralRe: Changing Display gamma Pin
Valentinor9-Jul-18 23:33
Valentinor9-Jul-18 23:33 

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.