Search:

Type: Posts; User: Ben321

Page 1 of 13 1 2 3 4

Search: Search took 0.29 seconds.

  1. How do I use the byte arrays returned from Read method of the ADODB.Stream object?

    The only way in VBScript to read data properly from a binary file is the ADODB.Stream object. Here's some code I have to read a file in the VBScript code of my ASP page.

    dim obj
    dim bytearray...
  2. Replies
    43
    Views
    49,522

    Re: "continue" in vb6?

    I posted it in case anybody else was, like me, searching if VB6 had a Continue statement. I wanted to have a concrete answer for anybody else who ended up here from a Google search (like I did)....
  3. Replies
    43
    Views
    49,522

    Re: "continue" in vb6?

    The not including of a Continue statement in the VB6 programming language is a major oversight on the part of the idiots at MS who were writing the VB6 programming language. There absolutely is...
  4. Re: Make a simple and efficient typelib generation tool

    You say this trick lets you make publicly defined UDTs in a reg-free manner, but remember, VB6 will automatically register your DLL immediately after building your ActiveX DLL profect. It's not...
  5. Re: Make a simple and efficient typelib generation tool

    For that, you'd first need to know what the internal structure of a TLB file is. As far as I know, the internal structure of a TLB file is undocumented. If anybody has reverse engineered it yet...
  6. Re: I beg of you PLEASE consider offering perpetual licenses.

    Still though is the problem that this guy writing tB doesn't seem to know his audience. He's writing software intended to be a drop-in replacement for VB6, to help those who are familiar with VB6 to...
  7. Re: I beg of you PLEASE consider offering perpetual licenses.

    Ok. That's good to know.
  8. Re: I beg of you PLEASE consider offering perpetual licenses.

    I know developers have monetary incentive to go the route of subscription software, and while younger people might be ok with this and expect it, I come from a generation who's used to buying a...
  9. I beg of you PLEASE consider offering perpetual licenses.

    The actual VB6 was offered for a one-time purchase at a price of about $600 by MS. I'm sad to see that you have chosen to offer only perpetual licenses. I hope you will reconsider this, and allow...
  10. Re: What is the function VBDllUnRegisterServer used for?

    VB6 doesn't use regsvr32 though, when compiling an ActiveX DLL.

    Maybe @TheTrick you could help out here. You know all about these kinds of undocumented VB6 internals.
  11. What is the function VBDllUnRegisterServer used for?

    Is this how VB6 actually registers classes and interfaces when you are compiling an ActiveX DLL type of project? I know that VB6 does automatically register these, from running an attached...
  12. Re: DispCallFunc is behaving really weirdly now in VB6.

    It seems my function declaration for DispCallFunc had been missing the "As Long" at the end for the return type. Though I thought I'd checked that a dozen times already and I didn't see it missing.
  13. Re: DispCallFunc is behaving really weirdly now in VB6.

    Nope. It's supposed to push just the arguments on the stack before calling the DispCallFunc, but instead it's pushing an extra argument. This is causing everything to be shifted by 4 bytes from where...
  14. DispCallFunc is behaving really weirdly now in VB6.

    I'm looking at what it's doing in my debugger, and every call to DispCallFunc that my program makes, it pushes one too many arguments on the stack. The Private Declare Function statement I'm using...
  15. Replies
    3
    Views
    3,163

    Re: What's wrong with DeviceIoControl?

    After looking at some other example, I finally figured out how to do it (no thanks to the MS docs, as I'd already read all the applicable docs, but they weren't helping me get past this error)....
  16. Replies
    3
    Views
    3,163

    What's wrong with DeviceIoControl?

    I'm trying to do this in Visual Basic 6. I'm following, to the best of my understanding, how I'm supposed to use the DeviceIoControl API function, and I'm trying to use it with the...
  17. Here's some code to convert between LBA and CHS forms of drive sector addressing

    Put this code in a module, and set the first 3 constants to accurately describe the drive you are working with (these are the drive geometry parameters). In the code here, I already have these set...
  18. Re: What is wrong with my implementation of CRC-16/IBM-3740

    That code suggestion makes no sense. What you have here is performing an initial XOR on the actual data. However, from my understanding of CRC parameters, it's not an initial XOR that is supposed to...
  19. Re: What is wrong with my implementation of CRC-16/IBM-3740

    Thanks, but that is based on using a precomputed table. I'm looking to figure out specifically what is wrong with my algorithm, which directly performs the CRC calculation on the input data, without...
  20. Re: What is wrong with my implementation of CRC-16/IBM-3740

    Nope. I had forgotten to define some of my variables (causing them to default to being variants), but that isn't the cause of the problem. If a variant contains a Long, then it behaves as a Long. I...
  21. What is wrong with my implementation of CRC-16/IBM-3740

    This 16bit CRC (sometimes incorrectly called CRC-16/CCITT, so is also known as CRC-16/CCITT-FALSE) I'm trying to implement, has the following properties:
    polynomial = 0x1021...
  22. Re: How can I use the Cdecl keyword in a Declare statement?

    So it's an ActiveX DLL then?
  23. Re: How can I use the Cdecl keyword in a Declare statement?

    Please tell me how to install this DLL. I put it in the same folder as VB6.EXE but VB6 isn't detecting it.
  24. Re: How can I use the Cdecl keyword in a Declare statement?

    What folder should I put this in so VB6 can find it? I vaguely remember there being a dedicated addins folder for VB6, but I can't find it now. Am I supposed to just put it in the same folder as the...
  25. Re: How can I use the Cdecl keyword in a Declare statement?

    I just found that and updated my post to reflect that I found that.
  26. How can I use the Cdecl keyword in a Declare statement?

    While the IDE seems to recognize the syntax Declare Function SomeFunctionName Cdecl Lib "SomeDllName.dll" (Function Params) As RetValType it doesn't actually work when you then try to call one of the...
  27. Replies
    11
    Views
    2,154

    Re: How do I compile without linking in VB6?

    The default VB6 linker outputs an ActiveX DLL, with no way to output a standard DLL. Also the VB6 linker automatically calls the resulting DLL's DllRegisterServer function, forcing it to be...
  28. How do you force SaveSetting to save to an INI file?

    I found this very interesting thing here https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/savesetting-statement that the VBA SaveSetting statement (which also is...
  29. Why so many different libcmt files for compiling in the latest version of VS 2022?

    I have VS Community 2022, and I found it has tons of versions of libcmt.lib? There's the normal x86 and x64 versions, but then there's also onecore versions of x86 and x64 (plus a onecore Arm...
  30. What is the equivalent release function for CoCreateInstance?

    I know that the Windows API function CoCreateInstance lets you create an instance of a specified class with a specified interface that's implemented by that class (based on the inteface GUID and...
  31. How do I correctly use .NET objects in VB6? Is a TLB available for it?

    I tried going to the menu project>references and then adding mscorlib.dll which does give me some level of access, but not very good. I mean I can see all the classes in the Object Browser window,...
  32. Where can I get the documentation for msscript.ocx?

    The ActiveX control called Microsoft Script Control appears to be undocumented. Nothing about it on the MS documentation website (that used to be called MSDN). Somebody else was looking for it here...
  33. How do I use the MSI ActiveX component to add a cab file to the MSI file?

    I'm using VB6 to write my own MSI installer maker. I'm using the "Microsoft Windows Installer Object Library" ActiveX component for this. It basically wraps all of the normal MSI Windows API...
  34. Re: I need help figuring out how objects and VTables work in VB6.

    Thanks for that. It seems that indeed there is indeed a This pointer to the current object in all these functions. As for VB6, I think it doesn't turn interface functions into subs. It keeps them as...
  35. Re: [VB6] Modern Shell Interface Type Library - oleexp.tlb

    Still, there are some obviously missed very useful functions. The VirtualFree one is a good example. Each memory allocation function should have a matched memory free function.
  36. Re: [VB6] Modern Shell Interface Type Library - oleexp.tlb

    This is awesome! However the TLB is missing a few important things in the kernel32 module. While it has VirtualAlloc, it's missing VirtualFree. So if you just use VirtualAlloc, you'll find yourself...
  37. Re: I need help figuring out how objects and VTables work in VB6.

    I see. So the version I need to be using is the 2 argument version then, which is shown here https://learn.microsoft.com/en-us/windows/win32/api/unknwn/nf-unknwn-iunknown-queryinterface(refiid_void)...
  38. I need help figuring out how objects and VTables work in VB6.

    I decided to try to learn how the internals of VB6 objects (which I think are actually COM objects) actually work. To do this, I decided to try to code my own object, with VTables and everything. It...
  39. How exactly are the three finders on a QR Code detected?

    I know they have a unique shape, and are positioned at 3 corners of the QR Code, but how are they actually detected? I was thinking about it, and it seems like a "chicken or egg" problem.

    To align...
  40. I have a question about Java and reading files

    Normal ways of accessing files like reading data via the DataInputStream( which then contains a FileInputStream), only allows sequential reading from the file with things like readDouble(), or...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width