I am trying to port a Windows program to Linux. I have never programmed in Linux and have very little idea what I am doing. I have managed to eliminate a lot of the errors I got in the G++ compiler on Linux and have traced most of the remaining ones to non existent variable types.
I took out the windows.h
file but I do know know what to do with the CALLBACK
, HANDLE
, DWORD
and HHOOK
variables. Apparently there is no equivalent to HANDLE
in Linux so I think I may have to rewrite some of the structure.
Can anyone explain what I should be doing or point me to some tutorials that teach me how to do these things in Linux?
My program runs a polling loop on an RS-485 network if that helps.