Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    10
    Views
    395

    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...
  2. Replies
    10
    Views
    395

    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>
  3. Re: [RESOLVED]Is there a faster alternative for HTTP download? (URLDownloadToFile) ur

    How to do this? Show us some VB6 code.

    cheers,
    </wqw>
  4. Replies
    20
    Views
    400

    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...
  5. 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...
  6. 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,...
  7. Replies
    94
    Views
    4,178

    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...
  8. 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>
  9. 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...
  10. 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...
  11. Replies
    25
    Views
    1,656

    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>
  12. Replies
    25
    Views
    1,656

    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.
    ...
  13. 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...
  14. 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...
  15. 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>
  16. 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...
  17. Replies
    4,876
    Views
    419,657

    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...
  18. Replies
    4,876
    Views
    419,657

    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>
  19. 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

    . ....
  20. 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.
    ...
  21. 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>
  22. 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...
  23. 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...
  24. 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...
  25. Replies
    94
    Views
    4,178

    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...
  26. Replies
    10
    Views
    231

    Re: numerical analysis

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

    I thought 1 function = 1 cucumber :-))

    cheers,
    </wqw>
  27. Thread: TwinBasic

    by wqweto
    Replies
    861
    Views
    280,538

    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>
  28. Replies
    9
    Views
    451

    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>
  29. Replies
    10
    Views
    343

    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 = '?'

    ---...
  30. Replies
    10
    Views
    343

    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...
  31. 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...
  32. 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...
  33. 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....
  34. 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...
  35. 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
  36. Re: On Error GoTo label -- When exactly is 'Resume' required?

    Next has nothing to do with error handling :-)) Here is what happens:

    Initially current routine has an error handler installer with On Error GoTo Label.

    When an error occurs GoTo Label is...
  37. Re: Is anyone actually using LARGEADDRESSAWARE?

    You might still do this for performance reasons as Unsigned/PtrAdd is a performance killer for pointer intensive loops.

    Here is althogether another approach how to prevent pointer troubles in LAA...
  38. Replies
    23
    Views
    756

    Re: Super Precision Timer

    First your own form moving code (not the WM_NCLBUTTONDOWN hack everyone and you are using) then you own custom menubar and sub-menus, canít even imagine what next :))

    The moment you yield control...
  39. Re: Can't see mapped network drives from VB6

    Mapped drives in Win10 are separate lists for elevated and non-elevated processes.

    You have to map your drive twice from elevated and non-elevated command prompt to be sure itís visible from every...
  40. Re: On Error GoTo label -- When exactly is 'Resume' required?

    I would Never use error handling side-channel for doing actual ďworkĒ or signal state/retval in my routines.

    I would rather check something for Nothing than blindly calling methods on it and...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width