How to access parallel port in VB6 & VC++(for win98 and

Status
Not open for further replies.

suneth

Newbie level 1
Joined
Aug 19, 2004
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
6
Help

Any body knows how to access parallel port in vb6 & vc++(for win98 and xp)

i donot know import DLL file to VB
[/code]
 

Help

Lots of info and tools here:
**broken link removed**

I don't know about VB+DLL.
 

Re: Help

suneth said:
i do not know import DLL file to VB
importing a DLL into VB is a very stright forward task as in :
Declaring the function within the DLL to be called in VB
Code:
Declare Function GetPixel Lib "gdi32" (ByVal HDC As Long, ByVal X As Long, ByVal Y As Long) As Long
then subsequently you can call the function with the corresponding parameters as in the declaration above. Note that in this code we are calling GetPixel function that is implemented within gdi32.dll .

You can found additional information in MSDN installation (I presume you've already installed it) and at https://www.flipcode.com/articles/article_vbdlls.shtml
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…