Click here to Skip to main content
15,902,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralADO/ATL problems - my life is hell. Pin
Christian Graus24-Aug-01 16:32
protectorChristian Graus24-Aug-01 16:32 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Carlos Antollini24-Aug-01 16:49
Carlos Antollini24-Aug-01 16:49 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Christian Graus24-Aug-01 17:03
protectorChristian Graus24-Aug-01 17:03 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Carlos Antollini24-Aug-01 17:11
Carlos Antollini24-Aug-01 17:11 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Christian Graus24-Aug-01 17:27
protectorChristian Graus24-Aug-01 17:27 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Christian Graus24-Aug-01 20:05
protectorChristian Graus24-Aug-01 20:05 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Carlos Antollini25-Aug-01 5:05
Carlos Antollini25-Aug-01 5:05 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Ben Burnett24-Aug-01 17:39
Ben Burnett24-Aug-01 17:39 
>>>
CComBSTR bstrPath;
(*it)->get_FilePath(&bstrPath);
char * pStr = new char[bstrPath.Length() + 20];
memset(pStr, 0, bstrPath.Length() + 20);

sprintf(pStr, "FilePath = '%s'", (_bstr_t)bstrPath);

MessageBox(NULL, pStr, "", 0);
<<<

try this;

sprintf(pStr, "FilePath = '%s'", (char*)(_bstr_t)bstrPath);


Ben Burnett

---------
On the topic of code with no error handling -- It's not poor coding, it's "optimistic" Wink | ;)
GeneralRe: ADO/ATL problems - my life is hell. Pin
Christian Graus24-Aug-01 17:51
protectorChristian Graus24-Aug-01 17:51 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Ben Burnett24-Aug-01 18:15
Ben Burnett24-Aug-01 18:15 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Christian Graus24-Aug-01 18:21
protectorChristian Graus24-Aug-01 18:21 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Michael Dunn24-Aug-01 18:20
sitebuilderMichael Dunn24-Aug-01 18:20 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Christian Graus24-Aug-01 18:26
protectorChristian Graus24-Aug-01 18:26 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Ben Burnett24-Aug-01 18:38
Ben Burnett24-Aug-01 18:38 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Christian Graus24-Aug-01 20:03
protectorChristian Graus24-Aug-01 20:03 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Tim Deveaux25-Aug-01 14:54
Tim Deveaux25-Aug-01 14:54 
GeneralRe: ADO/ATL problems - my life is hell. Pin
24-Aug-01 23:20
suss24-Aug-01 23:20 
GeneralGetMenuItemInfo Pin
24-Aug-01 16:06
suss24-Aug-01 16:06 
GeneralRe: GetMenuItemInfo Pin
Michael Dunn24-Aug-01 16:33
sitebuilderMichael Dunn24-Aug-01 16:33 
GeneralCListCtrl - can someone make this code from a codeproject article workrk Pin
DanYELL24-Aug-01 15:59
DanYELL24-Aug-01 15:59 
GeneralRe: CListCtrl - can someone make this code from a codeproject article workrk Pin
Michael Dunn24-Aug-01 16:36
sitebuilderMichael Dunn24-Aug-01 16:36 
GeneralDialog Sizing Pin
Bret Faller24-Aug-01 14:30
Bret Faller24-Aug-01 14:30 
GeneralMFC- CFileFind Pin
The_Server24-Aug-01 14:08
The_Server24-Aug-01 14:08 
GeneralRe: MFC- CFileFind Pin
Matt Gullett24-Aug-01 14:39
Matt Gullett24-Aug-01 14:39 
GeneralRe: MFC- CFileFind Pin
Carlos Antollini24-Aug-01 17:02
Carlos Antollini24-Aug-01 17:02 

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.