I need a dll

8 views
Skip to first unread message

T

unread,
Nov 24, 2022, 9:50:25 PM11/24/22
to
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

T

unread,
Nov 25, 2022, 11:34:10 PM11/25/22
to
I might not need this if I can ever find
the documentation to string.h memcpy on
learn.microsoft.com


R.Wieser

unread,
Nov 26, 2022, 1:39:17 AM11/26/22
to
T

> I might not need this if I can ever find the documentation to string.h
> memcpy on
> learn.microsoft.com


https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/dswaw1wk(v=vs.100)

?

Used search term : site:learn.microsoft.com memcpy

Regards,
Rudy Wieser


T

unread,
Nov 26, 2022, 3:22:08 AM11/26/22
to

T

unread,
Nov 26, 2022, 3:23:31 AM11/26/22
to
I went to learn.Microsoft.com and used their search.
Found it about a minute ago

T

unread,
Nov 26, 2022, 3:27:57 AM11/26/22
to
On 11/25/22 22:38, R.Wieser wrote:
I should probably ue;

T

unread,
Nov 26, 2022, 3:28:59 AM11/26/22
to
On 11/25/22 22:38, R.Wieser wrote:
I should probably use

https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/memcpy-s-wmemcpy-s?view=msvc-170

instead.

Any idea what DLL that is coming from?

-T

R.Wieser

unread,
Nov 26, 2022, 7:00:52 AM11/26/22
to
T,

> Any idea what DLL that is coming from?

Yep. its CRTDLL.DLL.

By the way, there are programs around that wll show you the list of
functions in a DLL. one(?) is mentioned here :

https://stackoverflow.com/questions/11657968/how-to-get-list-of-functions-inside-a-dll-managed-and-unmanaged

Regards,
Rudy Wieser


T

unread,
Nov 26, 2022, 6:41:08 PM11/26/22
to
On 11/26/22 04:00, R.Wieser wrote:
> T,
>
>> Any idea what DLL that is coming from?
>
> Yep. its CRTDLL.DLL.


> where CRTDLL.DLL
INFO: Could not find files for the given pattern(s).

>
> By the way, there are programs around that wll show you the list of
> functions in a DLL. one(?) is mentioned here :
>
> https://stackoverflow.com/questions/11657968/how-to-get-list-of-functions-inside-a-dll-managed-and-unmanaged

Could not find the program you were referring to.

R.Wieser

unread,
Nov 27, 2022, 3:50:59 AM11/27/22
to
T,
The name of it (on that webpage), or when you googled for it (to download
it) ?

The name is "dumpbin.exe".

You can ofcourse also look for similar, perhaps not MS producs. :-) The
one that came with my Assembler (Tasm32) is called TDump.exe.

Regards,
Rudy Wieser





"T" <T...@invalid.invalid> wrote in message
news:tlu86g$1fsvl$1...@dont-email.me...
Reply all
Reply to author
Forward
0 new messages