Search:

Type: Posts; User: wqweto

Page 1 of 13 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    138
    Views
    3,391

    Re: Should i learn VB6?

    I thought this was common knowledge, old news.

    Apparently only VB6-ers have the "decency" to observe this phenomenon :-))

    cheers,
    </wqw>
  2. Replies
    8
    Views
    143

    Re: Procedure is too large.

    This generates code that compiles and can be debugged ok:


    Option Explicit

    Private Sub Form_Load()
    Dim sCode As String
    Dim lIdx As Long

    sCode = sCode & "Private Sub...
  3. Replies
    8
    Views
    143

    Re: Procedure is too large.

    VB.Net has no such subroutine code size limitation as it's modern recently to compare. . .

    Just kidding of course :-))

    I've heard the 64k lines per module limit being hit but this IDE...
  4. Replies
    5
    Views
    114

    Re: Numbers, Numbers, Numbers

    @fafalone: Check out this gist on how to produce huge string arrays by splitting concatenated multi-row consts.

    cheers,
    </wqw>
  5. Re: CommonDialog: update file extension automatically when user changes file type

    I did before previous post.

    Do you want me to post some screenshots? (I would capture output from your code with and without the flag if possible.)

    Edit: Here it is "native" OFN on Win10
    ...
  6. Re: CommonDialog: update file extension automatically when user changes file type

    Is this OFN_EXPLORER flag?

    No, it doesn't help. There is a huge difference between OS provided open file dialog with OFN_ENABLEHOOK and without it on Windows 10 and everything since Vista.


    ...
  7. Replies
    5
    Views
    114

    Re: Numbers, Numbers, Numbers

    Btw, no need to go over manually removing unused routines because the linker already does this to get the final executable to *not* include unused code from .bas modules.

    For...
  8. Re: CommonDialog: update file extension automatically when user changes file type

    Btw, using OFN_ENABLEHOOK used to render old-style OFN dialog so I don't use if on Vista and newer. IFileDialog is the way to go for receiving notifications with new OFN style.

    Btw, a caveat I see...
  9. Re: [RESOLVED] Memory leak GdipCreateBitmapFromScan0

    Passing both stride = 0 and scan0 = NULL is supported use-case for creating empty images. This is what the oridinary Bitmap::Bitmap (int width, int height) constructor uses to create a blank bitmap....
  10. Replies
    9
    Views
    226

    Re: Application-level "Printer banding"

    That's what most printing solutions use to keep vector/text output for high DPI printers (image setters) in printer native PostScript/PCL/PDF format.

    For non-raster devices blitting bitmaps...
  11. Replies
    1
    Views
    81

    Re: Picture1.Picture Isnull()

    Try something like this:


    Select Case True
    Case Picture1.Picture Is Nothing, Picture1.Picture.Handle = 0
    MsgBox "Empty"
    Case Else
    MsgBox "Non-empty"
    End...
  12. Replies
    42
    Views
    1,065

    Re: [RESOLVED] Getting hWnd from VBIDE.Window

    Ooops, scratch this alt solution then.

    cheers,
    </wqw>
  13. Replies
    42
    Views
    1,065

    Re: [RESOLVED] Getting hWnd from VBIDE.Window

    The idea of xiaoyao's code is that if Caption property is writable then you can temporaty change the Caption to a unique string (a GUID) then use FindWindow API to locate the hWnd before restoring...
  14. Re: how can copy contents from websites or otherapp like as unicode in IDE vb6?

    You are waiting for some other idea/solution besides storing Unicode texts as hex/base64 encoded chunks in the source code or keeping them in a separate resource DLL?

    cheers,
    </wqw>
  15. Re: pos device,connect control payment success and process

    Well, I don't have the sources for "saman kish" neither "pardakht novin" devices but you can wait here some more until these vendors notice this thread if they are willing to share some documentation...
  16. Replies
    18
    Views
    336

    Re: Read Bitmap into a 2D array ?

    OP does not even have to use this as he already has the data from GetClipboardData(CF_DIB) available and can just use CopyMemory at this stage.

    In the pincipled sample code above GetDIBPointer...
  17. Re: how can copy contents from websites or otherapp like as unicode in IDE vb6?

    I'm positive it is reading ANSI source files (in current codepage) but stores strings as Unicode in the final executable.

    Why did you get questions marks in your first post if Unicode support is...
  18. Replies
    18
    Views
    336

    Re: Read Bitmap into a 2D array ?

    I just updated the sample above with some function from this thread.

    pvInitOverlayArray can be used to "overlay" a VB6 array or random type over DIB's lpBits with a 1D, 2D or more (up to 4D). The...
  19. Replies
    138
    Views
    3,391

    Re: Should i learn VB6?

    I plan on posting on Rust discourse servers (a.k.a. their vbforums.com) a sincere plea for helping the abandoned VB6 community re-writing the compiler as an open-source project in Rust.

    This could...
  20. Re: Is there anyway to build x64 exe by vb6ís compiler?

    Everyone downloaded in an attempt to nudge the magnifying glass. . . closer to the eyes :-))

    cheers,
    </wqw>
  21. Replies
    18
    Views
    336

    Re: Read Bitmap into a 2D array ?

    No, you have to use CreateDIBSection to create an hDib. Here is a working sample code:


    Option Explicit

    Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any,...
  22. Replies
    4
    Views
    288

    Re: 10tec IGrid ActiveX - Filter

    I think they have this *useless* feature very well developed, probably by popular demand.

    You don't need filtering data in the grid when you already have performant filtering in RDBMS (sqlite or...
  23. Re: Is there anyway to build x64 exe by vb6ís compiler?

    Wow, naked ladies in the screenshots! Must be good :-))

    cheers,
    </wqw>
  24. Thread: C++ DLL to VB6

    by wqweto
    Replies
    58
    Views
    4,891

    Re: C++ DLL to VB6

    Actually, yes. The analysis is correct!

    The assembly emitted does call ANSI-to-Unicode *and* uses __vbaFreeStrList run-time function to cleanup the As String result from the API call which is...
  25. Thread: C++ DLL to VB6

    by wqweto
    Replies
    58
    Views
    4,891

    Re: C++ DLL to VB6

    So this will allow using typelib declared cdecl imports in both compiled executable and IDE project?

    That would be the best solution if the compiler can save us the trouble of providing manual...
  26. Re: Is the VB6 community capable to grab the bull by its horns?

    TROLOLOL :-))

    cheers,
    </wqw>
  27. Re: how can copy contents from websites or otherapp like as unicode in IDE vb6?

    100% sure.

    VB6 sources cannot be Unicode encoded files i.e. the compiler cannot handle any Unicode/UTF-8 encoding.

    The only option is to store your arabic texts in the source files as...
  28. Replies
    18
    Views
    336

    Re: Read Bitmap into a 2D array ?

    I just recompiled my C/C++ project that I use to come up with sizes and offsets in GDI API structs and here is what came up for x64


    sizeof(DIBSECTION)=104
    offset(bmBits)=24
    You have to tweak...
  29. Re: pos device,connect control payment success and process

    You can search Ingenico site for any general codes.

    Doubt anyone of the POS providers is monitoring VBForums.com, so any waiting in here will be most fruitless.

    cheers,
    </wqw>
  30. Replies
    28
    Views
    1,886

    Re: JACMail4 with TLS 1.3

    On Send/Receive button Outlook downloads all "unread" messages from pop.gmail.com in a single connection, so I think it should be possible even with its non-compliant POP3 implementation.

    cheers,...
  31. Re: Memory leak GdipCreateBitmapFromScan0

    It can stabilize even faster if instead of on a timer the image allocation/free is done repeatedly in an infinite loop, optionally with a single DoEvents to make UI responsive.

    cheers,
    </wqw>
  32. Thread: C++ DLL to VB6

    by wqweto
    Replies
    58
    Views
    4,891

    Re: C++ DLL to VB6

    Yes, you have to deallocate it but your SysAllocStringByteLen API declare does not allow this. It has to be tweaked to return a raw Long pointer so it can be invoked like this


    Dim sText As...
  33. Thread: C++ DLL to VB6

    by wqweto
    Replies
    58
    Views
    4,891

    Re: C++ DLL to VB6

    This patch is not working (now and 15 years ago). You'd better get the whole thread google translated if you think my russian is that rusty :-))

    cheers,
    </wqw>
  34. Re: how to Get Sha512 Fast by vb6 use api CryptCreateHash

    You have everything to figure it out in the code you posted.

    Which part is slow for you? Have you micro-benchmarked it already?

    cheers,
    </wqw>
  35. Replies
    18
    Views
    336

    Re: Read Bitmap into a 2D array ?

    GetDIBits and SetDIBits actually *copy* DIB pixel data from/to the system DIB pixel buffer into a separate user-provided "offline" buffer.

    When you call CreateDIBSection the system allocates an...
  36. Re: pos device,connect control payment success and process

    Solution? You don't even mention the model of the device you are interested in.

    There is no general "solution" and there is no general "driver" to communicating with bank POS devices. Some use...
  37. Re: pos device,connect control payment success and process

    Sorry, I don't have sample code, only production code that you will not be able to compile without support classes which I'm unable to share.

    I'm still not sure we are talking about the same POS...
  38. Re: [RESOLVED] TreeView ... get Node index from Node hItem.

    This sucks!

    I'm using this with a reference to Microsoft Windows Common Controls 5.0 (SP2) in C:\Windows\SysWOW64\COMCTL32.OCX with OCX file version 6.0.81.5

    Is it with some other OCX version...
  39. Replies
    32
    Views
    891

    Re: Fix the TwipsPerPixel rounding?

    Yes, must be the Move method that fails only and if the UserControl is Windowless=True the SetWindowPos hack is impossible.

    Also if you set Align property so that the parent form repositions the...
  40. Replies
    138
    Views
    3,391

    Re: Should i learn VB6?

    It's hard to be objective talking about VB6 when for N-th consecutive year VBA is the most disliked programming language on SO and most other sites while VB6 is ignored in those surveys as not worthy...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width