Hello every body !
Few days back I have posted a problem regarding static variables in structure.
I have got solution for that problem.
But now I have new problem related to that.
It is as follow:
I am sending parameters from main CPP file to DLL cpp file.
But in DLL I am not able to get these parameters...
the code is as follow:
Now this DLL is called by main CPP program which is as follow:
//This is dll header file where structure is define
static char szOriginalAddress[0x100];
static char szRecipientAddress[0x100];
static char szFileName[0x100];
EXPORT DWORD MerakFilterProc(TExternalFilter*);
//This is dll.cpp
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
EXPORT DWORD MerakFilterProc(TExternalFilter*)
std:: string temp1;
// I am not to fetch values here
Onething I want to clear that when I used char in place of static char then no
int main(int argc, char* argv)
ch = MerakFilterProc(&ExternalFilter);
//This program call DLL and value return by DLL is recieved in ch
//but this is not working
problem there,but I need solution with static char only.
so please help me..