Click here to Skip to main content
15,921,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSolving a repaint problem in VS2005 [modified] Pin
SimplCodr22-Oct-09 6:24
SimplCodr22-Oct-09 6:24 
QuestionRe: Solving a repaint problem in VS2005 Pin
CPallini22-Oct-09 8:19
mveCPallini22-Oct-09 8:19 
AnswerRe: Solving a repaint problem in VS2005 Pin
SimplCodr22-Oct-09 10:13
SimplCodr22-Oct-09 10:13 
GeneralRe: Solving a repaint problem in VS2005 Pin
CPallini22-Oct-09 10:53
mveCPallini22-Oct-09 10:53 
GeneralRe: Solving a repaint problem in VS2005 Pin
SimplCodr22-Oct-09 10:54
SimplCodr22-Oct-09 10:54 
QuestionRe: Solving a repaint problem in VS2005 Pin
CPallini22-Oct-09 11:06
mveCPallini22-Oct-09 11:06 
AnswerRe: Solving a repaint problem in VS2005 Pin
SimplCodr22-Oct-09 11:25
SimplCodr22-Oct-09 11:25 
GeneralRe: Solving a repaint problem in VS2005 Pin
CPallini22-Oct-09 12:02
mveCPallini22-Oct-09 12:02 
GeneralRe: Solving a repaint problem in VS2005 Pin
SimplCodr22-Oct-09 12:20
SimplCodr22-Oct-09 12:20 
GeneralRe: Solving a repaint problem in VS2005 Pin
CPallini22-Oct-09 20:38
mveCPallini22-Oct-09 20:38 
QuestionRe: Solving a repaint problem in VS2005 Pin
SimplCodr23-Oct-09 3:51
SimplCodr23-Oct-09 3:51 
AnswerRe: Solving a repaint problem in VS2005 Pin
SimplCodr22-Oct-09 11:32
SimplCodr22-Oct-09 11:32 
GeneralRe: Solving a repaint problem in VS2005 Pin
theCPkid22-Oct-09 16:57
theCPkid22-Oct-09 16:57 
AnswerRe: Solving a repaint problem in VS2005 Pin
SimplCodr23-Oct-09 4:05
SimplCodr23-Oct-09 4:05 
GeneralRe: Solving a repaint problem in VS2005 Pin
theCPkid23-Oct-09 5:07
theCPkid23-Oct-09 5:07 
GeneralRe: Solving a repaint problem in VS2005 Pin
SimplCodr23-Oct-09 5:49
SimplCodr23-Oct-09 5:49 
GeneralRe: Solving a repaint problem in VS2005 Pin
CPallini23-Oct-09 5:41
mveCPallini23-Oct-09 5:41 
GeneralRe: Solving a repaint problem in VS2005 Pin
SimplCodr23-Oct-09 6:03
SimplCodr23-Oct-09 6:03 
QuestionRe: Solving a repaint problem in VS2005 Pin
SimplCodr23-Oct-09 8:21
SimplCodr23-Oct-09 8:21 
AnswerRe: Solving a repaint problem in VS2005 Pin
CPallini23-Oct-09 10:05
mveCPallini23-Oct-09 10:05 
GeneralRe: Solving a repaint problem in VS2005 Pin
SimplCodr23-Oct-09 10:29
SimplCodr23-Oct-09 10:29 
GeneralRe: Solving a repaint problem in VS2005 Pin
CPallini23-Oct-09 10:50
mveCPallini23-Oct-09 10:50 
GeneralRe: Solving a repaint problem in VS2005 Pin
theCPkid23-Oct-09 19:00
theCPkid23-Oct-09 19:00 
GeneralRe: Solving a repaint problem in VS2005 Pin
SimplCodr24-Oct-09 5:12
SimplCodr24-Oct-09 5:12 
QuestionConvert BYTE* array (unmanaged) to SAFEARRAY Pin
TalSt22-Oct-09 6:13
TalSt22-Oct-09 6:13 
SAFEARRAY* arr;

int iRes = RestoreFactory(bstrPath, // this function is for c#com object &arr);

// Copy SAFEARRAY* values to output
int iSize;
if ( arr != NULL )
{
iSize = arr->rgsabound[0].cElements;
BYTE *byteArr = new BYTE[iSize];
for (int i = 0; i < iSize; i++)
{
byteArr[i] = ((BYTE)((( char *)(*arr).pvData)[i]));
}
}

The byteArr seems to be wrong!
Is it the right convertion???

Thanks!

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.