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

What's wrong with my Heap API commands here?

I read that LocalAlloc and GlobalAlloc are now considered old, and MSDN recommends using Heap functions instead. So I read how to use them and I tried the below. But I'm getting unexpected results,...

View Article


Question about CreateProcess and closing handles

So according to https://msdn.microsoft.com/en-us/lib...=vs.85%29.aspx I need to close the process and thread handles in the PROCESS_INFORMATION structure, when I'm done using them. But what about if I...

View Article


Questions about STARTUPINFO structure in VB6

Since VB6 is a bit quirky with userdefined types, and all the rules it has for handling them internally, while the results withing VB6 might appear fine, when passing a UDT to another process like an...

View Article

What exactly are the parameters for the API method called DispCallFunc?

Looking at MSDN I see Code: HRESULT DispCallFunc(   void      *pvInstance,   ULONG_PTR  oVft,   CALLCONV  cc,   VARTYPE    vtReturn,   UINT      cActuals,   VARTYPE    *prgvt,   VARIANTARG **prgpvarg,...

View Article

Retrieve data from another program into VBA

I'm trying to retrieve data from another software, called CMA Series 4 into my Excel. I already was able to get a handler for the chart i wanna retrieve that data, but from now, i have no idea how to...

View Article


SetWindowPos

First off i'm not quite sure if this question belongs in this section or not, so if a mod feels it would better answered somewhere else please move it. So I am trying to host a WinWord 2010 app in my...

View Article

Question about CreateFile parameter dwCreationDisposition

If you use Truncate (the value 5) for this parameter, it opens the file and then removes all the bytes of data in the file when it is opened, but does it allow further access (reading and writing)...

View Article

Questions about DLL calling conventions

Ok so using GoAsm assembler and GoLink linker, along with the Easy Code GUI for the GoAsm suite, I wrote my own DLL file, complete with some exported functions, entirely in assembly language. Problem...

View Article


API / Code for adding text equal to the filename to a PDF Document

Hi there, I need to add the file name to the top right an existing PDF document (it is a scan of an invoice). I'm using MS Access & VB to process the scan, assign the file name and email the PDF...

View Article


Possible memory problem with using Windows API to get icons

Hello, I'm currently writing a small file manager. It's just a small program I'm writing in my spare time for fun. It's going well, except for this problem. I'm trying to use the Windows API to get...

View Article

How do I make a resetable timer?

I have been looking at these API calls: the function GetTickCount the pair of functions QueryPerformanceFrequency QueryPerformanceCounter and this set of functions timeBeginPeriod timeGetTime...

View Article

So here's how to suspend a process via Windows API

I'd been trying to figure it out for a long time. You can use TerminateThread to terminate a thread, or SuspendThread to suspend a thread. While TerminateProcess is the process equivalent to...

View Article

Questions about file handles and locking

What API function can be used to determine what file handles already exist for a file, being accessed by another program? I know that if there's a file you want to delete and another program has not...

View Article


Need some help with clipboard access

So I need to allocate memory and get an hMem handle to pass to the SetClipboardData function. Which should I be using, the GlobalAlloc or LocalAlloc functions? And when getting data out of the...

View Article

So is this supported under a WinXP SP or not?

I notice on the MSDN page for CryptBinaryToString there's this bit of info about one of the flags that can be used with this function: Quote: Value Meaning CRYPT_STRING_NOCRLF 0x40000000 Do not append...

View Article


radio thermostat android wear

when I go to the page I liked the link automatically open get info. how to automatically open a web page http://192.186.1.6/tstat Then have it adjusted thermostat?

View Article

How do I pass WAVEFORMATEX to API functions?

In the function waveOutOpen, you need to pass a WAVEFORMATEX, yet if you do Len and LenB on WAVEFORMATEX, you'll notice that LenB is bigger than Len, indicating that the in-memory copy of a...

View Article


Click button on a toolbar in another program

Hi, I have searched the internet looking for how to click a button on a toolbar in another program (not internet Explorer). I found couple, but they are beyond the my capability of understanding. I am...

View Article

What's wrong with my usage of WriteConsoleOutputCharacter?

Here's my code. Code: Private Declare Function AllocConsole Lib "kernel32.dll" () As Long Private Declare Function FreeConsole Lib "kernel32.dll" () As Long Private Declare Function GetStdHandle Lib...

View Article

SafeArrayLock versus SafeArrayAccessData?

Based on the MSDN descriptions of these, it sounds like they both give you a pointer you can use to access the data stored in a SafeArray. So what exactly is the difference?

View Article
Browsing all 168 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>