Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: error C2440 Pin
Aescleal17-Jul-10 9:37
Aescleal17-Jul-10 9:37 
Questioncalculating bytes per second Pin
saiyuk6=717-Jul-10 7:46
saiyuk6=717-Jul-10 7:46 
AnswerRe: calculating bytes per second Pin
Chris Losinger17-Jul-10 8:37
professionalChris Losinger17-Jul-10 8:37 
GeneralRe: calculating bytes per second Pin
saiyuk6=717-Jul-10 8:45
saiyuk6=717-Jul-10 8:45 
QuestionRe: calculating bytes per second Pin
David Crow19-Jul-10 5:46
David Crow19-Jul-10 5:46 
AnswerRe: calculating bytes per second [modified] Pin
saiyuk6=719-Jul-10 14:15
saiyuk6=719-Jul-10 14:15 
GeneralRe: calculating bytes per second Pin
David Crow20-Jul-10 2:22
David Crow20-Jul-10 2:22 
GeneralRe: calculating bytes per second [modified] Pin
saiyuk6=720-Jul-10 5:36
saiyuk6=720-Jul-10 5:36 
well i've tried doing that but i get this error

bm.cpp
bm.cpp(40) : error C2057: expected constant expression
bm.cpp(40) : error C2466: cannot allocate an array of constant size 0
bm.cpp(40) : error C2133: 'bzBuffer' : unknown size


Well i had started to allocate memory for it because later on i was going to start using a hash driver that i was going to make that would provide me with several hash algo's,.... example
there might be errors below, but its just a example of what i had planned to do
unsigned char *bzBuffer;
for (int i = HT_MD5; i < (HT_WHIRLPOOL + 1); i++) {
   hash.Init(i);
   bzBuffer = new unsigned char[hash.DigestSize()];
   if (bzBuffer == NULL) {
      //err code here
      return 0;
   }
   hash.Update(hashTest[i].buffer, hashTest[i].length);
   hash.Final(bzBuffer);
   for (int h = 0; h < hash.DigestSize(); h++)
      printf("%02.2%", bzBuffer[i]);
   delete bzBuffer;
}


modified on Tuesday, July 20, 2010 12:28 PM

QuestionOutputDebugString in x64 Pin
Pascal Ganaye17-Jul-10 0:51
Pascal Ganaye17-Jul-10 0:51 
AnswerRe: OutputDebugString in x64 Pin
Rajesh R Subramanian17-Jul-10 8:06
professionalRajesh R Subramanian17-Jul-10 8:06 
Questionhow to know the downloaded data from the net for a PC Pin
Sakhalean16-Jul-10 23:25
Sakhalean16-Jul-10 23:25 
AnswerRe: how to know the downloaded data from the net for a PC Pin
Spawn@Melmac17-Jul-10 4:32
Spawn@Melmac17-Jul-10 4:32 
AnswerRe: how to know the downloaded data from the net for a PC Pin
Niklas L17-Jul-10 9:16
Niklas L17-Jul-10 9:16 
QuestionCompiling 64bit Pin
Fareed Rizkalla16-Jul-10 10:32
Fareed Rizkalla16-Jul-10 10:32 
AnswerRe: Compiling 64bit Pin
Emilio Garavaglia16-Jul-10 22:50
Emilio Garavaglia16-Jul-10 22:50 
AnswerRe: Compiling 64bit Pin
Richard MacCutchan16-Jul-10 23:00
mveRichard MacCutchan16-Jul-10 23:00 
Questionproper conversion of unsigned char [16] -> unsigned long [4] [modified] Pin
saiyuk6=716-Jul-10 8:45
saiyuk6=716-Jul-10 8:45 
AnswerRe: proper conversion of unsigned char [16] -> unsigned long [4] Pin
Chris Losinger16-Jul-10 9:14
professionalChris Losinger16-Jul-10 9:14 
GeneralRe: proper conversion of unsigned char [16] -> unsigned long [4] Pin
saiyuk6=716-Jul-10 9:28
saiyuk6=716-Jul-10 9:28 
GeneralRe: proper conversion of unsigned char [16] -> unsigned long [4] Pin
Chris Losinger16-Jul-10 9:40
professionalChris Losinger16-Jul-10 9:40 
GeneralRe: proper conversion of unsigned char [16] -> unsigned long [4] Pin
saiyuk6=716-Jul-10 9:53
saiyuk6=716-Jul-10 9:53 
GeneralRe: proper conversion of unsigned char [16] -> unsigned long [4] Pin
Chris Losinger16-Jul-10 10:27
professionalChris Losinger16-Jul-10 10:27 
GeneralRe: proper conversion of unsigned char [16] -> unsigned long [4] Pin
saiyuk6=716-Jul-10 10:40
saiyuk6=716-Jul-10 10:40 
AnswerRe: proper conversion of unsigned char [16] -> unsigned long [4] Pin
Code-o-mat16-Jul-10 9:18
Code-o-mat16-Jul-10 9:18 
GeneralRe: proper conversion of unsigned char [16] -> unsigned long [4] Pin
saiyuk6=716-Jul-10 9:39
saiyuk6=716-Jul-10 9:39 

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.