Click here to Skip to main content
15,920,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: "extern inline" in C header file Pin
Joe Woodbury17-Jun-08 15:02
professionalJoe Woodbury17-Jun-08 15:02 
AnswerRe: "extern inline" in C header file Pin
Nibu babu thomas17-Jun-08 17:11
Nibu babu thomas17-Jun-08 17:11 
Questionhow to change the back ground color of Label at runtime Pin
ramnathrn17-Jun-08 8:16
ramnathrn17-Jun-08 8:16 
QuestionRe: how to change the back ground color of Label at runtime Pin
David Crow17-Jun-08 8:51
David Crow17-Jun-08 8:51 
QuestionC program Pin
Subhankar17-Jun-08 7:40
Subhankar17-Jun-08 7:40 
AnswerRe: C program Pin
Alan Balkany17-Jun-08 8:26
Alan Balkany17-Jun-08 8:26 
QuestionRe: C program Pin
David Crow17-Jun-08 8:52
David Crow17-Jun-08 8:52 
AnswerRe: C program Pin
bulg17-Jun-08 13:44
bulg17-Jun-08 13:44 
What an excellent question! This is a LOT more clearerer than Globule Beats Brick! Here you go, you can write the void main() function:

char data[360];
class rthread {
  char* myDataPtr;
  rthread(char* ptr){
   myDataPtr=ptr;
  }
  bool write(char* d,int size){
    return memcpy(d,myDataPtr,(size>360?359:size));
  }
}
class wthread {
  char* myDataPtr;
  wthread(char* ptr){
   myDataPtr=ptr;
  }
  bool read(char* d, int size){
   return memcpy(myDataPtr,d,(size>360?359:size));
  }
}
class mthread {
  char* myDataPtr;
  wthread* myWriter;
  rthread* myReader;
  mthread(char* ptr){
   myDataPtr = ptr;
   wthread = new wthread(myDataPtr);
   rthread = new rthread(myDataPtr);
  }
  ~mthread(){
   delete wthread;
   delete rthread;
  }
  bool read(char* c,int size){
   return myReader->read(c,size);
  }
  bool write(char* c,int size){
   return myWriter->write(c,size);
  }
}

GeneralRe: C program Pin
Subhankar17-Jun-08 23:11
Subhankar17-Jun-08 23:11 
QuestionMIME Base64 Encoding Pin
hxhl9517-Jun-08 6:03
hxhl9517-Jun-08 6:03 
AnswerRe: MIME Base64 Encoding Pin
Michael Dunn17-Jun-08 15:30
sitebuilderMichael Dunn17-Jun-08 15:30 
QuestionHow do I change the shadow color in ShadowVolume Pin
akira3217-Jun-08 5:38
akira3217-Jun-08 5:38 
QuestionHow to serialize STL containers in VC++ 2008? [modified] Pin
followait17-Jun-08 4:10
followait17-Jun-08 4:10 
AnswerRe: How to serialize STL containers in VC++ 2008? Pin
CPallini17-Jun-08 4:31
mveCPallini17-Jun-08 4:31 
QuestionHow can i hide Static Text in MFC ? Pin
sumit.durg17-Jun-08 4:03
sumit.durg17-Jun-08 4:03 
AnswerRe: How can i hide Static Text in MFC ? Pin
toxcct17-Jun-08 4:10
toxcct17-Jun-08 4:10 
AnswerRe: How can i hide Static Text in MFC ? Pin
Jijo.Raj17-Jun-08 8:00
Jijo.Raj17-Jun-08 8:00 
GeneralRe: How can i hide Static Text in MFC ? Pin
ramnathrn17-Jun-08 8:13
ramnathrn17-Jun-08 8:13 
Question[OT] Re: How can i hide Static Text in MFC ? Pin
David Crow17-Jun-08 8:48
David Crow17-Jun-08 8:48 
GeneralRe: How can i hide Static Text in MFC ? Pin
Jijo.Raj17-Jun-08 8:58
Jijo.Raj17-Jun-08 8:58 
QuestionVISTA - CreateFile function returns not good handle. Pin
kkumarpatel17-Jun-08 3:56
kkumarpatel17-Jun-08 3:56 
AnswerRe: VISTA - CreateFile function returns not good handle. Pin
David Crow17-Jun-08 3:59
David Crow17-Jun-08 3:59 
AnswerRe: VISTA - CreateFile function returns not good handle. Pin
Hamid_RT17-Jun-08 7:36
Hamid_RT17-Jun-08 7:36 
Questionerror while running Pin
Mohanraj D17-Jun-08 3:52
Mohanraj D17-Jun-08 3:52 
QuestionRe: error while running Pin
David Crow17-Jun-08 3:56
David Crow17-Jun-08 3:56 

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.