Click here to Skip to main content
15,916,042 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Change value to a thread Pin
Victor Nijegorodov29-May-19 23:01
Victor Nijegorodov29-May-19 23:01 
GeneralRe: Change value to a thread Pin
_Flaviu29-May-19 23:23
_Flaviu29-May-19 23:23 
GeneralRe: Change value to a thread Pin
Victor Nijegorodov30-May-19 0:46
Victor Nijegorodov30-May-19 0:46 
GeneralRe: Change value to a thread Pin
_Flaviu29-May-19 23:26
_Flaviu29-May-19 23:26 
GeneralRe: Change value to a thread Pin
leon de boer30-May-19 1:30
leon de boer30-May-19 1:30 
GeneralRe: Change value to a thread Pin
_Flaviu30-May-19 21:08
_Flaviu30-May-19 21:08 
GeneralRe: Change value to a thread Pin
_Flaviu30-May-19 22:12
_Flaviu30-May-19 22:12 
GeneralRe: Change value to a thread Pin
Victor Nijegorodov30-May-19 22:39
Victor Nijegorodov30-May-19 22:39 
GeneralRe: Change value to a thread Pin
_Flaviu30-May-19 23:57
_Flaviu30-May-19 23:57 
GeneralRe: Change value to a thread Pin
Victor Nijegorodov31-May-19 0:01
Victor Nijegorodov31-May-19 0:01 
QuestionKnow when a files has been copied Pin
_Flaviu28-May-19 5:36
_Flaviu28-May-19 5:36 
AnswerRe: Know when a files has been copied Pin
Richard MacCutchan28-May-19 5:50
mveRichard MacCutchan28-May-19 5:50 
AnswerRe: Know when a files has been copied Pin
Victor Nijegorodov28-May-19 20:37
Victor Nijegorodov28-May-19 20:37 
AnswerRe: Know when a files has been copied Pin
Dave Kreskowiak31-May-19 2:49
mveDave Kreskowiak31-May-19 2:49 
QuestionI have 3rd party . OCX file. which loads in HTML scripts and do desired work Pin
Gaurav__Kapoor26-May-19 22:12
Gaurav__Kapoor26-May-19 22:12 
AnswerRe: I have 3rd party . OCX file. which loads in HTML scripts and do desired work Pin
Richard MacCutchan26-May-19 22:35
mveRichard MacCutchan26-May-19 22:35 
GeneralRe: I have 3rd party . OCX file. which loads in HTML scripts and do desired work Pin
Gaurav__Kapoor27-May-19 2:17
Gaurav__Kapoor27-May-19 2:17 
GeneralRe: I have 3rd party . OCX file. which loads in HTML scripts and do desired work Pin
Richard MacCutchan27-May-19 3:40
mveRichard MacCutchan27-May-19 3:40 
QuestionClever macro to handle consecutive addresses with built-in static_assert Pin
arnold_w24-May-19 22:54
arnold_w24-May-19 22:54 
AnswerRe: Clever macro to handle consecutive addresses with built-in static_assert Pin
Stefan_Lang26-May-19 22:15
Stefan_Lang26-May-19 22:15 
Question"A rose by any other name would smell as sweet" - so what is the BEST name for "open_dev" function return? Pin
Vaclav_19-May-19 16:54
Vaclav_19-May-19 16:54 
Just experienced an interesting behavior of my code AFTER getting cute and using "socket" for name of the return from
hci_open_dev
.
The particular return was really described as "socket" - connection between processor and bluetooth "adapter" - but was originally named "sock".

After much search I realized that "hci" API names the return
"device descriptor"

and other known "opening device" function calls it "file descriptor".

Then I discovered "file handle " !
Is "handle" an ancient "windows OS" term ?

After this unpleasant experience I'll definitely NOT name anything "socket" , but I am curious what name would be really descriptive ( no pun intended ) for the return of generic "open_x" function ?

C++
dev_descriptor = hci_open_dev(dev_id);


And if you feel it is a matter of personal preference, you do not need to state that.
Maybe it is covered in today's "ANSI C standards" - if there is such a thing.

Cheers
AnswerRe: "A rose by any other name would smell as sweet" - so what is the BEST name for "open_dev" function return? Pin
Richard MacCutchan19-May-19 21:28
mveRichard MacCutchan19-May-19 21:28 
AnswerRe: "A rose by any other name would smell as sweet" - so what is the BEST name for "open_dev" function return? Pin
leon de boer20-May-19 3:01
leon de boer20-May-19 3:01 
AnswerRe: "A rose by any other name would smell as sweet" - so what is the BEST name for "open_dev" function return? Pin
jschell23-May-19 5:50
jschell23-May-19 5:50 
GeneralRe: "A rose by any other name would smell as sweet" - so what is the BEST name for "open_dev" function return? Pin
Daniel Pfeffer23-May-19 23:34
professionalDaniel Pfeffer23-May-19 23:34 

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.