dcsimg

Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    55
    Views
    1,119

    Re: Create and load Cursor from byte array.

    MST cleanup thunk has only one purpose in life -- on refcount=0 to call a initially designated destroy function on a specific 4-byte handle. This handle itself has to be stored in *another* m_hImage...
  2. Replies
    55
    Views
    1,119

    Re: Create and load Cursor from byte array.

    FYI, there is such cleanup thunk already implemented in MST that for instance I'm using here to perform socket cleanup to prevent End button/statement sockets leak esp. listening sockets cannot share...
  3. Re: I made an OS in VB - want input for improvement

    Even this is an overstatement as this is no VirtualBox or VMWare or whatever virtualization technology there is.

    This here is usually called "Shell" in terms of Windows. This would be a "Terminal"...
  4. Replies
    55
    Views
    1,119

    Re: Create and load Cursor from byte array.

    @LaVolpe: Off-topic (kind of), do you have any pointers about detecting GDI+ leaks? I recently debugged some nasty ones (missing a GdipDisposeImage on handle re-assignment) that only manifested by...
  5. Re: I made an OS in VB - want input for improvement

    You are pushing the limits of your understanding about what services an OS provides: processes, (cooperative) multi-tasking, STA appartments, multi-threading and general VB6 "COM confines".
    ...
  6. Replies
    55
    Views
    1,119

    Re: Create and load Cursor from byte array.

    Do this only if today you are in a juggle-chainsaws mood and playing with fire is simply not enough :-))


    Technically the resource memory gets deallocated which marks the very resource as...
  7. Replies
    7
    Views
    286

    Re: JcToolbars support shortcuts

    How do you deal with clients w/ laptops filing complaints about their battery draining out just too quickly when using your app?

    cheers,
    </wqw>
  8. Replies
    4
    Views
    309

    Re: New Windows 10 developments and vb6 apps

    I wouldn't dismiss UWP yet.

    Most cross-platform mobile development tools target Windows only through UWP which means that as win32 in the long run becomes irrelevant something along the lineage...
  9. Replies
    11
    Views
    764

    Re: [vb6] Thunks - A new breed

    Ouch! :-))

    cheers,
    </wqw>
  10. Replies
    11
    Views
    764

    Re: [vb6] Thunks - A new breed

    You already have 400-450 methods in default IDispatch vtbl "inherited" from VB's form/usercontrol base implementation. Of these significat percent are empty/dummy slots carried from legacy (VB3?)...
  11. Replies
    11
    Views
    305

    Re: LINE()-() on UserControl

    The next major advancement in display adapter technology was the Enhanced Graphics Adapter (EGA), which brought you a stunning 16 colors in a 640×350 grid with an aspect ratio of 1.83:1 . . . clearly...
  12. Re: Using DIR function with multiple specific file types

    PathMatchSpecW seems like a perfect fit from the wonderful world of shlwapi functions :-))

    The performance of Like operator is not that awful for the API to be much better but it's the # symbol...
  13. Re: (String search algorithm) Skip the contents of the quotes to find a substring

    You'll need a lexer that tokenizes the input for a non-paliative solution. jpbro's approach is pretty unextendable and falls flat with string literals and open/close brackets inside block/line...
  14. Re: Using DIR function with multiple specific file types

    Yes, and if 32k entries limit is expected to be reached then OP might try a direct MFT parsing approach on an NTFS volume too (although its greatest strength shows for recursive enumerations).
    ...
  15. Re: When pressing button to run procedure Кнопка7_Click(), the program works for 5 ho

    By fundamental changes I mean you have to use bulk-insert to a staging table and do the processing entirely w/ set-based SQL.

    For bulk-insert you can use somthing like this
    INSERT INTO...
  16. Re: Using DIR function with multiple specific file types

    The bottleneck when enumerating files/folders is *always* disk access. When enumerating *.bmp wilcard for instance, the OS has to read the contents of the whole directory so this is *not* faster than...
  17. Re: When pressing button to run procedure Кнопка7_Click(), the program works for 5 ho

    How many rows do you have in the source CSV?

    Кнопка7 just needs a transaction to wrap all those Subsru.AddNews in batches of 1000 or more. There are about 1000 micro optimizations (like getting...
  18. Replies
    11
    Views
    346

    Re: Extracting data from XML

    Try this:

    '-- in Else
    Dim oRow As IXMLDOMNode
    Dim oColumn As IXMLDOMNode
    Dim sRow As String
    For Each oRow In doc.selectNodes("//Rows/Row")
    sRow =...
  19. Replies
    11
    Views
    346

    Re: Extracting data from XML

    When dealing w/ SOAP services I'm applying a hybrid REST mode approach by using my mdJson.bas to convert XML to JSON and deal w/ it internally.

    For instance your service reponse can be converted...
  20. Re: Develop a JavaScript parser with VB6

    I've never done it personally. Although both are not very complicated languages, writing a programming language parser is always non-trivial IMO.

    Be prepared for bugs in whatever parser generator...
  21. Replies
    11
    Views
    346

    Re: Extracting data from XML

    This selectNodes like this

    ' replace `Else` part w/ this
    Dim oNode As IXMLDOMNode
    For Each oNode In doc.selectNodes("//Column[Name='Str_Production_Line']/Value")
    ...
  22. Replies
    21
    Views
    908

    Re: Display dpi scaling problem

    Technically you only need 2 executables for a hack like this. The main app is manifested and if DPI is non-integer it acts as the laucher by silently re-spawning a non-manifested clone.

    cheers,...
  23. Replies
    7
    Views
    244

    Re: Error at compiling: Not enough memory

    Try switching off Binary Compatibility to Project Compatibility for instance. This will reduce memory usage and increase compile speed in IDE.

    I'm unable to code in IDE w/ Binary Compatibility set...
  24. Replies
    29
    Views
    809

    Re: AddressOf Function in a Class Module

    I didn't test MST under x64 because the "Generate x64 binary" option is disabled in my VB6 project settings dialog. . . :trollface:

    But most certainly x86 thunks are not going to be runnable in an...
  25. Replies
    29
    Views
    809

    Re: AddressOf Function in a Class Module

    FYI, just pushed a self-contained timers sample in aeb3a16 commit. The sample frmWaitCompletion form has an API timer and does not depend on any standard module for the TimerProc.

    cheers,
    </wqw>
  26. Replies
    29
    Views
    809

    Re: AddressOf Function in a Class Module

    VB6 interfaces/classes are IDispatch based (and there is no way to author IUnknown based interfaces, only can implement foreign IUnknown based ones) so the first public method of a class has to be at...
  27. Replies
    7
    Views
    508

    Re: QR Code generator

    https://github.com/perevoznyk/quricol

    The source code of quricol32.dll (and a zip with compiled x86 and x64 binaries in Releases tab).

    cheers,
    </wqw>
  28. Replies
    29
    Views
    809

    Re: AddressOf Function in a Class Module

    SetTimer API expects you to pass an address to a function (pfn) of TIMERPROC type i.e. the callback function has to have exactly these parameters:


    void Timerproc(
    HWND Arg1,
    UINT Arg2,
    ...
  29. Re: Your first BASIC computer? Has your software survived?

    It was really very hard to find *anything* in the years we spent behind the iron curtain indeed. We in Bulgaria had Apple II clones called Pravetz 82 since. . . well '82 and my father brought home...
  30. Replies
    19
    Views
    762

    Re: [RESOLVED] Trying to implement IShellItem

    Doh! Poor testing on my part again.

    I had to *explicitly* cast Unk to IUnknown before comparing to IShellItemImageFactory objptr. . . Without casting it is IShellItemImageFactory objptr in...
  31. Replies
    19
    Views
    762

    Re: [RESOLVED] Trying to implement IShellItem

    @Olaf: It seems you are right! I have no idea why OP's code in #7 was not working on his *and* my machine in IDE.

    On second testing it's working fine here and peeking at the generated assembly...
  32. Replies
    19
    Views
    762

    Re: Trying to implement IShellItem

    @JAAFAR: Try this

    ' Not CRASHES HERE anymore !!!!!
    HRes = CallFunction_COM(pUnk, 8 * vtbl_IShellItemImageFactory.°GetImage, vbLong, _
    CC_STDCALL, 256 * &H100000000^ + 256, 0,...
  33. Replies
    19
    Views
    762

    Re: Trying to implement IShellItem

    Error &H8004B200 is caused by SIIGBF_THUMBNAILONLY. Pass 0 or SIIGBF_ICONONLY and it returns image for C: drive just fine.

    Is it still crashing on your machine? Here is a full dump of my...
  34. Replies
    19
    Views
    762

    Re: Trying to implement IShellItem

    @JAAFAR: Your SHCreateItemFromParsingName API declares result As Any. When you pass a reference variable VB inserts in implicit cast to it's type. When you call it w/ Unk the result is implicitly...
  35. Re: Is there a maximum DLL path length for Delcare statement?

    Best approach IMO.

    Leave the declares "bare" like Declare Function TccNew Lib "libtccwrapper" () As Long i.e. no path, no .dll suffix and lower-case filename only (like "user32" etc.)

    Then upon...
  36. Re: Variable names: Variant vs Explicit-Class-Name

    VT_BYREF flag adds *second* indirection for more bizzare use-cases.

    When you have a sText As String as a local variable the BSTR sText is a 4-byte pointer (i.e. 1-st indirection to actual string...
  37. Replies
    3
    Views
    305

    Re: vbSendmail Persistent Properties

    You have

    pbPersistentSettings = CLng(RegGet("PersistentSettings", "0"))
    If pbPersistentSettings Then
    ' load defaults from the registry
    utMail.sFromAddr = RegGet("From",...
  38. Re: How to programmically open a file by an application

    Only on a command line you *have* to quote these filenames. You quote filenames in a string only if this string is going to be parsed by CommandLineToArgvW API function.

    For instance when you use...
  39. Re: Which is faster RichClient cSortedDictionary or cCollection

    I'm sure Olaf has such one, will let him chime in.

    FYI, built-in VBA.Collection is a String<->Variant container too

    cheers,
    </wqw>
  40. Re: Which is faster RichClient cSortedDictionary or cCollection

    For best performance you have to specialize your container (e.g. in .Net you have Dictionary<string, string> or Dictionary<string, int> that are fine-tuned instances of the generic clss).

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



Featured


Click Here to Expand Forum to Full Width