Click here to Skip to main content
15,889,315 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Disregarding the method of conversion, the assignment you used attempts to assigns an array of characters to single character: Date is defined as an array of ARR characters, and Date[cyc] denotes the character with the index cyc within that array.

What was your intention? I suspect that what you really wanted is to define Date as an array of strings rather than as an array of characters. In this case you should define Date as char* Date[ARR];.

On a sidenote, what you are trying to achieve is like pouring milk into a crate for beer bottles: you can't just go ahead and assign the contents of one variable to another variable that is designed to hold something completely different - doing this will usually result in spilling the contents. Instead you have to use the proper function or method for transfering the contents of one variable into the other. Plus you might need to allocate proper containers first: so first thing, pick up an empty beer bottle, then pour the milk into it, and only then you can put that bottle into the crate.

With respect to these strings, the Date array corresponds to the crate for beer bottles. The beer bottles correspond to char-strings, and the milk corresponds to the contents of that _bstr_t. So what you have to do is:

- allocate an array of char, big enough to hold the _bstr_t
- call the appropriate method to convert a _bstr_t into a char*, and then
- put it into the Date array.
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 
QuestionSet AutoRun fail under win 7 [modified][solved] Pin
yu-jian25-Jan-11 2:57
yu-jian25-Jan-11 2:57 
AnswerRe: Set AutoRun fail under win 7 Pin
Code-o-mat25-Jan-11 3:17
Code-o-mat25-Jan-11 3:17 
AnswerRe: Set AutoRun fail under win 7 Pin
CPallini25-Jan-11 3:20
mveCPallini25-Jan-11 3:20 

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.