D dwn.220.v.ua

return string from c dll

How about this (Note, it assumes correct lengths - you should pass in the b...

📦 .zip⚖️ 88.3 MB📅 11 Nov 2025

How about this (Note, it assumes correct lengths - you should pass in the buffer length and prevent overflows, etc): extern "C".

⬇ Download Full Version

[DllImport(@"dwn.220.v.ua", CallingConvention = dwn.220.v.ua)] [r...

📦 .zip⚖️ 67.9 MB📅 04 Oct 2025

[DllImport(@"dwn.220.v.ua", CallingConvention = dwn.220.v.ua)] [return: MarshalAs(dwn.220.v.ua)] private static extern string.

⬇ Download Full Version

That function returns an int with no problem. I have searched hi & lo a...

📦 .zip⚖️ 89.8 MB📅 20 Feb 2026

That function returns an int with no problem. I have searched hi & lo and cannot find a way to return a STRING from the c dll to C# How can I do.

⬇ Download Full Version

APIs that return strings are very common. Because it is allocated in global...

📦 .zip⚖️ 90.4 MB📅 08 Jan 2026

APIs that return strings are very common. Because it is allocated in global memory and may be shared by various functions in the DLL.

⬇ Download Full Version

Hi, I have inherited some code like below and I wonder if it is safe to pas...

📦 .zip⚖️ 69.8 MB📅 14 Apr 2026

Hi, I have inherited some code like below and I wonder if it is safe to pass a string back from a C++ dll like this. Can someone say if the char* to.

⬇ Download Full Version

I can only assume that you've declared TESTDLL_API as #define __declsp...

📦 .zip⚖️ 64.2 MB📅 06 Feb 2026

I can only assume that you've declared TESTDLL_API as #define __declspec(dllexport), otherwise your declaration is not correct. Also, you've not specified the.

⬇ Download Full Version

Hello all, I'm trying to create C++ DLL that have some function which ...

📦 .zip⚖️ 41.6 MB📅 11 Feb 2026

Hello all, I'm trying to create C++ DLL that have some function which will return a value as a string. In this DLL, the function returned int value is.

⬇ Download Full Version

Ok, I'm pretty new to the C++ area but not to programming. I program i...

📦 .zip⚖️ 55.1 MB📅 21 Nov 2025

Ok, I'm pretty new to the C++ area but not to programming. I program in various other languages and some of the basics are the same but a lot.

⬇ Download Full Version

extern "C" __declspec(dllexport) char * GetStringFromDLL() { cons...

📦 .zip⚖️ 93.8 MB📅 19 Oct 2025

extern "C" __declspec(dllexport) char * GetStringFromDLL() { const size_t alloc_size = ; STRSAFE_LPSTR.

⬇ Download Full Version

My C++ code, which is set to complie to a dll in VS looks like But first I ...

📦 .zip⚖️ 45.5 MB📅 08 Oct 2025

My C++ code, which is set to complie to a dll in VS looks like But first I need to be able to return a string that was generated in the dll.

⬇ Download Full Version

Here is my WORKING C++ DLL snippet that works fine from C++, however, retur...

📦 .zip⚖️ 115.7 MB📅 26 May 2026

Here is my WORKING C++ DLL snippet that works fine from C++, however, returns a BLANK to VB6: LPSTR __stdcall GV_GetString_VB(int.

⬇ Download Full Version

This is generally considered a bad practice in C++, since the std If you ne...

📦 .zip⚖️ 102.5 MB📅 15 Apr 2026

This is generally considered a bad practice in C++, since the std If you need to pass the object from one function to another, use parameters.

⬇ Download Full Version

I am trying to load a c++ dll created with SharpDeveloper and . return p; }...

📦 .zip⚖️ 99.4 MB📅 11 Nov 2025

I am trying to load a c++ dll created with SharpDeveloper and . return p; } extern "C" __declspec(dllexport) string Encrypt(string inmsg) { try.

⬇ Download Full Version

I'm importing an old (7.x) DLL to and running into some problems with ...

📦 .zip⚖️ 36.7 MB📅 23 Aug 2025

I'm importing an old (7.x) DLL to and running into some problems with user commands returning a string. We used to write functions like.

⬇ Download Full Version

I would like to pass a string to my DLL function and have it modify the . Y...

📦 .zip⚖️ 37.2 MB📅 22 Nov 2025

I would like to pass a string to my DLL function and have it modify the . You will want your C++ function to accept/return char* or wchar_t* to.

⬇ Download Full Version