dcsimg

Search:

Type: Posts; User: vietnamvodich

Page 1 of 2 1 2

Search: Search took 0.05 seconds.

  1. VS 2010 libcurl curl_easy_init throw a memory exception if call from VB .NET

    I'm trying to wrap the LibcURL function to able to call from VB .NET. However it throw an exception at curl_easy_init() , this is my code for testing that throw an exception:


    Attempted to read...
  2. Exception when calling My.Computer.FileSystem.SpecialDirectories.ProgramFiles

    When calling My.Computer.FileSystem.SpecialDirectories.ProgramFiles on my client's computer.
    I got an exception: Could not find special directory 'Program Files'
    I've searched on Google but no...
  3. WndProc missing WM_KEYUP event on Windows 7 when pressing Ctrl + Shift key

    I just wrote a textbox class to capture WM_KEYDOWN/WM_KEYUP/WM_SYSKEYDOWN/WM_SYSKEYUP events:


    Public Class MyTextbox
    Inherits TextBox

    Public Const WM_KEYDOWN = &H100
    Public...
  4. Re: Call a .NET Framework-based method dynamically if exists

    Hi techgnome and jmcilhinney !
    Finally I got it working, just few lines of code:


    For Each asm In AppDomain.CurrentDomain.GetAssemblies()
    If...
  5. Re: Call a .NET Framework-based method dynamically if exists

    Thank you very very much. Yes case-sensitive is the problem. Change to "HtmlEncode" make it works!


    Now I just stuck on the first question, looking around the internet, try and try but no...
  6. Re: Call a .NET Framework-based method dynamically if exists

    Thank you very much,

    I'm new to Reflection. I try this code but it return nothing

    Dim t As Type = Type.GetType("System.Web.HttpUtility")

    If i pass the value from...
  7. Call a .NET Framework-based method dynamically if exists

    I'm making a function that compatible with both .NET 4.0 Client Profile and .NET 2-3.5 Full, the problem is .NET 4.0 Client Profile does not have System.Web.dll so I must use an alternative method in...
  8. How to disable Registry Virtualization?

    I'm using this code to write to registry

    My.Computer.Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\MyApp", "myregname", "myvalue")

    It works well in Administrator account. But when I run my app...
  9. Replies
    1
    Views
    345

    Re: Copy file from ftp:// to clipboard

    Update: using this code I can get the format/type of the clipboard:


    "FtpPrivateData"
    "OleClipboardPersistOnFlush"

    But I cannot read to mimic it


    Dim ftpData =...
  10. Replies
    1
    Views
    345

    Copy file from ftp:// to clipboard

    Open your explorer, go to ftp://ftp.ncbi.nlm.nih.gov/ , now you able to copy any file (for example the file name '1GB') to clipboard and paste it to your computer.

    I want to programmatically copy...
  11. Re: Produce a custom explorer copy/paste dialog

    Hi Chris, Thank you for the code. However, this code must to specified a source path (pFrom). How can we create a streaming source ? Please see this image , it does not show the source path ,...
  12. Produce a custom explorer copy/paste dialog

    Many remote control software like Windows Remote Desktop or TeamViewer allow you to copy the file directly from your computer and paste to the remote controlling computer. This can be describe like...
  13. Re: Unicode caption for form: not working with classic or non-themed mode

    I end up with the clsSubClass by Paul Caton and no crash, just need to remove the Unicode validate line in the class. Anyway thank you very much for your support!
  14. Re: Unicode caption for form: not working with classic or non-themed mode

    Hi dilettante ! Thank you a lot for your contribution. This subclass work great but I realized that it crash when use the End command to exit the program. Is there any better version?
  15. Re: Unicode caption for form: not working with classic or non-themed mode

    AMAZING! THIS CODE ABSOLUTELY WORKING ! THANK YOU VERY VERY VERY MUCH SCHMIDT!! :cool: :cool: :cool:

    I also tested and It's can also work without WM_NCPAINT


    Case WM_GETTEXT '<- no need...
  16. Re: Unicode caption for form: not working with classic or non-themed mode

    I think that the problem is in classical theme, Windows will look at the property of the windows to see if it was created by CreateWindowExA or CreateWindowExW (also must go with...
  17. Re: Unicode caption for form: not working with classic or non-themed mode

    Hi, I just tried on Windows Server 2008 R2 and not working too :

    154829
  18. Re: Unicode caption for form: not working with classic or non-themed mode

    @Elroy: Thank you very much but your code not working too on classical theme.
  19. Re: Unicode caption for form: not working with classic or non-themed mode

    Hi Krool, i can't make it work. Could you please tell me what I'm wrong? Here is my subclass :


    Private Sub WndProc(ByVal bBefore As Boolean, _
    ByRef bHandled As Boolean, _
    ByRef...
  20. Re: Unicode caption for form: not working with classic or non-themed mode

    Hi there!
    Thank you all for reply on my thread.
    I've spent a day to struggling for this issue. I can now create a vb6 form with unicode title by register my own Unicode class with RegisterClassW...
  21. Re: Unicode caption for form: not working with classic or non-themed mode

    Hi westconn1 , try this :
    154807


    It's lucky that this issue does not occur on Windows Server 2012 by default.
    But still many people using Windows Server 2008 and it's a bit hurt.
    ...
  22. Re: Unicode caption for form: not working with classic or non-themed mode

    Hi Schmidt, i've tried it too. Yes it does work on Windows 7/8/10 with theme enabled. But try to run your app on Window Server or switch to Classic Theme (on Windows 7). You will see this:

    154801
  23. Unicode caption for form: not working with classic or non-themed mode

    Hi, I've tried most method that I found on the internet but no lucky to set a Unicode title on Window Server. This is how the application look like on Window Server:

    154799

    VB.NET Code so...
  24. Re: VB paramArray equivalent in C++ export DLL

    Oh noo, really amazing DEXWERX!!
    How can you do that -____-:confused: :confused: . Nothing to say but thank you very much for your help. I'm reading all your words and codes again and again now to...
  25. Re: VB paramArray equivalent in C++ export DLL

    Thank you 2kaud for your reply and your effort to help me. May be I will try a different method if this technique earn too much time.
  26. Re: VB paramArray equivalent in C++ export DLL

    Hi, thank you all for your reply!

    I'm not sure if initializer_list<T> is compatible to vb6/vb.net as 2kaud's answer because I need to write an export DLL for calling convenient from vb.net and...
  27. VB paramArray equivalent in C++ export DLL

    In VB.NET or VB6, I can do something like this:



    'VB.NET:
    Public Function calcSum(ByVal ParamArray args() As Double) As Double
    calcSum = 0
    If args.Length <= 0 Then Exit...
  28. Re: 'System.OutOfMemoryException' when removing dictionary item

    Thank you very much for your reply!
    I'm still investigating around the software. I will let you know if I found anything new.
  29. 'System.OutOfMemoryException' when removing dictionary item

    Hi,

    My application using an OrderDictionary to store a list of byte data fragment that about 35Kb in size :


    Dim myDictionary As New OrderedDictionary
    Dim b(35000) as byte
    'b =.......
  30. Re: Check if window is minimizing/restoring or fully minimized/restored

    Hi Lavolpe,

    Thank you very much for reply on my thread!
    I've tried to check WS_MINIMIZE flag returned by GetWindowLong(hwnd,GWL_STYLE) but it does not help me. It seems that WS_MINIMIZE is set...
  31. Check if window is minimizing/restoring or fully minimized/restored

    I'm using this code to capture screen every time the top window is minimized/restored or focus changed to other window.

    Just create a picturebox, a timer, and paste this code:


    Private Type...
  32. Re: Capture screen and record foreground window position at that time

    Hi ColinE66 and Passel, thank you all for mentioned this precious information.
    I just want to capture the screen continuously like a video recorder program. Since vb6 does not support a convenient...
  33. Re: Capture screen and record foreground window position at that time

    Thank you for your effort to help me. I've read your idea but this issue does not associated with a MouseUp event. When you move a form/window on the screen, you hold the mouse down and moving it,...
  34. Capture screen and record foreground window position at that time

    Hi, I'm making a timer interval 1ms to capture screen continuously with Bitblt and also record the foreground window position at that time :


    Dim r as rect, fWindow as long
    fWindow =...
  35. Re: Button click to show menu, click again to hide menu

    Hi jmcilhinney, Thank you very muchhhhhhh.
    Your code work well. From your code, i just edit it a bit to make another way:


    Private Sub ContextMenuStrip1_Closing(ByVal sender As Object, ByVal...
  36. Button click to show menu, click again to hide menu

    Hello,
    I'm trying to make a button with a drop-down menu. What i want for the button is : when I click on the button, the menu will show below the button, and if I click again on the button or click...
  37. Re: Link dependent .lib file without export its function to output DLL

    Yes, I already used .def file for my dll. I export only few functions on the .def file but the compiler automatic export all functions from the .lib file.
  38. Link dependent .lib file without export its function to output DLL

    Hello, I'm creating an export DLL project, my DLL use some functions from another open source projects, for example - Zlib Library.
    When I go to Project properties > Linker > Input > 'Additional...
  39. Re: .net Dictionary equivalent in c++ (performance)

    That's quite weird, have you used this code at the end :

    cout << final << ":" << a << endl; // use it at the end
    Without that code, i got 0ms too. Or may be your computer is too fast, try to...
  40. Re: .net Dictionary equivalent in c++ (performance)

    Hi!
    Thank you for these useful information.
    Yes, I've used Optimization: Full; Favor Size or Speed: Favor fast code; Whole Program Optimization: yes.



    It's because the compiler in some case...
Results 1 to 40 of 71
Page 1 of 2 1 2



Featured


Click Here to Expand Forum to Full Width