Is it a good idea to create a DLL API for DB connection + DB query
calls?
I guess it's the same for creating it in VC++ static library?
so my DLL will have API in header file like
connectSQLServe r(){
SQLConnection sql = new SQLConnection() ;
}
getProgramForTV Channel ( String Channel, Time TimePeriod ){
// do the query for DB
}
searchProgram ( String Keyword ){
// do some DB query and return result
}
.... and other DLL API function for DB query
calls?
I guess it's the same for creating it in VC++ static library?
so my DLL will have API in header file like
connectSQLServe r(){
SQLConnection sql = new SQLConnection() ;
}
getProgramForTV Channel ( String Channel, Time TimePeriod ){
// do the query for DB
}
searchProgram ( String Keyword ){
// do some DB query and return result
}
.... and other DLL API function for DB query