Quantcast
Channel: VBForums - API
Browsing all 166 articles
Browse latest View live

[RESOLVED] double buffering: how use CreateBitmap()?

Code: dim ImageBitmap as long ImageBitmap = CreateBitmap(width, height, 1, 32, 0) If (ImageBitmap = 0) Then Debug.Print "error on ImageBitmap" why i get zero on ImageBitmap? what i'm doing wrong for...

View Article



transparentblt: don't work with transparent colors?

transparentblt() is limited with some colors? what i means is that, using gif files, i'm trying draw the image transparent with a diferent result on draw(i use white, but i lose the black). can anyone...

View Article

What exactly are the size of the fields in the WSADATA structure?

Or I guess, I should be asking "what size should they be when using Winsock API in VB6?". I'm trying to use Winsock API, and I need to know exactly how to define the User Defined Type of WSADATA in...

View Article

Image may be NSFW.
Clik here to view.

Api dll

Friends, im new to visual studio, i have Frea 300 with a manual to program visual basic. it is having FRJ_API.dll file. i want to import it as add reference in visual studio 2015. but it is giving me...

View Article

[RESOLVED] transparentblt: don't work with transparent colors?

transparentblt() is limited with some colors? what i means is that, using gif files, i'm trying draw the image transparent with a diferent result on draw(i use white, but i lose the black). can anyone...

View Article


[RESOLVED] Trouble extracting Checkbox State from external application

I am trying to determine the state of a checkbox in an external program from a VB.Net WinForm application. I used Spy++ to get the handle of the checkbox. I convert the handle from hex to decimal, and...

View Article

[help] move mouse with sendinput

[Visual basic 2010] Hello.. before i explain i need to say that i searched and searched and searched all over the web and didnt find what i want. I want to move the mouse with sendinput since...

View Article

How do you get raw mouse data?

Windows translates raw mouse movement data into a change in position on the screen. You can read the current position on the screen of the cursor with GetCursorPos. However I want to read the raw mouse...

View Article


Can somebody show an example of reading data from a USB device, via WinUsb?

I am writing a VB6 program that communicates with a device where the manufacturer only created a driver for Android, but not Windows. I've installed the WinUsb driver as the driver for this device in...

View Article


Problem with FreeLibrary in VB6 IDE

FreeLibrary doesn't free a loaded DLL in VB6. If I load a DLL file with LoadLibrary, get a function pointer with GetProcAddress, and then call the function with DispCallFunc, it runs that function. If...

View Article

Is there some kind of GetDIBitsFromDevice?

For setting DIB bits SetDIBits and SetDIBitsToDevice. For getting DIB bits though there's only GetDIBits, at least as far I have seen. Is there some kind of undocumented GetDIBitsFromDevice function...

View Article

Is there anyway to determine when an external app changes

I would like to be alerted when the contents on an external app changes in any way (such as a textbox value changing). I currently know how to discover the various windows identifiers and read the text...

View Article

Run exe file and wait until it exits

I have tried multiple versions of code found by my friend Mr Google to do this. They all run the program but none of them wait until it is closed. They work with notepad.exe though. Any ideas as to why...

View Article


Some questions about GetDIBits and SetDIBits functions

Why do these functions have separate arguments for hDC and Bitmap handles? Since the Bitmap is going to be selected into the DC, why don't these functions just use the DC's handle (the hDC) for getting...

View Article

Window on Top of Screen

Hi, I am using API (VBA Excel v2106) to activate a workbook. In my example below I try to activate "Book3.xlsx". Issue: - Function lhWndWorkbookWindow() returns 0 if the workbook isn't already active....

View Article


*OleServerBusyTimeout* and *OLEServerBusyRaiseError* API alternatives ?

Hi all, Does anybody know if there are any Windows API functions that provide the same functionality of these two VB Properties . Cross Posted here :...

View Article

Question about FourCCs and ICOpen function

According to https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx there are 3 fields to ICOpen, the first of which requires an "type" FourCC to tell it what type of compressor (audio or video) is...

View Article


[RESOLVED] What does hwnd2 means?

I'm quite confused on my project I use Spy++. What do you call the child window having another child window? If I'm using FindWindowEx does it mean I need to create another one?! I know that hwnd1 is...

View Article

Image may be NSFW.
Clik here to view.

WM_KEYDOWN and WM_KEYUP Conversion to PostMessage or Send Message

Have this captured which uses a Virtual Key...ugh. Can someone please help me understand what the formatting would be to leverage SendMessage or PostMessage. I have the proper handle and postresult is...

View Article

When exactly is FlushInstructionCache needed?

I know that it's supposed to be used, whenever you use self-modifying code, as it's likely that code that has already been run will be stored in the CPU's instruction cache. The first time code gets...

View Article
Browsing all 166 articles
Browse latest View live




Latest Images