dcsimg

Search:

Type: Posts; User: Bonnie West

Page 1 of 13 1 2 3 4

Search: Search took 0.20 seconds.

  1. Replies
    7
    Views
    1,088

    Re: Which tab for creating control on SSTab

    You might want to try adapting the code here to suit your needs:
  2. 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...
  3. Re: Question about CreateProcess API function

    The documentations of the CreateProcess function and the PROCESS_INFORMATION structure states clearly what you need to do:
  4. Replies
    18
    Views
    2,357

    Re: SysAllocStringByteLen

    Here's my CodeBank thread: [VB6] Dereferencing Pointers sans CopyMemory
  5. Replies
    14
    Views
    2,384

    Re: Disabling Controls within Frame

    Here's an alternative solution from the very similar thread that Elroy mentioned:
  6. Replies
    30
    Views
    1,538

    Re: SELECT CASE statement is bypassed

    Olaf already did.
  7. Replies
    1
    Views
    583

    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...
  8. Re: Instantiate internal class object with name in string

    You probably should get permission first from firehacker. ;)
  9. 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...
  10. 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...
  11. 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...
  12. Replies
    12
    Views
    1,373

    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...
  13. 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...
  14. Replies
    39
    Views
    2,900

    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


    ...
  15. 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...
  16. 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.
  17. 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...
  18. Replies
    10
    Views
    900

    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.
  19. 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...
  20. 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. ;)
  21. 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:
  22. Re: How do I create a TypeLib for UDTs in VB6?

    See [RESOLVED] Is a type library not a public module?
  23. 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.
  24. Replies
    12
    Views
    1,373

    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,...
  25. 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...
  26. 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...
  27. 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...
  28. Replies
    13
    Views
    1,188

    Re: Compare random access records

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



    It's here.
  29. 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...
  30. Replies
    14
    Views
    1,404

    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:
  31. Replies
    3
    Views
    1,842

    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...
  32. Replies
    14
    Views
    1,404

    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...
  33. Replies
    3
    Views
    796

    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...
  34. Replies
    4
    Views
    941

    Re: Make Treeview Using API

    See this post for a VB6 example.
  35. Replies
    14
    Views
    2,545

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

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



    139955
  36. 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...
  37. Replies
    12
    Views
    12,787

    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...
  38. Re: .INI Files: Are the "ProfileString" APIs still the best performance choice?

    Can you post your code? (or better yet, zip & attach your test project)



    That code could probably still be optimized further, but the improvements would likely not be substantial unless a...
  39. Replies
    12
    Views
    12,787

    Re: access 64 bit registry from 32 bit app

    Thanks for the bug report and the suggested fix! :thumb:



    I think it's already the best solution. I couldn't find a better Registry API function than those 2 functions.
  40. Re: .INI Files: Are the "ProfileString" APIs still the best performance choice?

    It appears it's actually the TreeView control and not the INI file functions that's the bottleneck.



    139909
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width