dcsimg

Search:

Type: Posts; User: Ben321

Page 1 of 13 1 2 3 4

Search: Search took 0.33 seconds.

  1. Is there a maximum DLL path length for Delcare statement?

    I'm loading a DLL function in VB6 using the Declare statement. And I know the file is at this path, but VB6 says the DLL file isn't found.

    Private Declare Function TccNew Lib...
  2. Re: [RESOLVED] error reading comm device 8020 windows 10

    Ok. You are right. I wonder if they actually tested ALL of those DLL and OCX files to see if they work? Because mscomm32.ocx surely is NOT working for reading from the serial port.
  3. Re: How do I do Asynchronous read-write in serial port API?

    Could it be a problem then with MSCOMM working with a virtual serial port? My COM1 is one end of a virtual serial cable, and COM2 is the other end of the virtual serial cable. This lets me directly...
  4. Re: [RESOLVED] error reading comm device 8020 windows 10

    One thing I know for sure is that the actual underlying Windows API for serial port control, has no problem whatsoever in Win10. I've been using that now, to run some tests on the virtual serial...
  5. Re: [RESOLVED] error reading comm device 8020 windows 10

    Anybody know what the actual reason for MSCOMM not working under Windows 10 is? Is it only with a virtual serial port that this problem exists (I don't have any real hardware to test it on right now,...
  6. Re: How do I do Asynchronous read-write in serial port API?

    Nevermind. I figured it out. I just needed to do configure a COMMTIMEOUTS structure and send it to the port with the SetCommTimeouts API function. Properly configured, it disables all timeouts for...
  7. How do I do Asynchronous read-write in serial port API?

    I notice MSCOMM no longer works in Windows 10. Any call to mscomm1.input to data from from the serial port now creates an error message. So I'm going to be directly calling Windows serial port API...
  8. Re: [RESOLVED] error reading comm device 8020 windows 10

    The sollution offered here (SCOMM) is not free. Even though it SHOULD be free directly from MS (because MS should have fixed MSCOMM, as part of its OS), it's not, so the person who made a drop in...
  9. Replies
    5
    Views
    420

    Re: How do I divide very large numbers?

    I made this program, it works on bytes with arrays (instead of decimal digits with strings), but it has a major downfall.

    Private Declare Sub GetMem4 Lib "msvbvm60.dll" (ByRef Source As Any, ByRef...
  10. Replies
    5
    Views
    420

    Re: How do I divide very large numbers?

    Any example code for doing this?
  11. Replies
    5
    Views
    420

    How do I divide very large numbers?

    What if I need to do 534579023509179830759083147590723495739579829849859357435 / 42478623874637857345689374568457834 ?
    Is there any way to do this kind of thing in VB6? Like a Big Number Math addon...
  12. Replies
    0
    Views
    2,115

    In and Out are priveliged instructions?

    Ok so remember something about in Windows XP they locked down the use of ASM instructions IN and OUT to only be usable in ring-0 (kernel) code. So I decided to downgrade to Windows 2000 by using...
  13. Replies
    11
    Views
    731

    Re: How do I define constants in ActiveX DLL?

    Enums are used to define a list of related constants. I want to define one that stands by itself (the number Pi in my case).
  14. Replies
    11
    Views
    731

    Re: How do I define constants in ActiveX DLL?

    But what if I want my DLL to use the constant, while also allowing my program (which will use the DLL) to access the same constant?
  15. Replies
    11
    Views
    731

    How do I define constants in ActiveX DLL?

    I want to define a constant in an ActiveX DLL, so when the AXDLL is added to the project in Project>References, it will make the constant be added to the project, just as if the constant had been...
  16. Replies
    4
    Views
    461

    Re: Memory leak in ActiveX DLL?

    Ok. Just checked. It's nothing in the ActiveX DLL that is causing a problem. It seems that dumping the Double() array output from a function directly to a file (rather than storing it in a temporary...
  17. Replies
    4
    Views
    461

    Re: Memory leak in ActiveX DLL?

    I'll try that. I didn't even know this was possible.
  18. Replies
    4
    Views
    461

    Memory leak in ActiveX DLL?

    Do functions that VB6 calls in ActiveX DLLs behave differently than functions run in VB6 run directly? I'm using VB6 to create a DSP (digital signal processing) ActiveX DLL, that I plan to use as a...
  19. Re: There seems to be a bug in the forum software.

    I was worried about hacking, because I've read about a certain type of hacking which probes the fields of the SQL database (I think it's called "cross site scripting" or something like that), in...
  20. Re: How do I detect VSync with Windows API in VB6?

    Interesting. At some point, the API must communicate with the graphics card via the driver (even if only the default driver). You'd think that MS would have included an API function (and default...
  21. There seems to be a bug in the forum software.

    I don't know if it's a glitch in the forum software, or if your server has been hacked somehow. What I do know is that now every time I log in, on the screen that appears immediately after login (the...
  22. How do I detect VSync with Windows API in VB6?

    I want to make a video player that updates the currently displayed frame with the next frame from the video file at a rate of EXACTLY 30 frames per second. To do that, the easiest way is to detect...
  23. Replies
    1
    Views
    274

    I have a question about Winsock API

    If I'm wanting to create my own protocol and therefore using raw IP packets (instead of TCP/IP or UDP/IP), which protocol constant should I use when creating my socket? By looking at sockets.h it...
  24. Thread: Where's MSDN?

    by Ben321
    Replies
    5
    Views
    492

    Re: Where's MSDN?

    I mean MSDN website not the VB6 help file. Why did MSDN disappear? Is it simply converted now to docs.microsoft.com? Or is there some hidden location for it now on microsoft.com?
  25. Thread: Where's MSDN?

    by Ben321
    Replies
    5
    Views
    492

    Where's MSDN?

    I go there looking for info on an API function, and end up getting this instead.
    https://docs.microsoft.com/en-us/windows/desktop/api/wingdi/nf-wingdi-bitblt
    It's not msdn.microsoft.com. Instead...
  26. Problem with reading FFMPEG stream via console

    So I've used CreatePipe and CreateProcess and ReadFile, to create an execute of FFMPEG.exe and send a stream of raw RGB pixel data from a webcam to my VB6 application. The size of the reads in my...
  27. Is it possible to use WinHTTP with VB strings?

    Most Windows API functions have ASCII and Unicode variants. However, it seems the WinHTTP functions only accept Unicode strings, at least the ones documented on MSDN. This is a problem with VB6,...
  28. Replies
    2
    Views
    671

    Pointer initialization question

    If I use this code:

    int *x = 12345678

    Is this the same (when splitting it into 2 lines of code) as saying

    int *x //declare pointer variable
    *x = 12345678 //set the value at the memory...
  29. How do you get parameters from within a Java applet?

    I have a Java applet, that will be loaded with the Applet HTML tag, and between the opening and closing Applet tags, I have several Param tags, each of which specifies some data that the applet will...
  30. Replies
    9
    Views
    3,229

    Re: I wonder if there's an easy way to hash?

    That was for SHA2-256. What about SHA2-512? An easy to use crypto DLL with all StdCall functions would go a long way to making it easy to implement crypto functionality in VB6. To be easy to use, it...
  31. Replies
    0
    Views
    311

    Do I need to reset the StretchBlt mode?

    After I use SetStretchBltMode, to set the desired mode for StretchBlt, am I required to set it back to the default value before closing the program associated with the given hDC? I don't intend to...
  32. Replies
    9
    Views
    3,229

    Re: I wonder if there's an easy way to hash?

    When I use the official crypto API functions in Windows, I have to use CreateHash and other related functions, but those all require I previously got a handle to a cryptographic provider. Imagine...
  33. Replies
    32
    Views
    1,212

    Question about classes in VB6

    When you set an object variable to a class, it creates an instance of that class. That instance includes a a VTable with pointers to functions, and also a copy of any variables the class uses. What...
  34. Re: Different picture loading functions behave significantly different

    At some point though, VB6 programs that use Load Picture must call a JPG loading function. Same thing for GIF. Does msvbvm60.dll have a JPG decoder or GIF decoder function in it, for decompressing...
  35. Different picture loading functions behave significantly different

    I assumed that VB6's LoadPicture was just a wrapper for the Windows API function LoadImage, but it isn't. I just tested LoadImage with a JPG file, but it won't load it. VB6's LoadPicture function...
  36. Replies
    7
    Views
    1,864

    Re: Running VB6 now starts up Windows installer

    What about the various GUIDs that appeared in the warnings? What do those GUIDs refer to? There were like 3different ones mentioned between the 2 warnings. Will I need to know what these GUIDs are...
  37. Thread: Memory Blt

    by Ben321
    Replies
    1
    Views
    757

    Memory Blt

    In order to copy graphics, you typically use BitBlt which works on DCs containing Bitmap objects. But the problem with that is that you have to keep track of all your DCs and Bitmaps (and dispose of...
  38. Replies
    7
    Views
    1,864

    Re: Running VB6 now starts up Windows installer

    I got 2 Warnings and 1 Information events logged when this happened.

    Warning1


    Warning2


    Information
  39. Replies
    7
    Views
    1,864

    Running VB6 now starts up Windows installer

    I traced it back to a broken addin, the Package and Deployment Wizard. For some reason, as long as PDW is enabled, whenever VB6 starts up it starts running the Windows installer. It didn't give me a...
  40. I'm curious about a couple things about RSA

    From reading Wikipedia, here's what I know.
    p and q are random prime numbers
    n is modulus
    t is totient
    e is public exponent
    d is private exponent

    p = generate random prime
    q = generate...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width