Quote:
quote:Originally posted by seeekvb
I have developed a Dll Using VC to access the Parallel Port of the Computer. It has only Two Function Inport(PortAddress) and OutPort( PortAddress, Data). these Funciton run on the VB Application very fine.
I want to develop the Web Site for this . FOr this Purpose I used the VB Scripting and made ASP Pages. There is a problem when I try to access the Functions of Dll. It gives me message Type Miss Match.
Please Help Me and tell me how my problem can be solved. Waiting your answers anxiously.
|
[u]Dll function is given below with data types</u>
int CALLBACK OutPort(int PortAddress, int data)
{
int ret;
ret= _outp(unsigned short(PortAddress),data);
return ret;
}
int CALLBACK InPort(int PortAddress= 888)
{
int data;
data = _inp(unsigned short(PortAddress));
return data;
}