Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.47 seconds.

  1. Thread: TwinBasic

    by wqweto
    Replies
    89
    Views
    6,796

    Re: TwinBasic

    This

    Class Test


    Private Property Get Data(ByVal First As Long, Optional ByVal Index As Long) As Long

    End Property

    Private Property Let Data(ByVal First As Long,...
  2. Thread: TwinBasic

    by wqweto
    Replies
    89
    Views
    6,796

    Re: TwinBasic

    This works in VB6/VBA


    Private Declare Function ArrPtr Lib "msvbvm60" Alias "VarPtr" (Ptr() As Any) As Long

    Public Sub Main()

    Dim arr() As Long
    Dim ptr As Long
    ...
  3. Thread: TwinBasic

    by wqweto
    Replies
    89
    Views
    6,796

    Re: TwinBasic

    Wow, now that's a mouthful! :-))

    Not sure if VB.Net has NameOf(MyClass), NameOf(MyMethod) and NameOf(MyParam) the way C# has but .Net languages are lacking compared to C/C++ as simple as __FILE__,...
  4. Thread: TwinBasic

    by wqweto
    Replies
    89
    Views
    6,796

    Re: TwinBasic

    Are Consts at module level still disabled like in


    Class cAsyncSocket

    Private Const MODULE_NAME As String = "cAsyncSocket"

    End Class

    This fails with "syntax error. no handler for...
  5. Thread: TwinBasic

    by wqweto
    Replies
    89
    Views
    6,796

    Re: TwinBasic

    Hey, no problem, I'm sure this will eventually work. I'll be putting everything in *the* single source file for now.

    Btw, just read the list with limitations and couldn't find anything about...
  6. Thread: TwinBasic

    by wqweto
    Replies
    89
    Views
    6,796

    Re: TwinBasic

    Cloning sample Std-EXE it seems I cannot add second source file for some reason, neither under Sources node, nor under a sub-folder I successfully made under it
    ...
  7. Thread: TwinBasic

    by wqweto
    Replies
    89
    Views
    6,796

    Re: TwinBasic

    How do we create *new* workspaces for Std-EXE/Ax-DLL for twinBASIC within VS Code? Am I missing the menu option or do we have to copy these from the samples?

    cheers,
    </wqw>
  8. Re: how to Draw rounded rectangle by vb6 GDI++?Draw a triangle

    This is known as Abstraction inversion anti-pattern. You are using SVG files to draw basic shapes when you'll need algorithms for drawing basic shapes to be able to implement something like a...
  9. Re: [VB6/VBA] JSON parsing to built-in VBA.Collections

    Here is how to use JsonDump, JsonKeys and JsonItem functions to "explore" the contents of a JSON file. First here is the final code:


    Private Sub Form_Load()
    Dim oJson As Object

    ...
  10. Replies
    36
    Views
    565

    Re: .txt files

    Try using DESC like this


    oRS.Sort = "Field7 DESC,Field8 DESC"

    cheers,
    </wqw>
  11. Replies
    167
    Views
    16,874

    Re: https://www.radbasic.dev/

    FYI, https://github.com/Planet-Source-Code/eddie-bole-summstats-v-1-00e__1-70874

    cheers,
    </wqw>
  12. Thread: TwinBasic

    by wqweto
    Replies
    89
    Views
    6,796

    Re: TwinBasic

    Eleven downloads already! :-))

    Edit: VS Code IDE needs getting used to but overall the compiler seems to work and is quite fast. Kudos!

    cheers,
    </wqw>
  13. Replies
    21
    Views
    461

    Re: Need help with a querry

    Yes, this is standard accounting and very wise decision *not* to track payments per document row item in the sales order but by the whole sales order document but to vindicate OP's db design one...
  14. Replies
    36
    Views
    565

    Re: .txt files

    You should have started with maximum file size, not speaking about "thousands" of lines which is puny.

    https://www.vbforums.com/images/ieimages/2021/04/3.jpg

    Say file is 10GB so that no one...
  15. Replies
    36
    Views
    565

    Re: .txt files

    How do you plan on sorting the .csv while keeping the entire file out of the program?

    Do you plan on using some implementation of mergesort that can sort a file without reading it into memory in...
  16. Replies
    36
    Views
    565

    Re: .txt files

    Do you need VB6 code with no extra references? What container do you plan on keeping your data in? Arrays or Collections?

    So you need a basic CSV parser in pure VB6 that can process file content...
  17. Replies
    36
    Views
    565

    Re: .txt files

    Here is something that can read .csv files into an ADODB.Recordset (needs project reference to Microsoft ActiveX Data Object 2.8 Library)


    ' Module1
    Option Explicit

    Public Function...
  18. Replies
    2
    Views
    161

    Re: Spinning Wheel Sound

    No, asynchronous means non-blocking so with async you issue PlaySound and don't wait for the sound to complete. This way you app can continue spinning while the sound is playing.

    Here is what I...
  19. Re: https://classicvb.net/samples peraphs o.t....

    . . . which is ironic because the sample has become obsolete long before its host expired :-))

    cheers,
    </wqw>
  20. Re: In a very large project, how to deal with thousands of interface classes?

    Merge several coclasses implementation into a single .bas module, not a class factory.


    A typelib shoud be ok declaring thousands of interfaces that could be implemented in some hundreds of .bas...
  21. Replies
    7
    Views
    220

    Re: MOD operator problems

    Or use some small EPSILON value to fix the Fix function and to implemented comparison to zero with |A| < EPSION using Abs function like this:


    Option Explicit

    Private Const EPSILON As Double =...
  22. Re: How do I increase the maximum allowed memory allocation in VB6?

    What's up with all these spaces?

    Anyway, this is *not* the original VB6.exe that ships with VB6 SP6.

    The original it is *not* flagged large address aware.

    You or some program/add-in you...
  23. Re: How do I increase the maximum allowed memory allocation in VB6?

    It is highly unlikely there is any artificial cap on maximum allocated chunk but a simpler explanation is that system (COM) heap in the IDE gets fragmented, so this way for instance although there is...
  24. Replies
    15
    Views
    999

    Re: LaVolpe clsWordArt problem / c32bppdib

    I have no idea what &H22009, &H21808 and &H22009 are as pixel format unless you use the named constants.

    The naming convention is A for straight alpha and PA for premultiplied alpha so...
  25. Re: [vb6] Class to make Image Controls Support PNG, TIF, GIF Animation

    VB.Image cannot display transparent StdPictures so you have to use AlphaBlendImage control. This is the second part of the problem when *painting* transparent StdPictures is not working.
  26. Re: Issue with Winsock and attempting to download HTTPS page

    You can use WinHttpRequest or XMLHTTP to send web API requests over https incl custom headers. Just search the forums for sample code her.
  27. Re: Issue with Winsock and attempting to download HTTPS page

    In te request use HTTP/1.1 not HTTPS/1.1

    There is no HTTPS protocol. Itís the same old HTTP protocol over TLS secured channel.
  28. Re: RC5 Simplest way to copy table from ADODB to SQLite

    Do you staticly link WebView2 loader library or is this DLL an external dependency that has to be shipped separately together with MS Edge?

    cheers,
    </wqw>
  29. Re: [vb6] Class to make Image Controls Support PNG, TIF, GIF Animation

    Try Set AlphaBlendImage1.Picture = AlphaBlendImage1.GdipLoadPicture(App.Path & "\02AlphaPNG.png") instead.

    There are several helper functions too: GdipLoadPicture, GdipLoadPictureArray,...
  30. Re: RC5 Simplest way to copy table from ADODB to SQLite

    It's VS2015 that can target v140_xp the so called "Visual Studio 2015 - Windows XP (v140_xp)" toolset which is the latest one that supports builds targeting XP.

    Another useful feature of VS2015 is...
  31. Re: [VB6/VBA] JSON parsing to built-in VBA.Collections

    True but there is no API interface designer in his right mind that would distinguish object keys of the API structures on case, so I really like how JsonItem is forgiving on case-sensitivity. It just...
  32. Re: [VB6/VBA] JSON parsing to built-in VBA.Collections

    JSON arrays and JSON objects are represented as VBA.Collections so easiest would be to just check with something like If IsObject(JsonItem(oRoot, "path/to/propery")) Then

    Usually the exact keys to...
  33. Replies
    15
    Views
    999

    Re: LaVolpe clsWordArt problem / c32bppdib

    You have to read up about premultiplied alpha vs straight alpha channel.

    https://microsoft.github.io/Win2D/html/PremultipliedAlpha.htm

    DIBs and AlphaBlend API work with premultiplied alpha...
  34. Replies
    167
    Views
    16,874

    Re: https://www.radbasic.dev/

    His machine currently does not have any COM ports! And next time instead of being passive-agressive just use "OLE-support" or "ActiveX-support" instead, not to scare the sh*t out of them poor...
  35. Replies
    15
    Views
    999

    Re: LaVolpe clsWordArt problem / c32bppdib

    I see now -- your arrSrcBytes array is being changed by some of the method calls.

    You can use something like Debug.Assert arrSrcBytes(K, H - Y - 1) = 15 after each and every method call to...
  36. Replies
    3
    Views
    313

    Re: Upload File on Server

    Here a minimal multipart/form-data based file upload in VB6:

    https://wqweto.wordpress.com/2011/07/12/vb6-using-wininet-to-post-binary-file/

    The php code there is minimal so easy to study the...
  37. Replies
    15
    Views
    999

    Re: LaVolpe clsWordArt problem / c32bppdib

    Use
    and blocks to format your code. Now you have lost the indentation and it's a PITA to read, let alone answer anything.

    Also try to submit working code. Something one can copy/paste into a...
  38. Re: (VB6) SSTabEx: SSTab replacement. Themed and with new features

    Just an idea: Before compiling you project right click in your code editor and choose Toggle->Break on All Errors menu option.

    This way when you try to compile you project the IDE will break when...
  39. Re: Question: How to pack files xml with the format TAR in Visual Basic 6??

    Yes, this problem was fixed in the latest 5c64d95 commit.

    Frankly no idea how that omission slipped but I know for sure that this repo is abandoned and will not see any more development.
    ...
  40. Replies
    41
    Views
    36,835

    Re: [VB6] 7-zip support

    No, 7-zip supports both .tar and .gz and both compression and decompression. Replied with more details to your other thread.

    cheers,
    </wqw>
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width