Click here to Skip to main content
15,914,160 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with connecting to MySQL db from my own windows service application Pin
anumadhu27-Mar-07 3:28
anumadhu27-Mar-07 3:28 
GeneralRe: Problem with connecting to MySQL db from my own windows service application Pin
JudyL_MD27-Mar-07 3:42
JudyL_MD27-Mar-07 3:42 
GeneralRe: Problem with connecting to MySQL db from my own windows service application Pin
anumadhu27-Mar-07 4:13
anumadhu27-Mar-07 4:13 
GeneralRe: Problem with connecting to MySQL db from my own windows service application Pin
JudyL_MD27-Mar-07 4:19
JudyL_MD27-Mar-07 4:19 
GeneralRe: Problem with connecting to MySQL db from my own windows service application Pin
anumadhu28-Mar-07 1:50
anumadhu28-Mar-07 1:50 
GeneralRe: Problem with connecting to MySQL db from my own windows service application Pin
JudyL_MD28-Mar-07 2:14
JudyL_MD28-Mar-07 2:14 
GeneralRe: Problem with connecting to MySQL db from my own windows service application Pin
anumadhu28-Mar-07 21:06
anumadhu28-Mar-07 21:06 
QuestionRe: Problem with connecting to MySQL db from my own windows service application Pin
anumadhu28-Mar-07 23:18
anumadhu28-Mar-07 23:18 
Hello,

After debugging what i found is that, the CDBException at the following statement raises an exception:

cdb.openEx(szConnectstring, CDatabase::noODBCDialog)

And the message throwed is: "Data source name not found and no default driver specified"

Whereas when i check for this dsn's status..from control panel the test connection is showing success. And also i am using the same dsn and same database from other VC++.Net2005 application ( this is not a windows service application), this application is getting connected to MySQL database using the same dsn and also able to read the records from one of the tables there(which shown in the applications UI window). I am not creating the windows service using the .Net framework. I am creating the my windows service application using the winsvc.h and advapi32.dll.

I guess, since the application from which i am trying to connect to MySQL database is a windows service application, so probably causing some problem (due to some hidden windows internals..issues).. which i am unable to fix...

Can anybody.. help me out by giving the clues..

Thank you..


Anee

AnswerRe: Problem with connecting to MySQL db from my own windows service application Pin
anumadhu30-Mar-07 2:12
anumadhu30-Mar-07 2:12 
Questionwhat is the role of #pragma pack(1) Pin
mo_nica88126-Mar-07 2:37
mo_nica88126-Mar-07 2:37 
AnswerRe: what is the role of #pragma pack(1) Pin
David Crow26-Mar-07 2:46
David Crow26-Mar-07 2:46 
AnswerRe: what is the role of #pragma pack(1) Pin
Cedric Moonen26-Mar-07 2:50
Cedric Moonen26-Mar-07 2:50 
AnswerRe: what is the role of #pragma pack(1) Pin
Nibu babu thomas26-Mar-07 3:16
Nibu babu thomas26-Mar-07 3:16 
GeneralRe: what is the role of #pragma pack(1) Pin
Emil - Gabriel26-Mar-07 3:30
Emil - Gabriel26-Mar-07 3:30 
GeneralRe: what is the role of #pragma pack(1) Pin
Nibu babu thomas26-Mar-07 3:32
Nibu babu thomas26-Mar-07 3:32 
GeneralRe: what is the role of #pragma pack(1) Pin
David Crow26-Mar-07 3:59
David Crow26-Mar-07 3:59 
GeneralRe: what is the role of #pragma pack(1) Pin
Emil - Gabriel26-Mar-07 4:04
Emil - Gabriel26-Mar-07 4:04 
GeneralRe: what is the role of #pragma pack(1) Pin
David Crow26-Mar-07 4:17
David Crow26-Mar-07 4:17 
GeneralRe: what is the role of #pragma pack(1) Pin
Emil - Gabriel26-Mar-07 4:29
Emil - Gabriel26-Mar-07 4:29 
GeneralRe: what is the role of #pragma pack(1) Pin
David Crow26-Mar-07 4:39
David Crow26-Mar-07 4:39 
GeneralRe: what is the role of #pragma pack(1) Pin
Mark Salsbery26-Mar-07 9:53
Mark Salsbery26-Mar-07 9:53 
GeneralRe: what is the role of #pragma pack(1) Pin
Emil - Gabriel26-Mar-07 20:12
Emil - Gabriel26-Mar-07 20:12 
GeneralRe: what is the role of #pragma pack(1) Pin
Mark Salsbery27-Mar-07 6:25
Mark Salsbery27-Mar-07 6:25 
GeneralRe: what is the role of #pragma pack(1) Pin
Mark Salsbery27-Mar-07 6:42
Mark Salsbery27-Mar-07 6:42 
QuestionSetting minimum size for a CFrameWnd Pin
maxmaven26-Mar-07 2:15
maxmaven26-Mar-07 2:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.