Discussion: DLL -> Database
Afficher un message
Vieux 27/03/2008, 03h52   #2
Jim Johnson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut DLL -> Database

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

connectSQLServer(){
SQLConnection sql = new SQLConnection();
}

getProgramForTVChannel ( 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
  Réponse avec citation
 
Page generated in 0,04316 seconds with 9 queries