GMP "wrapper dll" for visual basic 6

peter orangepi77 at yahoo.com
Mon Jul 3 13:23:03 CEST 2006


in Tue, 3 Jun 2003  a  letter entitled Win32 GMP Port (notes for VB, Delphi, Pascal, PowerBasic, etc) by  White, Jim  
http://www.swox.com/list-archives/gmp-discuss/2003-June/000515.html
said that we could call a  deltatrinity's "ready-rolled" Win32 GMP DLL's by using  a "wrapper DLL" written in PowerBasic he gave an example:
TYPE MPF
         mp_prec AS LONG
         mp_size AS LONG
         mp_expt AS LONG
         mp_limb AS LONG
END TYPE
        DECLARE SUB cMPFinit CDECL LIB "libgmp-3.dll" ALIAS "__gmpf_init" (X
AS MPF)
      DECLARE SUB cMPFclear CDECL LIB "libgmp-3.dll" ALIAS "__gmpf_clear" (X
AS MPF)
        SUB MPFinit(x AS MPF) EXPORT
         CALL cMPFinit(x)
         END SUB
        SUB MPFclear(x AS MPF) EXPORT
         CALL cMPFclear(x)
         END SUB
can someone  please give more details about that, i wish to call GMP from VB6, just please a one just one simplest example on how to add two numbers by calling this "wrapper dll" from vb6
i have made the above dll using powerbasic and put it in a directory with libgmp-3.dll and libgmp-3.lib but VB6 can't add a reference to this dll. what should i do,
  thanks
  peter


 		
---------------------------------
Want to be your own boss? Learn how on  Yahoo! Small Business. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-discuss/attachments/20060703/40de0abf/attachment.html


More information about the gmp-discuss mailing list