Search Results - VBForums

Search:

Type: Posts; User: Jonney

Page 1 of 12 1 2 3 4

Search: Search took 0.03 seconds.

  1. How to show my scrollbar on Form1 on Design mode

    I have a scrollbar control from Carles P.V. Another uc hold the scrollbar. I want to show it on form1 on Design mode. How to do that? I don't know whether it is ucScrollbar problem or I miss usage.
    ...
  2. Thread: Using VarPtr

    by Jonney
    Replies
    7
    Views
    240

    Re: Using VarPtr

    Look like you are educating me for my previous issue of "ReDim Preserve 2D array". Now I understand BETTER.

    Thank you very much!



    Private Sub Form_Load()

    Dim theArr() As Byte
    ...
  3. Re: how to get how much data consumed by winsock

    "godfathers", You'd better Change your VBForums ID Name, otherwise I ask for Christmas gift.:)
  4. Re: [VB6] Call Functions By Pointer (Universall DLL Calls)

    I have few links but website is in Chinese about Hook ANY API Function. I don't know whether you can understand. I sms you.
  5. Replies
    18
    Views
    434

    Re: [RESOLVED] CopyMemory failed

    First of all, thank you for help.
    I miss usage of CopyMemory because of my stubborn on the reason why the similar code in C# works. (I programmed this small project in C# at first before moving to...
  6. Replies
    18
    Views
    434

    Re: CopyMemory failed

    OK,I get me out.
    Just declare CopyMemory normally with As Any.

    Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (lpDst As Any, lpSrc As Any, ByVal Length As Long)
    And:
    ...
  7. Replies
    18
    Views
    434

    Re: CopyMemory failed

    I still can't get CopyMemory work...
    I changed HeapFree Declare, it also cause crash even I comment out CopyMemory.



    Private Declare Function HeapFree Lib "kernel32" (ByVal hHeap As Long,...
  8. Replies
    18
    Views
    434

    Re: CopyMemory failed

    Wondering why C# works. Only difference of CopyMemory Declare is IntPtr in C#.
    I need sleep. Tomorrow will try again.
  9. Replies
    18
    Views
    434

    Re: CopyMemory failed

    I still got crash... I have tried to use many combinations.
  10. Replies
    18
    Views
    434

    Re: CopyMemory failed

    Always failed @ write Data to MemoryAddress:
    CopyMemory MemoryAddress, Data(0), 6
  11. Replies
    18
    Views
    434

    Re: CopyMemory failed

    My code in C# works well.




    private static extern void CopyMemory_FromShortA(IntPtr pDst, short[] pSrc, int ByteLen);
    [DllImport("kernel32", CharSet = CharSet.Ansi, EntryPoint =...
  12. Replies
    18
    Views
    434

    [RESOLVED] CopyMemory failed

    I can't get CopyMemory work... Please help.

    Basically, I want to Copy an Integer array to a memory address (where hold all data before saving), but keep failure.
    I made a demo for showing my...
  13. Re: VB6 Handling of Alpha-Layered Windows with vbRichClient5

    Amazing!
    ...so impressive!

    I hope I can use vbRichClient5 to rewrite my some projects. But I have to spare some time to learn it.
    Not sure .NET can call vbRichClient5.dll properly?
  14. Re: ReDim Preserve to a 2D (Multi-Dimensional) Array in Visual Basic 6

    I learned it. Where can I find detailed documentation?
  15. Re: ReDim Preserve to a 2D (Multi-Dimensional) Array in Visual Basic 6

    I made a summary for others or any improvement.



    Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" ( Destination As Any, Source As Any, ByVal Length As Long)

    Private Sub...
  16. Re: ReDim Preserve to a 2D (Multi-Dimensional) Array in Visual Basic 6

    Yes,true. Your solution is more considerable.

    thank you,Sir.
  17. Re: ReDim Preserve to a 2D (Multi-Dimensional) Array in Visual Basic 6

    Yes, I realize that. I have updated my submission.
    Thanks for fast catch!
  18. [RESOLVED] ReDim Preserve to a 2D (Multi-Dimensional) Array in Visual Basic 6

    I need to do a ReDim Preserve to a 2D Array. But VB6 gives the famous error : "runtime error 9: subscript out of range".

    I know MSDN says "When you use Preserve to redim an dynamic...
  19. Replies
    14
    Views
    6,729

    Re: VB6 - Returning/Detecting Empty Arrays

    Your IsDimmed is OK as well.
    Thank you for pointing out potential risk in other's code.
  20. Replies
    14
    Views
    6,729

    Re: VB6 - Returning/Detecting Empty Arrays

    A very good and comprehensive discussion how to determine an EMPTY array. I followed all of replies but none of them give confirmed flawless solution.

    My case:

    Public Type udtMapPos
    Row1...
  21. Re: How to Position API Scrollbar (by ShowScrollBar)

    Your three solutions are very good. I choose the last.:)
    Thank you,Sir.
  22. Re: How to Position API Scrollbar (by ShowScrollBar)

    I need 2^32 Long type. 65535 is not enough for my case.
  23. [RESOLVED] How to Position API Scrollbar (by ShowScrollBar)

    Actually, I want to use VB's H/VScrollbar control, But there's a famous limit 32767 (there're some solution but complicated). I have to use VBAccelerator's API scrollbar. But it brings new issue: I...
  24. Re: COM Pointers Please (Pun Intended)

    I don't understand at all, But I search Key words "IFontDisp" in .NET reflector:




    using System;
    using System.Runtime.InteropServices;
    [Guid("BEF6E003-A874-101A-8BBA-00AA00300CAB"),...
  25. Re: Any good books to advance my VB skills?

    http://visualbasic.freetutes.com/learn-vb6-advanced/index.html
    Advanced Visual Basic (VB6) Tutorial
  26. Re: Any good books to advance my VB skills?

    Practice,Practice and Practice. That's all.
  27. Re: How to use VB6 to detect whether one of the computer in LAN has shared folders?

    I remember I did it long time ago. But I used WNetOpenEnumW and WNetEnumResourceW.
  28. Re: [RESOLVED] Copy folder with files but without subfolders

    so far so good on my Win7. Not test on XP. http://www.vbforums.com/showthread.php?616929-Rename-Open-read-Unicode-files&p=3815066&viewfull=1#post3815066



    Public Function CopyFile(ByVal...
  29. Replies
    34
    Views
    2,915

    Re: Rename , Open, read Unicode files

    Please test again http://www.vbforums.com/showthread.php?616929-Rename-Open-read-Unicode-files&p=3815066&viewfull=1#post3815066. It does work on my PC (Win7).
  30. Re: Copy folder with files but without subfolders

    I use CopeFile API instead at this moment.



    Public Function CopyFile(ByVal FileName As String, ByVal NewFileName As String, UseUnicode As Boolean) As Boolean

    If UseUnicode Then
    ...
  31. Re: [RESOLVED] VB6 SavePicture to save stdPicture

    The IStream can't save into png/jpg if we don't do hard code (DIB ...) or GDI+. Right?
    The 2nd tip is fine. I will check my code whether got CREATE_ALWAYS.

    Edited: After a good sleep, I...
  32. Re: Copy folder with files but without subfolders

    No,cyberactivex's code also doesn't work. I tried to use Varptr, to change SHFILEOPSTRUCTW definition, It seems to fail. But SHFileOperationA with SHFILEOPSTRUCTA is OK.
  33. Re: Copy folder with files but without subfolders

    SHFileOperationW in cyberactivex's code doesn't work. Refer to above codes.
  34. Re: Copy folder with files but without subfolders

    I want to use SHFileOperationW to copy a image file to another folder but failed on Win7. SHFileOperationA is OK. Bonnie West codes also failed.

    Attached code is from cyberactivex. I have to use...
  35. Re: [RESOLVED] VB6 SavePicture to save stdPicture

    @Lavolpe




    Public Function SaveAs(ByVal FileName As String, ByVal eFormat As ImageFormat)

    Dim hFile As Long

    If Len(FileName) = 0 Then Exit Function
  36. Re: [RESOLVED] VB6 SavePicture to save stdPicture

    I need to study your AlphaImage again to make your idea true. I hope I can.
  37. Replies
    9
    Views
    339

    Re: [RESOLVED] What is the below codes doing?

    Thank you, Sir.
    I read your many ultra excellent GDI+ projects for many times and for many years, it is time for me to practice. Without practice, almost no gain.
  38. Replies
    6
    Views
    4,728

    Re: DPI Awareness and VB6

    Do you have further planning to improve your AlphaImage Control with dpi awareness? Schmidt,dilettante and many others all concerned dpi problem.
  39. Replies
    9
    Views
    339

    Re: What is the below codes doing?

    Thank you,Sir.
    I will read it.
  40. Re: VB6 SavePicture to save stdPicture

    You are true. I should CloseHandle hFile after Call pvCreateFile.




    hFile = pvCreateTheFile(FileName, False, True)
    If hFile = INVALID_HANDLE_VALUE Or hFile = 0& Then Exit Function...
Results 1 to 40 of 446
Page 1 of 12 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.