Where can I find some tutorial that can guide me when creating dlls?
I'm not getting in CodeLite!
[SOLVED] Dynamic library
-
- CodeLite Enthusiast
- Posts: 11
- Joined: Sat Jul 27, 2013 5:07 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
[SOLVED] Dynamic library
Last edited by Kush on Tue Jul 30, 2013 3:07 pm, edited 1 time in total.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Dynamic library
Simply create new project and set its type to 'Dynamic Library'
You should always post your codelite configuration (including which compiler you are using) Eran
You should always post your codelite configuration (including which compiler you are using) Eran
You do not have the required permissions to view the files attached to this post.
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 11
- Joined: Sat Jul 27, 2013 5:07 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Dynamic library
If compile correctly will create a .dll, right?
It has no file .dll
Code: Select all
C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 4 -e -f Makefile"
"----------Building project:[ TestLibrary - Debug ]----------"
mingw32-make.exe[1]: Entering directory `C:/Users/pc/Desktop/TestLibrary'
g++ -c "C:/Users/pc/Desktop/TestLibrary/dll.cpp" -g -o ./Debug/dll.o -I. -I.
g++ -shared -fPIC -o ./Debug/TestLibrary.so @"TestLibrary.txt" -L/Debug -s
mingw32-make.exe[1]: Leaving directory `C:/Users/pc/Desktop/TestLibrary'
0 errors, 0 warnings
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Dynamic library
There seems to be a bug in the template
Simply:
Right click on the project and select 'Settings -> Common Settings -> General'
In the 'Output file' rename 'TestLibrary.so' to 'TestLibrary.dll'
Eran
Simply:
Right click on the project and select 'Settings -> Common Settings -> General'
In the 'Output file' rename 'TestLibrary.so' to 'TestLibrary.dll'
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 11
- Joined: Sat Jul 27, 2013 5:07 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Dynamic library
I tried to inject it but no success. Is this normal? The injector is functioning normally (tested)
You do not have the required permissions to view the files attached to this post.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Dynamic library
I am not sure what you mean here... what is the "injector" that you are talking about?Kush wrote:I tried to inject it but no success. Is this normal? The injector is functioning normally (tested)
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 11
- Joined: Sat Jul 27, 2013 5:07 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Dynamic library
It is a .dll injector, to make hacks.
But I think the error is in my code. hehe
But I think the error is in my code. hehe
-
- CodeLite Enthusiast
- Posts: 11
- Joined: Sat Jul 27, 2013 5:07 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Dynamic library
SOLVED
Code: Select all
extern "C" __declspec(dllexport) BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)