Страница: 1 | 
		
		 
			   
			 
			 
			 
			 Страница: 1 | 
 
			
 
  
		
     
  
    
Вопрос: ОШИБКА В КОДЕ 
     
    
Добавлено: 16.04.11 22:16
     
      
  
				
			  
					 
			
				 
    
		
       
    
Автор вопроса:  
    
 Coloss | ICQ: 479007356 
      
       
  
КОД:
 
    
Public Class Form1
    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
    Dim a As String
    Const VK_ESCAPE = &H1B
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        If GetAsyncKeyState(VK_ESCAPE) Then
            MsgBox("Ты нажал Escape!!!")
        End If
    End Sub
End Class
ТЕКСТ ОШИБКИ:
A call to PInvoke function 'WindowsApplication1!WindowsApplication1.Form1::GetAsyncKeyState' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
ВОПРОС: КАК ЭТО ИСПРАВИТЬ? 
				
		
		
					 
			
				 
  
		
     
  
    
Ответы
     
    
Всего ответов: 1
     
      
  
		
	  
			 
	
		 
    
       
    
Номер ответа: 1 
      
Автор ответа:
 EROS
![]()
![]()
![]()
![]()
Вопросов: 58
Ответов: 4255
 Профиль |  | #1
       
Добавлено:  16.04.11 22:50
       
    
       
  
 
    
заменить декларацию на корректную в соответствии с типами .NET