You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but i have the problem , the application cannot read string from dll .
I test with c# Wrapper , but i don't receive random string.
Can you help me with this case ?
Please try to use MSDN, stackoverflow, and other relevant places for understanding common practice with P/Invoke, scalar & unmanaged native types, marshaling, .net-domains, multithreading, ... ~something other. Because this is not directly related to our project to teach programming. We can try to help anyway, but please have a conscience.
Before ask anything
Do not put inside message any very long text data ( ~10 Kb+ time for attachments ). Means only as file (text-based, or zip, etc). Because of notifications through email. It's really ... 100K+
Make also sure you have all rights to publish any data (attached src, log, etc). Responsibility is solely on you.
remove ref from ref IntPtr that's like over through over here and ... in general your wrapper is too complicated and not safe in case of possible memory leaks; use try/finally for FreeHGlobal etc.
Okay, tl;dr, let's try to look at something related:
Thanks for the quick reply, I tried it without ref, then I don't get any data at all, with ref I get a random string.
Thanks for the additional materials, before writing to you I read them and tried them.
Hello.
I try to Make PassThru driver on C# .
for example i have exported function :
but i have the problem , the application cannot read string from dll .
I test with c# Wrapper , but i don't receive random string.
Can you help me with this case ?
The Wrapper read code
On c++ work , for example :
. .
The question is related to:
DllExport -version
:Data
tab:⚠ (Remove this section after reading. Click
Preview
tab for convenience)! Important
Please use our wiki first. +Available Q&A list.
Please try to use MSDN, stackoverflow, and other relevant places for understanding common practice with P/Invoke, scalar & unmanaged native types, marshaling, .net-domains, multithreading, ... ~something other. Because this is not directly related to our project to teach programming. We can try to help anyway, but please have a conscience.
Before ask anything
Do not put inside message any very long text data ( ~10 Kb+ time for attachments ). Means only as file (text-based, or zip, etc). Because of notifications through email. It's really ... 100K+
Make also sure you have all rights to publish any data (attached src, log, etc). Responsibility is solely on you.
Try to use only GitHub for your attachments and screenshots instead of other places. It's free, it's enough.
Please try to use basic formatting to avoid code dancing 🕺 across the page.
Thanks for reading!
The text was updated successfully, but these errors were encountered: