Search:

Type: Posts; User: Daniel Elkins

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Re: [RESOLVED] Determine that a certain image is the same

    Yeah.

    I stopped programming for awhile and for the life of me, can't remember what password I used on that account. :sick:
  2. Thread: n2h2

    by Daniel Elkins
    Replies
    7
    Views
    855

    Re: n2h2

    What software is that data coming from? ie: What program is being used to send that data to your computer?

    The data captured from the packet monitor and from your winsock control seem the same so...
  3. Replies
    7
    Views
    616

    Re: opening up an exe file

    Not sure exactly how your software works...or if it supports VB's constants, but you could try hard-coding a value of 3 instead of vbMaximizedFocus.

    And if you're able to use API functions, you...
  4. Thread: n2h2

    by Daniel Elkins
    Replies
    7
    Views
    855

    Re: n2h2

    Not sure what your problem is? :confused:

    Also, if you're storing the data in a string, you should probably use: , vbString instead of: , vbByte in the DataArrival event.
  5. Re: [RESOLVED] Determine that a certain image is the same

    Thanks, I wrote that a couple years ago. :D Surprised I still remembered it.
  6. Re: [RESOLVED] Determine that a certain image is the same

    When you save with ".jpg" as the file extension, VB is still saving it in bitmap format...

    Also, if you want to compare images inside a PictureBox, a quick way is by using GetDIBits().

    Here is...
  7. Replies
    4
    Views
    611

    Re: Using Replace in VB?

    Here's a quick example...there are better ways, especially if the file is really large. But for ~100 lines it should work fine.

    Option Explicit

    Private Sub Form_Load()

    Dim intHandle...
  8. Replies
    2
    Views
    5,154

    Re: Reinjecting Packets Similar to WPE Pro

    It's not hard. But you need to have the code in a C/C++ DLL and have it injected inside the program and use some API hooking to get the socket handle the program is using.

    Once your DLL has the...
  9. Re: Include a file using binary (like a packer)

    Not if the whole file is written at once, which is the fastest way.



    How is that not accurate...? ex: 7 files. Max value of progress bar would be 7. As each file is extracted, you increment the...
  10. Re: Displaying text over a full screen Directx game

    It's doable but not from VB as far as I know.

    I did it in a DirectX game, but I had to write a C++ DLL and inject it into the game's process. (I don't think talking about that is aloud here though...
  11. Replies
    2
    Views
    1,017

    Re: IDE-safe subclassing

    Ah I see, thanks Lavolpe. I will probably just use Paul Caton's code or be very careful working in the IDE.
  12. Re: Include a file using binary (like a packer)

    You're welcome. :)

    You can't do a progress bar for an individual file, but if you are extracting multiple files, then you can.

    You just need to know how many files you are going to extract....
  13. Re: Include a file using binary (like a packer)

    You can add binary files to your EXE and extract them using the Resouce Editor.

    You'll need to go to the Add-Ins menu, and then Add-Ins manager, make the VB6 Resource Editor loaded and "Load on...
  14. Replies
    2
    Views
    1,017

    [RESOLVED] IDE-safe subclassing

    I have some basic code to restrict form size from getting too small.

    I think I remember there being an extra window message I need to handle to make the subclassing IDE-safe, but I don't know what...
  15. Replies
    5
    Views
    518

    Re: Using Instr()

    ahn,

    My function assumes he has a string ready to test starting with [ and ending with ]. There shouldn't be any [] in the middle of the string. Proper input handling on his part should prevent...
  16. Replies
    2
    Views
    526

    Re: Creating Type Library

    Thanks, Jim. :)
  17. Replies
    6
    Views
    2,574

    Re: Check for a valid integer?

    Here's how I would do it, take advantage of error handlers. ;)

    Option Explicit

    Private Sub Form_Load()
    MsgBox ValidInteger("32")
    MsgBox ValidInteger("256")
    MsgBox...
  18. Re: Need to be able to load and read an .exe in program

    Neither of those are hard to crack, and are pretty obvious in a debugger. If you were checking for the string "01 74 0C C7 85 D8 FE FF" then it would show up clear as day in a debugger or a hex...
  19. Replies
    5
    Views
    518

    Re: Using Instr()

    Your best bet for things like this is called regular expressions. I don't know them that well, but that's usually what is used for things like this.

    Here's an example without it though...open a...
  20. Replies
    2
    Views
    598

    Re: Word Object

    Perfect, ahn. Thanks. :cool:
  21. Replies
    2
    Views
    540

    Re: VB 6.0 Application SetUp Kit

    You can use the Package & Deployment Wizard that comes with Visual Basic.

    I never use this as the main installer though, cause it sucks. I just use it because it takes all the necessary runtime...
  22. Re: Paste text to any app with a text field?

    Might be a little hard for a first project...there are a few Windows API functions you need to use.

    First, you need to find the window handle that you are going to send text to. Windows aren't...
  23. Replies
    26
    Views
    10,901

    Re: [RESOLVED] Email Address Validation?

    Also, wether or not they are using Winsock has nothing to do with it. Some servers will tell you if a user doesn't exist and most others won't. It depends on the protocol implementation.

    That...
  24. Replies
    1
    Views
    647

    Re: API support for Foobar & VLC?

    Get it from the window caption if it's there. If it's not displayed anywhere as text, I would personally read it from the program's memory using ReadProcessMemory().

    You can search the memory...
  25. Re: Looking for VB 6.0 Programmer (Payment Included)

    $20 isn't even worth checking out the links.

    Thanks anyway. And have fun wasting your time at school. Hopefully you're not paying for it. :confused:
  26. Replies
    26
    Views
    10,901

    Re: [RESOLVED] Email Address Validation?

    I don't think all mail servers support the "this user does not exist" when specifying the recipient so it will not be 100% reliable.
  27. Replies
    26
    Views
    10,901

    Re: [RESOLVED] Email Address Validation?

    You can't do that unless the server implements something like that in the mail protocol. I don't know any that do, and I don't think it is in the standards either.

    All you can do is check if the...
  28. Fastest way to determine text file platform (Unix, Mac, DOS)

    What's the fastest way to determine if a text file is from Unix, Mac, or DOS?

    The only way I know how to tell this information is judging by line breaks since all three platforms use different...
  29. Replies
    6
    Views
    558

    Re: question about locking a document

    Pretty sure that you'll need a 3rd party control or library to do it, but there should be some free ones at least.

    A few of these results look promising:...
  30. Replies
    2
    Views
    598

    [RESOLVED] Word Object

    I need to parse out just text from a .doc file with no formatting. For RTF, I can just use the RichTextBox control, but I don't think it will work for all, if any, .doc files.

    I know there is a...
  31. Replies
    13
    Views
    7,439

    Re: Javascript in vb6

    For one, Javascript is not the same thing as Java. Two completely different things.

    And I don't think there is a Java container control like there is for Flash movies.

    Do you mean an applet...
  32. Replies
    25
    Views
    1,968

    Re: Replace text string in memory

    I gave you a link that has a working example. :confused:

    Even though there is absolutely no reason to do this in your own program.
  33. Replies
    25
    Views
    1,968

    Re: Replace text string in memory

    Look at the example here:
    http://allapi.mentalis.org/apilist/F307CAA2589BD8227FE5D6D4A27F5BDA.html

    This is usually the best site to go to if you need help with an API function.
  34. Re: my app does not fit on other computers..

    Make your form(s) smaller. If you can post some screenshots of your program then we can give you ideas on how to better group controls and layout your form.

    In rare cases, the form does just need...
  35. Replies
    4
    Views
    631

    Re: Extracting Links Continued...

    Oh, I see. Assuming your current code is working, then do what westconn1 said and use the InStr() function.

    An example:

    For i = 0 To doc.links.length - 1
    If InStr(1, doc.links.Item(i),...
  36. Replies
    4
    Views
    631

    Re: Extracting Links Continued...

    Are you trying to parse out google search results? Or... ?
  37. Replies
    7
    Views
    6,913

    Re: Save file VB6

    You can use a semicolon ; to prevent writing a blank line after the text... this works for Append mode, and I'm guessing also Output mode...

    Dim intHandle As Integer

    intHandle = FreeFile
    ...
  38. Replies
    4
    Views
    9,276

    Re: Appending 2 arrays in vb6

    I like using CopyMemory for this. I would normally do it differently, this way seems longer than it needs to be but it is so you can hopefully see what it's doing...

    Option Explicit

    Private...
  39. Replies
    25
    Views
    1,968

    Re: Replace text string in memory

    WriteProcessMemory... and we're not supposed to talk about this here I don't think...

    Edit: Didn't notice the "of my vb application" part... I thought you meant changing memory in another process.
  40. Replies
    3
    Views
    530

    Re: Avoid window from getting focus

    You might have to subclass for and block out the WM_ACTIVATE message. I don't know if that's the right message or if that will even work but it's the only idea I can think of, besides immediately...
Results 1 to 40 of 91
Page 1 of 3 1 2 3



Click Here to Expand Forum to Full Width