Search:

Type: Posts; User: jpbro

Page 1 of 13 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    24
    Views
    325

    Re: Determine Project Type While Running in IDE?

    Nice trick using the error object to get the source file! :D From there it should be trivial to get the project type (provided the project has been saved of course)
  2. Replies
    3
    Views
    92

    Re: Convert cRecordset to JSON

    Check out the cRecordset.ToJsonUtf8 function. If you need the UTF8 as a String, you can use New_c.Crypt.UTF8ToVBString to convert it.
  3. Replies
    24
    Views
    325

    Re: Determine Project Type While Running in IDE?

    True enough! :D
  4. Replies
    24
    Views
    325

    Re: Determine Project Type While Running in IDE?

    Just to clarify - my interest in this is because I am trying to "normalize" (for lack of a better term) the folders/files that an application and its related DLLs/OCXs refer to regardless of where...
  5. Replies
    24
    Views
    325

    Re: Determine Project Type While Running in IDE?

    Thanks Eduardo - never knew you could get the VBIDE window & ActiveVBProject like that. Too bad it's not available at runtime :(
  6. Replies
    24
    Views
    325

    Re: Determine Project Type While Running in IDE?

    Thanks Eduardo - I'm mostly interested in determining it at runtime, but if it's not too much trouble to dig out the code, it would be interesting to see how you do it at design time.
  7. Replies
    24
    Views
    325

    Re: Determine Project Type While Running in IDE?

    Thanks Elroy - I was hoping there might be a way to detect it in code because I have a single .bas module that other developers can use and I wanted to skip the step of asking them to configure it...
  8. Re: [RESOLVED] vb6 ide project explorer window too big, accident dragged mouse sidewa

    It won't re-appear until you close the IDE.
  9. Re: vb6 ide project explorer window too big, accident dragged mouse sideways

    If you make sure the VB6 IDE is closed, THEN delete those keys, THEN restart VB6, the windows should go back to their default size/docked state.
  10. Re: vb6 ide project explorer window too big, accident dragged mouse sideways

    Are you using a touch screen? If so, switch to a physical mouse and try again (you'll see the mouse icon change when you are over the correct dragging spot, and it's only a few pixels wide).
  11. Re: vb6 ide project explorer window too big, accident dragged mouse sideways

    Both things I suggested worked here, don't know what else to suggest. Uninstall/reinstall might work as long as VB is good about cleaning up the registry after itself, but if it leaves your window...
  12. Re: vb6 ide project explorer window too big, accident dragged mouse sideways

    Or even try Normalizing the window, then Maximize it.
  13. Re: vb6 ide project explorer window too big, accident dragged mouse sideways

    Move the mouse to the right-edge of the IDE window, then slowly move it left until the mouse icon changes to the splitter resize icon. Click and hold the left mouse button and drag to the left.
  14. Replies
    24
    Views
    325

    Determine Project Type While Running in IDE?

    This may be a stupid question, but is it possible to determine the Project Type (Standard EXE, ActiveX EXE, ActiveX DLL, ActiveX Control) when running from the IDE?

    190948

    Nothing in the App...
  15. Re: Registry Free Object Instantiation using DirectCOM & RC6

    Thanks taishan, glad you like what you see :)

    Regarding a way to instantiate vbWidgets, there are a few different approaches - all with their upsides and downsides - and I'm not firmly decided on...
  16. 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
  17. 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...
  18. 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.


    ...
  19. 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...
  20. 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...
  21. 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...
  22. 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...
  23. 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...
  24. 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...
  25. Replies
    35
    Views
    4,061

    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...
  26. Replies
    35
    Views
    4,061

    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...
  27. Replies
    3,455
    Views
    628,842

    Re: What song are you listening to right now?

    ----------------
  28. 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.
  29. Replies
    6
    Views
    612

    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...
  30. Re: Responding to an existing thread doesn't work

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

    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.
  32. Replies
    16
    Views
    1,519

    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...
  33. Replies
    31
    Views
    1,208

    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...
  34. 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,...
  35. 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...
  36. 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...
  37. 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,...
  38. 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...
  39. 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...
  40. 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....
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width