Search Results - VBForums

Search:

Type: Posts; User: Ben321

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    23
    Views
    563

    Re: Allocating memory for execution?

    Please stop advertising your software on these forums.
  2. Replies
    23
    Views
    563

    Re: Allocating memory for execution?

    It looks like when optimization is set, it adds the 2 numbers together before compiling, and stores the output of that addition in the compiled EXE file, rather than storing the instructions to...
  3. Re: Which is a faster method for appending byte arrays?

    I know you have classes in your VB Rich Client DLL that do JPEG encoding and decoding (same with PNG). However, I have yet to figure out how you did it. Did you use calls to WIA functions? Or did you...
  4. Replies
    23
    Views
    563

    Re: Allocating memory for execution?

    It turns out that what I thought optimize for speed did, is almost exactly what happens when NO OPTIMIZATION is done (at least for simple arithmatic like a=1 b=2 c=a+b) by changing the compile...
  5. Replies
    23
    Views
    563

    Re: Allocating memory for execution?

    I assumed the optimization option "optimize for speed" meant that it made fewer calls to MSVBVM60.dll (which it usually does for even the simplest of operations like addition), it would simply...
  6. Replies
    23
    Views
    563

    Re: Allocating memory for execution?

    To try to figure out just how actual raw binary code is stored in VB6, I decided to try to dump the code of a test function.

    The test function contains the same line of VB code repeated 10 times...
  7. Replies
    23
    Views
    563

    Re: Allocating memory for execution?

    That costs money. The point of what I'm trying to do is write something like that myself, so I don't have to spend money on copyprotecting my program.
  8. Replies
    23
    Views
    563

    Re: Allocating memory for execution?

    Actually if you look at the Declare statement for CallWindowProc, you will notice that those params to be passed are declared ByVal As Long, and I'm passing a 0 to each one. They are normally...
  9. Replies
    23
    Views
    563

    Re: Allocating memory for execution?

    I just tried this, but it crashed the VB6 IDE.


    Private Declare Function CallWindowProc Lib "user32.dll" Alias "CallWindowProcA" (ByVal lpPrevWndFunc As Long, ByVal hwnd As Long, ByVal msg As...
  10. Replies
    23
    Views
    563

    Re: Allocating memory for execution?

    By VB6 compiled DLL do you mean an ActiveX DLL? Or do you mean there's some hack that lets VB6 compile standard DLLs that can then be used with the Declare statement in another project?

    And can...
  11. Replies
    7
    Views
    205

    Re: Question about CreateProcess

    The one thing I don't know about is if I do use the method of VirtualAllocEx to create a shared memory space in another process, how do I signal to that process that said space has been produced and...
  12. Replies
    23
    Views
    563

    Allocating memory for execution?

    How does that work?
    I was looking at https://msdn.microsoft.com/en-us/library/windows/desktop/aa366887%28v=vs.85%29.aspx when I noticed this very interesting sentence.


    Apparantly I can create a...
  13. Replies
    7
    Views
    205

    Re: Question about CreateProcess

    Thanks for the info. That sounds a lot simpler than Bonnie West's suggestion of using file mapping, which last time I tried was a PAIN to get it to work right.
  14. Replies
    7
    Views
    205

    Question about CreateProcess

    When I use CreateProcess to start a program from another program, do I get access to the virtual memory space of the created process? Normally if I use CopyMemory to try to copy from one process to...
  15. Re: How do I read console text without program locking up, using WSHOM?

    Problem is that while with Winsock you know how many bytes are available to read, there is NO WAY TO KNOW how many text characters are available to read in a console using Windows script host object...
  16. How do I read console text without program locking up, using WSHOM?

    Ok so I start like this


    Dim EXE As WshExec
    Dim WSH As New WshShell

    Private Sub Form_Load()
    Set EXE = WSH.Exec("cmd")
    End Sub
  17. Replies
    13
    Views
    15,152

    Re: VB6 - Monoton Audio Lib

    Does this do audio only? OR can it RAW READ ANY DATA BITS on a CD. I would prefer it if there were a way to read anything from a data track or audio track. A dumb "bit reader" so to speak, that would...
  18. Replies
    3
    Views
    138

    Re: How do I use SPTI to access CD-ROM drive?

    Woops! It looks like I must have accidentally clicked the wrong forum link and ended up in the wrong section, before writing my post.
  19. Replies
    3
    Views
    138

    How do I use SPTI to access CD-ROM drive?

    If I want to read raw data off of a CD-ROM disk, I'm going to need to know how to used SPTI commands in VB6. For example, I've heard that even with audio CDs which are designed to only hold audio,...
  20. Re: Which is a faster method for appending byte arrays?

    The problem is finding the most efficient way of handling the HTTP stream that the WinHTTP class gives me in blocks of data as byte arrays who's start and end have NO ALLIGNMENT to the start and end...
  21. Re: Which is a faster method for appending byte arrays?

    The tricky part is splitting the frames. Unlike uncompressed data, MJPEG streams are a series of JPEG pictures. Fortunately each frame starts with with the AVI-frame indicator string "00dc", followed...
  22. Re: Which is a faster method for appending byte arrays?

    But you see, that's the thing. I DO need it in a loop. In fact my project is to take an MJPEG video stream over the internet (a stream of JPEG images, each one starting with the AVI frame-start 00dc,...
  23. Re: Which is a faster method for appending byte arrays?

    Ok I just took your advice, and tested it myself. And WOW, the first one is much faster. It's even much faster than string concatenation like Str1 = Str1 & Str2
  24. Re: Which is a faster method for appending byte arrays?

    I was hoping that this might be a well known thing among other VB enthusiasts, who would be able to give me a quick answer.
  25. Which is a faster method for appending byte arrays?

    Is it faster to Redim Preserve the old byte array, and then CopyMemory the new data into the resized old byte array? Or is it faster to create a completely new byte array who's size is equal to the...
  26. Replies
    4
    Views
    314

    Re: Question about hyperbolic trig functions

    Huh? The area is the hyperbolic angle? That makes no sense. Angles have angle units (either radians or degrees), while areas have square distance units like in^2 or m^2.
  27. Replies
    4
    Views
    314

    Question about hyperbolic trig functions

    I know they are named after the normal trig functions like SinH is the hyperbolic version of Sin for example. However I'm not sure what kind of measurement is used as the input to hyperbolic...
  28. VS 2010 Re: Whats the VB.net equiavalent to Print statement?

    Console.writeline only is useful if I'm in a console project. Guess what, I'm not. I'm in a Windows form-based project. Messagebox is actually not the correct command. It's MsgBox. And that doesn't...
  29. VS 2010 Re: Whats the VB.net equiavalent to Print statement?

    What's the Using keyword do? Never seen it before. Looks like it is used in a way similar to Imports, but when I type in Using it doesn't give me a dropdown list of things to select that I will be...
  30. VS 2010 Whats the VB.net equiavalent to Print statement?

    In VB6 you could say

    Print "Test text."
    and it would display that text on Form1 (or whatever the active form was).

    Now in VB.net I'm finding that it doesn't work that way anymore. There is no...
  31. Replies
    3
    Views
    131

    VS 2010 Re: [RESOLVED] Why doesn't this work?

    Some times when asking for help on here I get really dumb suggestions like "did you try bla bla blah", when I had already tried it. To make sure that when I got an answer it would actually be...
  32. Replies
    17
    Views
    387

    Re: Why does MSCOMCTL.OCX give me an error?

    What's InnoSetup, and what's wrong with it?
  33. Replies
    3
    Views
    131

    VS 2010 Re: Why doesn't this work?

    Upon further researching the subject, it looks like I needed this line after writing, and before reading, as writing moved the current position of the read/write pointer in the stream, and so after...
  34. Replies
    3
    Views
    131

    VS 2010 [RESOLVED] Why doesn't this work?

    Ok, so I'm trying to read and write from a stream like this. Here's the fully annotated code, with the intent of every single line of code documented.




    Imports System.IO 'make sure system.io...
  35. Replies
    5
    Views
    200

    VS 2013 Re: Problem installing VS Express 2013

    Ok I'm giving up on 2013 for now. I've instead downloaded (while MS still has it available) VSE2010, and it has a completely different installer, and it installed without a problem. I got the ISO so...
  36. Replies
    5
    Views
    200

    VS 2013 Re: Problem installing VS Express 2013

    I've tried all the fixes including comparing ISO's SHA1 hash to the one provided by Microsoft. It checks out as good. Short of reinstalling Windows so that the VSE2013 installer will have access to...
  37. Replies
    17
    Views
    387

    Re: Why does MSCOMCTL.OCX give me an error?

    Just tried that. It doesn't solve the problem. Many of the controls that I do use successfully in VB6 are also marked as "disabled" in this program.

    I'm still waiting for the other guy to get...
  38. Replies
    17
    Views
    387

    Re: Why does MSCOMCTL.OCX give me an error?

    What do you mean by "Attack of the 50 Foot InnoSetup Installer"?

    Going to C:\Windows\SysWow64\MSCOMCTL.OCX
    Right-click > properties > details
    I get this info:
    File Version = 6.1.97.86
    Product...
  39. Replies
    5
    Views
    200

    VS 2013 Problem installing VS Express 2013

    I'm getting an error installing this. I downloaded the complete ISO, so I won't need to worry about an internet connection (otherwise if my connection drops out as it does sometimes the installation...
  40. Replies
    17
    Views
    387

    Re: Why does MSCOMCTL.OCX give me an error?

    With mine I have a different problem. The error ONLY happens when Upgrade ActiveX Controls IS checked (it is checked by default in any VB6 project, meaning I will get this error for every project...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.