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

C / C++ / MFC

 
GeneralRe: ATL COM String Property issue Pin
Axonn Echysttas12-Nov-05 20:37
Axonn Echysttas12-Nov-05 20:37 
Questionunicode problem Pin
torniker11-Nov-05 22:15
torniker11-Nov-05 22:15 
AnswerRe: unicode problem Pin
Jacky Tsee12-Nov-05 6:09
Jacky Tsee12-Nov-05 6:09 
GeneralRe: unicode problem Pin
torniker13-Nov-05 0:32
torniker13-Nov-05 0:32 
GeneralRe: unicode problem Pin
Gary R. Wheeler13-Nov-05 4:52
Gary R. Wheeler13-Nov-05 4:52 
QuestionWndows hook Pin
act_x11-Nov-05 22:07
act_x11-Nov-05 22:07 
QuestionMSHFlexGrid problem (First-chance exception in ACE.exe (MSHFLXGD.OCX): 0xC0000005: Access Violation.) Pin
lcm311-Nov-05 18:45
lcm311-Nov-05 18:45 
QuestionProblem in using SAFEARRAY Pin
BlrBoy11-Nov-05 18:40
BlrBoy11-Nov-05 18:40 
Hello All

I want to store a BINARY file content (size of the BINARY file can be from 4 to 30 MB) to SAFEARRAY. I am reading the file content in BYTE*. For storing the data to SAFEARRAY, I found the API SafeArrayPutElement. But using this I have to copy BYTE by BYTE. Is there any way to copy full data of type BYTE* or char* or CString to SAFEARRAY?

Currently I am using

for(nBufIndex=0; nBufIndex < nFileSize; nBufIndex++)<br />
{<br />
	hr = SafeArrayPutElement(l_pSafeArray, &l_lSAIndex, &pBuffer[nBufIndex]);<br />
	l_lSAindex++;<br />
}


Thanks for your time
Ravi
AnswerRe: Problem in using SAFEARRAY Pin
Mircea Puiu12-Nov-05 3:54
Mircea Puiu12-Nov-05 3:54 
QuestionShowing and hiding Pin
romuzu11-Nov-05 16:56
romuzu11-Nov-05 16:56 
AnswerRe: Showing and hiding Pin
vikas amin11-Nov-05 23:00
vikas amin11-Nov-05 23:00 
AnswerRe: Showing and hiding Pin
Rajesh R Subramanian13-Nov-05 21:39
professionalRajesh R Subramanian13-Nov-05 21:39 
Questionproblem using ADO with C++ Pin
Herr_Ernst11-Nov-05 13:15
Herr_Ernst11-Nov-05 13:15 
AnswerRe: problem using ADO with C++ Pin
Herr_Ernst11-Nov-05 13:33
Herr_Ernst11-Nov-05 13:33 
QuestionMDI Application Pin
masnu11-Nov-05 12:10
masnu11-Nov-05 12:10 
AnswerRe: MDI Application Pin
Cool Ju13-Nov-05 22:31
Cool Ju13-Nov-05 22:31 
GeneralRe: MDI Application Pin
masnu14-Nov-05 2:56
masnu14-Nov-05 2:56 
Questionwhy this is not called? CMyDoc::Serialize(CMyArchive&amp; ar) Pin
lucy11-Nov-05 10:39
lucy11-Nov-05 10:39 
AnswerRe: why this is not called? CMyDoc::Serialize(CMyArchive&amp;amp; ar) Pin
Cool Ju13-Nov-05 22:52
Cool Ju13-Nov-05 22:52 
GeneralRe: why this is not called? CMyDoc::Serialize(CMyArchive&amp;amp;amp; ar) Pin
lucy14-Nov-05 9:07
lucy14-Nov-05 9:07 
AnswerRe: why this is not called? CMyDoc::Serialize(CMyArchive&amp;amp;amp;amp; ar) Pin
Cool Ju14-Nov-05 16:53
Cool Ju14-Nov-05 16:53 
GeneralRe: why this is not called? CMyDoc::Serialize(CMyArchive&amp;amp;amp;amp;amp; ar) Pin
lucy15-Nov-05 3:44
lucy15-Nov-05 3:44 
QuestionSelective iterator over STL vector. Pin
Maximilien11-Nov-05 10:08
Maximilien11-Nov-05 10:08 
AnswerRe: Selective iterator over STL vector. Pin
Chris Losinger11-Nov-05 10:27
professionalChris Losinger11-Nov-05 10:27 
AnswerRe: Selective iterator over STL vector. Pin
S. Senthil Kumar11-Nov-05 23:24
S. Senthil Kumar11-Nov-05 23:24 

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.