Search:

Type: Posts; User: Bonnie West

Page 1 of 13 1 2 3 4

Search: Search took 0.20 seconds.

  1. Replies
    269
    Views
    78,301

    Re: Re PlanetSourceCode

    See this list.
  2. Re: Instantiate internal class object with name in string

    Don't worry, I'm doing OK.



    I know, that's why I was hoping the remaining VB6 experts around the world (like firehacker) will join us here so that we can finally get the proper VB6 successor...
  3. Re: Instantiate internal class object with name in string

    I still have them180044180045 :bigyello:



    https://www.vbforums.com/attachment.php?attachmentid=180044&d=1611937523


    https://www.vbforums.com/attachment.php?attachmentid=180045&d=1611937535
  4. Replies
    7
    Views
    3,071

    Re: Which tab for creating control on SSTab

    You might want to try adapting the code here to suit your needs:
  5. Re: How to search for more than 1 value using RegExp

    Try this condensed version of the code you've posted:



    With CreateObject("VBScript.RegExp")
    .IgnoreCase = True
    .Pattern = "Dept[123]"

    Permission.Exit -Not...
  6. Re: Question about CreateProcess API function

    The documentations of the CreateProcess function and the PROCESS_INFORMATION structure states clearly what you need to do:
  7. Replies
    18
    Views
    5,398

    Re: SysAllocStringByteLen

    Here's my CodeBank thread: [VB6] Dereferencing Pointers sans CopyMemory
  8. Replies
    14
    Views
    4,990

    Re: Disabling Controls within Frame

    Here's an alternative solution from the very similar thread that Elroy mentioned:
  9. Replies
    30
    Views
    11,609

    Re: SELECT CASE statement is bypassed

    Olaf already did.
  10. Replies
    1
    Views
    893

    Re: Is memory leaking anywhere here?

    I'm not completely sure about this, but I suspect that deleting the original, default object rather than selecting it back into the DC is probably one of the reasons for the memory leak. According to...
  11. Re: Instantiate internal class object with name in string

    You probably should get permission first from firehacker. ;)
  12. Re: Access denied trying to backup "C:\Users\MyName\My Documents"

    It is VB6 code, so yes. ;)



    The Shell object's ShellExecute method is simply a wrapper for the ShellExecute API function. That code passes just 2 parameters to the ShellExecute method: (1) the...
  13. Re: Access denied trying to backup "C:\Users\MyName\My Documents"

    There's really no need for the .BAT file; just launch XCOPY.EXE directly:



    Public Sub BackUp(ByRef DestDir As String)
    Const ssfDESKTOP = 0&, ssfPERSONAL = 5&, ssfSYSTEM = 37&

    With...
  14. Replies
    30
    Views
    11,316

    Re: How do I create a TypeLib for UDTs in VB6?

    I believe a registry key similar to the following holds the path to the type library file/resource:


    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}\1.0\0\win32...
  15. Replies
    12
    Views
    2,908

    Re: Reading/Writting a very large file

    You're right. I had tested the code in Post #8 with VB6's Open statement and it appears it doesn't have an option to enforce exclusive access on the opened file. If the OP wants to make sure copying...
  16. Replies
    30
    Views
    11,316

    Re: How do I create a TypeLib for UDTs in VB6?

    The standalone TLB file that gets generated when the "Remote Server Files" checkbox is ticked is actually exactly the same as the TLB resource that's embedded in the ActiveX DLL. Therefore, the...
  17. Replies
    39
    Views
    8,402

    Re: Emulate Double Click

    On Error Try Again

    You might want to consider using fafalone's "implementation" of the SHOpenWithDialog (Vista+) API function: [VB6] API Open With Dialog with enhanced functionality


    ...
  18. Replies
    30
    Views
    11,316

    Re: How do I create a TypeLib for UDTs in VB6?

    It's my understanding that when an ActiveX DLL/OCX is used in conjunction with a SxS manifest, no CLSIDs/IIDs/TypeLibs/etc. are written to the Registry.



    ActiveX DLLs/OCXs typically contain a...
  19. Re: [VB6] Basic unzip without 3rd party DLL or shell32- IStorage-based

    I believe you can get String variables to work if you wrap them with CVar(), like in this example.
  20. Replies
    30
    Views
    11,316

    Re: How do I create a TypeLib for UDTs in VB6?

    The pure VB6 approach to creating TLBs is actually a pretty good option in many cases. Its biggest drawback though IMO, is that it pollutes the Registry. While the ActiveX DLL's registry entries can...
  21. Replies
    10
    Views
    2,395

    Re: INI file Rules

    Yeah, we would really need to see your INI file writing code, especially if you're not using the initialization-file API functions.
  22. Replies
    30
    Views
    11,316

    Re: How do I create a TypeLib for UDTs in VB6?

    What you just saw was an IDL/ODL script. Compiling that script via either MIDL.EXE or MKTYPLIB.EXE (they're both in the VS6 CDs) will give you a TLB file. I've already shown you before how a TLB file...
  23. Replies
    30
    Views
    11,316

    Re: How do I create a TypeLib for UDTs in VB6?

    So, Ben, have you looked at my link in Post #2 yet? You really wouldn't want to ignore that. ;)
  24. Re: How do I get Window Handle of "...Program still need to close"

    freesix

    If the system that you don't want to be shut down is running Windows Vista or later, there is an easier, non-hackish and highly recommended way of preventing system shut down:
  25. Replies
    30
    Views
    11,316

    Re: How do I create a TypeLib for UDTs in VB6?

    See [RESOLVED] Is a type library not a public module?
  26. Re: VB6 Search Box to search for text inside multiple word documents

    The similar code here shows one possible way of removing those temporary files and folders.
  27. Replies
    12
    Views
    2,908

    Re: Reading/Writting a very large file

    Actually, the intrinsic FileCopy statement can fail (raises RTE 70 "Permission denied") if the file being copied is "in use" (opened for exclusive access). Here's an asynchronous, non-API/non-COM,...
  28. Re: CommonControls (Replacement of the MS common controls)

    It might be better if the Change event was raised in a WM_SETTEXT handler in the WindowProcControl procedure rather than doing it only in the Property Let Text procedure. This way, that event will...
  29. Re: How do I get Window Handle of "...Program still need to close"

    Which startup method are you using? You might want to check out my updated reply to your question here to learn about the best method.



    @ freesix

    You might be interested to read this thread...
  30. Re: Does a variant hold a Control (of any kind) or does it hold something else?

    MSDN's note in the If...Then...Else Statement's documentation is actually correct, albeit incomplete. The TypeOf ... Is ... operator (that's right, it's a binary comparison operator that results in a...
  31. Replies
    13
    Views
    2,343

    Re: Compare random access records

    You might want to check out this thread where UDT padding was also discussed.



    It's here.
  32. Re: How do I get Window Handle of "...Program still need to close"

    Visual Basic Reference

    Visual Studio 6.0

    QueryUnload Event

    See Also Example Applies To

    Occurs before a form or application closes. When an MDIForm object closes, the QueryUnload...
  33. Replies
    14
    Views
    3,248

    Re: Function to 'watch' for changes

    The Classic VB FAQ Why can't I use WithEvents on arrays of objects? already dealt with this issue.



    BTW, here's another variation of the control array detecting function:
  34. Replies
    3
    Views
    4,699

    Re: Windows Messages Constants #1

    As discussed in these two threads, relying on Windows API definitions from 3rd party websites and/or API viewers is not really a good idea. Personally, I prefer to consult the official Windows SDK...
  35. Replies
    14
    Views
    3,248

    Re: Function to 'watch' for changes

    If for some reason you don't want to convert your TextBoxes to a control array, you might want to consider subclassing them instead. Watch for the EN_CHANGE notification code and then call your...
  36. Replies
    3
    Views
    2,219

    Re: Convert API Object to Standard Object

    You can create an ActiveX control like the ProgressBar control by "wrapping" the manually created control in a UserControl object. See Creating an ActiveX Control and Building ActiveX Controls for...
  37. Replies
    4
    Views
    2,511

    Re: Make Treeview Using API

    See this post for a VB6 example.
  38. Replies
    15
    Views
    6,243

    Re: [RESOLVED] tinted or faded look to form?

    This example combines Elroy's and HanneSThEGreaT's suggestions.



    139955
  39. Re: .INI Files: Are the "ProfileString" APIs still the best performance choice?

    The W versions of the INI file APIs can read & write Unicode (UTF16-LE) INI files. I'm using the W versions of the INI file APIs in my example above, so that code is Unicode-aware. Unicode text won't...
  40. Replies
    12
    Views
    22,482

    Re: access 64 bit registry from 32 bit app

    It is my understanding that VB6 already internally calls GetProcAddress the 1st time that a Declare'd API function is called (VB6 caches the return value and uses it the next time the function is...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width