T
2022-11-25 02:50:22 UTC
Hi All,
I realize I am asking for someone to do
my homework for me here, but please suffer me.
I program in Raku. I can barely guess at C++.
Raku have failed me here (there own admission).
Would someone please show me how to write
the following C++ DLL?
I can provide a pointer (*p) [in] and the length of
the data (length) [in].
Generically speaking, I would like back the
array of bytes (CArray?) [out] that the pointer
points to.
Something like
CArray ReturnCArray(
[in] Pointer *p,
[in] DWORD length
)
or
ReturnCArray(
[in] Pointer *p,
[in] DWORD length,
[out] CArray ArrayOfBytes
)
And I would also appreciate the gcc command to
compile this. Will the compiler create a .h
file at compile same time?
Many thanks,
-T
I realize I am asking for someone to do
my homework for me here, but please suffer me.
I program in Raku. I can barely guess at C++.
Raku have failed me here (there own admission).
Would someone please show me how to write
the following C++ DLL?
I can provide a pointer (*p) [in] and the length of
the data (length) [in].
Generically speaking, I would like back the
array of bytes (CArray?) [out] that the pointer
points to.
Something like
CArray ReturnCArray(
[in] Pointer *p,
[in] DWORD length
)
or
ReturnCArray(
[in] Pointer *p,
[in] DWORD length,
[out] CArray ArrayOfBytes
)
And I would also appreciate the gcc command to
compile this. Will the compiler create a .h
file at compile same time?
Many thanks,
-T