It's good to back in the Windows Programming forum. I read a couple of tutorials about creating a DLL in C and it all looks to me as template at this point. Following my question about calling an application from another, found here http://www.cplusplus.com/forum/general/77570/, I would be grateful if someone would tell me whether this would successfully work or not, I'm using gcc
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
// attach to process
// return FALSE to fail DLL load
// detach from process
// attach to thread
// detach from thread
return TRUE; // succesful
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#define DLL_EXPORT __declspec(dllexport)
#define DLL_EXPORT __declspec(dllimport)
void DLL_EXPORT perff(double * pd)
// function code goes here | uses functions defined in h1.h
#endif // __MAIN_H__
i'm sorry for this, it's not an reply.i'm just a newbie to cpp programming can u please tell how and where do you program the .DLL files and how to use them in a live program.
please ignore the reply if it seems violating the forum rules but please don't ban me.
Thanking you in advance.
@ ankit2313: Please make your own thread, it makes it easier for people with similar questions to find it. Have you tried looking it up on Google? Are you stuck at some particular point? What do you want the DLL to do?