Click here to Skip to main content
15,888,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get a CBitmap from a LPDIRECTDRAWSURFACE7 Pin
kagelind27-Jan-11 2:28
kagelind27-Jan-11 2:28 
GeneralRe: How to get a CBitmap from a LPDIRECTDRAWSURFACE7 Pin
Code-o-mat27-Jan-11 2:36
Code-o-mat27-Jan-11 2:36 
GeneralRe: How to get a CBitmap from a LPDIRECTDRAWSURFACE7 Pin
kagelind27-Jan-11 4:08
kagelind27-Jan-11 4:08 
GeneralRe: How to get a CBitmap from a LPDIRECTDRAWSURFACE7 Pin
Code-o-mat27-Jan-11 4:11
Code-o-mat27-Jan-11 4:11 
QuestionIs there simple open source compiler code? Pin
yu-jian26-Jan-11 0:03
yu-jian26-Jan-11 0:03 
AnswerRe: Is there simple open source compiler code? Pin
CPallini26-Jan-11 0:13
mveCPallini26-Jan-11 0:13 
AnswerRe: Is there simple open source compiler code? Pin
Niklas L26-Jan-11 23:30
Niklas L26-Jan-11 23:30 
QuestionString Conversion Pin
Mike Certini25-Jan-11 16:11
Mike Certini25-Jan-11 16:11 
I am currently trying to convert a string that resides in a _bstr_t variable vFieldDate into a char array. I have found that I can type cast this via the (char *) with a variable I named holder which is a pointer to a char. The issue I am having a hard time solving is how to convert this to a char that can be stored within the char Date[ARR]. When I attempt the following code I get the compilation error "Cannot Convert From Char * to Char. How do I extract the value that resides in the holder location and save it into the array?

Date[cyc] = holder;

The below portions of code are a part of an ADO program that is accessing data from a database.

char Date[ARR] = {};
_bstr_t vFieldDate;
vFieldDate = rec->Fields->GetItem("Date")->Value;
char *holder = (char*)vFieldDate;
AnswerRe: String Conversion Pin
Mike Certini25-Jan-11 17:28
Mike Certini25-Jan-11 17:28 
GeneralRe: String Conversion Pin
Andrew Brock25-Jan-11 21:56
Andrew Brock25-Jan-11 21:56 
AnswerRe: String Conversion Pin
Stefan_Lang27-Jan-11 3:28
Stefan_Lang27-Jan-11 3:28 
QuestionConvert String Pin
DraC_fri25-Jan-11 12:47
DraC_fri25-Jan-11 12:47 
AnswerRe: Convert String Pin
Yusuf25-Jan-11 13:22
Yusuf25-Jan-11 13:22 
AnswerRe: Convert String Pin
Luc Pattyn25-Jan-11 13:23
sitebuilderLuc Pattyn25-Jan-11 13:23 
AnswerRe: Convert String Pin
Maximilien25-Jan-11 13:44
Maximilien25-Jan-11 13:44 
Questionboost::named_mutex not released after process abort Pin
WernerP25-Jan-11 4:06
WernerP25-Jan-11 4:06 
AnswerRe: boost::named_mutex not released after process abort Pin
T210225-Jan-11 19:41
T210225-Jan-11 19:41 
GeneralRe: boost::named_mutex not released after process abort Pin
WernerP26-Jan-11 0:16
WernerP26-Jan-11 0:16 
GeneralRe: boost::named_mutex not released after process abort Pin
TheGreatAndPowerfulOz26-Jan-11 9:57
TheGreatAndPowerfulOz26-Jan-11 9:57 
GeneralRe: boost::named_mutex not released after process abort [modified] Pin
WernerP26-Jan-11 11:52
WernerP26-Jan-11 11:52 
AnswerRe: boost::named_mutex not released after process abort Pin
Chuck O'Toole26-Jan-11 18:20
Chuck O'Toole26-Jan-11 18:20 
GeneralRe: boost::named_mutex not released after process abort [modified] Pin
WernerP26-Jan-11 21:48
WernerP26-Jan-11 21:48 
GeneralRe: boost::named_mutex not released after process abort Pin
Chuck O'Toole26-Jan-11 23:42
Chuck O'Toole26-Jan-11 23:42 
QuestionNeed interface index for recvd UDP packets Pin
Dave_25-Jan-11 3:50
Dave_25-Jan-11 3:50 
AnswerRe: Need interface index for recvd UDP packets Pin
HimanshuJoshi25-Jan-11 5:43
HimanshuJoshi25-Jan-11 5:43 

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.