Linking .dll files written in C++

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Linking .dll files written in C++

Postby ConvertFromOldNGs » Fri Aug 07, 2009 10:25 am

by Kev >> Tue, 21 Sep 2004 15:24:10 GMT

Hi,
I am currently doing a final year project using JADE and the project requires us to link to a hardware using the provided driver. Thus I would like to know how to link to .dll files and drivers stored in other extensions. (eg .bfd). By the way, some functions in the driver does not return a char pointer, instead it returns a pointer to a handler and how would i be able to access the address in the handler in JADE ? Thanks alot.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Linking .dll files written in C++

Postby ConvertFromOldNGs » Fri Aug 07, 2009 10:25 am

by allistar >> Wed, 22 Sep 2004 1:42:09 GMT

A handle is basically a pointer to a piece of memory, which on x86 is a 32 bit integer. This can be represented in Jade as an Integer variable. This handle can be passed to other external functions as Integers. You may need to cast these in the .dll to the appropriate data type.

I am not familiar with .bfd files sorry. If you can do it in C++ then you can so it in JADE in the sense that you can export functions in a dll that can then be called frmo within a JADE application.

Regards,
Allistar.
--
------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst allistar@silvermoon.co.nz
Auckland, NEW ZEALAND

Silvermoon Software
Specialising in JADE development and consulting
Visit us at: http://www.silvermoon.co.nz
*NEW* Simple web access to Jade at: www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 20 guests