Re: *weird* overflow error *after* API call; call works OK, but later simple steps fail

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Bob Butler (tiredofit_at_nospam.com)
Date: 05/19/04


Date: Wed, 19 May 2004 06:19:18 -0700


"Philip Warner" <pjw@rhyme.com.au> wrote in message
news:uI2PgnWPEHA.3420@TK2MSFTNGP11.phx.gbl
> I have a VB application that makes a API call, returns OK, but which
> then fails to do simple VBA-related actions:
>
> Private Function DoGetEntity(Info As PAN_CtlGetEntityInfo) As Long
> Dim qqq As Double
> qqq = 2
> qqq = qqq / 2
> DoGetEntity = SendMessage(myCtl, PM_CTLGETENTITY, 0, Info)

you need to post the declare for the sendmessage API and the declarations
for the constant and variables involved. Chances are that you have
something wrong but without specifics nobody can tell you what that is.

-- 
Reply to the group so all can participate
VB.Net... just say "No"


Relevant Pages

  • RE: Cannot get code to work for API Save Dialog Box
    ... You can put it in the same Standard module with DetectExcel: ... ' Declare necessary API routines: ... Declare Function FindWindow Lib "user32" Alias _ ... switch to the Excel sheet to see what happened. ...
    (microsoft.public.access.forms)
  • Re: Problem with passing parameter
    ... Appending alias to API ... Declare Function WriteFile Lib "kernel32.dll" (ByVal hFile As Long, ... Public Sub WriteData(ByRef RecData As String) ...
    (microsoft.public.vb.general.discussion)
  • RE: Code Conversion Nightmare
    ... To move from COM to .NET and still use API calls, ... > Declare Function ClosePrinter Lib "winspool.drv" As ... > Dim PrinterInfo() As PRINTER_INFO_2 ...
    (microsoft.public.dotnet.framework)
  • Re: Problem with passing parameter
    ... > 1) Your declare for WriteFile is incorrect. ... Since you're using strings you'd alias this API with an "A". ... > 2) You can *not* pass a variant, even if it's type is string, to an API ...
    (microsoft.public.vb.general.discussion)
  • Re: Threads - sharing data between them
    ... What would you reckon about Read/WriteProcessMemoryAPI? ... > Adam, and so are part of the same virtual address space, each thread ... > declare your variables, each thread will get its own copy in Thread Local ... >> I want a background thread to modify some data held within a user type ...
    (microsoft.public.vb.winapi)