oder bei dieser deklaration:
Declare Function waveOutSetVolume Lib "winmm.dll" (ByVal wDeviceID As Integer, _
ByVal volR As Integer, ByVal volL As Integer) dann das hier:
System.Runtime.InteropServices.MarshalDirectiveException wurde nicht behandelt.
Message="PInvoke-Einschränkung: Es können keine Varianten zurückgegeben" & _
"werden."
Source="STEFL-Sprachlabor"
StackTrace:
bei STEFL_Sprachlabor_Recorder.MainForm.waveOutSetVolume(Int32 _
wDeviceID, Int32 volR, Int32 volL)
bei STEFL_Sprachlabor_Recorder.MainForm.SetVolumeStudent(Int32 _
VolumeWert, Boolean Muted) in C:\Dokumente und _
Einstellungen\Benutzer1\Eigene Dateien\Visual Studio _
2005\Projects\STEFL-Sprachlabor\STEFL-Sprachlabor\MainForm.vb:Zeile 319.
bei STEFL_Sprachlabor_Recorder.MainForm.TrckbarVolStudent_Scroll(Object _
sender, EventArgs e) in C:\Dokumente und Einstellungen\Benutzer1\Eigene _
Dateien\Visual Studio _
2005\Projects\STEFL-Sprachlabor\STEFL-Sprachlabor\MainForm.vb:Zeile 109.
bei System.Windows.Forms.TrackBar.OnScroll(EventArgs e)
bei System.Windows.Forms.TrackBar.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& _
m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, _
Int32 msg, IntPtr wparam, IntPtr lparam)
bei System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, _
Int32 msg, IntPtr wParam, IntPtr lParam)
bei System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr wparam, _
IntPtr lparam)
bei System.Windows.Forms.Control.ReflectMessageInternal(IntPtr hWnd, _
Message& m)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.GroupBox.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& _
m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, _
Int32 msg, IntPtr wparam, IntPtr lparam)
bei System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr _
wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
bei System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
bei System.Windows.Forms.Control.DefWndProc(Message& m)
bei System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons _
button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.TrackBar.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& _
m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, _
Int32 msg, IntPtr wparam, IntPtr lparam)
bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
bei _
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms_
.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 _
dwComponentID, Int32 reason, Int32 pvLoopData)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner( _
Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 _
reason, ApplicationContext context)
bei System.Windows.Forms.Application.Run(ApplicationContext context)
bei _
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase._
OnRun()
bei _
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Do_
ApplicationModel()
bei _
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Ru_
n(String[] commandLine)
bei STEFL_Sprachlabor_Recorder.My.MyApplication.Main(String[] Args) in _
17d14f5c-a337-4978-8281-53493378c1071.vb:Zeile 81.
bei System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence _
assemblySecurity, String[] args)
bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bei System.Threading.ExecutionContext.Run(ExecutionContext _
executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart() okay, da erste variante nicht so heftig aussieht, denk ich wohl, dass die schon "richtiger sein wird" nur steh ich grad voll aufm schlauch, weil alle gesehenen codebeispiele das so machen, wie ich in variante eins.
Wobei diese beispiele auch nicht für .net gemacht sind.
Wäre nett wenn mir jemand n tipp geben könnte. Greets, Jens
- Signaturen werden nur von Weicheiern ausgef?llt - |