Search:

Type: Posts; User: Xiphias3

Page 1 of 5 1 2 3 4

Search: Search took 0.07 seconds; generated 32 minute(s) ago.

  1. Replies
    6
    Views
    4,793

    Re: List to List

    Something like this?

    Option Explicit

    Private Sub List1_KeyDown(KeyCode As Integer, Shift As Integer)
    Dim I As Integer

    If (KeyCode = vbKeyReturn) Then
    For I = 0 To...
  2. Replies
    4
    Views
    1,666

    Re: htmldocument loading everything.

    Try this:

    Option Explicit

    Private Sub Form_Load()
    Dim oDoc As HTMLDocument, szHTML As String, szURL As String, hFile As Integer

    szURL = "C:\youtubevid.html"
    hFile =...
  3. Re: is there a way to make a dllimport in vb6 for uxtheme.dll?

    Maybe create a local hook and intercept and the "drawing" related messages like WM_PAINT and WM_ERASEBACKGROUND and manually call the functions in uxtheme.dll.
  4. Re: is there a way to make a dllimport in vb6 for uxtheme.dll?

    This works in VB6:


    Option Explicit

    Private Declare Function SetSystemVisualStyle Lib "uxtheme.dll" Alias "#65" (ByVal pszFilename As Long, ByVal pszColor As Long, ByVal pszSize As Long, ByVal...
  5. Re: How to get the "Target" from a shortcut file

    From the menu bar click Project then reference. Select microsoft Shell Controls And Automation from the list. If its not there, click browse and select shell32.dll from Windows\System32 folder.

    In...
  6. Replies
    1
    Views
    590

    Re: In need of VTable hack example

    I found this: http://msdn.microsoft.com/en-us/library/ms994312.aspx#joyofsax_topic5
    But if you wanna offer up something, feel free.
  7. Replies
    1
    Views
    590

    In need of VTable hack example

    So im trying to implement an interface in vb with functions that do not return HRESULTs. On the TLB side I made all the functions return HRESULTs so I can use the Implements keyword in VB. These...
  8. Replies
    3
    Views
    626

    Re: Creating and writing files

    I dont see lFileNum = FreeFile()
  9. Replies
    2
    Views
    3,127

    Re: Reading REG_BINARY

    Try this:


    Option Explicit

    Private Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, ByRef phkResult As Long) As Long
    Private...
  10. Re: How to make transparent form with Visible controls

    The transparent area of the Form is completely invisible, all mouse actions go through it.
  11. Re: How to make transparent form with Visible controls

    Try this:

    Create a new project.
    Set the main form's border style to None
    Add a command button in the middle of the form
    Add this code:

    Option Explicit

    Private Declare Function...
  12. Replies
    5
    Views
    1,563

    Re: How to make tlb file of a declaretion

    Hmmmm.....
    What is the error message you're getting? I've been able to compile my app successfully with the tlb reference and it ran ok.

    I dont see a problem with using Long since the function...
  13. Replies
    5
    Views
    851

    Re: Shutdown computer...

    Try this from API-Guide:


    'In general section
    Const EWX_LOGOFF = 0
    Const EWX_SHUTDOWN = 1
    Const EWX_REBOOT = 2
    Const EWX_FORCE = 4
    Private Declare Function ExitWindowsEx Lib "user32" (ByVal...
  14. Replies
    5
    Views
    1,563

    Re: How to make tlb file of a declaretion

    To make type libraries, you need to know ODL (Object Description Langiage) and/or IDL (Interface Description Language). IDL is newer, but im used to ODL. Here it is:



    //PoluCopyBytes.odl

    [
    ...
  15. Re: [URGENT] Submit Form Using Web browser control and HTML objext libray.

    This code will submit the form (click the "create account" button) on the signup page. You already know how to fill the fields.


    Option Explicit

    Private m_bLoadedPage As Boolean

    Private Sub...
  16. Re: How to get full path of running process?

    Oh, you just added the CloseHandle().
  17. Re: How to get full path of running process?

    *added some code*
  18. Re: How to get full path of running process?

    Oh, my bad. Lemme type it up.

    EDIT:
    Just so you know, you can also use the szExeFile member of the PROCESSENTRY32 structure.


    Option Explicit

    Private Declare Function OpenProcess Lib...
  19. Replies
    1
    Views
    2,592

    Re: Record audio from mic to byte array

    Check out http://www.ex-designz.net/apidetail.asp?api_id=519 and search MSDN for waveInProc as well as waveInAddBuffer.
  20. Re: How to get full path of running process?

    Put this in a Form

    Option Explicit

    Private Declare Function GetModuleFileName Lib "kernel32.dll" Alias "GetModuleFileNameA" (ByVal hModule As Long, ByVal lpFileName As String, ByVal nSize As...
  21. Replies
    12
    Views
    1,155

    Re: Help calling functions in a DLL

    Rather than assuming the error length is a maximum length of 1024 and manually checking for the null character (0), why don't you just get the length of the string with lstrlen?


    Private Declare...
  22. Replies
    3
    Views
    999

    Re: Stamp image's.

    No problem. However, the text scaling isn't perfect and i cant figure out how to fix it. lol. Anyway, trying replace this line in cmdSave_Click()

    Me.Font.Size = nPrevSize + (nPrevSize * (m_sScale...
  23. Replies
    3
    Views
    999

    Re: Stamp image's.

    Its possible especially with GDIPlus. Lemme type up something.

    EDIT:
    Heres something to get you started. Feel free to ask any questions.

    EDIT 2:
    Updated the code...
  24. Re: [RESOLVED] Find link for the image and display it

    No problem. Resolve the thread.
  25. Re: Find link for the image and display it

    I've attached a project. Look at it.
  26. Re: How to add Date + Days? Please Help I've been trying all day.

    Option Explicit


    Private Sub Form_Load()
    'Add 5 days to the current date (d means days)
    Call MsgBox(CStr(DateAdd("d", 5, Date)))
    End Sub
  27. Replies
    6
    Views
    645

    Re: Question about Case Statement

    Like this?


    Select Case 19
    Case 1 To 17, 20
    '...
    End Select
  28. Replies
    3
    Views
    693

    Re: bad file name error #52

    No idea cuz i dont see anything wrong. Have you tried restarting the IDE?

    Option Explicit

    Private Declare Function GetLogicalDriveStrings Lib "kernel32.dll" Alias "GetLogicalDriveStringsA"...
  29. Replies
    8
    Views
    1,003

    Re: i think this is an array problem

    "control array element 2 doesnt exist" means exactly that. At some point loopval is becoming greater than 1. I suggest you step through your code and use Debug.Assert and Debug.Print
  30. Thread: Help with ODL

    by Xiphias3
    Replies
    1
    Views
    660

    Re: Help with ODL

    It seems the functions defined in the TLB must return HRESULT. With that said, how is a function supposed to return a long and a HRESULT?

    EDIT:
    Well, this in ODL:



    HRESULT TxGetDC([out,...
  31. Thread: Help with ODL

    by Xiphias3
    Replies
    1
    Views
    660

    Help with ODL

    Hello.
    I'm trying to make a TLB for the ITextHost interface. What ive come up with compiles OK, but when i do the "Implements ITextHost" line, vb isnt letting me define the functions of the...
  32. Replies
    6
    Views
    6,674

    Re: VB6 - X3Button

    This is a late reply, however you can easily rip out the rtf features or wait until i put together a ITextHost tlb and implement the RTF functionality in VB.
  33. Replies
    7
    Views
    926

    Re: I never knew, that...

    Can you tell us what the line of code that caused error is?
  34. Replies
    26
    Views
    3,584

    Re: Clipboard and PictureBox

    lol
    Right above your first post at the top of the page, click Thread Tools then click mark Thread Resolved
    To add to someone's reputation, click Rate this post below their avatar.
  35. Replies
    26
    Views
    3,584

    Re: Clipboard and PictureBox

    No problem. Now, if you don't mind, resolve the thread and share sum love by repping me ;) .
  36. Replies
    26
    Views
    3,584

    Re: Clipboard and PictureBox

    *updated the code above*
  37. Replies
    26
    Views
    3,584

    Re: Clipboard and PictureBox

    Well you can use GetDIBits() to get the actual binary data of the bitmap you receive via printscreen. Im gonna type up something.

    This will get you the image bytes so you dont have to do a binary...
  38. Replies
    6
    Views
    6,674

    Re: VB6 - X3Button

    You have to compile the X3Button youself as well as the X3RTFPrinter if you're gonna include the windowless rich edit implementation. You need vc++ 2k8 to compile the X3RTFPrinter.dll.
  39. Replies
    134
    Views
    610,819

    Re: Webbrowser Control Tip and Examples

    Here's 2 additions:
    Requires MSHTML Object Library and the WebBrowser is called wbMain

    Waiting for a webpage to load

    cNavAndWait

    Option Explicit

    Private Declare Function GetTickCount...
  40. Replies
    6
    Views
    6,674

    VB6 - X3Button

    Here's a command button user control. It's in the finalizing stage but if anyone is interested you can check out the code. It seems to be waaaaaaaayyy more stable when compiled than when in IDE....
Results 1 to 40 of 188
Page 1 of 5 1 2 3 4



Click Here to Expand Forum to Full Width