Search Results - VBForums

Search:

Type: Posts; User: Bonnie West

Page 1 of 13 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    13
    Views
    326

    Re: Using SHFileOperation API

    Another benefit of reading that API's documentation is that you'll discover that that code you obtained from somewhere is slightly incorrect: the fAborted member of the SHFILEOPSTRUCT structure...
  2. Re: What's wrong with my usage of WriteConsoleOutputCharacter?

    This is probably what that ASM code looks like when converted to VB6 code.



    VB6 apparently tries to minimize that overhead as much as possible:
  3. Re: How to write a generic function to return the length of an array?

    Simply removing the parentheses from the InArray() parameter seems to be all that's needed to make it work:



    Private Function GetArrayLen(ByRef InArray As Variant, Optional ByVal Dimension As...
  4. Replies
    21
    Views
    467

    Re: Clear Immediate Window Add-In

    You might also want to check out the Visual Basic Debug Wiper Sample.
  5. Re: What's wrong with my usage of WriteConsoleOutputCharacter?

    I wonder how that opcode compares to the VB6 runtime's __vbaCopyBytes which also doesn't test for overlapping memory.
  6. Re: Report : VB6 IDE and compiler on Win 10 TP

    A quick test revealed that it does. However, setting that flag on DLLs/OCXs is pointless:
  7. Replies
    7
    Views
    221

    Re: commondialog path

    That is actually the expected behavior of the Open/Save As dialog box. Check out the OPENFILENAME link I've given in post #2 for the details of the algorithm for selecting the initial directory.
  8. Re: Creating New folders in directory

    See the MkDir statement or the FileSystemObject's CreateFolder method.
  9. Replies
    19
    Views
    435

    Re: signature search

    Well, the search using InStrB could be modified like the following:


    Find "1234".
    If found, skip 4 bytes ("????").
    If next 4 bytes are "5678"
    then skip 2 bytes ("??").
    If next 2 bytes...
  10. Replies
    7
    Views
    221

    Re: commondialog path

    See the InitDir property and the description of the OPENFILENAME structure's lpstrInitialDir member.
  11. Replies
    19
    Views
    435

    Re: signature search

    Here's another simple approach that works best on small files:



    Option Explicit

    Private Sub Main()
    Dim BinaryFile() As Byte, Signature() As Byte
    Dim FN As Integer, Pos As Long,...
  12. Re: What's wrong with my usage of WriteConsoleOutputCharacter?

    Yeah, there are often faster alternatives to the wildly popular CopyMemory API.
  13. Re: What's wrong with my usage of WriteConsoleOutputCharacter?

    Error 87 means:



    The dwWriteCoord parameter of your WriteConsoleOutputCharacter API declaration is incorrect. The COORD structure is supposed to be passed ByVal, but as you are probably aware,...
  14. Replies
    7
    Views
    168

    Re: [RESOLVED] Browse For Folder

    Try this:



    Private Function GetFolder(ByRef Prompt As String, Optional ByVal hWndOwner As Long) As String
    Const BIF_RETURNONLYFSDIRS = &H1&, BIF_NONEWFOLDERBUTTON = &H200&
    Dim oShell...
  15. Replies
    8
    Views
    213

    Re: Saving Project

    I usually give my modules the same name for the module name and the file name. For example: modMain (modMain.bas)
  16. Re: SYSINFO control 6 SAP6 permission denied

    What are you using the SysInfo control for? Have you considered replacing it with a dependency-free substitute?
  17. Replies
    8
    Views
    213

    Re: Saving Project

    Another way of saving a specific module is by right-clicking it in the Project Explorer window and then selecting Save FileName As... Make sure that the module is actually highlighted.


    ...
  18. Re: Displaying a form using Graphicsdll.vbp with testGraphicsdll.vbp(Code from The Tr

    The Inside COM+ e-book mentioned by LaVolpe on the other (VBForums) thread also states basically the same thing:

    [/QUOTE]http://www.vbforums.com/image.php?u=147151&type=sigpic&dateline=1374042884
  19. Re: So what exactly does DSBCAPS_STATIC do in DirectSound buffer?

    A quick Google search turned up these 2 slightly longer descriptions:


    from https://notendur.hi.is/snorri/SDK-docs/x/exten245.htm

    from...
  20. Replies
    4
    Views
    165

    Re: Regular Expression

    The OP is probably looking for something like the following:



    134279
  21. Re: How do I pass WAVEFORMATEX to API functions?

    Microsoft documented VB6's UDT padding behavior in these 2 KB articles:


    INFO: LenB Function Returns in-Memory Size of User-Defined Type
    INFO: Differences in Padding UDTs Between Visual Basic...
  22. Re: How do I pass WAVEFORMATEX to API functions?

    According to the documentation:
  23. Re: How do I pass WAVEFORMATEX to API functions?

    The padding that VB6 applies to the WAVEFORMATEX structure is fortunately located at the end of the structure, so as long as the cbSize member is 0, there shouldn't be any problem when passing the...
  24. Replies
    3
    Views
    259

    Re: enum type mismatch

    Short answer: You can't.

    Long answer: Read Using Enumerations to Work with Sets of Constants
  25. Re: why "withevents" keyword is not supported in a standard module?

    The simplified answer is that standard modules lacks the hidden "plumbing" required for them to become "event sinks".
  26. Re: [RESOLVED] Get IUnknown from IEnumVARIANT's VT_UNKNOWN Variant return

    That's likely because the stdole library is (by default) higher in priority than your type library.



    http://i.stack.imgur.com/TGGEx.png
  27. Re: [VB6] Dereferencing Pointers sans CopyMemory

    Thanks a lot for the confirmation, The trick! :afrog:
  28. Re: How enable/disable Aero composition in Windows 7 programatically?

    The declaration of the DwmEnableComposition API is incorrect. Its uCompositionAction parameter should be passed ByVal:


    Private Declare Function DwmEnableComposition Lib "dwmapi.dll" (ByVal...
  29. Re: [VB6] Dereferencing Pointers sans CopyMemory

    It apparently does:


    133963



    Option Explicit

    Private Declare Function lstrlenA Lib "kernel32.dll" (ByVal lpString As Long) As Long
  30. Re: Distance From Form Top To ListItem Top

    You can get the Form's Top coordinate via GetWindowRect. You can retrieve the ListView Item1's Top coordinate by sending the LVM_GETITEMPOSITION message. Note that "the position of list-view items is...
  31. Replies
    7
    Views
    952

    Re: DrawText Formatting String

    Are you sure? The MSDN links in my post above strongly suggests it stands for Display Type instead.
  32. Re: check txt dimension before store into array

    Yes. Call the GlobalMemoryStatusEx API function.



    BTW, you might want to check out this recent thread: Reading text file into string array - is there anything faster than Split()?
  33. Replies
    14
    Views
    311

    Re: Problem with InitProperties event

    http://www.vbforums.com/image.php?u=147151&type=sigpic&dateline=1374042884
  34. Re: BSTR2LPSTR and LPSTR2BSTR conversions for VB6

    Macros looks a bit more complicated than function or struct declarations. RegEx could probably help generate a stub function, but, as you've pointed out, the parameters will likely have to be given...
  35. Re: Reading text file into string array - is there anything faster than Split()?

    From 101 TECH TIPS For VB Developers:
  36. Replies
    7
    Views
    952

    Re: DrawText Formatting String

    DT_FORUM and several other DT_* constants above are apparently totally unrelated to the DrawText flags like DT_BOTTOM and DT_CALCRECT. Those unrelated constants are documented here and in several...
  37. Re: BSTR2LPSTR and LPSTR2BSTR conversions for VB6

    Regarding API viewers, I have stopped using them a long time ago. As many will agree, they are usually not 100% correct and older ones that haven't been updated in a while lacks all of the APIs that...
  38. Re: Hex code for flat maroon color

    Here are the hex values for other HTML Color Names:
  39. Re: Passing Shell Parameters as Variable

    Here's another way of rearranging your code:



    Dim SourceProg As String
    Dim SourceFile As String

    SourceProg = """C:\Program Files (x86)\EpicXray\Epicxray.exe"" "
    SourceFile =...
  40. Re: BSTR2LPSTR and LPSTR2BSTR conversions for VB6

    It appears you haven't yet heard of the hidden StrPtr function. You might want to check out Matt Curland's Unofficial Documentation for VarPtr, StrPtr, and ObjPtr to learn how it can be used to...
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.