How can I pass an object of this class to the dll and use it?
You cannot. Only Delphi code can consume Delphi classes. And even then, only code that uses the same instance of the runtime. Which requires runtime packages.
You'll need to expose the functionality in an interop friendly manner. Either plain C style functions, or a COM style interface are the obvious options.
And not only can you not pass that object, you also must not attempt to use Delphi native strings across an interop boundary. Again you need to use interop friendly types. For strings this includes C string (null-terminated arrays of characters) and the COM BSTR
.