Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.42 seconds.

  1. Re: Merge several OCX files ? (or extract them to get ctl/ctx and recompile another O

    - That's usually how it's done. Why would anyone compile a single user-control to a separate OCX file?
    - Very much default modus operandi too. Here is a snippet from a manifest of ours:


    <file...
  2. Replies
    6
    Views
    349

    Re: [RESOLVED] FAT32 Quick Format above 32gb

    @-Franky-: Declare Function FormatEx Lib "fmifs" is a nice find I didn't know it was accessible. Should make providing a Format utility trivial incl. quick format.

    cheers,
    </wqw>
  3. Replies
    15
    Views
    56,360

    Re: VB6 - Code128 A,B and C

    Your scanner is probably scanning EAN-128 instead.

    "EAN-128 – The UCC/EAN 128 barcode is a special form of Code 128. EAN-128 is based on Code 128 but it has a double start character. It is also...
  4. Replies
    6
    Views
    349

    Re: FAT32 Quick Format above 32gb

    https://github.com/usbtool/formatusb/blob/master/src/format_fat32.c

    It's not simple because there are no ready-made API calls to use. In sources above they resort to DeviceIoControl and directly...
  5. Replies
    5
    Views
    245

    Re: VBA-RapidOCR how can i changed to vb6?

    Best would be to ask in the github repo's Issues.

    cheers,
    </wqw>
  6. Replies
    19
    Views
    579

    Re: Confusion about Interfaces

    Something is very wrong with Office typelibs in general. The above "rule" is how the language is designed to work.

    My test:


    Option Explicit

    Sub Test()
    Debug.Print TypeName(New...
  7. Replies
    7
    Views
    371

    Re: Windows 11 and VB6 program problem

    Start from Windows Event Logs -- Application, System, etc.



    Windows - no, malware - yes.

    cheers,
    </wqw>
  8. Replies
    19
    Views
    579

    Re: Confusion about Interfaces

    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()...
  9. Replies
    19
    Views
    579

    Re: Confusion about Interfaces

    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;

    [
    ...
  10. Replies
    19
    Views
    579

    Re: Confusion about Interfaces

    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...
  11. Replies
    19
    Views
    579

    Re: Confusion about Interfaces

    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...
  12. Replies
    10
    Views
    498

    Re: Lightweight Windowed Control

    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...
  13. Replies
    19
    Views
    579

    Re: Confusion about Interfaces

    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...
  14. Re: Enum items in Devices and Printers possible on x64?

    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 -...
  15. Re: Use GDIPlus to display image from a resource file?

    Check out the code of this GdipLoadPictureArray procedure. It implements the ByteArray -> SHCreateMemStream -> IStream -> GdipLoadImageFromStream -> GdipCreateHBITMAPFromBitmap ->...
  16. Re: Enum items in Devices and Printers possible on x64?

    Not possible as I don't have handy owner-drawn combobox in standard controls to implement the UI in the screenshot. Bummer!

    cheers,
    </wqw>
  17. Re: Enum items in Devices and Printers possible on x64?

    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...
  18. Replies
    18
    Views
    893

    Re: RCFlexGrid Control (vbRichClient)

    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>
  19. Thread: LabelPlus

    by wqweto
    Replies
    43
    Views
    15,390

    Re: LabelPlus

    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...
  20. Thread: LabelPlus

    by wqweto
    Replies
    43
    Views
    15,390

    Re: LabelPlus

    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...
  21. Replies
    30
    Views
    1,456

    Re: MakeDLL problem

    https://i.giphy.com/3xkNUy3Vh8QbPmJZjK.webp
  22. Re: [RESOLVED] How to save and read a stdPicture from PropertyBag

    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...
  23. Re: Typelib translation: is in,out BYTE somevar[8] a pointer?

    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...
  24. Replies
    30
    Views
    1,456

    Re: MakeDLL problem

    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...
  25. Replies
    18
    Views
    893

    Re: RCFlexGrid Control (vbRichClient)

    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...
  26. Replies
    18
    Views
    893

    Re: RCFlexGrid Control (vbRichClient)

    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 :-))
    ...
  27. Re: [RESOLVED] Having issues trying to set up a class

    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...
  28. Re: SQL Server - requesting help debugging this stored procedure

    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?...
  29. Re: Having issues trying to set up a class

    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
  30. Re: Having issues trying to set up a class

    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...
  31. Re: RC6 error adding item to a cCollection with an empty string as a key (vb6 col can

    Btw, something interesting from yesterday: VBA-FastDictionary

    This works there:


    Option Explicit

    Private Sub Form_Load()
    With New Dictionary
    .Add vbNullString, 42
  32. Replies
    4
    Views
    1,037

    Re: Adding a Hyperlink In Wix ToolSet Version 4

    Possibly useful link: https://wixtoolset.org/
  33. Replies
    4
    Views
    1,037

    Re: Adding a Hyperlink In Wix Version 4

    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.
  34. Thread: Digital Sign

    by wqweto
    Replies
    6
    Views
    435

    Re: Digital Sign

    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...
  35. Thread: Digital Sign

    by wqweto
    Replies
    6
    Views
    435

    Re: Digital Sign

    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...
  36. Replies
    12
    Views
    558

    Re: How to call a Procedure by Name.

    Weird! For private methods it does codegen VTable calls.

    This class:


    Option Explicit

    Public Function Init() As Long
    Test1
    Test2
  37. Replies
    30
    Views
    1,456

    Re: MakeDLL problem

    Btw, there is nothing this Add-in does that cannot be done directly with LinkSwitches setting without fiddling with linker replacement.
  38. Re: VS - Creating your own code signing certificates

    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...
  39. Replies
    12
    Views
    558

    Re: How to call a Procedure by Name.

    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...
  40. Replies
    12
    Views
    558

    Re: How to call a Procedure by Name.

    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...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width