Search Results - VBForums

Search:

Type: Posts; User: Bonnie West

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. Re: [RESOLVED] Problem getting "Computer Name" in normal text

    The GetComputerName API function "retrieves the NetBIOS name of the local computer." According to Computer Names, "NetBIOS names, by convention, are represented in uppercase ...". Therefore, it looks...
  2. Re: How do I put global constants in my ActiveX DLL?

    It is also possible to generate TLBs using VB6 alone. See How To Make a Typelib (.TLB) File for ActiveX Components.

    You might want to check out the links in this thread if you're interested in...
  3. Re: VB 6.0 [HELP] with application

    Enable the CCMove Timer control.



    Try this:



    Private Sub Form_Load()
    Const RUSSIAN_CHARSET = 204
  4. Re: How do I put global constants in my ActiveX DLL?

    Constant types other than Long can be inserted into an existing ActiveX DLL by:


    decompiling its TYPELIB resource via OLE/COM Object Viewer (OleView.exe) or similar tools,
    editing the...
  5. Re: Play .wav from .res with Windows Media Player control...

    Use the Res: protocol for this. Example:


    WindowsMediaPlayer1.URL = "res://" & App.EXEName & ".exe/WAVE/1"

    See INFO: Syntax of the Res: Protocol and Some Known Related Issues.
  6. Replies
    22
    Views
    479

    Re: GetSaveFilename

    Here's yet another GetSaveFileNameW implementation that you might want to check out.



    EDIT

    The hInstance member of the OPENFILENAME structure is used only if either the...
  7. Replies
    22
    Views
    479

    Re: GetSaveFilename

    They likely did it on purpose to improve compatibility with Windows.
  8. Re: Postion a form on the middle of the screen right above the task bar?

    Here's a more robust alternative:



    Option Explicit 'In a Form

    Private Type RECT
    Left As Long
    Top As Long
    Right As Long
  9. Re: Postion a form on the middle of the screen right above the task bar?

    Import the clsGetWorkArea.cls class module in this zip file to your VB6 project and then add the following code to your Form's Load event:



    Private Sub Form_Load()
    With New clsGetWorkArea...
  10. Replies
    22
    Views
    479

    Re: GetSaveFilename

    Of course they're not equal; vbNullString (empty string) is different from vbNullChar (Null character). ;)



    BTW, is there a reason for the OF_WRITE flag (of the OpenFile function) in the...
  11. Replies
    6
    Views
    204

    Re: Check string have Time value

    Yet another (likely slower) way:


    If InStr(strDateTime, Format$(Time, ":")) Then
  12. Replies
    23
    Views
    692

    Re: Allocating memory for execution?

    You may want to consider giving The Enigma Protector a try.


    http://enigmaprotector.com/images/pic-box-en.png
  13. Replies
    7
    Views
    237

    Re: Question about CreateProcess

    Well, I suppose that's true. However, if you'll often be "transferring large amounts of data between" your 2 processes (as you mentioned in your OP), the file mapping approach is going to be the...
  14. Replies
    22
    Views
    479

    Re: GetSaveFilename

    Can you also please post the API and UDT declarations? Thank you.



    Try changing this line:


    .lpstrFile = pstrFile & Space$(MAX_PATH - Len(pstrFile))

    to this:
  15. Replies
    7
    Views
    237

    Re: Question about CreateProcess

    http://www.vbforums.com/image.php?u=147151&type=sigpic&dateline=1374042884
  16. Re: How to delete a read-only file with a unicode name

    Hmm, you're right! :thumb:
  17. Re: How to delete a read-only file with a unicode name

    Private Declare Function DeleteFileW Lib "kernel32.dll" (ByVal lpFileName As Long) As Long
    Private Declare Function SetFileAttributesW Lib "kernel32.dll" (ByVal lpFileName As Long, ByVal...
  18. Re: VB6 - Retrieve system information from Explorer

    The following function returns an array of the filenames and/or folders cut/copied via Explorer:



    Private Declare Function CloseClipboard Lib "user32.dll" () As Long
    Private Declare Function...
  19. Replies
    3
    Views
    125

    Re: Newbie Array and Other Question

    The VB6 manual discusses arrays here and here. I strongly recommend that you bookmark the online VB6 documentation.



    VB6 has a built-in function for generating pseudo-random numbers. See the...
  20. Re: CommonControls (Replacement of the MS common controls)

    Sure. Check out the links in this Google search.

    Attached below is a demo project and some pARGB BMP samples. Extract the archive contents to the ComCtlsDemo folder in Krool's ComCtlsDemo.rar.zip....
  21. Re: Passing foreign language strings to a C# program

    (Off-topic!)

    There is a workaround to prevent VBForums from down-sizing and converting image attachments wider than 600 pixels to JPEGs - see Re: Image Test - Using tags WITH inline attachments!...
  22. Re: Passing foreign language strings to a C# program

    It appears that VB6's String data type and .NET's String Class are both using UTF-16 encoding, so it's probably not necessary to convert anything. The only thing left you'll have to worry about is...
  23. Re: CommonControls (Replacement of the MS common controls)

    Transparency is indeed supported for BMP files. However, it can't be just any regular BMP file, it has to be a pre-multiplied ARGB BMP file.
  24. Re: If... Then (without using = true or = false)

    IMHO, a more descriptive variable name would be both readable and efficient:


    Dim IsRecording As Boolean

    If IsRecording Then

    Personally, I have nothing against using Hungarian notation...
  25. Re: CommonControls (Replacement of the MS common controls)

    I haven't tested this, but I believe a MaskColor property is no longer necessary because the CommandButtonW's Picture property already supports transparency in icons/bitmaps.
  26. Re: One Wrong Value (VB6 with Excel)

    Try converting your Single variables to Currency:


    Gross = (CCur(sngTotSells) - CCur(sngTotBuys)) * CCur(sngContractValue)
  27. Re: Removing random numbers from a 100 chart. :)

    124597
  28. Re: Removing random numbers from a 100 chart. :)

    What exactly do you mean by "chart"? Can you post your code so far?
  29. Re: CommonControls (Replacement of the MS common controls)

    Create an invisible popup menu control (and its submenus) using the IDE's Menu Editor dialog, then pop it up when the CommandButtonW's DropDown event fires. Position the menu like this:


    ...
  30. Replies
    17
    Views
    915

    Re: [VB6] RSA Data Signing via CNG

    There are 3 issues with your latest code:


    It seems that VB6 ignores any attempts to raise an event while a class instance is still going through its Initialize event.


    The array that...
  31. Replies
    6
    Views
    228

    Re: Format Number

    OK, here's a wrapper function that takes care of that issue:



    Public Function FormatSpecial(ByRef Expression As Variant) As String
    Dim Pos As Long

    FormatSpecial =...
  32. Replies
    6
    Views
    228

    Re: Format Number

    According to the User-Defined Numeric Formats (Format Function):



    Therefore, what you need to do is specify a literal comma instead of the thousand separator character. From that same page:

    ...
  33. Re: Resolved. Windows Media Player commands/identifier

    See the Windows Media Player Object Model Reference. Some of the commands you listed can be found under the Player Object and Controls Object subtopics.
  34. Replies
    17
    Views
    915

    Re: [VB6] RSA Data Signing via CNG

    Well, as you know, dynamic arrays in VB6 uses a SAFEARRAY descriptor to "describe" their elements, so I don't think there's any other way that doesn't involve manipulating the array descriptor.


    ...
  35. Re: dump a listview (headers & data) into a mdb or delimited database

    Perhaps the routine here can be of some help ...


    http://www.vbforums.com/attachment.php?attachmentid=104173&d=1378028342
  36. Re: Random Number List Maker V2 - Problem with positive integer textbox

    As discussed in this thread a couple of weeks ago, any error within an active error handler is fatal, so it is a good idea to "disable" the current error handler first before activating a new one.
  37. Replies
    17
    Views
    915

    Re: [VB6] RSA Data Signing via CNG

    Here's a method that uses a SAFEARRAY hack:



    Option Explicit

    Private Enum AlgorithmOperationTypes
    BCRYPT_CIPHER_OPERATION = &H1
    BCRYPT_HASH_OPERATION = &H2
    ...
  38. Re: Resize a picturebox, so that the picture inside the box changes in size?

    Try this:



    Option Explicit

    Private Declare Function GetWindowLongW Lib "user32.dll" (ByVal hWnd As Long, ByVal nIndex As Long) As Long
    Private Declare Function SetWindowLongW Lib...
  39. Re: Message Box that allows user intervention

    See also MessageBoxTimeout API.
  40. Re: Passing ActiveX controls to a subroutine

    Public Sub ToggleEnabled(ByRef CalBtn As <Insert Type of Your ActiveX Button Here>, ByVal bDone As Boolean)
    Const vbGray = &H808080

    CalBtn.Enabled = Not bDone

    If bDone Then...
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.