"using system" generates "undeclared" error. _outp also.
-
Hello, I´m trying to output a byte to parallel printer port using dev-c++. I´ve included dos.h and conio.h, and I´ve put inpout32.dll in the system32 dll folder, but when I try to compile, the compiler stops at the "using system" instruction. I`m not very experienced with C programming and am feeling my way around, as yet.What I´m trying to do is to send a signal which can be read by a PLC which will in turn open an automatic barrier to let a registered vehicle in. Can anybody help me out? Many anticipated thanks Andrew
-
Hello, I´m trying to output a byte to parallel printer port using dev-c++. I´ve included dos.h and conio.h, and I´ve put inpout32.dll in the system32 dll folder, but when I try to compile, the compiler stops at the "using system" instruction. I`m not very experienced with C programming and am feeling my way around, as yet.What I´m trying to do is to send a signal which can be read by a PLC which will in turn open an automatic barrier to let a registered vehicle in. Can anybody help me out? Many anticipated thanks Andrew
After the
#include <...>
lines, insert the following:short _stdcall Inp32(short PortAddress); */
void _stdcall Out32(short PortAddress, short data);and link with
inpout32.dll
Sample code:#include
#include
#include
short _stdcall Inp32(short PortAddress); */
void _stdcall Out32(short PortAddress, short data);//link with inpout32.dll
using namespace std;
int main()
{
cout<<"Parallel Port Interfacing"< -
Hello, I´m trying to output a byte to parallel printer port using dev-c++. I´ve included dos.h and conio.h, and I´ve put inpout32.dll in the system32 dll folder, but when I try to compile, the compiler stops at the "using system" instruction. I`m not very experienced with C programming and am feeling my way around, as yet.What I´m trying to do is to send a signal which can be read by a PLC which will in turn open an automatic barrier to let a registered vehicle in. Can anybody help me out? Many anticipated thanks Andrew
RealHigh wrote:
but when I try to compile, the compiler stops at the "using system" instruction.
Care to share the exact error message as well as the offending statement?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
After the
#include <...>
lines, insert the following:short _stdcall Inp32(short PortAddress); */
void _stdcall Out32(short PortAddress, short data);and link with
inpout32.dll
Sample code:#include
#include
#include
short _stdcall Inp32(short PortAddress); */
void _stdcall Out32(short PortAddress, short data);//link with inpout32.dll
using namespace std;
int main()
{
cout<<"Parallel Port Interfacing"< -
RealHigh wrote:
but when I try to compile, the compiler stops at the "using system" instruction.
Care to share the exact error message as well as the offending statement?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous