Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.58 seconds.

  1. Re: Here's how to execute any arbitrary x86 machine code from a VB6 program.

    Try switching “Turn on DEP for all programs and services except those that I select” on a client OS like Win10 and test again.

    You might be right you can get away without clearing NX flag on...
  2. Re: Run-Time error '429': ActiveX component can't create object. VB6 Deployment Pack

    Your .vbp project file contains all your dependent components (DLLs and OCXs). Either use IDE to list project references/components or directly inspect your .vbp in Notepad.

    Some of your dependent...
  3. Re: Create VB6 App Installation Package to install on latest Win OS's

    For any Windows past XP you just want to use regfree COM so that your VB6 apps can be used as portable ones so called XCopy deployable.

    After this use InnoSetup just to copy the files to a custom...
  4. Re: how to get Windows title bar color set in system (Win 10)

    Most logical would be to use CS_INACTIVE (=2) instead of CS_ACTIVE (=1) in call to GetThemeColor like this


    Result = GetThemeColor(Theme, _
    ...
  5. Thread: Parse a String

    by wqweto
    Replies
    12
    Views
    357

    Re: Parse a String

    Yeah, just have to skip the posts about any raindeers in this thread :-))

    Btw, the off-topic might be part of the reason it snowballed into Runtime Tiny C Compiler for VB6 towards the end which...
  6. Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    How many servers SO uses? 6?

    Cut that in half if it was written in VB6 :-))

    cheers,
    </wqw>
  7. Re: How to statically link a LIB or OBJ file in VB6!

    This is exactly what this proxy linker is meant to do. It allows you to selectively swap OBJ files with different precompiled ones (ASM or C/C++ based ones).

    The idea is to place same named...
  8. Re: Here's how to execute any arbitrary x86 machine code from a VB6 program.

    VTables are not executed so NX flag does not matter (can keep it as is).

    cheers,
    </wqw>
  9. Re: Here's how to execute any arbitrary x86 machine code from a VB6 program.

    No, this is not true when system-wide DEP setting is "Turn on DEP for all programs and services except those that I select" which is the default setting for server versions of Windows.

    So your...
  10. Re: Here's how to execute any arbitrary x86 machine code from a VB6 program.

    Btw, the overhead by DispCallFunc is significant even to CallWindowProc.

    The trick has shown a perfomant (zero overhead) method based on trampolines made of regular VB6 routines in a BAS module...
  11. Replies
    7
    Views
    343

    Re: PicServer problem

    https://www.keycdn.com/blog/resource-hints

    Your version of Firefox seems to be doing some form of page-wide preconnect on external links.

    cheers,
    </wqw>
  12. Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    Wait, using an external DLL for in-proc multi-threading is available since VB5 w/ at least a dozen commericial offerings too (mainly written in C/C++).

    Curland first demonstrated how to to do...
  13. Re: MSCOMM control freezes the VB6 IDE

    Most probably.

    You can use Process Monitor to examine your compiled executable's threads callstack upon it hanging but I guess that the background thread MSComm control uses for I/O to the device...
  14. Thread: l wonder

    by wqweto
    Replies
    15
    Views
    584

    Re: l wonder

    Can't remember details but sure FFT for real numbers in input still produces complex numbers in the output but is computationaly cheaper (than input with complex numbers).

    Isn't a sound buffer...
  15. Thread: l wonder

    by wqweto
    Replies
    15
    Views
    584

    Re: l wonder

    Sure! :-))

    Remember like it was yesterday the year I learned C++

    cheers,
    </wqw>
  16. Thread: l wonder

    by wqweto
    Replies
    15
    Views
    584

    Re: l wonder

    That's what I thought 30 years ago when I first decided to implement the "oscillator" to display frequencies from current playback like in WinAmp (though back then first version of WinAmp wasn't...
  17. Thread: l wonder

    by wqweto
    Replies
    15
    Views
    584

    Re: l wonder

    This is the CodeBank, not the general VB6 forum.

    Will report to moderators to move thread off CodeBank.

    cheers,
    </wqw>
  18. Replies
    9
    Views
    427

    Re: Peekmessage (API) instead of Subclassing

    When you use a custom message loop instead of the runtime provided one Form's navigation with keyboard becomes shaky and control's Validate event does not fire.

    Using custom message loop with...
  19. Re: Here's how to execute any arbitrary x86 machine code from a VB6 program.

    You might have troubles with NX (no-execute) access bit set on the virtual memory your thunk resides in. (Try executing your sample code compiled.)

    This technique is known as thunking in VB6 land...
  20. Replies
    11
    Views
    584

    Re: What are square brackets used for in VB6?

    I wish VB6 had *more* use of square brackets as escape sequence for identifiers in general. Currently only enum names and callsite function/property names can be escaped.

    It is not possible to...
  21. Re: Problem with VB6 ComboBox with style "DropDown List"

    Sure, but I've seen no end-user which uses this feature (I personally use it all the time) while in "DropDown Combo" style with sorted list all the end-users can "guess" that you can actually type in...
  22. Replies
    10
    Views
    415

    Re: Font used by MsgBox

    I get "Segoe UI" w/ size of 9 pt. for all the LOGFONTs in the non-client metrics:


    Option Explicit

    Private Const LF_FACESIZE As Long = 32
    Private Const...
  23. Re: Problem with VB6 ComboBox with style "DropDown List"

    "DropDown List" style is completely supplanted by "DropDown Combo" style so I *never* actually use it in any of my applications as it first looks ugly and second does not allow quick find on list...
  24. Replies
    20
    Views
    708

    Re: [RESOLVED] WIA Automation

    You would be probably better off with your own (simple) custom GDI+ wrapper class instead of trying to transfer byte-arrays back and forth between WIA and GDI+ I suppose.

    For instance Olaf has a...
  25. Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    It was first M. Curland who demonstrated that on the new thread a call to CoInitialize is not enough to get away with running other VB6 code but you have to explicitly initialize the VB6 runtime on...
  26. Re: Why is VB.Net/C#/XAML + VS2019 is better than VB6? Here's why.....

    JFYI, just fixed the links in the top answer on the SO questions so the in-process multi-threading sample is reachable through PSC organization on github.

    Completely agree that any kind of...
  27. Re: How do ActiveX DLLs actually store their exported functions?

    There are no "pointers to classes" per se. COM internals are easy to grasp once you have enough fundamental understanding about OS underlying systems.

    When you call a function in most languages...
  28. Re: Unable to select multiple controls using CTRL or SHIFT click

    If the issue is real all of you might try using manifested IDEs and greet XP look and feel just only like 20 years later. LOL
  29. Replies
    3
    Views
    229

    Re: Overflow using timeGetTime

    JFYI, timeGetTime is API can be hopelessly inaccurate in contrast to QueryPerformanceXxx functions.


    Option Explicit

    Private Declare Function QueryPerformanceCounter Lib "kernel32"...
  30. Re: Unable to select multiple controls using CTRL or SHIFT click

    I never seen this issue outside of manifested IDEs but this could probably be caused by compatibility shims too.

    Pretty sure that stock Windows 10 with normal VS6 + SP6 setup and no shortcuts...
  31. Re: Unable to select multiple controls using CTRL or SHIFT click

    This is a side-effect of using a manifest on the IDE with comctls version 6 referenced.

    You'll have to get used to it or drop the IDE manifest altogether.

    cheers,
    </wqw>
  32. Replies
    7
    Views
    273

    Re: Picturebox w/ transparency

    Try this windowless control which supports both key-color and per-pixel alpha transparency (and both simultaneously if needed) - https://github.com/wqweto/AlphaBlendImage

    cheers,
    </wqw>
  33. Replies
    6
    Views
    390

    Re: Windows Aero Effect in Form

    Use manifest for your IDE or test your project compiled to EXE w/ manifest.

    (I would have tested it myself whether this suggestion fixes anything if there was a project attached to your OP.)
    ...
  34. Replies
    16
    Views
    547

    Re: [RESOLVED] Select Case True

    There is no MsgBox “Hello 2” in the short-circuit OR sample above so it has to be the same code in both cases.

    There might be more than 2 sub-expresions like 10 of them.

    The body might be more...
  35. Re: VB6 QUESTION: Non-Modal message box in its own thread

    MSDN says flat out right that WinExec is left only for compatibility with source codes for 16-bit apps.

    It does not mention that LoadIcon comes from 16-bit ages (though it could be).
  36. Replies
    16
    Views
    547

    Re: [RESOLVED] Select Case True

    It does short-circuit OR expressions like If rs Is Nothing Or rs!DataField = 0 Then which bomb out otherwise on second sub-expression.
  37. Re: Can someone tell me about undocumented sections in VBP files?

    No, this was never leaked/documented by MS but was reversed by the guys at vbstreets.ru it seems. The original “author” even cried out loud here for not being credited for some other reversing work...
  38. Replies
    38
    Views
    1,386

    Re: [RESOLVED] Why can't Enum of VB6 be a string?

    Never heard of Edit&Continue in Lua or node i.e. putting a breakpoint, stopping execution, modifying current function and continuing with new code being executed. Is this already possible in Lua or...
  39. Replies
    16
    Views
    547

    Re: [RESOLVED] Select Case True

    I’m using it all the time. Very nice to have short-circuit And/Or in ancient VB6.
  40. Replies
    38
    Views
    1,386

    Re: [RESOLVED] Why can't Enum of VB6 be a string?

    The only other language you can find such symbiotic REPL is Common List considered by many the most powerful programming language ever conceived.

    VB’s editor keeps code semi-compiled and has E&C...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width