[fpc-pascal] How to call C++ function with Vector

leledumbo leledumbo_cool at yahoo.co.id
Tue Sep 26 12:44:51 CEST 2017


> I am stuck at the keyword vector. 
>
> How is it translated into free pascal?

It's hard, you must create additional wrapper that exposes simpler type
(pointer or array of pchar) OR make wrapper for the vector methods and
simply declare it as an opaque pointer. std::vector is template/generic C++
class that implements a dynamic array functionality, but it can't be used
outside C++.



--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/



More information about the fpc-pascal mailing list