Search:

Type: Posts; User: Lauriux1

Page 1 of 7 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: Should I use CloseHandle even if process is "killed" using TerminateProcess?

    Thank you all! RESOLVED:check:
  2. [RESOLVED] Should I use CloseHandle even if process is "killed" using TerminateProcess?

    I use this code to terminate a process:

    Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccessas As Long, ByVal bInheritHandle As Long, ByVal dwProcId As Long) As Long
    Private...
  3. Replies
    17
    Views
    3,608

    Re: [RESOLVED] Need help taking a screenshot

    Ok, thank you LaVolpe!
  4. Replies
    17
    Views
    3,608

    Re: [RESOLVED] Need help taking a screenshot

    Thank you LaVolpe you have provided useful information so I decided to test it.

    I wrote this code for test purposes:

    Private Declare Function GetDC Lib "user32" (ByVal hWnd As Long) As Long...
  5. Replies
    17
    Views
    3,608

    Re: [RESOLVED] Need help taking a screenshot

    So the correct answer will be Form1.ScaleMode = vbPixels ? :)

    Form1.ScaleMode = vbPixels does that somehow will also affect other thing on the form?

    Also what you guys suggest to use...
  6. Replies
    17
    Views
    3,608

    Re: [RESOLVED] Need help taking a screenshot

    Sorry but I'm not sure if I correctly understand you and even if I understand you correctly then I still don't know how to realize that in code. :(
  7. Replies
    17
    Views
    3,608

    Re: [RESOLVED] Need help taking a screenshot

    I have tested all resolutions on my laptop but I was unable to reproduce behavior. But I have Googled and it is clear that many people face with this problem on their computers that's why I don't...
  8. Replies
    17
    Views
    3,608

    Re: [RESOLVED] Need help taking a screenshot

    There is one more problem! It appears that there is a problem with Screen object in VB6: http://support.microsoft.com/kb/253940

    As Microsoft Knowledge Base suggests I will use GetDeviceCaps API...
  9. Replies
    17
    Views
    3,608

    Re: Need help taking a screenshot

    Thank you all for your help! RESOLVED :check:
  10. Replies
    17
    Views
    3,608

    [RESOLVED] Need help taking a screenshot

    Some time ago I have found this code somewhere in the vastness of the internet:


    Private Declare Function GetDesktopWindow Lib "user32" () As Long

    Private Declare Function GetDC Lib "user32"...
  11. Re: How to find all installed webcams and microphones?

    Thank you SamOscarBrown, I saw that thread before but didn't paid much attention to the lower comments. :thumb:
  12. Re: How to find all installed webcams and microphones?

    If I'm not wrong then it is for .NET not for VB6. :(

    Official DirectShowNET library's web page says:



    http://directshownet.sourceforge.net/about.html
  13. Re: How to find all installed webcams and microphones?

    I have used Google also searched in VBForums and Planet Source Code and found nothing (or at least didn't noticed).



    This code just returns 0 if there is no webcam connected and 1 if webcam is...
  14. [RESOLVED] How to find all installed webcams and microphones?

    I'm searching for a VB6 code which could detect all installed webcams and microphones but I have found nothing. So I'm asking for a help maybe someone already done that before and could share the...
  15. Re: How to setup FTP Server in Windows 7 via VB6 app?

    Have you checked www.planet-source-code.com ?



    I have tested many free FTP servers but main problem of them was that they did not supported files with Unicode characters in file name. That's...
  16. Re: How to setup FTP Server in Windows 7 via VB6 app?

    Yes, I also thought about that but still decided to ask for help, maybe there is an easier and more proper way to do that. Anyway thanks westconn1 for suggestion. :)


    Yes, I know.

    I will wait...
  17. [RESOLVED] How to setup FTP Server in Windows 7 via VB6 app?

    Here is an example how to setup FTP Server in Windows 7 manualy:

    http://www.c-sharpcorner.com/UploadFile/7d3362/ftp-configuration/

    But is it possible to setup FTP Server in Windows 7 via VB6...
  18. Replies
    9
    Views
    7,753

    Re: Looking for good VB6 P-Code decompiler

    I know that there is obfuscation tools for .NET based applications, but never have heard about obfuscation tools for VB6 apps?
    Also talking about .NET based applications, same as there is...
  19. Replies
    9
    Views
    7,753

    Re: Looking for good VB6 P-Code decompiler

    Agree, and it is one of the reasons why I not like .NET
  20. Re: making an exe of a project causes emailworm

    But it helped to solve bhavik's problem.
  21. Re: [RESOLVED] making an exe of a project causes emailworm

    @dilettante

    Yes, that's correct, I kanow about that. :)
  22. Re: making an exe of a project causes emailworm

    No problem, it was glad to help. :)
    Same problem is not only with this particular project, you can compile an empty VB6 project with Microsoft name in project version and some antivirus programs...
  23. Re: making an exe of a project causes emailworm

    I just remembered my old days when I was a kid who was writing trojans (just for interests of coding, nothing bad) and remembered that such small thing may cause false positive detection, I have...
  24. Re: making an exe of a project causes emailworm

    Ok, I know what causes false positive detection, here is solution:

    108551
  25. Re: making an exe of a project causes emailworm

    Download what?
  26. Replies
    6
    Views
    1,116

    Re: Using loop in text box

    Don't forget to set TextBox MultiLine parameter to True in other way vbNewLine won't work!


    Private Sub Command1_Click()

    Dim i As Integer

    For i = 0 To 10

    Text1.Text = Text1.Text & "work...
  27. Re: making an exe of a project causes emailworm

    Just checked on NOD32, NOD32 says nothing. Uploaded to VirusTotal, VirusTotal shows 5 detections of 48. I think that it is just a false positive, maybe part of compiled project matches an malware...
  28. Replies
    8
    Views
    2,937

    Re: saving file to a public folder in windows 7

    Here is another way to get %SystemDrive%\Users\Public directory, also this way supports Unicode:

    Set oShell = CreateObject("WScript.Shell")

    MsgBox oShell.ExpandEnvironmentStrings("%PUBLIC%")
    ...
  29. Replies
    8
    Views
    2,937

    Re: saving file to a public folder in windows 7

    Call FileCopy("C:\1.txt", Environ$("PUBLIC") & "\1.txt")
    Copies "1.txt" from directory "C:\" to directory "%SystemDrive%\Users\Public\".
  30. Replies
    6
    Views
    1,377

    Re: Need help with ReadFile function

    Thank you, Bonnie West for your tips, they were useful and helped me to solve the problem! I mark this thread as [RESOLVED]. :)
  31. Replies
    6
    Views
    1,377

    Re: Need help with ReadFile function

    Thank you for your reply, Bonnie West!
    I have checked the link you have posted and there I found 'HugeBinaryFileHandler' Class Module posted by user 'halsboss' (comment #8). And using this Class...
  32. Replies
    6
    Views
    1,377

    [RESOLVED] Need help with ReadFile function

    I already have written a code using which I can send files over internet using a Winsock control, but there is one problem, my code can't read and write files bigger than 2GB and files which use...
  33. Re: How to get process info (Process User Name) ?

    Thank you, Bonnie West! I have tested your code and so far it works fine without any errors, so I mark this thread as [RESOLVED]. :)
  34. Re: How to get process info (Process User Name) ?

    No, error is not because of that. Error has something to do with WMI (Windows Management Instrumentation). Sometimes I run it and it works fine, but sometimes I run it and it crash with this error:
    ...
  35. Replies
    3
    Views
    4,008

    Re: FindWindow returns 0

    Should be vbNullString instead of ""


    AppHwnd = FindWindow(vbNullString, "App1")
  36. Thread: Friend?

    by Lauriux1
    Replies
    3
    Views
    808

    Re: Friend?

    There is two types of functions Public and Private. Public functions can be called from any form or module while Private functions can be called only from the same module or form where Private...
  37. Re: How to get process info (Process User Name) ?

    This code works, but the problem is that from time to time it tends to crash. When this code crashes in IDE, IDE shows this error message:



    And highlights line of code which I have marked in...
  38. Re: How to get process info (Process User Name) ?

    Actually at the moment I use this code:


    Private Sub Form_Load()

    Dim ProcessUserName As Variant

    Dim colProcesses As Object

    Dim objProcess As Object
  39. [RESOLVED] How to get process info (Process User Name) ?

    I'm searching the way how to find 'User Name' of an external process.

    106969

    Any help will be appreciated, thank you in advance!
  40. Re: JoinDomainOrWorkGroup fails on Windows 8

    Strange, maybe UAC was disabled?
Results 1 to 40 of 279
Page 1 of 7 1 2 3 4



Click Here to Expand Forum to Full Width