I face a problem to insert the proper lpNumberOfBytesWritten which is the parameter 4 in WriteFile(). after build, it show error "cannot convert parameter 4 from 'int *' to 'unsigned long *'. i'm sending 1 byte of data to hDevice. WriteFile(hDevice,nPtr,1,1,NULL). what's wrong with the command?
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism
The trick is to virtually inherit from a base class…
One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.