Search Results - VBForums

Search:

Type: Posts; User: Bonnie West

Page 1 of 13 1 2 3 4

Search: Search took 0.09 seconds.

  1. Re: Problem with vbRichClient5 ActiveX DLL

    Based on your statements, it doesn't sound like you are performing true subclassing. Maybe what you're really doing is window procedure hooking. I just tried subclassing a window created by another...
  2. Replies
    8
    Views
    151

    Re: Don't understand this If statement

    The Select Case statement has the little-known ability to short-circuit expressions:



    Private Sub Form_Load()
    If False And True And IsTrue Then 'IsTrue gets called
    Unload Me
    ...
  3. Re: How to show my scrollbar on Form1 on Design mode

    The issue is because when you are designing a Form that has a UserControl that nests another UserControl, the inner UserControl thinks that it is already being used by the end user (Ambient.UserMode...
  4. Re: Editing problem: How to manage CrLf marks for Cut/Copy

    Your code snippet works as expected here. The selected lines gets deleted and succeeding text, if any, replaces them. Pasting the copied text retains their end-of-line characters, if any. Something...
  5. Replies
    7
    Views
    2,282

    Re: [VB6] Clone ListView

    That code is probably being denied access because the dialog box where the ListView is located was likely created by an elevated process. Try running that code as administrator. If you still...
  6. Re: VB6 a simple wrapper for the VBA.Collection with (much) faster Indexed-Access

    Yeah, I'm not really impressed with his code. I also find it hard to believe most of the observations he listed in clsBuilder.cls. For example, "1) Constants slow performance down, hence I removed...
  7. Re: Accessing the file system context menus from within VB6

    The NameSpace method in the line Set Filesource = ShellClass.NameSpace(sFileSource) most likely failed to locate the specified sFileSource. Ensure that sFileSource contains the correct path and that...
  8. Re: Accessing the file system context menus from within VB6

    If you are referring to the Send to -> Mail recipient menu item, I tried ShellExecuting the actual "Mail Recipient.MAPIMail" file in the SendTo folder, but it didn't work. Trying to programmatically...
  9. Re: Accessing the file system context menus from within VB6

    Glad to hear that! :)

    Please don't forget to mark this thread :check: Resolved!


    http://www.vbforums.com/attachment.php?attachmentid=104683&d=1379286949
  10. Re: VB6 a simple wrapper for the VBA.Collection with (much) faster Indexed-Access

    This is also the first time I've seen the internal structure of the VBA.Collection class. I found out that the Key member of the CollectionElement UDT was a BSTR by viewing the IDE's memory in a hex...
  11. Replies
    7
    Views
    2,282

    Re: [VB6] Clone ListView

    Is the target process 64-bit? If so, it really won't work because pointers in VB6 are just 32 bits wide. That code dim's a few pointers that points to some allocated memory on the target process....
  12. Replies
    21
    Views
    470

    Re: LOGICAL select case

    Yet another rarely used function that is great as a one-liner substitute for the Select Case statement (but is far from being as efficient or flexible) is the Switch function:


    ICO = Switch(90&...
  13. Re: What exactly does RegisterWindowMessage do?

    The session usually refers to the session of the user who launched the program that registered the window message. It will remain registered until that user logs off, not when the system shuts down.
  14. Re: Accessing the file system context menus from within VB6

    I thought I've explained it clearly in my previous post. :confused:





    EDIT

    Here are a couple of excerpts from the latest (v6.3.4 as of this posting) ZIP file format specification:
  15. Re: Accessing the file system context menus from within VB6

    I've already demonstrated in Post #12 how to call the relevant function. You only need to copy 2 functions: ShellZip and CreateNewZip. CreateNewZip is Private because it's not intended to be called...
  16. Re: Accessing the file system context menus from within VB6

    You probably didn't have to go through all that trouble if you only took a look at the much simpler code here. ;)



    The EmptyZip() Byte array is being assigned with the ASCII codes of the...
  17. Re: What exactly does RegisterWindowMessage do?

    I believe the "Register" in the RegisterWindowMessage function has nothing to do with the Windows Registry at all. According to Raymond Chen's blog article Some other places atoms (and the magical...
  18. Re: [VB6] Problem Using CopyMemory API to Get Collection Keys

    Here are a couple of alternative methods:



    CopyMemory ByVal VarPtr(tColElem), ByVal String$(LenB(tColElem), 0), LenB(tColElem)


    Private Declare Sub ZeroMemory Lib "kernel32.dll" Alias...
  19. Re: Accessing the file system context menus from within VB6

    You may find the equivalent code here to be less complicated. Here's an example of using it:



    Private Sub Command1_Click()
    If ShellZip(Source:="C:\Path\To\Bloggs",...
  20. Re: [VB6] Call Functions By Pointer (Universall DLL Calls)

    Thanks a lot for the additional info, guys!

    I've been doing some research about this lately and unfortunately, it appears it's impossible to safely use the DispCallFunc API for cross-thread method...
  21. Re: [VB6] Call Functions By Pointer (Universall DLL Calls)

    But, would that work across threads (specifically, from a thread where the VB6 runtime environment hasn't been initialized)?



    Anyway, thanks again for your examples and links! I'm sure they'll...
  22. Re: [VB6] Call Functions By Pointer (Universall DLL Calls)

    OK, I will! Thanks for the tips!



    Yeah, I've seen that project of yours. I'll take a look again and see if I can fully comprehend it this time! :p
  23. Re: [VB6] Call Functions By Pointer (Universall DLL Calls)

    Somewhat like that. I was wondering whether it could be useful in this specific scenario: The main GUI thread instantiates & initializes a class that in turn spawns a background worker thread (via...
  24. Re: [VB6] Dereferencing Pointers sans CopyMemory

    Here are the benchmark results (of the attached project below) which compares the performance of the aforementioned APIs against the general-purpose CopyMemory (a.k.a. RtlMoveMemory) API. Function...
  25. Re: [VB6] Call Functions By Pointer (Universall DLL Calls)

    Isn't the information regarding the VTable order documented in the Windows header files? For instance, I believe the following is the IDataObject's definition from the ObjIdl.h header file:


    ...
  26. Re: Interface Definitions, VTables, etc

    http://www.vbforums.com/image.php?u=147151&type=sigpic&dateline=1374042884
  27. Replies
    15
    Views
    480

    Re: ImageSearchDLL Not working with VB6.0

    http://www.vbforums.com/image.php?u=147151&type=sigpic&dateline=1374042884
  28. Re: CommonControls (Replacement of the MS common controls)

    Here's a shorter (and faster!) equivalent:



    Private Declare Function SysReAllocString Lib "oleaut32.dll" (ByVal pBSTR As Long, Optional ByVal pszStrPtr As Long) As Long

    'Returns a copy of a...
  29. Re: OptionButtonEx (grouping without frames, Unicode at runtime, & lightweight)

    It only fully works when not using a manifest that specifies v6.0 of the Common Controls library. When a Visual Styles manifest is applied, VB6 fails to render the Unicode characters properly (the...
  30. Re: Not appear in Task Bar but creates its own little title/controls bar

    'API-free, subclassing-free alternative

    Private Sub Form_Resize()
    If WindowState = vbMinimized Then Hide
    End Sub
  31. Re: How to identify a specific disk, media or flash memory

    So you need some sort of device ID? Of the alternatives to the dummy file presented so far (volume label/name, volume serial number, hardware serial value), the volume label/name is IMO the easiest...
  32. Re: How to mamage files with non-English names?

    Ilia have probably already tried and found out that the CopyFileW API is unable to copy folders (no surprise there).



    I haven't mentioned it in my previous post, but SHFileOperationW does more...
  33. Re: How to identify a specific disk, media or flash memory

    Have you considered making use of the volume label?

    You can give any drive a unique label by simply renaming it through Windows Explorer. Then you can figure out its drive letter using code like...
  34. Re: How to mamage files with non-English names?

    Well, according to the documentation of the CopyFile function:



    Since you were passing True, the API function therefore failed when you told it to overwrite an existing file.



    You can...
  35. Replies
    20
    Views
    567

    Re: Converting C to VB problem

    Correct me if I'm wrong, but my understanding is that when a static array is a member of a UDT, that array's elements becomes part of the UDT, while on the contrary, the elements of a dynamic array...
  36. Re: VB6 Input Validation to Disallow an All Alpha Character Field

    Glad to hear that! :) Good luck with the rest of your project!



    Oh, BTW, please don't forget to mark this thread :check: Resolved! Thank you!

    ...
  37. Re: VB6 Input Validation to Disallow an All Alpha Character Field

    That's most likely because strISBN couldn't be coerced to a number (it probably contained alphabetic character(s)). In the above expression, the highlighted subexpression is evaluated first before...
  38. Re: VB6 Input Validation to Disallow an All Alpha Character Field

    The following validation code is based on the ISBN Wikipedia article:



    Private Sub Text1_KeyPress(KeyAscii As Integer)
    Const PROMPT = "You may only enter numbers!" & vbNewLine & vbNewLine...
  39. Re: How to mamage files with non-English names?

    There is always (well, almost) an API-based approach because the Windows APIs are ultimately what wrappers like FSO, Shell, ADO, etc. call behind the scenes. The Windows APIs, however, were designed...
  40. Re: [VB6] TaskDialogIndirect: Complete class implementation of Vista+ Task Dialogs

    Sorry, but I'm not aware of any. I believe, however, that it's better to use dialog units because it is a device-independent measurement. The task dialog will be able to retain its proportions...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.