Greetings: Why not just do a Find and Replace the _Dev with Dev... Jim -----Original Message----- From: Che [mailto:che@xxxxxxxxxxxxxxxx] Sent: September 22, 2005 8:22 PM To: program-l@xxxxxxxxxxxxx Subject: [program-l] Re: vb: shaky editor Yup, all 245 meg of it. Like I said in the previous message, I already added the references to both the direct x and directsound libraries. I just don't get it. This code tutorial is much longer than this obviously, but I can't even get to the point of setting my secondary buffer up. ----- Original Message ----- From: "Will Pearson" <will-pearson@xxxxxxxxxxxxx> To: <program-l@xxxxxxxxxxxxx> Sent: Thursday, September 22, 2005 7:16 PM Subject: [program-l] Re: vb: shaky editor > Hi Che, > > Have you downloaded and installed the DirectX software development kit, > available from the Microsoft website? Visual studio only comes with the > tools necessary to create some types of applications, mainly business > applications. If you want to create other types of applications then you > need to download what are called software development kits, or SDKs for > short. These are pre-built components that you can use in your programs, > and the Microsoft ones tend to be free. DirectX, of which DirectSound is > a component, is one of these SDKs, you can download it from: > http://www.microsoft.com/downloads/details.aspx?FamilyId=3904B19A-02B9-447B- AB58-C12E2456E9BA&displaylang=en > > Will > ----- Original Message ----- > From: "Che" <che@xxxxxxxxxxxxxxxx> > To: <program-l@xxxxxxxxxxxxx> > Sent: Friday, September 23, 2005 1:03 AM > Subject: [program-l] Re: vb: shaky editor > > >> Imports Microsoft.DirectX.DirectSound >> >> Public Class Form1 >> >> Private _dev As Device >> >> Private _buffer As SecondaryBuffer >> >> _dev = New Device >> >> _dev.SetCooperativeLevel(Me.Handle, CooperativeLevel.Priority) >> >> End Class >> >> >> >> end of code >> >> This is the entirety of the code so far. >> >> I have added both the directx and directsound references prior to coding >> this. >> >> There are characters not reading in jaws through visual studios code >> form, apparently at random, though when I paste the code elsewhere, >> everything pastes correctly. I will assume the code I am writing in is >> sticking, kind of weird though. >> >> Also, is there an option to turn off this annoying error message? It >> keeps reminding me of the error each time I try to arrow up or down a >> line. >> >> Thank you for the help. >> >> Che >> >> >> >> Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e >> As System.EventArgs) Handles TextBox1.TextChanged >> >> End Sub >> >> End Class >> >> ----- Original Message ----- >> From: "Mark Long" <Mark.Long@xxxxxxxxxxxxx> >> To: <program-l@xxxxxxxxxxxxx> >> Sent: Thursday, September 22, 2005 6:37 PM >> Subject: [program-l] Re: vb: shaky editor >> >> >> You had best send the whole sub. >> >> ________________________________ >> >> From: program-l-bounce@xxxxxxxxxxxxx on behalf of Che >> Sent: Thu 22/09/2005 23:54 >> To: program-l@xxxxxxxxxxxxx >> Subject: [program-l] Re: vb: shaky editor >> >> >> >> I don't think so. Here is the way it is presented in the tutorial: >> >> Add the following >> to the form's Load handler: >> _dev = New Device >> _dev.SetCooperativeLevel(Me.Handle, CooperativeLevel.Priority) >> >> This comes after _dev has been declared. >> >> ----- Original Message ----- >> From: "Mark Long" <Mark.Long@xxxxxxxxxxxxx> >> To: <program-l@xxxxxxxxxxxxx> >> Sent: Thursday, September 22, 2005 5:45 PM >> Subject: [program-l] Re: vb: shaky editor >> >> >> Are you sure that it isn't an underline and a space at the end of a line? >> That would be a line continuation character. >> >> ________________________________ >> >> From: program-l-bounce@xxxxxxxxxxxxx on behalf of Che >> Sent: Thu 22/09/2005 23:23 >> To: program-l@xxxxxxxxxxxxx >> Subject: [program-l] vb: shaky editor >> >> >> >> I am working on a tutorial and putting in the code line for line as they >> have it listed. They have a variable name that starts with an underline: >> Code snippet: >> >> Private _dev As Device >> _dev = New Device >> end snippet. >> When I move off this line, I get an error saying declaration expected >> that >> is pointing to the line >> _dev = New device >> >> When I go through the line character by character, it is not showing me >> the underline before the dev in the editor. If I add an underline, it is >> still not showing it in the editor, and as soon as I arrow off the line, >> I >> get the same error. >> Is this just a jaws bug? Is there a way to verify that the underline is >> there? Why would I be getting an undeclared variable error when it looks >> like I have just declared the variable? I am copying this code line for >> line from the online tutorial, and it is coded for vb .net 2005 express >> beta, which is what I am using. >> >> Finally, how do I turn off this annoying error box that pops up >> everytime >> I try to edit my code? As it stands, I have to alt f4 it away, then f7 >> back >> to my form and arrow down to the line I need to edit. Gotta be a better >> way, eh? >> Much thanks, >> Che >> >> >> >> ** To leave the list, click on the immediately-following link:- >> ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] >> ** If this link doesn't work then send a message to: >> ** program-l-request@xxxxxxxxxxxxx >> ** and in the Subject line type >> ** unsubscribe >> ** For other list commands such as vacation mode, click on the >> ** immediately-following link:- >> ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] >> ** or send a message, to >> ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq >> >> >> >> ** To leave the list, click on the immediately-following link:- >> ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] >> ** If this link doesn't work then send a message to: >> ** program-l-request@xxxxxxxxxxxxx >> ** and in the Subject line type >> ** unsubscribe >> ** For other list commands such as vacation mode, click on the >> ** immediately-following link:- >> ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] >> ** or send a message, to >> ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq >> >> >> >> ** To leave the list, click on the immediately-following link:- >> ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] >> ** If this link doesn't work then send a message to: >> ** program-l-request@xxxxxxxxxxxxx >> ** and in the Subject line type >> ** unsubscribe >> ** For other list commands such as vacation mode, click on the >> ** immediately-following link:- >> ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] >> ** or send a message, to >> ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq >> > > > ** To leave the list, click on the immediately-following link:- > ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] > ** If this link doesn't work then send a message to: > ** program-l-request@xxxxxxxxxxxxx > ** and in the Subject line type > ** unsubscribe > ** For other list commands such as vacation mode, click on the > ** immediately-following link:- > ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] > ** or send a message, to > ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq > ** To leave the list, click on the immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] ** If this link doesn't work then send a message to: ** program-l-request@xxxxxxxxxxxxx ** and in the Subject line type ** unsubscribe ** For other list commands such as vacation mode, click on the ** immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] ** or send a message, to ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq ** To leave the list, click on the immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] ** If this link doesn't work then send a message to: ** program-l-request@xxxxxxxxxxxxx ** and in the Subject line type ** unsubscribe ** For other list commands such as vacation mode, click on the ** immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] ** or send a message, to ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq