Click here to Skip to main content
15,883,336 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Hi,
Reading the below answers regarding serial ports made me wonder how safe these (below) calls would be considered. There's no need to pass anything to the constructor as in the reasons I read for using functors, and I only use them in this form because I wrote then when using STL and they're nice one liners really.
C++
hPort = CPortOpener()(hWnd, wszPort);
and
C++
CEditPortSettings()(hWnd, hPort, wszPort);
which use for instance:
C++
class CEditPortSettings
{
public:
    CEditPortSettings(void);
    
    long operator()(HWND hWnd, HANDLE hPort, std::wstring szPort)
    {
        ...
        return anyerror;    
    }

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 
GeneralRe: GetModuleFileName and case sensitivity Pin
vikramlinux24-Jul-13 16:56
vikramlinux24-Jul-13 16:56 
GeneralRe: GetModuleFileName and case sensitivity Pin
Richard MacCutchan24-Jul-13 21:13
mveRichard MacCutchan24-Jul-13 21:13 
Questioncalculated as 0 and 1 in a matrix Pin
yahya7723-Jul-13 8:06
yahya7723-Jul-13 8:06 
QuestionRe: calculated as 0 and 1 in a matrix Pin
David Crow23-Jul-13 9:08
David Crow23-Jul-13 9:08 
AnswerRe: calculated as 0 and 1 in a matrix Pin
Alan Balkany25-Jul-13 4:23
Alan Balkany25-Jul-13 4:23 
GeneralRe: calculated as 0 and 1 in a matrix Pin
yahya7725-Jul-13 5:50
yahya7725-Jul-13 5:50 

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.