Message 1 of 2
VBA & API function calls in break mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can anyone else confirm this...
That if API function calls are used to "user32" ... this will crash VBA AND AutoCAD (2007) when VBAIDE is in break mode...
(see below example)
Is there a alternate way of debugging code involving API calls OTHER than in break mode... an idea of the top of my head is with DEBUG.PRINT or MSGBOX "Stop" ...
I don't know if it is only the break mode that does this or if it is STOP processing pick in VBAIDE.
Private Declare Function SendMessageLong Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Declare Function SendMessageAny Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Message was edited by: hutch
isn't there an API Function guru here... that could provide some insight into this?
That if API function calls are used to "user32" ... this will crash VBA AND AutoCAD (2007) when VBAIDE is in break mode...
(see below example)
Is there a alternate way of debugging code involving API calls OTHER than in break mode... an idea of the top of my head is with DEBUG.PRINT or MSGBOX "Stop" ...
I don't know if it is only the break mode that does this or if it is STOP processing pick in VBAIDE.
Private Declare Function SendMessageLong Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Declare Function SendMessageAny Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Message was edited by: hutch
isn't there an API Function guru here... that could provide some insight into this?