POV-Ray : Newsgroups : povray.programming : GUI Extension Problem : Re: GUI Extension Problem Server Time
29 Jul 2024 04:30:41 EDT (-0400)
  Re: GUI Extension Problem  
From: Ronald L  Parker
Date: 1 Oct 1998 20:42:28
Message: <361511b7.67999000@news.povray.org>
On Thu, 1 Oct 1998 16:27:10 -0500, "Winefred Washington"
<wwa### [at] compuservecom> wrote:

>I tried using the declspec shown below:
>
>__declspec(dllexport) DWORD WINAPI PovGuiExtensionGetPointers (int RecSize,
>GuiPointerBlock *PointerBlock)
>
>but I get the Init message failure because PovRay cannot find the address of
>PovGuiGetPointer routine. The guidemo file
>does not have the routine prototyped.

Which is it?  PovGuiGetPointer or PovGuiExtensionGetPointers?  I'm
guessing it's the longer one and you just didn't want to type it
twice.

One thing that can make a difference is the parameter-passing 
scheme that you're using.  WINAPI is different from cdecl or 
fastcall.  Maybe you should drop the WINAPI and see if it 
helps, though I suspect that since POV looks up the routine by 
name, your best bet is to just continue using the def file.
Your compiler is likely to "mangle" the name by putting an
underscore on the front of it.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.