[WIKI] Creating and Linking Dlls -- Reloaded

Hi XenoEgger,

In case Char(s) values, one Char* work usually like and array, lets say: Char myChar = ‘s’, is just 1 char inside that variable, but in case of Char* ptrChar = “hello!”, could work as array, because remember 1 string is just 1 char array, and like I said, could be, because some times, a Char* could be just bytes, or something else, in image processing for example we used store image data inside Char* as bytes chains,

Try this on your dll code:




.h
char DLL_EXPORT *getCharArray();

.cpp
char DLL_EXPORT *getCharArray()
{
     char* var = "hello";
     return var;
}