Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 8.21 seconds.

  1. Replies
    2
    Views
    133

    Re: VB6 and True DBGrid 6 Issue.

    I would edit the project .vbp file directly, removing the line with Object={guid_here}#1.0#0; ole_true_db_grid.ocx or similar

    This will render your grids to pictureboxes. Again!

    cheers,
    </wqw>
  2. Re: How to programmatically force a WM_SIZING message

    You mean WM_SIZE message probably. Just refactor your WM_SIZE code into a separate function which accepts hWnd, NewWidth and NewHeight as parameters and call it both on WM_SIZE and from your menu...
  3. Replies
    36
    Views
    639

    Re: hao to call Sqlite3.dll with cdecl?

    I think I already had the same trampoline thunk tweaked for cdecl in my previous post or is it a different one?
  4. Replies
    4
    Views
    198

    Re: Hung but not hung

    Try https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-disableprocesswindowsghosting
  5. Replies
    5
    Views
    211

    Re: connect mysql server withouth connector

    Ouch! :-))

    cheers,
    </wqw>
  6. Replies
    36
    Views
    639

    Re: hao to call Sqlite3.dll with cdecl?

    NOPs do not take any CPU cycles on execution nowadays but I use these to align following offsets in the thunk so to make "codegen" of the variable NUM_OF_ARGS easier like this


    Option Explicit
    ...
  7. Replies
    36
    Views
    639

    Re: hao to call Sqlite3.dll with cdecl?

    You can use Visual Studio to write various functions with cdecl and stdcall calling conventions and so on (varargs etc.), call these from main and disassemble the emitted callsite code (with...
  8. Replies
    36
    Views
    639

    Re: hao to call Sqlite3.dll with cdecl?

    > so when we call that execution buffer. . .

    How do you call an execution buffer in VB6 is the problem. There is no need for an execution buffer to callback a function, just call the address of...
  9. Replies
    36
    Views
    639

    Re: hao to call Sqlite3.dll with cdecl?

    Aaaa, this is a nice one!

    Probably something like this would work


    0: 58 pop eax
    1: 89 84 24 XX XX XX XX mov dword ptr [esp+Xh],eax
    8: 58 ...
  10. Replies
    36
    Views
    639

    Re: hao to call Sqlite3.dll with cdecl?

    I though about tweaking the trampolines but for cdecl it would be more complicated.

    After the function returns the thunk will have to adjust stack with add esp, X to clear the arguments before...
  11. Replies
    1
    Views
    137

    Re: WIA 2.0 Vector.Add() method slow

    Here are some benchmarks on several VMs tested


    XP: Complete in 0.171
    Vista: Complete in 0.469
    Win7: Complete in 0.601
    Win8.1: Complete in 0.816
    Win10: Complete in 2.701 (not VM)...
  12. Re: how to read Excel workbooks without office excelapplication,without drives

    Images are stored as PNGs inside a folder much like xlsx format.

    It’s only XML parts that are stored as more compact BIN parts.
  13. Re: Access 2007 "Provider cannot be found" by VB6 after MS OneNote install.

    @PhuongNam: Please post in your own thread if you need reply from regulars here, do not hijack other (related or not) threads.

    cheers,
    </wqw>
  14. Replies
    4
    Views
    209

    Re: Pré-multiplying images

    Your image is already pre-multiplied.

    This works

    For x = 0 To bmi.bmiheader.biWidth * bmi.bmiheader.biHeight * 4 - 1 Step 4
    ' pix = BBYTES(x + 0): pix = pix * ABYTES(x) / 255:...
  15. Re: how to read Excel workbooks without office excelapplication,without drives

    @georgekar: The original purpose of ZipArchive was to be able to read/write .xlsb files -- the native binary BIFF12 worksheet format, not the diluted .xlsx XML based worksheet format made for...
  16. Replies
    33
    Views
    2,040

    Re: VB6 WebView2-Binding (Edge-Chromium)

    @xiaoyao: Does VFB have bindings for the WebView2 built-in?

    What's the point spamming every thread with links to it?

    @admins: Do cleanup my reply too, please.

    cheers,
    </wqw>
  17. Replies
    5
    Views
    290

    Re: Another json solution written for VB6

    This line


    If ch = "/" Then i = i + 1

    . . . should check for backslash instead IMO.

    You can try running all the tests from https://github.com/nst/JSONTestSuite with your parser to...
  18. Re: Access 2007 "Provider cannot be found" by VB6 after MS OneNote install.

    AFAIK there is no Microsoft.ACE.OLEDB.14.0

    The new Microsoft.ACE.OLEDB.16.0 OLEDB provider is very unfotunate decision, unless the change is big enough as from JET 3.51 to JET 4.0

    cheers,...
  19. Replies
    9
    Views
    680

    Re: [VB6] DirectX 11 for VB6 1.0 Type Library

    I'm certainly *not* a domain expert and I just ported the tutorials 1-to-1 and in the meantime created the typelib necessary to compile the code in VB6 but it is certainly lacking a lot of functions...
  20. Re: how to read Excel workbooks without office excelapplication,without drives

    Only .Net inside :-))
  21. Re: Excel - VBA: Code is generating unexpected numbers (0)

    These lines


    Range("D2:D2" & last).Select
    Selection.SpecialCells(xlCellTypeBlanks).Select
    Selection.FormulaR1C1 = "=R[-1]C[6]"
    must be the culprit.

    Btw, how did you get such '80s look of...
  22. Re: Microsoft PDF Printer - How do you set the file name and folder?

    Take a look at this repo: https://github.com/VBForumsCommunity/vbimg2pdf
  23. Replies
    4
    Views
    230

    Re: Filtered Recordset Structures

    > a filter applied to exclude records 1 and 4

    Is this something like rs.Filter = "ID <> 1 AND ID <> 4"?

    > if I clone the filtered recordset

    Is this something like Set rs2 = rs.Clone?

    For...
  24. Replies
    6
    Views
    324

    Re: Scatter Chart Problem - Hinky Plot Display

    This is hard to do in VB6 (not impossible).

    cheers,
    </wqw>
  25. Replies
    13
    Views
    697

    Re: sql autocomplete control?

    The problem with language parsers in editors is that these should understand broken syntax and recover. So this usually ends with some Error nodes in the AST. Also the problem of incremental...
  26. Replies
    9
    Views
    438

    Re: Gmail Authentication?

    > Gmail authentication via password

    You mean POP3 on port 995 with regular user/pass?

    I'm using App Passwords because plain user/pass auth on POP3 does not work for 2-FA accounts and have no...
  27. Re: VB6: how get RGB from ARGB color?

    Consider this snippet


    Option Explicit

    Private Sub Form_Load()
    Dim color As Long
    Dim r As Byte
    Dim g As Byte
    Dim b As Byte
  28. Replies
    9
    Views
    438

    Re: Gmail Authentication?

    Which authentication system? I'm using App Passwords w/ my gmail's POP3/SMTP mailbox as my google account has 2-FA turned on -- no problems with this.

    Have no idea how are we supposed to use "Sign...
  29. Replies
    18
    Views
    539

    Re: After form load, Combo Box is highlighted

    When you manipulate ListIndex *and* resize the control (set Width property or call Move method) the bug is manifested.

    I just fixed it in a custom multi-column combobox control of mine with...
  30. Replies
    18
    Views
    539

    Re: After form load, Combo Box is highlighted

    This is a *bug* in the built-in Windows combobox control and here is a repro: Add a CommandButton1 and Combo1 (in that order) and use this snippet


    Option Explicit

    Private Sub Form_Load()
    ...
  31. Replies
    6
    Views
    423

    Re: VB6 with Firebase

    It's simple: Firebird is a data-base and Firebase is a bird-in-the-clouds :-))

    cheers,
    </wqw>
  32. Re: VB 6.0 Project is not runing on Windows 10 what is reason

    This happens to some VB 6.0 Projects when there are latent bugs which get exposed by a change in the OS. For instance a project might start failing on Windows 10 Version 2004 while working on...
  33. Re: VB 6.0 Project is not runing on Windows 10 what is reason

    This is probably a bug in your VB 6.0 Project

    https://www.vbforums.com/images/ieimages/2020/11/3.jpg

    cheers,
    </wqw>
  34. Re: create a activex used combox and move all methods and properties to this new cont

    You can use Cltr+F9 to set next statement to be executed by interpreter. The same IDE command is available in the right-click context menu in the code editor during a debug session only.

    When IDE...
  35. Re: Loading a IniFile into a Dictionary

    Well, this is just an example how to access section Profiles and then element ProfilesCount within it.

    Check out Olaf's sample -- it's the same "model" he loads the .ini file to.

    cheers,
    </wqw>
  36. Re: [RESOLVED] VB6 command-line executable sending "result" code back to caller

    These are perfectly fine and I don't think there is anything else you can use in this regard. It's the OpenProcess that is superfluous. This is like starting a process and then attaching a debugger....
  37. Replies
    58
    Views
    4,117

    Re: Simulate TLS 1.3

    Yes. The TLS "backends" are written in Sans-IO manner so that the actual networking can be done with whatever socket library anyone would like to use.


    Yes. Newer CNG calls are kept to a minimum...
  38. Replies
    8
    Views
    468

    Re: MySQL (with VB6) questions

    Btw, MSSQL uses the same syntax for GRANT


    GRANT SELECT(employeeNumber, lastName, firstName, email) ON dbo.employees TO bob
    cheers,
    </wqw>
  39. Re: Loading a IniFile into a Dictionary

    Check this out


    Option Explicit

    Private Declare Function GetPrivateProfileSectionNames Lib "kernel32" Alias "GetPrivateProfileSectionNamesA" (ByVal lpszReturnBuffer As String, ByVal nSize As...
  40. Re: How is the behaviour of VB6 compiler while comparing two string?

    What else can it be besides some crypto constant-time implementation?

    cheers,
    </wqw>
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width