Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Communication between propertypages Pin
vc++_fragrance21-Jul-06 5:00
vc++_fragrance21-Jul-06 5:00 
QuestionList files a workstation has open on the network Pin
Richard Ernstberger20-Jul-06 23:42
Richard Ernstberger20-Jul-06 23:42 
AnswerRe: List files a workstation has open on the network Pin
ThatsAlok21-Jul-06 0:05
ThatsAlok21-Jul-06 0:05 
GeneralRe: List files a workstation has open on the network Pin
David Crow21-Jul-06 3:17
David Crow21-Jul-06 3:17 
GeneralRe: List files a workstation has open on the network Pin
ThatsAlok21-Jul-06 3:20
ThatsAlok21-Jul-06 3:20 
GeneralRe: List files a workstation has open on the network Pin
Richard Ernstberger23-Jul-06 22:17
Richard Ernstberger23-Jul-06 22:17 
Question64 bit Crc Polynomial ? Pin
Nibu babu thomas20-Jul-06 23:12
Nibu babu thomas20-Jul-06 23:12 
AnswerRe: 64 bit Crc Polynomial ? Pin
Programm3r20-Jul-06 23:27
Programm3r20-Jul-06 23:27 
Hi, I dont have code for a 64 bit crc, but maybe this crc16 might help you.
Hope it will help.

Function:

short int crc16(int *pBuf, short int Len, short int InitialCrc){
short int crc=0, i=0;

crc = 0;
for (i = 0; i < Len; i++ ) {
crc = (crc >> 8) | (crc << 8);
crc = crc ^ *pBuf;
crc = crc ^ ((crc & 0xff) >> 4);
crc = crc ^ (crc << 12);
crc = crc ^ ((crc & 0xff) << 5);
pBuf++;
}

return(crc);
}

int main()
{
int *ibuf = new char[len];
short int crc;
Memo1->GetTextBuf(ibuf,len);
crc = crc16(&ibuf[0],len,0);
Edit2->Text = len;
Edit3->Text = IntToHex(crc,4);
delete[] ibuf;
}

Regards Programm3r
GeneralRe: 64 bit Crc Polynomial ? Pin
Nibu babu thomas20-Jul-06 23:30
Nibu babu thomas20-Jul-06 23:30 
JokeRe: 64 bit Crc Polynomial ? Pin
Programm3r20-Jul-06 23:35
Programm3r20-Jul-06 23:35 
GeneralRe: 64 bit Crc Polynomial ? Pin
Nibu babu thomas20-Jul-06 23:39
Nibu babu thomas20-Jul-06 23:39 
AnswerRe: 64 bit Crc Polynomial ? Pin
Stephen Hewitt20-Jul-06 23:42
Stephen Hewitt20-Jul-06 23:42 
GeneralRe: 64 bit Crc Polynomial ? Pin
Nibu babu thomas20-Jul-06 23:51
Nibu babu thomas20-Jul-06 23:51 
QuestionActivex control Pin
sunita ramesh20-Jul-06 23:10
sunita ramesh20-Jul-06 23:10 
AnswerRe: Activex control Pin
Anilkumar K V21-Jul-06 1:16
Anilkumar K V21-Jul-06 1:16 
QuestionOCX control in an SDI application. Pin
HakunaMatada20-Jul-06 23:09
HakunaMatada20-Jul-06 23:09 
QuestionRe: OCX control in an SDI application. Pin
David Crow21-Jul-06 3:18
David Crow21-Jul-06 3:18 
AnswerRe: OCX control in an SDI application. Pin
HakunaMatada24-Jul-06 19:11
HakunaMatada24-Jul-06 19:11 
GeneralRe: OCX control in an SDI application. Pin
David Crow25-Jul-06 3:21
David Crow25-Jul-06 3:21 
Questiondatabase in different domains Pin
Marc Soleda20-Jul-06 23:03
Marc Soleda20-Jul-06 23:03 
AnswerRe: database in different domains Pin
Programm3r20-Jul-06 23:39
Programm3r20-Jul-06 23:39 
GeneralRe: database in different domains Pin
Marc Soleda21-Jul-06 0:17
Marc Soleda21-Jul-06 0:17 
GeneralRe: database in different domains Pin
Marc Soleda21-Jul-06 0:35
Marc Soleda21-Jul-06 0:35 
QuestionGetUserName Pin
see me20-Jul-06 22:50
see me20-Jul-06 22:50 
AnswerRe: GetUserName Pin
Nibu babu thomas20-Jul-06 23:10
Nibu babu thomas20-Jul-06 23:10 

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.