Click here to Skip to main content
15,907,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: overloading in C++ Pin
Chris Losinger10-May-13 9:31
professionalChris Losinger10-May-13 9:31 
AnswerRe: overloading in C++ Pin
«_Superman_»10-May-13 19:59
professional«_Superman_»10-May-13 19:59 
GeneralRe: overloading in C++ Pin
OmarSH10-May-13 23:11
OmarSH10-May-13 23:11 
GeneralRe: overloading in C++ Pin
«_Superman_»11-May-13 1:51
professional«_Superman_»11-May-13 1:51 
GeneralRe: overloading in C++ Pin
OmarSH11-May-13 2:11
OmarSH11-May-13 2:11 
GeneralRe: overloading in C++ Pin
«_Superman_»12-May-13 5:00
professional«_Superman_»12-May-13 5:00 
QuestionWhere is IACLCustomMRU declared ? Pin
jeff610-May-13 7:07
jeff610-May-13 7:07 
AnswerRe: Where is IACLCustomMRU declared ? Pin
Richard MacCutchan10-May-13 22:05
mveRichard MacCutchan10-May-13 22:05 
GeneralRe: Where is IACLCustomMRU declared ? Pin
jeff610-May-13 23:21
jeff610-May-13 23:21 
GeneralRe: Where is IACLCustomMRU declared ? Pin
Richard MacCutchan10-May-13 23:52
mveRichard MacCutchan10-May-13 23:52 
QuestionHOW to make GUI in C++ Pin
OmarSH10-May-13 6:33
OmarSH10-May-13 6:33 
AnswerRe: HOW to make GUI in C++ Pin
David Crow10-May-13 7:19
David Crow10-May-13 7:19 
AnswerRe: HOW to make GUI in C++ Pin
«_Superman_»10-May-13 20:07
professional«_Superman_»10-May-13 20:07 
GeneralRe: HOW to make GUI in C++ Pin
Richard MacCutchan10-May-13 22:04
mveRichard MacCutchan10-May-13 22:04 
GeneralRe: HOW to make GUI in C++ Pin
ThatsAlok21-May-13 0:01
ThatsAlok21-May-13 0:01 
QuestionHow to load bitmap Pin
econy10-May-13 3:01
econy10-May-13 3:01 
AnswerRe: How to load bitmap Pin
Richard MacCutchan10-May-13 3:42
mveRichard MacCutchan10-May-13 3:42 
SuggestionRe: How to load bitmap Pin
David Crow10-May-13 6:00
David Crow10-May-13 6:00 
AnswerRe: How to load bitmap Pin
ThatsAlok20-May-13 23:54
ThatsAlok20-May-13 23:54 
QuestionVideo display gets corrupted, Plays grey only? Pin
mbatra319-May-13 21:34
mbatra319-May-13 21:34 
AnswerRe: Video display gets corrupted, Plays grey only? Pin
SoMad10-May-13 8:22
professionalSoMad10-May-13 8:22 
QuestionQuestion about Streamin CrichEditCtrl Pin
ForNow9-May-13 6:27
ForNow9-May-13 6:27 
AnswerRe: Question about Streamin CrichEditCtrl Pin
Richard MacCutchan9-May-13 7:06
mveRichard MacCutchan9-May-13 7:06 
GeneralRe: Question about Streamin CrichEditCtrl Pin
ForNow9-May-13 18:54
ForNow9-May-13 18:54 
C++
static DWORD CALLBACK readlisting(
         DWORD dwCookie,      // (in) pointer to CFile
         LPBYTE pbBuff,       // (in) pointer to the destination buffer
         LONG cb,             // (in) size in bytes of the destination buffer
        LONG FAR *pcb        // (out) number of bytes transfered
       )
 {
  UNREFERENCED_PARAMETER(cb);
          static BOOL flag = 0;
 //        LPCTSTR lpch;
		 int length;
        // CString buffer((LPCTSTR) lpch,135);
		 CString buffer; 
              //   char *holdptr;
                                 LPBYTE holdptr1;
                 int n;
                 CStdioFile* pFile = (CStdioFile*) dwCookie;

         switch (flag)
                 {
                 case 0:


                         flag = 1;


                                                do {
                                                     pFile->ReadString(buffer);
                                                    } while(buffer.Find((LPCTSTR)"CSECT") == -1);
                        length = buffer.GetLength();                                  
                        strcpy((char *) pbBuff,(char *)buffer.GetBuffer(length));
						holdptr1 = pbBuff + length;
						memcpy(holdptr1,"\r\n",2);
                          //     *pcb = 135;                // 87 btes transfer
							*pcb = length;
                        return 0;
                         break;
                 case 1:

                                                 while(TRUE)
                                                 {
                                                  pFile->ReadString(buffer);
												                                           length = buffer.GetLength();
                                                 if(buffer.Find((LPCTSTR)"END") > 0)
												 {
													                                        *pcb = 0;              // finish it up
                                                          return 0;          //
												 }
                  if(buffer.Find((LPCTSTR) "  ") < 2 || buffer.Find((LPCTSTR) "    ")    
                                                  ==7)          // no Location counter or opcode 
                                                 {
                                                  memset(pbBuff,0x20,135);
                                                  strcpy((char *)pbBuff,"  ");
                                                  holdptr1 =  pbBuff + 2;
                                                  memcpy(holdptr1,buffer.GetBuffer(length),length);
                                                  holdptr1 = holdptr1 + length;
                                                  memcpy(holdptr1,"\r\n",2);
                                                  *pcb = length + 2;
                                                         return 0;
                                                 }
                                                 else
                                                 {
												                                         n = buffer.Find((LPCTSTR) "    ");
                                                  memset(pbBuff,0x20,135);
                                                  strcpy((char *)pbBuff,"_ ");
                                                  holdptr1 =  pbBuff + 2;
                                                  memcpy(holdptr1,buffer.GetBuffer
                                                  (length),length);  // copy over location counter
                                                  holdptr1 = holdptr1 + length;
                                                   memcpy(holdptr1,"\r\n",2);
                                                   *pcb  = length + 2;
                                                   return 0;
                                                 }
                                                                                                 }
                 }
      return 0;
 }

GeneralRe: Question about Streamin CrichEditCtrl Pin
Richard MacCutchan9-May-13 20:49
mveRichard MacCutchan9-May-13 20:49 

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.