Click here to Skip to main content
16,005,125 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Add a text label to an image Pin
Christian Graus23-Sep-07 0:13
protectorChristian Graus23-Sep-07 0:13 
GeneralRe: Add a text label to an image Pin
tomsteven23-Sep-07 4:18
tomsteven23-Sep-07 4:18 
GeneralRe: Add a text label to an image Pin
Luc Pattyn23-Sep-07 4:30
sitebuilderLuc Pattyn23-Sep-07 4:30 
GeneralRe: Add a text label to an image Pin
tomsteven23-Sep-07 5:12
tomsteven23-Sep-07 5:12 
GeneralRe: Add a text label to an image Pin
Luc Pattyn23-Sep-07 6:50
sitebuilderLuc Pattyn23-Sep-07 6:50 
QuestionHow to Hide IP while connecting to different web sites ? Pin
Rizwan Bashir22-Sep-07 10:13
Rizwan Bashir22-Sep-07 10:13 
AnswerRe: How to Hide IP while connecting to different web sites ? Pin
GuyThiebaut22-Sep-07 10:50
professionalGuyThiebaut22-Sep-07 10:50 
QuestionDirectX AudioVideoPlayback: LoaderLock Pin
codemunkeh22-Sep-07 5:30
codemunkeh22-Sep-07 5:30 
Written an app to play some sounds for me, in time with a text file I've got displayed.
Uses Microsoft.DirectX.AudioVideoPlayback (April 07 SDK I believe) and consists of an array of 7 Audio objects, where each is set to a particular file by the following:

Imports DXAV = Microsoft.DirectX.AudioVideoPlayback

Dim audioTracks(7) As DXAV.Audio

Private Sub SetSound(ByVal trackID As Byte, ByVal soundName As String)
 Dim soundFullName As String = soundPath & soundName & soundExt ' Builds full filename
 If IO.File.Exists(soundFullName) Then
  audioTracks(trackID) = New DXAV.Audio(soundFullName)
 Else
  MsgBox("File not found: " & soundFullName & ".", MsgBoxStyle.Exclamation)
 End If
End Sub

The actual play/stop actions are simply audioTracks(trackID).Play() and Stop() calls.

However, when I run this, the audioTracks(trackID) = New DXAV.Audio(soundFullName) fails because:
DLL 'C:\..dahdahdah..\Microsoft.DirectX.dll' is attempting managed execution inside OS Loader lock.

I've seen LoaderLocks when using multi-threaded apps with calls to Me.Controls but my app is single-threaded.

Ninja (the Nerd)

Confused? You will be...

Questiondatabinding Pin
ejaz_pk21-Sep-07 21:28
ejaz_pk21-Sep-07 21:28 
AnswerRe: databinding Pin
pmarfleet22-Sep-07 0:51
pmarfleet22-Sep-07 0:51 
GeneralRe: databinding Pin
ejaz_pk23-Sep-07 9:56
ejaz_pk23-Sep-07 9:56 
GeneralRe: databinding Pin
pmarfleet23-Sep-07 10:49
pmarfleet23-Sep-07 10:49 
QuestionScreen size woes Pin
frankiebaby221-Sep-07 19:30
frankiebaby221-Sep-07 19:30 
AnswerRe: Screen size woes Pin
Christian Graus21-Sep-07 19:59
protectorChristian Graus21-Sep-07 19:59 
GeneralRe: Screen size woes Pin
frankiebaby221-Sep-07 20:34
frankiebaby221-Sep-07 20:34 
QuestionHow to write amount in words Pin
Swiss Mantoro21-Sep-07 15:55
Swiss Mantoro21-Sep-07 15:55 
AnswerRe: How to write amount in words Pin
Dave Kreskowiak21-Sep-07 16:11
mveDave Kreskowiak21-Sep-07 16:11 
GeneralRe: How to write amount in words Pin
Paul Conrad21-Sep-07 17:32
professionalPaul Conrad21-Sep-07 17:32 
AnswerRe: How to write amount in words Pin
Christian Graus21-Sep-07 16:12
protectorChristian Graus21-Sep-07 16:12 
AnswerRe: How to write amount in words Pin
parth.p22-Sep-07 0:45
parth.p22-Sep-07 0:45 
GeneralRe: How to write amount in words Pin
Dave Kreskowiak22-Sep-07 3:09
mveDave Kreskowiak22-Sep-07 3:09 
GeneralRe: How to write amount in words Pin
parth.p22-Sep-07 3:11
parth.p22-Sep-07 3:11 
GeneralRe: How to write amount in words Pin
Dave Kreskowiak22-Sep-07 3:23
mveDave Kreskowiak22-Sep-07 3:23 
GeneralRe: How to write amount in words Pin
Swiss Mantoro24-Sep-07 19:43
Swiss Mantoro24-Sep-07 19:43 
AnswerRe: How to write amount in words Pin
Colin Angus Mackay22-Sep-07 1:54
Colin Angus Mackay22-Sep-07 1:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.