Search Results - VBForums

Search:

Type: Posts; User: Bonnie West

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. Re: Help! cannot delete registry [x64] subkeys

    If you want the RegDelTree function to be accessible from anywhere in your project, you'll have to change its scope from Private to Public. You'll also have to do the same modification to the...
  2. Re: [VB6] Simple, basic subclassing tutorial using the easier SetWindowSubclass metho

    I haven't taken a close look at your NewSocket.cls yet, but I believe it should be possible to convert your existing subclassing logic to one that uses SetWindowSubclass instead. I can't think of a...
  3. Re: Help! cannot delete registry [x64] subkeys

    That very same topic, however, recommended an alternative API (RegDeleteKeyEx) capable of accessing either a 32-bit or 64-bit key from either a 32-bit or 64-bit application.



    @ Coding

    Try...
  4. Re: Why this usage of Like Operator returns true?

    The character ranges [<upper bound>-<lower bound>] can be specified in any order. You can also specify as many ranges as you want. Please consult the Like operator's documentation to learn more about...
  5. Replies
    6
    Views
    176

    Re: ShellExecute RunAS

    See this post.
  6. Replies
    6
    Views
    176

    Re: ShellExecute RunAS

    I already did. :confused: Did you not notice this line?



    In that example, I was assuming that the password is entered in a TextBox named "txtPW". If your TextBox is named differently, change it...
  7. Re: Why this usage of Like Operator returns true?

    That's because the ASCII characters from uppercase "A" to lowercase "z" includes these characters: "[", "\", "]", "^", "_" and "`". The correct pattern is:


    MsgBox "^^^^" Like "*[0-9A-Za-z]*"
  8. Re: VB6 Regfree Handling of AX-Plugin-Dlls per DirectCOM

    The links in this thread should be more than enough to get you started.



    You will have to buy Matt Curland's book if you want to get the EditTLB.exe tool. ;) The midl.exe tool, on the other...
  9. Replies
    6
    Views
    176

    Re: ShellExecute RunAS

    You may want to try a different API instead - CreateProcessWithLogonW:



    Private Enum CreationFlags
    CREATE_SUSPENDED = &H4
    CREATE_NEW_CONSOLE = &H10
    CREATE_NEW_PROCESS_GROUP =...
  10. Replies
    1
    Views
    117

    Re: Add a webbrowser by controls .add

    Try "Shell.Explorer".

    You might want to see this post for an example of dynamically creating the WebBrowser control and receiving the events it raises. Also, check out this post to learn how to...
  11. Replies
    6
    Views
    258

    Re: check if file exists in dos batch

    Well, you could either manually or programmatically open the batch file and insert your command line after the code above.

    BTW, can you show an example of the command line for running a query?...
  12. Replies
    12
    Views
    336

    Re: Auto Updater Error

    This example shows how a single EXE can replace a currently running instance of itself with a new version (for simplicity, this demo just copies the old EXE). It relies on the fact that executables...
  13. Replies
    6
    Views
    258

    Re: check if file exists in dos batch

    IF NOT EXIST "\\rom\DATABASE\GIA.LDB" (
    "C:\Program Files\Microsoft Office\Office14\MSAccess.exe" "\\rom\DATABASE\GIA.MDB" /compact
    )
  14. Re: Code Snippet: Getting folder settings with SHGetSettings

    It simulates the BOOL data type of C++. The BOOL data type is a 32-bit integral data type (same size as Enum constants) and its 2 possible values are FALSE (0&) and TRUE (1&). Since VB6 is...
  15. Re: Code Snippet: Getting folder settings with SHGetSettings

    That SHELLFLAGSTATE structure with bit-field members is quite interesting indeed. Here's another approach at a working VB6 example of the SHGetSettings function:



    Option Explicit 'In a standard...
  16. Replies
    4
    Views
    215

    Re: Create Data Report

    Open the Components dialog box and switch to the Designers tab.
    Tick the Data Report listbox entry and click OK.
    The Add Data Report menu item should now be available.


    ...
  17. Re: SHfileOperation with FOF_RENAMEONCOLLISION or FOF_WANTMAPPINGHANDLE Flags

    You mentioned that your app is "still used with older machines". If so, you may want to keep in mind fafalone's earlier reminder:



    The IFileOperation interface became available starting with...
  18. Replies
    6
    Views
    256

    Re: [RESOLVED] 24 to 12-time hour format

    Yes, that's true. However, Coding didn't specify the exact notation to be used for AM/PM, so I guess he's using the settings for his locale.
  19. Re: SHfileOperation with FOF_RENAMEONCOLLISION or FOF_WANTMAPPINGHANDLE Flags

    The SHFILEOPSTRUCT's and SHNAMEMAPPING's declarations are both incorrect. Try the SHFileCopy() function in the attached module below; it contains the proper declarations.
  20. Replies
    6
    Views
    256

    Re: 24 to 12-time hour format

    Alternatively, you could also use one of the Named Date/Time Formats:



    ? """"; Format$(#23:00:00#, "Short Time"); """"
    "23:00"

    ? """"; Format$(#23:00:00#, "Medium Time"); """"
    "11:00 PM"
  21. Re: [VB6] Simple, basic subclassing tutorial using the easier SetWindowSubclass metho

    Try the attached test projects below to see what I mean by "safer".
  22. Re: need help of for next statement

    I think it would really help a lot if you wrote your code first as pseudocode. First, figure out what the logic/algorithm of your program should be and then translate that into VB6 statements. Also,...
  23. Re: System Detect - Shutdown Startup

    The most common way of achieving this is by specifying a command line switch/parameter/argument. For example, here is Avast's startup entry in the Registry:


    "C:\Program Files\AVAST...
  24. Re: need help of for next statement

    In your original post, Exit For was already sufficient to break out of the inner For z loop and continue with the Next Y.



    Sorry, but I don't quite understand what you're trying to do here. Can...
  25. Re: need help of for next statement

    Yes, that's better. :thumb:



    EDIT



    See the Exiting a Control Structure section of the link I gave you in post #6.
  26. Re: MsgBox in front of wrong form

    Can you upload a small demo project that reproduces that bug?
  27. Re: need help of for next statement

    Hmm, you may want to read the Working with Control Structures topic of the manual. It demonstrates there how to correctly nest multiple control structures.
  28. Re: need help of for next statement

    Have you already removed the excess Next Y lines? If you have, re-indent your code manually and you'll no doubt see 1 more syntax error (hint: it's another Next line).

    BTW, I don't use automated...
  29. Re: need help of for next statement

    Your code has 5 lines of Next Y but only 1 line of For Y .... I suggest that you do as I did to identify your problem: re-indent your code properly so that you'll easily spot your mistakes.
  30. Re: [VB6] Win7 Taskbar Features with ITaskbarList3 (overlay, progress in taskbar, etc

    Why is it a function? It doesn't seem to be returning anything...
  31. Replies
    9
    Views
    384

    Re: Pointer Arithmetic

    Here's a couple of extreme examples:



    ? "&H"; Hex$((&H1 Xor SIGN_BIT) + &HFFFFFFFE Xor SIGN_BIT) '<-- Throws RTE 6: Overflow
    'Result should've been &HFFFFFFFF

    ? "&H";...
  32. Replies
    9
    Views
    384

    Re: Pointer Arithmetic

    For small offsets, the following inline, unsigned pointer addition/subtraction works pretty well:



    Public Const SIGN_BIT As Long = &H80000000

    ? "&H"; Hex$((&H7FFFFFFF Xor SIGN_BIT) + 1& Xor...
  33. Replies
    4
    Views
    199

    Re: Exposing the Point method

    Public Function Point(ByVal X As Single, ByVal Y As Single) As Long
    Point = UserControl.Point(X, Y)
    End Function


    The base UserControl class has no member named PGet. VB6 doesn't allow a...
  34. Re: [VB6] Simple, basic subclassing tutorial using the easier SetWindowSubclass metho

    Raymond Chen gave a very good reason why one should prefer the newer subclassing APIs: they're safer.



    As demonstrated here, SetWindowSubclass makes it easier (and neater) to redirect a...
  35. Re: Nutty idea? HTML GUI to cope with High DPI?

    Check out HTMLayout.


    http://www.terrainformatica.com/htmlayout/images/image3.png
  36. Replies
    8
    Views
    241

    Re: Get specific character from a string

    The link to the Type Conversion Functions for VB6 can be found via the See Also link in the Data Type Summary page.
  37. Re: [RESOLVED] windows message to click "OK" in video source dialog

    A better Windows message would be the BM_CLICK message. ;)
  38. Re: CommonControls (Replacement of the MS common controls)

    I couldn't reproduce Gigirex's "UDT not defined" error as well. I don't see why the With block he posted would throw such an error. At any rate, it seems he has already figured out a workaround so I...
  39. Replies
    18
    Views
    524

    Re: Expose methods in dll

    Try this:



    Private Declare Function DetectTransactionCode Lib "WiDetect.dll" (ByVal Wi_Type As Long, ByVal Wi_ID As Long) As Long
    Private Declare Function lstrlenW Lib "kernel32.dll" (ByVal...
  40. Re: [RESOLVED] Loading Form Throug Label Control

    Here's how you do it:


    Forms.Add("frmlevel" & label1.Caption).Show
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.