VS 2005 Playing *.xm From Resource?
Aug 1, 2009
i am using bass.net.dll for playing a *.xm file in my application now problem is my *.xm file is in resource and the function bass.bass_musicload(<file name as string>,........) not support direct playing from resource.So is there any method to play it from resource,
View 3 Replies
ADVERTISEMENT
Sep 21, 2010
I have a VB.NET application that crashes on a client's computer with a BSOD error... KERNEL_DATA_INPAGE_ERROR.This error occurs at a point where my program does two things:
Locks the computer
Plays a sound in BackgroundLoop mode
For locking the work station, I am just using this:
<DllImport("user32")> _
Public Shared Sub LockWorkStation()
End Sub
For playing the sound, I am doing this:
My.Computer.Audio.Play(My.Resources.ResourceManager.GetStream("somesound"), AudioPlayMode.BackgroundLoop)
Now, this sound loops until the user logs back in. My software detects the session state switch and stops playing the sound. Sometimes when I log back in, the sound card plays garbage data for a split second, instead of the rest of the audio buffer. I get the impression that this has something to do with session switching.Could my client be having an issue where there is memory corruption occurring at the point of locking the computer?I apologize for the vagueness of this post... I am not sure where to begin as I cannot reproduce the problem myself.
Edit: If the sound is left to play on its own, even without locking the computer, eventually the computer will lock up and then bluescreen. Playing the sound while locking at the same causes it to happen sooner.
Edit #2: So I've seen it fail now. The sound loop starts playing correctly but quickly switches to looping of garbage data. It's as if it is just reading a random location in memory and looping that. Very strange behavior!
View 1 Replies
Aug 6, 2011
I have used DirectSound to play a wave file in my application using the function CreateSoundBufferFromFile. It works perfectly.Now I want to play files from a resource dll file. I have created 1n2v32.dll file having nearly 100 small wave files named 1,2,3... I can play them using LoadLibraryEx, PlaySound & FreeLibrary.Now, I am trying to use CreateSoundBufferFromResource function from DirectSound api to play these files. I get Run-time error '432': File name or class name not found during Automation operation I used the following code to create the buffer.
Set LDSB = LDS.CreateSoundBufferFromResource(App.Path & "1n2v32.dll", "14", BufferDesc, gw)
View 6 Replies
Nov 9, 2011
I embeded many audio file (.wav) in resources. I can inluded the following code to play a audio file My.Computer.Audio.Play(My.Resources.testWav, AudioPlayMode.Background)
But this command play only one audio file(testWav) I have two questions
1) Is there any way to play all audio files no matter how many files in Resources included in VB 2005 without typing all embeded audio file name? (using something like For Next statement)
2) Can I pass parameter to My.Computer.Audio.Play( , ), which means that when I choose one of files embeded in Resource, I just pass the chosen audio file to this command not specific file name(like testWav.wav)
View 10 Replies
Nov 24, 2009
I am using VS 2005 Professional and writing a guitar tuner app with visual basic. I have a 6 wav files that play in button click events using the My.Computer.Audio.Play() method. I need to animate a picture box meter while a wav file is playing. I have searched in the library, but I can't find any relevant info for checking if a sound is playing for vb. Is there a way I can check to see if the wav file is playing?
View 6 Replies
Apr 26, 2007
When i am connecting to my Access DB outside the resource folder of my project, database is updating.Why is it when i am adding the Database to my resource folder on my project,and after connecting it the database is not updating anymore...
View 8 Replies
Oct 6, 2010
I have added a .dwt file (autocad template file) to my project resources and i want to execute it when i click a button. How can i do that? I have searched a lot, but didn't find a solution.
View 6 Replies
Apr 10, 2009
I have just one form which is my project however there is a lot of different code behind it, can I add a class or module to it as another resource and call a script from there like I would in say
Private Sub button1_Click ... Handles Button1.Click
Call MyScriptToWorkThingsOutAndGetRemoteXMLWebPage
End Sub
View 1 Replies
May 24, 2011
is it possible to take a compiled help file and add this as a resource to an application and have it compile into the .exe? I know you can do this with graphics, The reason I ask is because the customer wants just an exe to distribute - not a whole install program.
View 3 Replies
Dec 18, 2009
I published my application using click once and created a zip file that I put on CD. (One folder with 3 files, another 2 files and a setup file were output).I then unzipped on my spare XP service pack 2 PC.Clicked setup, agreed to the license agreement and then I get....An error occured downloading the following resource:(That link will take you to the microsoft search page).Also, when I install this application it will be on PC's that WILL NOT have internet access.
View 18 Replies
Jan 22, 2010
How I can get the Media playing now playing using Sendmessege or wmp.dll?
View 5 Replies
Sep 11, 2009
I have created a resource directory loaded with 10 mp3 files in it and added it to the resources tab. The problem I am having is when the program is compiled and installed, it does not add the resource directory to the hard drive. I know that resources can be added into the applications files in the publish tab but cannot seem to figure out how to get it listed or added in there.I also took each mp3 and set the build action to Embedded Resource... That didnt help much though.The resource directory i want to include in the deployement is in my bin/debug/resources in the solution explorer.
View 6 Replies
Jun 4, 2010
How can you save a user input string to a resource? I want the user name that the user enters to be saved to a resource so that another form can use it. Or if using a module would work better, how would I do that?
View 3 Replies
Aug 25, 2011
How do I set button1.image to the image resource named in a string?
if my_string = "image1" then
button1.image = my.resources.image1
else if my_string = "image2" then
button1.image = "image2"
...
else if my_string = "image30" then
button1.image = "image30"
end if
Is there an easier way to do this?
View 3 Replies
Jun 3, 2011
I'm building a generic Class Library that I will use it in all my projects. However, I want to know how can I access Resource file from a Class Library?
View 8 Replies
Sep 14, 2009
how to load a XML file Embedded in the resource project?
I've do some google, but did not found anything useful
I've place my XML document in the project resource, and I wish to load it in a DataSet/Datatable.
View 2 Replies
Mar 4, 2010
I need to refer to some strings using an "indirect string" in the registry. It should be in this form:
@filename,resource
MSDN: "If the resource value is zero or greater, the number becomes the index of the string in the binary file. If the number is negative, it becomes a resource ID."How can I find out either of these numbers for my resources that only have names in VB? I also need the ID/index for the exe's icon.
View 2 Replies
Sep 7, 2011
this is really confusing.
I have resources named:
C1
C2
C3
C4
Now When I want to load Images, I am using rnd to get a random number in textbox so i am trying to get the same number in that image i.e.Picturebox1.Image = My.Resources.C & textbox1.text
But its not working so is there any other option?
View 2 Replies
Feb 5, 2010
I have a resource file that I include in my shared code library that has all of my re-usable classes in it (all the resources go into their own namespace). Now, what is the best practice regarding resources... should I include them in the same DLL, or should I have a seperate resource DLL and/or are there any benefits from seperating them out into their own file.
View 8 Replies
Feb 26, 2011
So i created resource file New --> new file --> Native Resource Template Then added icons with custom id, like "x", "u_100", .. so i understand, what the files (in my case icons) is.. And i saved as 32-bit resource file (*.res) So i have a question, how can i use these files inside of resource file in my apps? i know how to add icons in to my app.. Me.Icon = New Icon(C:/icon.ico)
View 6 Replies
Feb 15, 2012
I have been trying now for about 4 hours to get my vb.NET MD5 function to generate the same hash as PHP's This is my vb.net function:
Public Function MD5(ByVal input As String) As String
Dim x As New System.Security.Cryptography.MD5CryptoServiceProvider()
Dim bs As Byte() = System.Text.Encoding.UTF8.GetBytes(input)
bs = x.ComputeHash(bs)
[code]....
However, the hashing of some wtrings ("paSsword1" for example) work perfectly fine.Any ideas why? I have tried multiple methods of MD5 in vb.net. I can;t change the way it works in PHP because I'm writing a library to interface with a commercial application - I just need the hashes to be generated the same!
View 1 Replies
Mar 12, 2010
I'm trying to simply play a .mp3 file from my resources in my AxWindowsMediaPlayer. It works fine, up until I publish the project and try to run it. Then the player activates, says "Opening media", then "Ready", and then proceeds to do nothing. I'm using Visual Basic Express Edition 2008.
If
System.Diagnostics.Debugger.IsAttached() Then
ResourceFilePath = System.IO.Path.GetFullPath(Application.StartupPath &
[code]....
View 1 Replies
Jul 23, 2009
Is it possible to download a pls file and play it? it's basically streaming music, and I need to know if I can develop a way to play it through an application.
View 3 Replies
Oct 16, 2011
I'm trying to make a sort of 2D turn based battle system using GDI+. I'm calling the animation through a Game loop, the animation itself works fine however I have found that both animations play at the same time. I was wondering if anyone could tell me a way around this or a way to fix it?
View 6 Replies
Apr 12, 2010
I have decided that I want to learn a bit about sound and how it works so I thought that I would make an application that reads and plays MP3 files. I know that this will be very difficult and that I will be re-inventing the wheel, but it's all for the educational purpose. So my questions are; How does it work, how does Windows Media Player plays the data from the MP3 file? How can I, with the data provided in the MP3 file, know what to play, how it should sound? Which method would I have to approach to play the sound provided in the file? If you think that I have too little knowledge on the subject
View 4 Replies
Oct 15, 2010
I have the following code in my project: [code]The problem is, when I click the button, if the wav is not PCM I get the error: "Sound API only supports playing PCM wave files".This is fine but I want to play all wavs, mp3s and other types of files in my project. I read about using Flash but the only one example I found was for C#. My project is in vb.net. Is there no way to do this in vb.net? I absolutely do not want a player to appear in my application.
View 2 Replies
Oct 30, 2011
How i can play Byte OGG and Byte Wav from buffered byte?for example, There are one file contain some data and 1 wav file, the size of wav stored in offset 30 and wav sound started in offset 35, I buffer the byte like this:
[Code]...
View 8 Replies
Sep 24, 2009
I want to play a video on a VB form but not sure how to go about it All I want is to play a video that takes up the whole form and make a button that plays it
View 3 Replies
Jul 19, 2009
i need to decrypt a file by calling an exe.when i call this i need to supply password to that exe how can i supply the password programtically [code]this is what iam using to decript that file named V4933001.txt when i use this code a command promt will be poped up there i need to supply password.but i need to supply that password programatically
View 2 Replies
Oct 29, 2010
I need a function for my new project, the application I'm making for the PC is going to communicate with a PIC through USB. The problem I'm having is that I can't find a way for my .NET application to get the song that is currently playing like MSN can. I've been searching alot all over google but all I get is "how to play music in vb.net" and that is not what I'm looking for.
View 1 Replies