Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.18 seconds.

  1. Replies
    10
    Views
    430

    Re: [RESOLVED] DLL from VC++ in VB6

    Only mentioned it because we already talked about it here and didn't want to come out as аnal-retentive or something.

    cheeers,
    </wqw>
  2. Replies
    10
    Views
    430

    Re: [RESOLVED] DLL from VC++ in VB6

    https://www.collinsdictionary.com/dictionary/english/youre-welcome

    cheers,
    </wqw>
  3. Re: How to get rid of a mysterious imprint on desktop screen

    We already talked about this and there is a fix in this commit:
    ...
  4. Re: How to get rid of a mysterious imprint on desktop screen

    In recent Windows selecting a menu option starts a fade-out animation which leaves an "afterglow" with the menu option selected.

    This is obviously implemented with a separate WS_EX_TRANSPARENT...
  5. Replies
    23
    Views
    892

    Re: c/c++ code for vb6 multithreading

    And this is a very polite way of saying it :-))

    When I first saw the code my WТF-per-minute metric sky-rocketed and I immediately jotted a reply with a lot of WТFs, LOLs and smilies but then just...
  6. Replies
    10
    Views
    463

    Re: Using IShellWindows.Register

    Built-in VarType function clears VT_BYREF flag on retval for sure.

    If you want ot keep VT_BYREF flag on assignment (e.g. on vLocal = vParam for vLocal to keep VT_BYREF flag if set in vParam) then...
  7. Replies
    10
    Views
    463

    Re: Using IShellWindows.Register

    This or try using a custom VB.Form for the initial prototype -- these seem to be marshaled easier, though still being private "classes".

    cheers,
    </wqw>
  8. Re: [RESOLVED]Is there a faster alternative for HTTP download? (URLDownloadToFile) ur

    How to do this? Show us some VB6 code.

    cheers,
    </wqw>
  9. Replies
    20
    Views
    477

    Re: Nested Collection Iterations

    Try this

    If o2.s = "002" Then
    c.Add o1
    End If

    The VBA.Collection enumerator does see changes to the linked list of the base object.

    It's possible to implement...
  10. Re: [RESOLVED]Is there a faster alternative for HTTP download? (URLDownloadToFile) ur

    This happens sometimes in these forums :-))

    For posterity:

    For large files download managers (used to) split these and use range requests with http protocol which will beat URLDownloadToFileA...
  11. Re: Sign and Signn Functions (w/o IF's, math only!)

    All right ó Iíll use built-in Sgn function so my crapy code is based on solid math principles and never try clever hacks again, I promise.

    Or I might borrow the succinct expression in OP instead,...
  12. Replies
    104
    Views
    4,876

    Re: VB6 Web Site/App Server

    The point is that the same URL using WinHttpRequest sends this to server



    GET /%22test%22?x=ABC%20DEF+"12345" HTTP/1.1


    . . . and the query string is somewhat *less* encoded than what chome...
  13. Re: [RESOLVED] Creating subset Collection of objects

    You can even mark str as default property and use sObj = "asdf" and Debug.Print sObj straight.

    cheers,
    </wqw>
  14. Re: Sign and Signn Functions (w/o IF's, math only!)

    Already told you it works for me and it's not wrong and works for most other programmers too (outside of VB land apparently).

    The definition I use is that Sign = 1 for Value >= 0 and I reap the...
  15. Re: Creating subset Collection of objects

    That would be hard to believe. Treating everything homogenously as a reference type has its drawbacks in performance.

    I thought they made some progress in reverse directions with value types in...
  16. Replies
    26
    Views
    1,898

    Re: Vb6 Community Compiler

    I though he already had a small test project. Why would you want a huge ASM listing of a (moderately sized) commercial project?

    cheers,
    </wqw>
  17. Replies
    26
    Views
    1,898

    Re: Vb6 Community Compiler

    Are you not anonymous in these forums or are you paying with a CC for some benefits here?

    When I was employed I had no remorse posting code produced by me during my day job in anonymous forums.
    ...
  18. Re: Creating subset Collection of objects

    Yes, the funny thing is this already happens for reference iterators (As Object or other) but somehow stumbled codegen for non-reference types.



    . . . but the price to pay is ginormous...
  19. Re: how to write in excel file of sql query result

    You need the x64 OLEDB provider. Might want to try x64 version from Microsoft Access Database Engine 2016 Redistributable if you are using newer Office.

    Use xp_enum_oledb_providers to make sure...
  20. Re: how to write in excel file of sql query result

    You have to install AccessDatabaseEngine_X64.exe on your SQL Server to have an x64 OLEDB provider capable of accessing Excel files.

    cheeers,
    </wqw>
  21. Re: Implementing interfaces that inherit from IDispatch

    Inheritance from IDispatch is normal. All VB6 classes inherit from IDispatch so when you implement these you are actually implementing interfaces that inherit from IDispatch

    All dual interfaces...
  22. Replies
    5,084
    Views
    425,439

    Re: Corona virus, China major city lockdowns, etc.

    I don't have a position on COVID and on the seasonal flu as deseases because I'm not educated enough. Still everyone should be free to do whatever they see fit for themselves and their family.

    Old...
  23. Replies
    5,084
    Views
    425,439

    Re: Corona virus, China major city lockdowns, etc.

    Wisdom is to know when to stop talking. Enough shaming and enough linking to old news I would say.

    cheers,
    </wqw>
  24. Re: how to write in excel file of sql query result

    You should first check your OLEDB providers installed on the SQL Server machine, use xp_enum_oledb_providers (extended) stored procedure for this


    EXEC master.dbo.xp_enum_oledb_providers

    . ....
  25. Re: Write an empty value for a Entry (for ini file)

    Perhaps, if someone understand what your are talking about.

    ImpulseRegistryAndINI is *not* a widely used component (far from it) so for bugs and misfeatures perhaps contact it's author/creators.
    ...
  26. Re: Sign and Signn Functions (w/o IF's, math only!)

    Works for me.

    Just don't use it if you don't like it :-))

    cheers,
    </wqw>
  27. Re: Creating subset Collection of objects

    This is a compiler shortcoming (pure lazyness). There is no reason As Object typed iter variable working ok but As String not to.

    Probably TB will allow this as it already has to provision failure...
  28. Re: Creating subset Collection of objects

    Try changing signature to ByVal MyParam As MyClass so that you can pass Variant typed variables for this MyClass typed parameter too.



    You are adding the object reference to the collection in...
  29. Re: Sign and Signn Functions (w/o IF's, math only!)

    Sign = 1 + 2 * (Value < 0)

    LOL :-))

    You cannot use comparison because its too easy.

    You cannot use Abs because Abs = Value / Sign(Value) i.e. Sign = Value / Abs(Value) which is just too...
  30. Replies
    104
    Views
    4,876

    Re: VB6 Web Site/App Server

    IMO the query string should not be escaped/decoded. My observations are that WinHttp converts query strings to utf-8 and encodes every byte with highest bit set using %XY in hex to be able to...
  31. Replies
    10
    Views
    258

    Re: numerical analysis

    WAT?! Functions don't grow on the interwebs by themselves? :-))

    I thought 1 function = 1 cucumber :-))

    cheers,
    </wqw>
  32. Thread: TwinBasic

    by wqweto
    Replies
    862
    Views
    282,037

    Re: TwinBasic

    Have you ever tried Common Lisp?

    You have all of these requested features there unlike any BASIC language known to mankind :-))

    cheers,
    </wqw>
  33. Replies
    9
    Views
    515

    Re: [RESOLVED] What causes this rectangle ?

    There are OS options that affect the thickness of the focus rectangle

    https://www.vbforums.com/images/ieimages/2022/01/3.png

    cheers,
    </wqw>
  34. Replies
    10
    Views
    373

    Re: Management of sql server using vb6

    Here is the T-SQL code to backup and restore a copy of @SourceDbName into @DestDbName


    --- parameters
    DECLARE @SourceDbName sysname = '?'
    , @DestDbName sysname = '?'

    ---...
  35. Replies
    10
    Views
    373

    Re: Management of sql server using vb6

    Easiest would be to backup and restore your database under a new name from Management Studio if this is a one-time copy.

    If you have to do it from a VB6 application that would be a lot of T-SQL...
  36. Re: [RESOLVED] Treeview (VB6 version) ... detecting hovering/underlining

    Btw, OCM_NOTIFY depends on parent hwnd reflecting WM_NOTIFY.

    VB.Form does it but there could be a controls container that does not (e.g. VB.UserControl or PictureBox), so placing a TreeView...
  37. Re: Calling function of Exe project in referenced aticvex project in vb6

    I'm not sure you will be able to use arg1 As Control on public interfaces for out-of-process marshaling. User-controls references in VB6 are a mess. There are surrogate interfaces involved, OCAs...
  38. Re: Compile-time error 450 on accessing the default member of a collection

    The parentheses in VBx are awfully overloaded. The (1) suffix here can mean 1. a function call with one parameter, 2. an indexed property access, 3. an array indexing, 4. default property + 1. or 2....
  39. Re: Can't see mapped network drives from VB6

    You can't run Explorer elevated.

    You *can* run Map Network Drive elevated though with something like this:


    Rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL Connect

    Try Win+R, paste the...
  40. Re: We are trying to migrate a VB5 program (50k Lines) to VB6 encountering multiple e

    It's a complete fiction, at least after SP6.

    This works both in IDE and compiled


    Option Explicit

    Private Sub Form_Click()
    Dim Value As Long
    MySub Value
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width