Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds; generated 58 minute(s) ago.

  1. Replies
    7
    Views
    247

    Re: How do I quickly find a form?

    frmAbout suits me perfectly, thanks. Of course “full-length” search is available in every tree-view, list-view and listbox since NT4.

    Sometimes I doubt most of the people here are secretly...
  2. Re: VB6, Activex servers, Coinitialize and the upcoming PACKET_INTEGRITY enforcement

    Last time I fiddled with CoInitializeSecurity API it failed constantly in VB6 as there is no way to call this after CoInitialize but before any interface is marshaled in the process.
    ...
  3. Replies
    9
    Views
    317

    Re: Collection parameter ByRef vs ByVal

    No, this is not true for reference parameters. Cargo-culting and expert advice here has brought enough confusion in these forums. There is no "data copying" with references unless a custom marshaller...
  4. Replies
    12
    Views
    413

    Re: Partial function in VB6?

    To understand currying you have to have first-class functions in the language i.e. being able to assign functions to variables like Dim a As Variant : a = MyFunction is not available in VB6.
  5. Replies
    9
    Views
    317

    Re: Collection parameter ByRef vs ByVal

    > Is "reference" a pointer?

    Yes.

    The point is that r_col identifier in appendFooToCol body is also a parameter which can be a ByVal reference or a ByRef reference. In C/C++ parlance ByVal is a...
  6. Replies
    9
    Views
    317

    Re: Collection parameter ByRef vs ByVal

    Check out this sample code


    Option Explicit

    Private m_oCol As Collection

    Private Sub Form_Load()
    Set m_oCol = New Collection
    appendFooToCol m_oCol
  7. Replies
    18
    Views
    472

    Re: data arrival help select case

    @David_chan: The best way to avoid whatever toxicity you get from old members here is to *not* create new accounts once you get added to peoples ignore lists.

    This or read a book on VB6 -- the...
  8. Replies
    1,013
    Views
    43,166

    Re: Current Russia Ukraine tensions

    I do care and I am in EU but didn't know anything about any Brotherhood in Italy so will you just shut up already.

    Nobody wants to listen to badly articulated arguments of the communist party of...
  9. Replies
    12
    Views
    564

    Re: Can't get "Class" AddressOf to work

    Here it is in 3 lines of code (w/ 5 API declares)


    Option Explicit

    Private Declare Function VirtualAlloc Lib "kernel32" (ByVal lpAddress As Long, ByVal dwSize As Long, ByVal flAllocationType...
  10. Replies
    18
    Views
    472

    Re: data arrival help select case

    What do you think this code


    Select Case "ÈstartcodeÈ"
    Case "||error||"'

    . . .
    End Select

    . . . actually does?
  11. Replies
    12
    Views
    564

    Re: Can't get "Class" AddressOf to work

    Yes, that's basically the idea. The $1M question is which index (which address) is the one we need from this VTable?

    MST solution to this problem is to build a big fake VTable which point to...
  12. Replies
    12
    Views
    564

    Re: Can't get "Class" AddressOf to work

    If this was possible no one would bother writing thunks for this but directly solve the issue and continue churning code :-))

    TB has done this now. No extra thunking needed, just use lPfn =...
  13. Replies
    10
    Views
    2,014

    Re: Access the VBIDE library without add-ins

    That’s not the point of this thread at all. You can retrieve current project name by raising a runtime error (e.g. Err.Raise vbObjectError) and observing the Err.Source property should be current...
  14. Replies
    8
    Views
    364

    Re: Algorithm speed after compiled

    The “algorithm” you are using is trivial (a single loop) and this cannot be further optimized. The only option would be to stop using EM_FORMATRANGE which does not sound feasable. It is this message...
  15. Re: Help with winsock class module to create array as server.

    What you need in your server project is a separate class called RequestHandler or SessionHandler which wraps the accepting socket and calls back in the main (server) instance on receive or on...
  16. Replies
    10
    Views
    2,014

    Re: Access the VBIDE library without add-ins

    Btw, I'm currently using this property VbeRef in a standard .bas module


    ' Add reference to Microsoft Visual Basic 6.0 Extensibility
    Option Explicit

    Private Declare Function...
  17. Replies
    38
    Views
    1,048

    Re: Add-Ins, what do you use them for?

    Which version of MZ-Tools is stalling IDE load?

    I'm using version 3.0 and only problem I had is with custom shortcuts registration sometimes when an IDE is frozen and second is IDE instance is...
  18. Replies
    15
    Views
    412

    Re: This code doesn't wok in 64bit

    The funny part is that ASM source is missing and you are supposed to disassemble the x86 opcodes on your own *before* answering if rewriting the thunk in x64 is possible at all. Nice bait!

    cheers,...
  19. Re: Execute Public Method of a Class using CallWindowProc

    Think of CallWindowProc as a very dummy "trampoline" -- its calls the function at the address in it's first parameter while passing the next 4 parameters as actual arguments of the call.

    I.e. when...
  20. Replies
    15
    Views
    412

    Re: This code doesn't wok in 64bit

    Now that's an innocent looking request :-))

    cheers,
    </wqw>
  21. Replies
    11
    Views
    483

    Re: MSCOMM32.OCX Surprise??? / Windows 11

    In my experience with cheapos it's the serial port emulation driver which is the biggest problem and straight hangs when used with anything remotely 24/7 "Real Life Load" or for instance with...
  22. Re: Visual Small Basic v1.8.5 for kids and beginners

    After firing the IDE it was at around 45 seconds mark when I became completely annoyed by not being able to implement even a simple "Hello world" in this as advertised "Kids BASIC Language" because...
  23. Replies
    6
    Views
    285

    Re: option with block not set error

    Option Explicit does not prevent run-time errors.

    For instance this compiles:


    Option Explicit

    Private Sub Form_Load()
    Dim o As Object
    o = 3
  24. Re: Open source Programmers Editor, WorkItem Manager, Forms Editor released

    @M.Hamdy: Will you stop spamming old threads already?

    You risk all your back-links getting removed by mods in one sweeping blow.

    cheers,
    </wqw>
  25. Replies
    2
    Views
    167

    Re: Docking problem in VB6's VBE

    You can drag windows in IDE while holding Ctrl key so they don't dock at all and always remain floating no matter where your mouse points underneath.

    You don't need registry modification, just try...
  26. Replies
    20
    Views
    680

    Re: END Statement On Light-Weight Object

    Yes, it's the same in VB6.

    I just run VB6 IDE under debugger while terminating the project with End statement and can confirm IUnknown::Release stub is called (no mater how shaky LWO vtable+vptr...
  27. Replies
    20
    Views
    680

    Re: END Statement On Light-Weight Object

    No, this is not what is observed in VB6. Upon End statement/button the interpreter stops executing p-code incl. any code in Class_Terminate event impl.

    On run-mode to design-mode transition the...
  28. Replies
    4
    Views
    330

    Re: OLE action alert

    There is App.OleServerBusyTimeout property (and more similar) which control the timeout on remote method calls in VB6.

    I'm not sure modal *forms* in VB6 prevent out-of-process calls from happening...
  29. Replies
    20
    Views
    680

    Re: END Statement On Light-Weight Object

    Yes, your Release function in IDE is a short stub which calls into the interpreter passing a pointer to p-code which should get execute the body of the routine.

    On End (button or statement) when...
  30. Replies
    20
    Views
    680

    Re: END Statement On Light-Weight Object

    Your Release does get called but the interpreter is tearing-down the internal structs of the VBProject and refuses to execute (interpret) the body of the routine i.e Debug.Print statement is not...
  31. Re: Best Alternative to VB6 for teaching and training

    My boy is 12 and he is very keen on C/C++ for competitive programming at school which is the right approach -- get system programming right (incl. algorithms, computer architectures and ASM) and then...
  32. Replies
    8
    Views
    412

    Re: CTrickSubclass by The trick

    Let me know if you manage to crash it in IDE (e.g. clicking on Stop button or executing End statement) or compiled this way. I'll be most interested to fix it if I'm able to.

    cheers,
    </wqw>
  33. Replies
    8
    Views
    412

    Re: CTrickSubclass by The trick

    It seems that it's possible for UnmapViewOfFile API function in CTrickSubclass.Class_Terminate to get called while the thunk is executing subclass_proc ASM procedure so upon return from VB6 code the...
  34. Re: someone help with the server room list modification

    You can browse the sources of the PSC submission directly here.

    It says Call SockListen(Ws(0), "5106") in frmServer.frm exactly with the port being a string for no apparent reason.

    Yes, this is...
  35. Replies
    11
    Views
    483

    Re: MSCOMM32.OCX Surprise??? / Windows 11

    Don’t want to spoil the suspense but yes, MSCOMM32.OCX does work fine under Win11.
  36. Re: read/write to file binary unreadable

    In every crypto analysis the attacker usually has the program available (to disassemble) but never has the keys.

    It’s not possible to analyse or even think about security at all if the attacker...
  37. Re: read/write to file binary unreadable

    There are other *real* encryption methods which produce gibberish too.

    The main difference with the “POS code” you managed to find this time again is that your “encryption” can be...
  38. Re: windows 10 vpn connection yes / no how to auto accept it

    How do you show this “status bar”? What code do you use to dial this VPN? Search there for a flag which hides UI.
  39. Replies
    22
    Views
    667

    Re: C POINT Data Type passed ByRef in x64 ?

    It is exactly the same thing in x86 but fails spectacularly on x64 (as I found out recently). The point is that x64 calling convention uses *registers* for the first several parameters so you cannot...
  40. Replies
    14
    Views
    857

    Re: Another Winsock question

    To connect as client you don’t do anything outside of normal TCP connections. It’s your network routing which will deliver packets back and forth to the server you are reaching to.

    For...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width