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 --- In [EMAIL PROTECTED], Mark E <[EMAIL PROTECTED]> wrote: > Tony, > > When you in a VB project, double-click any form. This should take you to the Form_Load event. > > Above it, there will be 2 dropdown lists. The one of the left -- click it. There should be an entry called "General". Select it. You are now in the general declaration section of the form. > > BTW, welcome aboard. > > Mark > > > > > > tonyevansau <[EMAIL PROTECTED]> wrote: > > > Hi, My name is Tony and I live in Outback Australia and am new to > both this group and VB6 as you will see from the stupid basic > question I am about to ask. > > I am trying to write a small program to control a stepper from my > laptop via a controller board - I have found a DLL that will give me > the commands I need BUT (An't there always a "but")I need to put some > declaration code in a place I am told is the "General_Declarations" > area - My problem is that the VB6 book I have has NO mention of what > or where this is and the help file on my VB6 program is missing. > > I have searched the web but I can only find references saying things > like "put this statement in the General_Declarations area" but none > say where/what/how. > > Can someone please put me stright. > > Tony > The Outback OZ > > > > > > > > > > > '// ======================================================= > 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 SponsorADVERTISEMENT > > > --------------------------------- > 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 the Yahoo! Terms of Service. > > > > [Non-text portions of this message have been removed] '// ======================================================= 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 Sponsor ADVERTISEMENT <http://us.ard.yahoo.com/SIG=129h667c4/M=294855.5468653.6549235.3001176/ D=groups/S=1705115364:HM/EXP=1098235688/A=2376776/R=0/SIG=11ldm1jvc/*htt p://promotions.yahoo.com/ydomains2004/index.html> click here <http://us.adserver.yahoo.com/l?M=294855.5468653.6549235.3001176/D=group s/S=:HM/A=2376776/rand=174981660> _____ 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] <mailto:[EMAIL PROTECTED]> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . [Non-text portions of this message have been removed] ------------------------ 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/
