dcsimg

Search:

Type: Posts; User: Ben321

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    4
    Views
    259

    Re: How do I play simultaneous sounds?

    Ok. I figured out how to do it using Windows API. I need to create multiple WaveOut buffers. While one is playing you can start another one playing. Here's a sample program to show how it works....
  2. Replies
    4
    Views
    259

    Re: How do I play simultaneous sounds?

    I heard there SHOULD be a way using the Windows API multimedia functions (such as waveOutOpen). Do you have an example of how to do it using Windows API functions?
  3. Replies
    4
    Views
    259

    How do I play simultaneous sounds?

    For example, in a game, if I fire a shot, and before the sound effect for that shot is finished playing I fire another shot, I'll hear the combined overlapping sounds, not one sound replaced by the...
  4. Re: How do I get raw access to CD-ROM drive in VB6?

    What I meant is, is there a different WORD to use in place of "PhysicalDrive" when referring to a CDROM drive? Like would I need "\\.\CDROM#" or "\\.\OpticalDrive#", or something like that?
  5. How do I get raw access to CD-ROM drive in VB6?

    If I want access to the main FILE SYSTEM (not actual drive) for any harddrive, floppy, CD-ROM etc, I can use the "drive letter" in conjunction with CreateFile with a string that has the drive letter...
  6. Replies
    6
    Views
    1,009

    Re: How do I get DC on different graphics card?

    I'm using the game in Windowed mode. But it still shows just a black rectangle. Yes, the game window does have a valid hDC, but the image that you get from the BitBlt operation is a black rectangle...
  7. Replies
    6
    Views
    1,009

    Re: How do I get DC on different graphics card?

    I am using Windows 10. My PC has 2 GPUs. One is "integrated graphics" which is default, and the other is NVidia which is for games. My Visual Basic screencap program runs using the default GPU for...
  8. Replies
    6
    Views
    1,009

    Re: How do I get DC on different graphics card?

    That's not the problem. I have only one monitor, but 2 GPUs in my laptop. The default GPU is the "integrated graphics" one. The second one is used mainly for games, and is an NVidia GPU. When the...
  9. Replies
    6
    Views
    1,009

    How do I get DC on different graphics card?

    I have 2 graphics cards in my laptop; the default Intel one, and the NVidea 3D gaming one. I want to screencapture a game I'm playing, so I want to make a screencap program in VB6, using Windows API....
  10. 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...
  11. 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.
  12. 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...
  13. 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...
  14. 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,...
  15. 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...
  16. 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...
  17. 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...
  18. Replies
    5
    Views
    529

    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...
  19. Replies
    5
    Views
    529

    Re: How do I divide very large numbers?

    Any example code for doing this?
  20. Replies
    5
    Views
    529

    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...
  21. Replies
    0
    Views
    3,847

    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...
  22. Replies
    11
    Views
    843

    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).
  23. Replies
    11
    Views
    843

    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?
  24. Replies
    11
    Views
    843

    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...
  25. Replies
    4
    Views
    534

    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...
  26. Replies
    4
    Views
    534

    Re: Memory leak in ActiveX DLL?

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

    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...
  28. 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...
  29. 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...
  30. 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...
  31. 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...
  32. Replies
    1
    Views
    315

    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...
  33. Thread: Where's MSDN?

    by Ben321
    Replies
    5
    Views
    564

    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?
  34. Thread: Where's MSDN?

    by Ben321
    Replies
    5
    Views
    564

    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...
  35. 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...
  36. 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,...
  37. Replies
    2
    Views
    728

    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...
  38. 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...
  39. Replies
    9
    Views
    3,443

    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...
  40. Replies
    0
    Views
    364

    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...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width