Re: Pointer to an array of pointers

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



> I used a direct declaration, no alias :
>
> Public Declare Function AVISaveV Lib "avifil32.dll" (ByVal szFile As String, _
<snip>

Be very careful when using this function declaration since you don't know whether you're calling the ASCII or Unicode
version of the call (it depends what compile flags were set when the DLL was built..) To be on the safe side it's best
to explicitly call the ASCII version of the call (or Unicode if you require wide string support), grab the function
declaration from my prior post if you need it. The two versions of the call are dealt with differently from VB which is
why you need to know which version you're calling.

> Yes, i tried the Mike solution, but it is crashing VB6 (?!?!).
>
> But after your post and other Mike´s post i´m sure that this is the way. I
> will try to bypass this, i need to think.
>
> Thanks you all guys, i will return to this issue if it melt my brain

Have a look at the comments in Ray's code on the subject:
http://www.shrinkwrapvb.com/avihelp/mAVIDecs.bas
Hope this helps,

Mike


- Microsoft Visual Basic MVP -
E-Mail: EDais@xxxxxxxx
WWW: Http://EDais.mvps.org/


.



Relevant Pages

  • Re: void : bug or feature?
    ... X_To_2are entirely contained inside the scope of ClassA's definition. ... >> Note the line indicated by the asterisks above begins with a 'void'. ... > The indicated line is simply a function declaration. ...
    (microsoft.public.dotnet.languages.vc)
  • [PATCH] update checkpatch.pl to version 0.17
    ... This version brings improvements to external declaration detection, ... to quote tracking, fixes to unary tracking, some clarification of wording, ... detect external function declarations without an extern prefix ... function declaration arguments should be with the identifier ...
    (Linux-Kernel)
  • IntPtr.Zero to PVOID - Invalid pointer
    ... I've tried various ways of changing the declaration and what I pass ... muck with the declarations for the GUID parameters since the compiler ... believes the MIDL structure GUID is different from the C# type Guid.) ... remove declarations for interfaces which I'm not even calling. ...
    (microsoft.public.dotnet.csharp.general)
  • Re: Temporary objects as constructor arguments?
    ... >> the attempt to call a method fails for these. ... The fifth is a declaration. ... declaration of a function which returns a ROD, ... would have expected this to fail to match the function declaration. ...
    (comp.lang.cpp)
  • Confusion in ANSI Cs function concepts
    ... is no function declaration corresponding to the function call and the ... call does not say anything about the return type then the compiler ... in the above case the return type is mentioned as void *. ...
    (comp.lang.c)