Click here to Skip to main content
15,919,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem Pin
john563229-Jul-10 21:32
john563229-Jul-10 21:32 
AnswerRe: Problem Pin
«_Superman_»29-Jul-10 21:55
professional«_Superman_»29-Jul-10 21:55 
GeneralRe: Problem Pin
Sauro Viti29-Jul-10 22:30
professionalSauro Viti29-Jul-10 22:30 
GeneralRe: Problem Pin
Emilio Garavaglia30-Jul-10 3:11
Emilio Garavaglia30-Jul-10 3:11 
GeneralRe: Problem Pin
Sauro Viti30-Jul-10 4:24
professionalSauro Viti30-Jul-10 4:24 
Questionfile.txt size problem Pin
dilara semerci29-Jul-10 21:27
dilara semerci29-Jul-10 21:27 
AnswerRe: file.txt size problem Pin
«_Superman_»29-Jul-10 21:59
professional«_Superman_»29-Jul-10 21:59 
AnswerRe: file.txt size problem Pin
Code-o-mat29-Jul-10 22:00
Code-o-mat29-Jul-10 22:00 
AnswerRe: file.txt size problem Pin
Moak29-Jul-10 23:24
Moak29-Jul-10 23:24 
AnswerRe: file.txt size problem Pin
Shivanand Gupta30-Jul-10 0:17
Shivanand Gupta30-Jul-10 0:17 
Questionpre-post increament Pin
Pankaj D.Dubey29-Jul-10 20:49
Pankaj D.Dubey29-Jul-10 20:49 
AnswerRe: pre-post increament Pin
Aescleal29-Jul-10 21:14
Aescleal29-Jul-10 21:14 
AnswerRe: pre-post increament PinPopular
Sauro Viti29-Jul-10 21:18
professionalSauro Viti29-Jul-10 21:18 
AnswerRe: pre-post increament Pin
Peter_in_278029-Jul-10 21:21
professionalPeter_in_278029-Jul-10 21:21 
QuestionRezise an CListCtrl on CFormView Pin
mesajflaviu29-Jul-10 20:27
mesajflaviu29-Jul-10 20:27 
AnswerRe: Rezise an CListCtrl on CFormView Pin
mesajflaviu1-Aug-10 22:55
mesajflaviu1-Aug-10 22:55 
QuestionContext Menu and Modelless Dialogs problem Pin
Harsh Shankar29-Jul-10 19:40
Harsh Shankar29-Jul-10 19:40 
QuestionAdd control at runtime? Pin
smengl29-Jul-10 12:30
smengl29-Jul-10 12:30 
AnswerRe: Add control at runtime? Pin
Cool_Dev29-Jul-10 18:02
Cool_Dev29-Jul-10 18:02 
AnswerRe: Add control at runtime? Pin
«_Superman_»29-Jul-10 18:26
professional«_Superman_»29-Jul-10 18:26 
AnswerRe: Add control at runtime? Pin
ThatsAlok7-Jun-11 23:49
ThatsAlok7-Jun-11 23:49 
Questionconvert UCHAR array to UINT array Pin
fasked29-Jul-10 11:29
fasked29-Jul-10 11:29 
AnswerRe: convert UCHAR array to UINT array Pin
Peter_in_278029-Jul-10 13:33
professionalPeter_in_278029-Jul-10 13:33 
GeneralRe: convert UCHAR array to UINT array Pin
fasked29-Jul-10 13:39
fasked29-Jul-10 13:39 
AnswerRe: convert UCHAR array to UINT array Pin
Harsh Shankar29-Jul-10 19:51
Harsh Shankar29-Jul-10 19:51 
fasked wrote:

void uchar2uinta(UCHAR * in, UINT * out, size_t outlen)
{
while(outlen--)
{
*out++ = uchar2uint(in);
in += 4;
}
}


Try this instead, its simpler and will do the same you are looking for

void uchar2uinta(UCHAR * in, UINT * out, size_t outlen)
{
while(outlen--)
{
*out++ = *(UINT*)in;
in += 4;
}
}
HARSH

Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning.

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.