Thanks Rob (the Inback OZ :<}}), Got it working now.
Cheers
Tony
 
--- In [EMAIL PROTECTED], "crombierob" <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> Click  Project Menu  then click  Add Module
> 
> Paste your declares into there.
> 
> If you place the word Public in front of them, they will be 
available
> to any other Form (.frm)  or  Module (.bas) in your project
> 
> Rob Crombie
> The Inback OZ
> (Melbourne)
> 
> --- In [EMAIL PROTECTED], "Tim Rupp" <[EMAIL PROTECTED]> wrote:
> > Declare your functions as Private
> >  
> > Private Declare Function ....
> > 
> > -----Original Message-----
> > From: tonyevansau [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, October 18, 2004 9:23 PM
> > To: [EMAIL PROTECTED]
> > Subject: [vbhelp] Re: General_Declarations ????????????
> > 
> > 
> > 
> > 
> > Help - It did not work - The DLL I am trying to use is 
WIN95IO.DLL 
> > and in the instructions it says:-
> > 
> > Before we can use any of the functions contained within either 
DLL, 
> > we must declare them. These declarations are to be placed in any 
> > module in your program in the General_Declarations section. 
> > 
> > For 32bit VB (WIN95IO.DLL), use: 
> > 
> > Declare Sub vbOut Lib "WIN95IO.DLL" (ByVal nPort As Integer, 
ByVal 
> > nData As Integer)
> > Declare Sub vbOutw Lib "WIN95IO.DLL" (ByVal nPort As Integer, 
ByVal 
> > nData As Integer)
> > Declare Function vbInp Lib "WIN95IO.DLL" (ByVal nPort As Integer) 
As 
> > Integer
> > Declare Function vbInpw Lib "WIN95IO.DLL" (ByVal nPort As 
Integer) As 
> > Integer
> > 
> > Once you declare the functions, you will have two new commands 
> > available. These are vbInp and vbOut. vbOut is a statement and is 
> > used to send a bit to a port, like the following: 
> > 
> > When I place these declare statments in the General_Declarations 
area 
> > as you advised and try to run the program I get a compile error 
> > message that says " Declare statments not allowed as Public 
Members 
> > of object moduals" - What am I doing wroung this time please.
> > 
> > Tony








------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/k7folB/TM
--------------------------------------------------------------------~-> 


'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [EMAIL PROTECTED]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to