Hey guys,
I have created a small utility tool for VBA (Excel, Access, Word,.. ) but would like to know if this also works in vb6.
Are you for a test? :)
If it works also in vb6, then it will enable us to, with only 1 line of code, track errors, events, metrics right from vb6 apps with help from Microsoft Azure - Application Insights.
In one sentence: If you are familiar with Facebook Pixel or Google Analytics, then you know what I’m talking about, this is similar but for your vb6 apps (if it will work).
Here is a short video how this error tracking works in VBA (Excel):
https://youtu.be/6MUUXdmTWTY
And here is the detailed step by step guide how to setup in VBA (Excel):
https://www.vbatelemetry.com/full-gu...cel-workbooks/
In theory it should work also in vb6. Only thing that I can see is one code block.
but we can replace this with:
Here is the Excel VBA project. For this to work you also need to download a small client app from my site (it is free), and to setup your free Azure account (If you don't have one). Short steps are explained in the Excel Workbook.
TrackError Simple Sample.zip
If you still have vb6 on your machine, I would be very gratefull if you could test it and comment here on anything.
:):):) Thanks, Davor
I have created a small utility tool for VBA (Excel, Access, Word,.. ) but would like to know if this also works in vb6.
Are you for a test? :)
If it works also in vb6, then it will enable us to, with only 1 line of code, track errors, events, metrics right from vb6 apps with help from Microsoft Azure - Application Insights.
In one sentence: If you are familiar with Facebook Pixel or Google Analytics, then you know what I’m talking about, this is similar but for your vb6 apps (if it will work).
Here is a short video how this error tracking works in VBA (Excel):
https://youtu.be/6MUUXdmTWTY
And here is the detailed step by step guide how to setup in VBA (Excel):
https://www.vbatelemetry.com/full-gu...cel-workbooks/
In theory it should work also in vb6. Only thing that I can see is one code block.
Code:
#If VBA7 Then
Declare PtrSafe Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
#Else
Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
#End If
Code:
Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
TrackError Simple Sample.zip
If you still have vb6 on your machine, I would be very gratefull if you could test it and comment here on anything.
:):):) Thanks, Davor