DLL Question

BlitzMax Forums/BlitzMax Programming/DLL Question

Leon Drake(Posted 2007) [#1]
Hey i'm trying to make a module or at least call something from the dll file offered here

http://www.tallcomponents.com/Default.aspx?id=pdfrasterizer


The thing is im not quite sure how to do two things.

There is a class in the Dll file called Document. and it has a constructor in the code used by C and VB. like this:

Document document = new Document( "test.pdf" );

do i use this to call that?
Const LibName:String="TallComponents.PDF.Rasterizer.dll"
Global lib = LoadLibraryA(LibName)
Global DOC_Document(fname$z)

DOC_Document:Byte Ptr = GetProcAddress(lib,"document")

and another question how would i call a method used in that class for instance

document.ConvertToTiff()

would i go like this?

DOC_ConvertToTiff = GetProcAddress(lib,"document.ConvertToTiff")

??


Leon Drake(Posted 2007) [#2]
oh sorry and one more if any of you know

if a function in a dll has a parameter for a stream handle would i use TCStream for that?


Brendane(Posted 2007) [#3]
That is a .NET dll

You won't be able to bind to that in BlitzMax I'm afraid.


Leon Drake(Posted 2007) [#4]
shoot.