Click here to Skip to main content
15,914,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC DLL Static Const CString Not Resolved (LNK2001) Pin
GuyM26-Apr-07 3:51
GuyM26-Apr-07 3:51 
GeneralRe: MFC DLL Static Const CString Not Resolved (LNK2001) Pin
Peter Saint26-Apr-07 4:23
Peter Saint26-Apr-07 4:23 
GeneralRe: MFC DLL Static Const CString Not Resolved (LNK2001) Pin
GuyM26-Apr-07 4:30
GuyM26-Apr-07 4:30 
GeneralRe: MFC DLL Static Const CString Not Resolved (LNK2001) Pin
Peter Saint26-Apr-07 5:17
Peter Saint26-Apr-07 5:17 
GeneralRe: MFC DLL Static Const CString Not Resolved (LNK2001) Pin
Cedric Moonen26-Apr-07 3:57
Cedric Moonen26-Apr-07 3:57 
GeneralRe: MFC DLL Static Const CString Not Resolved (LNK2001) Pin
Peter Saint26-Apr-07 4:14
Peter Saint26-Apr-07 4:14 
QuestionProblem in fwrite and fread function [modified] Pin
mohindar_kks26-Apr-07 2:32
mohindar_kks26-Apr-07 2:32 
QuestionRe: Problem in fwrite and fread function Pin
David Crow26-Apr-07 2:43
David Crow26-Apr-07 2:43 
mohindar_kks wrote:
Problem is occure only possible to decrypt pice of data from encrypted file.


This is a bit unclear. What exactly is the problem? Are you concerned that file1 (the original) and file3 (the decrypted) are not the same? You'll likely see the same problem even if you omitted the XOR statement.

Try:

while (! feof(file1)) 
{
    char iout;
    if (fread(&iout, sizeof(iout), 1, file1) == 1)
    {
        iout ^= 1300;
        fwrite(&iout, sizeof(iout), 1, file2);
    }
}



"A good athlete is the result of a good and worthy opponent." - David Crow

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


AnswerRe: Problem in fwrite and fread function Pin
mohindar_kks26-Apr-07 3:08
mohindar_kks26-Apr-07 3:08 
AnswerRe: Problem in fwrite and fread function Pin
Mark Salsbery26-Apr-07 7:15
Mark Salsbery26-Apr-07 7:15 
GeneralRe: Problem in fwrite and fread function Pin
David Crow26-Apr-07 8:00
David Crow26-Apr-07 8:00 
QuestionSHFileOperation and SendMessage Question Pin
Programm3r26-Apr-07 2:22
Programm3r26-Apr-07 2:22 
AnswerRe: SHFileOperation and SendMessage Question Pin
Programm3r26-Apr-07 2:27
Programm3r26-Apr-07 2:27 
GeneralRe: SHFileOperation and SendMessage Question Pin
Mark Salsbery26-Apr-07 7:16
Mark Salsbery26-Apr-07 7:16 
QuestionHow to Develope an Activex using existing controls Pin
viral_umang@hotmail.com26-Apr-07 2:09
viral_umang@hotmail.com26-Apr-07 2:09 
GeneralRe: How to Develope an Activex using existing controls Pin
GuyM26-Apr-07 2:36
GuyM26-Apr-07 2:36 
GeneralRe: How to Develope an Activex using existing controls Pin
viral_umang@hotmail.com26-Apr-07 2:51
viral_umang@hotmail.com26-Apr-07 2:51 
QuestionCString Pin
Bravoone_200626-Apr-07 2:07
Bravoone_200626-Apr-07 2:07 
AnswerRe: CString Pin
GuyM26-Apr-07 2:26
GuyM26-Apr-07 2:26 
GeneralRe: CString Pin
Bravoone_200626-Apr-07 2:41
Bravoone_200626-Apr-07 2:41 
GeneralRe: CString Pin
David Crow26-Apr-07 2:45
David Crow26-Apr-07 2:45 
GeneralRe: CString Pin
Bravoone_200626-Apr-07 2:54
Bravoone_200626-Apr-07 2:54 
GeneralRe: CString Pin
Maximilien26-Apr-07 3:32
Maximilien26-Apr-07 3:32 
GeneralRe: CString Pin
toxcct26-Apr-07 7:11
toxcct26-Apr-07 7:11 
GeneralRe: CString Pin
GuyM26-Apr-07 2:53
GuyM26-Apr-07 2:53 

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.