- This project is just a DLL file practice for myself and often refers to some website notes such as Web1 , Web2, Web3, and Web4.
- This page talked about what exactly are dllimport and dllexport, though I can't aware of this.
-
DEV-C++ IDE
- I use C language as my DLL file and use python as my main file language.
- All these files must run or compile in DEV-C++ IDE because the special macro DLLIMPORT is written by DEV-C++. I can't use it in other IDE like Visual Studio, etc.(of course I know)
- Call_DLL.c file which is the main file to call the DLL file is what I get in Web2. But when I compile the file, I got an error like this.
Unfortunately, I can't solve it by browsing some websites. So, I just keep it, maybe someday I can solve it somehow.
- SolvedI got another error about C language. Please check Add function in dllmain.c file. I can't received the whole string but the other int type parameters. An error message like this
According to the image, I can just receive one character and show it on the monitor and I have no idea.
-
VS IDE
- VisualStudioExample folder is refer to Web4 and implements how to use .dll file in other projects by VS2022.
- According to Stackoverflow post, you have to transfer the data type of stu_id parameter before passing through the function.