Search:
Type: Posts; User: Victor Bravo VI
Search:
Search took 0.08 seconds; generated 6 minute(s) ago.
-
https://www.vbforums.com/image.php?u=147151&type=sigpic&dateline=1374042884
-
The Performance Counters API can give you more than just the memory usage of a process — it can also tell you the CPU usage of any process, the utilization of the CPU (including per core/thread...
-
Service Pack 6 for Visual Basic 6.0 (2004/3/25)
https://web.archive.org/web/20210413035615/https://www.microsoft.com/en-us/download/details.aspx?id=5721
Service Pack 6 for Visual Basic 6.0,...
-
-
See if the performance of the following WH_CBT hook solution is good enough for you:
Option Explicit 'In a Standard (.BAS) Module
Private Const HCBT_CREATEWND As Long = 3
Private Const...
-
Dependency Walker
Spy++ (download here)
Resource Hacker
Process Hacker (latest version here)
Process Explorer, Process Monitor & other Sysinternals Process Utilities
Explorer Suite
...
-
You might be interested in these ANSI/Unicode one-liners as well.
Typically, you don't need to use that API; simply letting the string go out of scope or setting it to vbNullString is enough...
-
From a comment in OptionBase1's link:
I don't know if VBA supports this, but you might want to consider using DDE, which VB6 has built-in support for.
-
Yes, there is, but be aware that Windows also has an upper limit:
-
Quite possibly the most compact solution:
MsgBox """" & CreateObject("Scripting.FileSystemObject").GetFileVersion("C:\My_Dir\My.exe") & """", vbInformation
-
Here's an alternative version:
Option Explicit
Private Const ALG_CLASS_HASH As Long = 32768
Private Const ALG_SID_MD2 As Long = 1
Private Const ALG_SID_MD4 ...
-
Well, yeah. As the name of that function implies, that simple code will only tell you whether 2 files are the same or not. If you need to know the exact byte range(s) of where 2 files differ, the...
-
I'm sorry, but can you please elaborate on what you mean by that?
-
https://www.vbforums.com/image.php?u=147151&type=sigpic&dateline=1374042884
-
Yes, as you would expect from a highly polished product, VB6 came with both a physical and electronic manual. In fact, Microsoft still hosts the electronic copy on their site to this day, as...
-
Well, you could begin with this chapter in the VB6 manual: Accessing DLLs and the Windows API.
After that, you might want to peruse these:
Win32 API Programming with Visual Basic
Visual...
-
I believe what's actually happening is that the (keyboard) focus is transferred to your alarm window, thus making it appear as if your document window is unresponsive.
Relinquishing (keyboard)...
-
Option Explicit
Private Declare Function AttachThreadInput Lib "user32.dll" (ByVal idAttach As Long, ByVal idAttachTo As Long, ByVal fAttach As Long) As Long
Private Declare Function...
-
Here's my reply in your thread.
-
The following quotes are from el84's post in the linked thread above.
Here are the relevant parts from the demo linked above:
Option Explicit
Private Enum BOOL
-
Try this.
https://www.vbforums.com/attachment.php?attachmentid=102911&d=1375178303
-
Hmm, I can't think of a reason why an elevated VB6 IDE wouldn't be able to properly register an add-in. 🤔
If you're still interested in that add-in, let me know and I'll send you a PM with a link...
-
There are Windows APIs designed exactly for this problem: AdjustWindowRect, AdjustWindowRectEx and AdjustWindowRectExForDpi.
Private Declare Function AdjustWindowRect Lib "user32.dll" (ByRef...
-
Here it is:
Option Explicit 'Connect.dsr
Private Declare Function SetWindowsHookExW Lib "user32.dll" (ByVal idHook As Long, ByVal lpfn As Long, ByVal hMod As Long, ByVal dwThreadId As...
-
Be careful, though...
And the winner of the international statistic of the year is...
Riding lawnmowers kill average of 70 people each year, injure 80,000 more
90 Americans Are Killed...
-
According to this (I've not verified it), yet another way of suppressing the screensaver is by handling the WM_SYSCOMMAND(SC_SCREENSAVE) message. But I agree with baka and the most popular answer in...
-
For future readers, here's a more efficient GetCookie/GetCookieEx implementation:
Option Explicit 'In a blank Form
Private Const ERROR_INVALID_PARAMETER As Long = 87
Private Const...
-
Here's another example using the same GetModuleFileNameExW API but with lesser process access rights:
Option Explicit 'In a blank Form
Private Declare Function CloseHandle Lib "kernel32.dll"...
-
Just post/send the WM_LBUTTONUP/BM_CLICK message:
Option Explicit 'In a blank Form
Private Declare Function PostMessageW Lib "user32.dll" (ByVal hWnd As Long, ByVal uMsg As Long, ByVal wParam...
-
It can be made even more concise:
Private Sub cmd_exit_Click()
Dim FN As Integer, strFileName As String
strFileName = "C:\lotto diary\OCR_8_2020_lottoPIK4" _
&...
-
[/QUOTE]https://www.vbforums.com/images/ieimages/2020/08/2.jpg
-
Private Type GUID
Data1 As Long
Data2 As Integer
Data3 As Integer
Data4(7) As Byte
End Type
Private Type NOTIFYICONIDENTIFIER
cbSize As Long
hWnd As...
-
Well, as you know, there's hardly anything that can't be done in VB6. LaVolpe happens to have already worked out how to accomplish that in this CodeBank thread. Apparently, it was inspired by a...
-
The usual approach is to associate a Property Page with the property, but you could also simply just allow developers to edit the control at design time.
...
-
I'm surprised the code in your Module1 doesn't cause a crash. The MonitorEnumProc procedure (myEnumDisplayMonitors in your code) that EnumDisplayMonitors calls is supposed to have 4 parameters but...
-
Why couldn't you set it at run time?
Private Sub Form_Load()
Label1.Caption = "Foo" & vbNewLine & "Bar"
End Sub
If you really must do it at design time, try this:
-
There appears to be a bug in the above hastily written code—rather than supplying a monitor handle to all 4 functions, the loop index was passed instead. This explains why the 1st iteration of the...
-
According to the documentation of the FileName Property:
-
I assume you are talking about the Multimedia MCI Control. If so, then...
I haven't tried this but according to the Command Property documentation, I believe it's "Save".
Check out MCI...
-
Microsoft has had a Magnification API since Windows Vista but unfortunately for VB6-compiled programs, they can't make use of it when running on a 64-bit OS.
|
Click Here to Expand Forum to Full Width
|