المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Parallel Port write in VC++



C++ Programming
04-02-2010, 08:31 PM
hi,
Everybody,
i am trying to use parallel port to send data to it using vc++, i have added LED's to know if it works fine.
I have included inpout32.dll in my system32 directory and inpout32.lib is linked to my project, i have even placed inpout32.dll at my projects directory.
When the project executes, it gives no error, but output doesnot appear at LEDs.
please let me know if there are any errors in my code below, or anything that can help me to see outputhttp://www.barakasoft.com/script/Forums/Images/smiley_frown.gif http://www.barakasoft.com/script/Forums/Images/smiley_squeamish.gif


#include
#include


void _stdcall Out32(short PortAddress, short data);


int main () {




Out32(0x378, 255);
printf("DTA SENT");


return 0;
}