Hi
I have created two DLLs in vc++ win32 environment. I have not declared classes in the program. First DLL takes takes some parametes from the external program by calling the function. It is working fine and i can display the values using MessageBox. Now I have to transfor the values to the second DLL, 2nd dll has to processes the values.
How to call the second DLL's function in the first DLL. I am keeping these two DLL's in the same directory. What should i do to include the 2nd DLL in the Ist.
The function i am using in the second DLL is
BOOL APIENTRY fnGetAwdData(PTIAADATA pTiaaData)
{
MessageBox(NULL,pTiaaData->Group_Code,"Message",MB_OK);
MessageBox(NULL,pTiaaData->BSU_code,"Message",MB_OK);
MessageBox(NULL,pTiaaData1->SSNO,"Message",MB_OK);
MessageBox(NULL,pTiaaData->Clime_Number,"Message",MB_OK);
MessageBox(NULL,pTiaaData1->Work_Status,"Message",MB_OK);
MessageBox(NULL,pTiaaData1->Work_Type,"Message",MB_OK);
MessageBox(NULL,pTiaaData1->Work_ID,"Message",MB_OK);
MessageBox(NULL,pTiaaData1->MIT_key,"Message",MB_OK);
return 0;
}
I am exporting the function in .def file too.the DLL name is AWd2Gladis.dll.
what code should I include in my first DLL to send the values to 2nd DLL.
Please hepl me.
Tkanks
Tia
tiaacus@yahoo.com
I have created two DLLs in vc++ win32 environment. I have not declared classes in the program. First DLL takes takes some parametes from the external program by calling the function. It is working fine and i can display the values using MessageBox. Now I have to transfor the values to the second DLL, 2nd dll has to processes the values.
How to call the second DLL's function in the first DLL. I am keeping these two DLL's in the same directory. What should i do to include the 2nd DLL in the Ist.
The function i am using in the second DLL is
BOOL APIENTRY fnGetAwdData(PTIAADATA pTiaaData)
{
MessageBox(NULL,pTiaaData->Group_Code,"Message",MB_OK);
MessageBox(NULL,pTiaaData->BSU_code,"Message",MB_OK);
MessageBox(NULL,pTiaaData1->SSNO,"Message",MB_OK);
MessageBox(NULL,pTiaaData->Clime_Number,"Message",MB_OK);
MessageBox(NULL,pTiaaData1->Work_Status,"Message",MB_OK);
MessageBox(NULL,pTiaaData1->Work_Type,"Message",MB_OK);
MessageBox(NULL,pTiaaData1->Work_ID,"Message",MB_OK);
MessageBox(NULL,pTiaaData1->MIT_key,"Message",MB_OK);
return 0;
}
I am exporting the function in .def file too.the DLL name is AWd2Gladis.dll.
what code should I include in my first DLL to send the values to 2nd DLL.
Please hepl me.
Tkanks
Tia
tiaacus@yahoo.com