• I need a dll

    From T@21:1/5 to All on Thu Nov 24 18:50:22 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From T@21:1/5 to All on Fri Nov 25 20:32:53 2022
    T24gMTEvMjQvMjIgMTg6NTAsIFQgd3JvdGU6DQo+IEhpIEFsbCwNCj4gDQo+IEkgcmVhbGl6 ZSBJIGFtIGFza2luZyBmb3Igc29tZW9uZSB0byBkbw0KPiBteSBob21ld29yayBmb3IgbWUg aGVyZSwgYnV0IHBsZWFzZSBzdWZmZXIgbWUuDQo+IA0KPiBJIHByb2dyYW0gaW4gUmFrdS7C oCBJIGNhbiBiYXJlbHkgZ3Vlc3MgYXQgQysrLg0KPiBSYWt1IGhhdmUgZmFpbGVkIG1lIGhl cmUgKHRoZXJlIG93biBhZG1pc3Npb24pLg0KPiANCj4gV291bGQgc29tZW9uZSBwbGVhc2Ug c2hvdyBtZSBob3cgdG8gd3JpdGUNCj4gdGhlIGZvbGxvd2luZyBDKysgRExMPw0KPiANCj4g SSBjYW4gcHJvdmlkZSBhIHBvaW50ZXIgKCpwKSBbaW5dIGFuZCB0aGUgbGVuZ3RoIG9mDQo+ IHRoZSBkYXRhIChsZW5ndGgpIFtpbl0uDQo+IA0KPiBHZW5lcmljYWxseSBzcGVha2luZywg SSB3b3VsZCBsaWtlIGJhY2sgdGhlDQo+IGFycmF5IG9mIGJ5dGVzIChDQXJyYXk/KSBbb3V0 XSB0aGF0IHRoZSBwb2ludGVyDQo+IHBvaW50cyB0by4NCj4gDQo+IFNvbWV0aGluZyBsaWtl DQo+IA0KPiBDQXJyYXkgUmV0dXJuQ0FycmF5KA0KPiAgwqAgW2luXSBQb2ludGVyICpwLA0K PiAgwqAgW2luXSBEV09SRMKgwqAgbGVuZ3RoDQo+ICkNCj4gDQo+IG9yDQo+IA0KPiBSZXR1 cm5DQXJyYXkoDQo+ICDCoCBbaW5dwqAgUG9pbnRlciAqcCwNCj4gIMKgIFtpbl3CoCBEV09S RMKgwqAgbGVuZ3RoLA0KPiAgwqAgW291dF0gQ0FycmF5wqAgQXJyYXlPZkJ5dGVzDQo+ICkN Cj4gDQo+IEFuZCBJIHdvdWxkIGFsc28gYXBwcmVjaWF0ZSB0aGUgZ2NjIGNvbW1hbmQgdG8N Cj4gY29tcGlsZSB0aGlzLsKgIFdpbGwgdGhlIGNvbXBpbGVyIGNyZWF0ZSBhIC5oDQo+IGZp bGUgYXQgY29tcGlsZSBzYW1lIHRpbWU/DQo+IA0KPiBNYW55IHRoYW5rcywNCj4gLVQNCg0K DQpJIG1pZ2h0IG5vdCBuZWVkIHRoaXMgaWYgSSBjYW4gZXZlciBmaW5kDQp0aGUgZG9jdW1l bnRhdGlvbiB0byBzdHJpbmcuaCBtZW1jcHkgb24NCmxlYXJuLm1pY3Jvc29mdC5jb20NCg0K
    DQo=

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Sat Nov 26 07:38:56 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From T@21:1/5 to R.Wieser on Sat Nov 26 00:27:57 2022
    On 11/25/22 22:38, R.Wieser wrote:
    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




    I should probably ue;

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From T@21:1/5 to R.Wieser on Sat Nov 26 00:23:31 2022
    On 11/25/22 22:38, R.Wieser wrote:
    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




    I went to learn.Microsoft.com and used their search.
    Found it about a minute ago

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From T@21:1/5 to All on Sat Nov 26 00:22:06 2022
    T24gMTEvMjUvMjIgMjA6MzIsIFQgd3JvdGU6DQo+IE9uIDExLzI0LzIyIDE4OjUwLCBUIHdy b3RlOg0KPj4gSGkgQWxsLA0KPj4NCj4+IEkgcmVhbGl6ZSBJIGFtIGFza2luZyBmb3Igc29t ZW9uZSB0byBkbw0KPj4gbXkgaG9tZXdvcmsgZm9yIG1lIGhlcmUsIGJ1dCBwbGVhc2Ugc3Vm ZmVyIG1lLg0KPj4NCj4+IEkgcHJvZ3JhbSBpbiBSYWt1LsKgIEkgY2FuIGJhcmVseSBndWVz cyBhdCBDKysuDQo+PiBSYWt1IGhhdmUgZmFpbGVkIG1lIGhlcmUgKHRoZXJlIG93biBhZG1p c3Npb24pLg0KPj4NCj4+IFdvdWxkIHNvbWVvbmUgcGxlYXNlIHNob3cgbWUgaG93IHRvIHdy aXRlDQo+PiB0aGUgZm9sbG93aW5nIEMrKyBETEw/DQo+Pg0K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Gx5IGZvdW5kIG1lbWNweToNCg0KaHR0cHM6Ly9sZWFybi5taWNyb3NvZnQuY29tL2Vu LXVzL2NwcC9jLXJ1bnRpbWUtbGlicmFyeS9yZWZlcmVuY2UvbWVtY3B5LXdtZW1jcHk/dmll dz1tc3ZjLTE3MA0KDQo6LSkNCg0KLVQNCg==

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From T@21:1/5 to R.Wieser on Sat Nov 26 00:29:00 2022
    On 11/25/22 22:38, R.Wieser wrote:
    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




    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Sat Nov 26 13:00:19 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From T@21:1/5 to R.Wieser on Sat Nov 26 15:41:03 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to T@invalid.invalid on Sun Nov 27 08:30:07 2022
    T,

    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.

    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...
    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.


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)