Search:
Type: Posts; User: wqweto
Search:
Search took 0.22 seconds.
-
Start from Windows Event Logs -- Application, System, etc.
Windows - no, malware - yes.
cheers,
</wqw>
-
Yes, As New declarations can happen with coclasses only (i.e. cannot use interface names).
For instance these 3 are equivalent:
Dim oStdPic As StdPicture
Set oStdPic = LoadPicture()...
-
How do you inspect default interface on a coclass with Object Viewer?
Here is a snippet from OLE View decompiled stdole2.tlb
typedef [public] Picture IPictureDisp;
[
...
-
Yes, having As Any parameters would be the true root cause.
There is no problem implementing IUnknown derived interfaces, just tested with oleexp.IContextMenu.
Casting such VBx implemented...
-
Limitation of VBx -- it needs implemented interface to derive from IDispatch because VBx can produce dual-interfaces only (i.e. IDispatch based ones) and cannot produce non-dual interface (i.e. not...
-
Easier to code or easier for the end-user?
Think of the end-user as having the crapiest mouse and being stricken with severe arthritis. The cannot click precisely, they miss clicks by 50 px at...
-
WAT? Of course the code is different with each implementation of IPersistStream.
This is like having Move method on a Form, FlexGrid and Image control and insisting that the code executed on Move...
-
The original code is doing this
If bEnabled Then
Call ImageList_Draw(vElem(ucsIdxSmallImageList), vElem(ucsIdxSmallIconIndex), hDC, Left + (m_lIndent + 6 - m_cxSmall) \ 2, Top + (Bottom -...
-
Check out the code of this GdipLoadPictureArray procedure. It implements the ByteArray -> SHCreateMemStream -> IStream -> GdipLoadImageFromStream -> GdipCreateHBITMAPFromBitmap ->...
-
Not possible as I don't have handy owner-drawn combobox in standard controls to implement the UI in the screenshot. Bummer!
cheers,
</wqw>
-
I see a pointer, I dereference it :-))
This is like an API which returns LPWSTR which has to be CoTaskMemFree'd. Usually one copies the string to a BSTR immediately and deallocates memory to...
-
Let me send you an invitation for https://github.com/VBForumsCommunity
(Anyone can send me a direct message with one's account on github.)
cheers,
</wqw>
-
No, this is not what the original code does and besides you cannot implement user-controls in Excel (or VBA) to test it.
The original MouseMove event is a handler in a user-control so pvSetCapture...
-
No, it does not.
The original purpose of SetCapture/ReleaseCapture API functions is to be able to receive WM_MOUSEMOVE on a hwnd (so called capturing window) even when mouse pointer is outside its...
-
https://i.giphy.com/3xkNUy3Vh8QbPmJZjK.webp
-
Keep in mind that StdPicture persistence was enhanced in subsequent version of Windows so there is a possibility of a user-control picture saved at design-time on Win7 to not load at run-time on...
-
8 is pretty small size for a MAC and thats why you can get away with Currency here. The array is not passed on the stack, it’s just a pointer and obviously you have to declare the Currency ByRef...
-
You still have to initialize VB runtime on exported functions the way it’s done on thread entry proc in multi-threading scenarios. I mean this approach will likely have the same issues with...
-
Are you operated from sense of humor or your understanding of English language is lacking?
Satire -- go check the meaning of this word. And it's not your work which is getting ridiculed here if...
-
They probably don't want to waste their time but instead work and polish all of their submissions to CodeBank. . . Don't stop these people from contributing here with your half-baked codes :-))
...
-
This is from Visual Studio debugger.
In VB6 project options you can check Create Symbolic Debug Info and select No Optimization level if you don't want to deal with weird ASM sequences then start...
-
What is the primary key of xtblUsersAndRates? Do you have other candidate keys (i.e. UNIQUEs) on xtblUsersAndRates like on (relJobControl, relProjectControl, EmpID, Team) you are using for look up?...
-
You can peek at codegen at callsite as done by the native compiler here: https://www.vbforums.com/showthread.php?903302-How-to-call-a-Procedure-by-Name&p=5639104&viewfull=1#post5639104
-
This or make all methods Friend (which is faster than Private apparently which suck at callsite codegen)
Btw, in TB you have module attribute for its procedures to be excluded from global symbol...
-
Btw, something interesting from yesterday: VBA-FastDictionary
This works there:
Option Explicit
Private Sub Form_Load()
With New Dictionary
.Add vbNullString, 42
-
Possibly useful link: https://wixtoolset.org/
-
I very much doubt there is a quick and easy way to customize this short of recreating (duplicating) the dialog to include the new control at certain position.
-
Btw, using a SmartCard (like Yubikey tokens) requires entering PIN every time signtool.exe is invoked which apparently cannot be used unattended as this pops up a entry screen in the middle of the...
-
Do you need advise on which certificate provider/reseller to use or actual tools to do the code-signing?
There aren't many options on the tools: signtool.exe is the standard one and osslsigncode...
-
Weird! For private methods it does codegen VTable calls.
This class:
Option Explicit
Public Function Init() As Long
Test1
Test2
-
Btw, there is nothing this Add-in does that cannot be done directly with LinkSwitches setting without fiddling with linker replacement.
-
You are currently using certmgr.msc (not .exe) to view certificates in LOCAL_USER certificate stores.
You can use certlm.msc to view certificates in LOCAL_MACHINE certificate stores.
There are...
-
Also note that Int in Int(Rnd * 20) is important. Using CLng or leaving it without explicit conversion (i.e. simple Format(Rnd * 20, "00")) will result in bias in final distribution with both end...
-
This sounds logical but VB6 leaves some internal VBProject structures in final binary which allow traversing modules/procedures and finding offset/address is current process. Another thing is that...
-
Btw, you can typedef a long as VBHRESULT and use it instead of HRESULT in IDL source so to leave a vestige of the crime you comitted :-))
-
This happens by pressing Command1 in my repro above or some other way?
I've been pressing it continuously for 5 minutes already but it stays at 29 here.
cheers,
</wqw>
-
Your code does not leak anything here. Here is my best effort to recreate the form you are testing with: NoLeak.zip -- there are no leaks both in IDE and compiled.
I already told you -- ZIP your...
-
Btw, IsWin11OrGreater = (lngMajor >= 10& And (lngMajor = 10& And lngBuild >= 22000&)) is also incorrect (needs an OR)
cheers,
</wqw>
-
Posting attachments in these forums is like an IQ test -- few succeed.
cheers,
</wqw>
-
Most annoying for anyone coming from Java world :-))
Btw, it says max 39 characters here. VB6 is chopping off ~10% for whatever reason.
cheers,
</wqw>
|
Click Here to Expand Forum to Full Width
|