vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
Schützen Sie Ihre Software vor Software-Piraterie - mit sevLock 1.0 DLL!  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2025
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

VB.NET - Ein- und Umsteiger
Re: Problem mit Lautstärkeregelung per MCI 
Autor: GraveWarrioR
Datum: 05.09.07 13:13

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 -

alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
Problem mit Lautstärkeregelung per MCI2.859GraveWarrioR04.09.07 13:34
Re: Problem mit Lautstärkeregelung per MCI2.532GraveWarrioR04.09.07 14:42
Re: Problem mit Lautstärkeregelung per MCI2.784GraveWarrioR04.09.07 16:00
Re: Problem mit Lautstärkeregelung per MCI2.572GraveWarrioR05.09.07 13:13
Re: Problem mit Lautstärkeregelung per MCI2.787GraveWarrioR05.09.07 13:13
Re: Problem mit Lautstärkeregelung per MCI2.473GraveWarrioR05.09.07 13:34

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2025 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel