Search:

Type: Posts; User: jpbro

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. Re: Ask: The correct way to create an ActiveX DLL

    Why press 2 keys when you can press 6?

    Or should I say:

    ASK: Why press 2 keys when you can press 6

    Just teasing :p
  2. Re: Registry Free Object Instantiation using DirectCOM & RC6

    OK, I finally have something I'm happy with (for my own uses at least), and hopefully the latest version will be useful to others too.

    MRc6Base.bas is now MRegFree.bas and it includes a whole slew...
  3. Re: RC6 Collection PropTry Bug or Misunderstanding?

    I wasn't aware of the performance difference, thanks for the tip - I'll try to remember to modify my default behaviour and instantiate without VB6 collection compatibility in the future.


    ...
  4. Re: RC6 Collection PropTry Bug or Misunderstanding?

    Ahh, thanks Olaf. I can confirm that everything is working as expected after turning VB6-compatibility mode off.



    I think it would be a good thing if there's no technical reason not to have the...
  5. RC6 Collection PropTry Bug or Misunderstanding?

    I've just noticed the PropTry method of the RC6 cCollection object, and based on its name & method signature, I thought it might be a nice replacement for boilerplate "test if key exist/return...
  6. Re: Registry Free Object Instantiation using DirectCOM & RC6

    Thanks taishan. The more I think about it, the more I wonder if it makes more sense to make the Path* methods Private so that they are only used by regfree module, and leave the path handling outside...
  7. Re: Registry Free Object Instantiation using DirectCOM & RC6

    Don't get too excited yet, there's still one puzzle I'm working on re: IDE and compiled differences.

    The good news: Right now everything works great when compiled, and most things work just as...
  8. Re: Registry Free Object Instantiation using DirectCOM & RC6

    Only Olaf can answer that definitively - DirectCOM.dll is closed source. But you're right about it not being an ActiveX DLL, it's a standard DLL with the following magic function that instantiates...
  9. Re: Registry Free Object Instantiation using DirectCOM & RC6

    Updated March 20, 2024:

    Added new public methods:

    GetOrCreateObjectRegfree


    Public Function GetOrCreateObjectRegfree(ByVal p_DllName As String, ByVal p_ClassName As String, Optional ByVal...
  10. Replies
    35
    Views
    4,018

    Re: move cursor to beginning of line in textbox

    Just watched the video - if you are constantly replacing the text and there's always 4 hex characters separated by a space, why not use a label instead and just change the caption? Do you need to be...
  11. Replies
    35
    Views
    4,018

    Re: move cursor to beginning of line in textbox

    This works for TextBoxes with lines that wrap:



    Option Explicit

    Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageW" (ByVal p_Hwnd As Long, ByVal p_Msg As Long, ByVal...
  12. Replies
    3,455
    Views
    627,822

    Re: What song are you listening to right now?

    ----------------
  13. Re: Responding to an existing thread doesn't work

    Works for me every time (in Firefox at least, haven't tested any other browsers). But there's so much going wrong with the site right now, who knows.
  14. Replies
    6
    Views
    586

    Re: Major issue: Old zip being corrupted.

    I've been able to confirm (for attachments mid-August 2012 and earlier at least*) that the attachment files are thankfully not corrupted on the file system - the data is being mangled in transit by...
  15. Re: Responding to an existing thread doesn't work

    Try double-clicking "Reply with Quote", that works for me.
  16. Replies
    31
    Views
    1,194

    Re: VB6 COMMUNITY PROJECT - MSPAINT with Add-Ins

    You can reply with quote if you double-click Reply With Quote instead of the usual single click.
  17. Replies
    16
    Views
    1,478

    Re: Python under "Other Languages"

    IMO the only reason *any* other languages should be at VBforums is because VB programmers might come in contact with those languages within the scope of their VB programming. The only reasons a VB...
  18. Replies
    31
    Views
    1,194

    Re: VB6 COMMUNITY PROJECT - MSPAINT with Add-Ins

    Apparently gaouser is 11 years old, which (if true) means the point is just figuring stuff out I guess. At that age you should put a lot of focus on exploring and learning IMO - even if it's not...
  19. Re: VB6 fast EdgeDetection (direct Pixel-Manipulation on Cairo-Surfaces)

    Anyway this is all way off-topic, sorry Olaf. Conversation has been moved to the OffTopic twinBasic Discord.

    Mods, if you can please move the OT posts elsewhere once the fire(s) have been put out,...
  20. Re: VB6 fast EdgeDetection (direct Pixel-Manipulation on Cairo-Surfaces)

    All I can say is that neither curl nor wget can write the attachment data to disk, and AFAIK they both honour the content-length header and error out if there's a mismatch. So that seems to imply...
  21. Re: VB6 fast EdgeDetection (direct Pixel-Manipulation on Cairo-Surfaces)

    Ah well, thought that might have been the issue, but either way it doesn't seem to matter as even copying the exact HTTP request header from a browser request that works 100% of the time, doesn't...
  22. Re: VB6 fast EdgeDetection (direct Pixel-Manipulation on Cairo-Surfaces)

    Forgot that you need to be logged in to download attachments (and the referrer header probably needs to be set amongst others). Hoped that duping my browser request headers would work over openssl,...
  23. Re: VB6 fast EdgeDetection (direct Pixel-Manipulation on Cairo-Surfaces)

    Looks like netcat might be the ticket - it can slurp raw data over the network and won't stop until the connection is closed. Unfortunately vbforums.com returns nothing over Port 80/HTTP though, so...
  24. Re: VB6 fast EdgeDetection (direct Pixel-Manipulation on Cairo-Surfaces)

    I've been trying to do just that in case the server is actually sending the full data with the wrong content length, but the browser is chopping at the exact content length. ChatGPT gave me a few...
  25. Re: VB6 fast EdgeDetection (direct Pixel-Manipulation on Cairo-Surfaces)

    Well there's no guarantee, they're OK, but it seems most plausible to me. When you ask vbforums.com for EdgeDetection.zip, it will look in its storage area and seethe ZIP file is 241,112 bytes long....
  26. Re: VB6 fast EdgeDetection (direct Pixel-Manipulation on Cairo-Surfaces)

    I hope so too, it would be a real loss. I'm cautiously optimistic that the binary ZIPs are fine as it would be a really weird decision to modify them for almost any reason IMO. Maybe to stuff a...
  27. Re: VB6 fast EdgeDetection (direct Pixel-Manipulation on Cairo-Surfaces)

    It could be, but it looks more like the problem is with the building of the response. As Olaf mentioned (with his nice bit of sleuthing), the server is probably adding the GTM crap to responses where...
  28. Re: Help Needed: Resizing Images with Cairo in VB6

    It looks like you have your surfaces backwards - you want to create the context for nNew and write the surface content of srf to it:



    nNew.CreateContext.RenderSurfaceContent srf, 0, 0, 200,...
  29. Re: JSON delete Array - RC6 cCollection

    'jsonJudges.Remove (jsonJudges![1]) 'Example
    jsonJudges.RemoveByIndex 1 ' Remove the second array item since arrays use 0-based indexing
  30. Replies
    1
    Views
    513

    Re: RichClient: CairoSurface

    It's good to do all of your alpha work/layering/compositing within Cairo and then render the final result to the VB/Windows-side hDC. For example:



    Dim CroppedSrf As RC6.cCairoSurface

    ...
  31. Re: OCX crashes when compiled with binary compatibility

    You can use shared forms with an OCX because it will use the OCX library name for the control references, not the VB project name. e.g.:




    VERSION 5.00
    Object =...
  32. Replies
    19
    Views
    1,627

    Re: Copy a column

    As I read Mustaphi's question, there are some rows that start with a number and some that don't. If they start with a number, he wants the second "word". If it doesn't start with a number, he wants...
  33. Replies
    19
    Views
    1,627

    Re: Copy a column

    Right, but you can avoid regex headaches entirely if you're not familiar with them by using a UDF and vanilla-VB6 code. Something like (untested air code):



    Dim l_Data As String
    Dim...
  34. Replies
    19
    Views
    1,627

    Re: Copy a column

    Are you using RC5/RC6 for this project? You could create a user defined function and write the code in VB in that case if you are more proficient in VB as compared to SQL.
  35. Replies
    19
    Views
    1,627

    Re: Copy a column

    Try this:
  36. Replies
    19
    Views
    1,627

    Re: Copy a column

    INSERT INTO Tbl2 (Column1) SELECT CASE WHEN INSTR(Column1, ' ')=0 THEN Column1 ELSE SUBSTR(Column1, 1, INSTR(Column1, ' ')) END FROM Tbl1;
  37. Re: Getting the ball rolling. Which VB6 projects are you working on?

    Looks great! Might be cool if the light flashed the red light on/off and the hand swept quickly back and forth in the nether region between 100 and 0 to indicate that it is a useless/nonsensical...
  38. Re: Untested roulette system - Need help with VB6 and Excel Macros

    I asked the admins to ban him a few years back and they refused because they thought he would either go away, or get better. He's done neither unfortunately.
  39. Re: Using LoadPicture with a picture on server

    WithEvents should be a single keyword (no space). If that's not the problem, what is the exact error message?
  40. Thread: Program Testers

    by jpbro
    Replies
    189
    Views
    389,299

    Re: Program Testers

    Stunning! Great work @reexre (as always)!
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width