Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking DLLs

Status
Not open for further replies.

Vallurupa

Programmer
Oct 17, 2001
38
US
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top