Click here to Skip to main content
15,891,017 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What does #pragma pack(0) do Pin
Randor 22-Apr-12 11:30
professional Randor 22-Apr-12 11:30 
GeneralRe: What does #pragma pack(0) do Pin
yu-jian22-Apr-12 20:04
yu-jian22-Apr-12 20:04 
GeneralRe: What does #pragma pack(0) do Pin
Richard MacCutchan22-Apr-12 21:09
mveRichard MacCutchan22-Apr-12 21:09 
GeneralRe: What does #pragma pack(0) do Pin
yu-jian23-Apr-12 2:17
yu-jian23-Apr-12 2:17 
AnswerRe: What does #pragma pack(0) do Pin
Aescleal23-Apr-12 7:13
Aescleal23-Apr-12 7:13 
QuestionDialog Proc, Fire a new thread function after intialization Pin
jkirkerx21-Apr-12 11:45
professionaljkirkerx21-Apr-12 11:45 
AnswerFor Now, I changed the way I created the thread. It works and looks clean Pin
jkirkerx21-Apr-12 12:33
professionaljkirkerx21-Apr-12 12:33 
QuestionC++ File Pin
Member 874742521-Apr-12 1:04
Member 874742521-Apr-12 1:04 
Hi,

I have one text file which stores the hex values in different lines(APDU.txt).

Eg; 02 01 00 BE 10 04 0E 08 00 06
10 00 2B 61 29 A1 09 06 07

And I need to process this line by line.

Here is a sample code that m used so far;

FILE *myFile = fopen("D:\\APDU.txt", "rb");
BYTE *buffer,*buffer1;
int lengthFile=0;
char temp[3];

if(myFile!=NULL)
{

fseek(myFile,0,SEEK_END);
lengthFile=ftell(myFile);
fseek(myFile,0,SEEK_SET);
buffer=new BYTE[lengthFile+1];
memset(buffer,0,lengthFile+1);
fread(buffer,sizeof(BYTE),lengthFile,myFile);
fclose(myFile);
}
buffer1=new BYTE[lengthFile/2];
memset(buffer1,0,lengthFile/2);
memset(temp,0,sizeof(temp));
for(int i=0,j=0;i
AnswerRe: C++ File Pin
Wes Aday21-Apr-12 1:15
professionalWes Aday21-Apr-12 1:15 
AnswerRe: C++ File Pin
Lakamraju Raghuram21-Apr-12 1:16
Lakamraju Raghuram21-Apr-12 1:16 
AnswerRe: C++ File Pin
CPallini21-Apr-12 8:25
mveCPallini21-Apr-12 8:25 
JokeRe: C++ File Pin
Nelek21-Apr-12 14:15
protectorNelek21-Apr-12 14:15 
GeneralRe: C++ File Pin
CPallini21-Apr-12 19:06
mveCPallini21-Apr-12 19:06 
QuestionRe: C++ File Pin
David Crow21-Apr-12 16:27
David Crow21-Apr-12 16:27 
QuestionMove screen to Secondary Monitor Pin
manju 321-Apr-12 0:01
manju 321-Apr-12 0:01 
AnswerRe: Move screen to Secondary Monitor Pin
Nelek21-Apr-12 14:13
protectorNelek21-Apr-12 14:13 
QuestionVC++ 6.0 MFC - Temp disable mouse and keyboard for 5 secs. Pin
rolfhorror19-Apr-12 21:29
rolfhorror19-Apr-12 21:29 
AnswerRe: VC++ 6.0 MFC - Temp disable mouse and keyboard for 5 secs. Pin
Resmi Anna19-Apr-12 22:55
Resmi Anna19-Apr-12 22:55 
GeneralRe: VC++ 6.0 MFC - Temp disable mouse and keyboard for 5 secs. Pin
rolfhorror20-Apr-12 8:12
rolfhorror20-Apr-12 8:12 
QuestionHow to let client using [i][j] access two dimension array? Pin
fantasy121519-Apr-12 14:28
fantasy121519-Apr-12 14:28 
AnswerRe: How to let client using [i][j] access two dimension array? Pin
Mohibur Rashid19-Apr-12 16:34
professionalMohibur Rashid19-Apr-12 16:34 
AnswerRe: How to let client using [i][j] access two dimension array? Pin
Lakamraju Raghuram19-Apr-12 18:00
Lakamraju Raghuram19-Apr-12 18:00 
AnswerRe: How to let client using [i][j] access two dimension array? Pin
Erudite_Eric19-Apr-12 20:57
Erudite_Eric19-Apr-12 20:57 
AnswerRe: How to let client using [i][j] access two dimension array? Pin
Aescleal20-Apr-12 3:05
Aescleal20-Apr-12 3:05 
QuestionOwner Drawn button does not get messages Pin
cpp_prgmer19-Apr-12 11:33
cpp_prgmer19-Apr-12 11:33 

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.