Well, you need to rethink your design. You should collect all the information related to the drawing as a result of user interaction, file processing etc. You then call InvalidateRect to tell Windows that your data has changed, and your window/client needs to be repainted. Then in the control you call your paint function in response to receiving a WM_PAINT message. It is at that point that you draw your lines, shapes, text etc.
Well, the first step is to create a query ( the easiest way would be to create it and test in the MS Access).
The second step - create the recordset that supports update and insert operations. See MSDN article [^] for details.
I am stumped again.
I have this macro which expect the parameter registerSAM to be a symbol , for example PIO_ODSR.
I like to pass such symbol to a function and just have no idea how to convert char* to such symbol.
The compiler is not much of a help, just flags an error.
I do not see any macro here, and I really cannot understand what all the above is supposed to do. It would really help, as I have suggested many times, if you showed the actual code clearly, and within <pre> tags so it is readable.
And I think you really do not know the answer and just wasting your time.
If you bother to follow the thread I did mention I tested it without the & and it did not work.
I suppose since I did not use code tags correctly it is my fault.
Thanks, go back to policing the posts. You do that very well.
Your size parameter values need to be scaled for output to a printer. When drawing to the screen 300 is the number of pixels, but when drawing to a printer it is the number of dots. See SetMapMode function (Windows)[^].
My application don't want to create any entry in registry. If I comment SetRegistryKey(_T("Local AppWizard-Generated Applications")) then application throw an Assert failure. How to overcome from this problem.