View Single Post
  #3 (permalink)  
Old June 1st, 2004, 05:06 AM
seeekvb seeekvb is offline
Registered User
 
Join Date: May 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to seeekvb Send a message via MSN to seeekvb Send a message via Yahoo to seeekvb
Default

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;

}



Reply With Quote