Click here to Skip to main content
15,884,099 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: could some one give me a detail of this the result??I don not know why,more detail more better Pin
Iain Clarke, Warrior Programmer11-May-10 23:00
Iain Clarke, Warrior Programmer11-May-10 23:00 
QuestionTooltip Flashing Pin
Steve Thresher11-May-10 4:48
Steve Thresher11-May-10 4:48 
AnswerRe: Tooltip Flashing Pin
Code-o-mat11-May-10 5:38
Code-o-mat11-May-10 5:38 
QuestionHow to force an 'Alt' key stroke without keyboard? (MFC) [modified] Pin
Software200711-May-10 4:22
Software200711-May-10 4:22 
AnswerRe: How to force an 'Alt' key stroke without keyboard? (MFC) [modified] Pin
Code-o-mat11-May-10 5:34
Code-o-mat11-May-10 5:34 
GeneralRe: How to force an 'Alt' key stroke without keyboard? (MFC) Pin
Software200711-May-10 5:52
Software200711-May-10 5:52 
GeneralRe: How to force an 'Alt' key stroke without keyboard? (MFC) Pin
Code-o-mat11-May-10 5:56
Code-o-mat11-May-10 5:56 
QuestionMy progremmer can't run,why?? Pin
wbgxx11-May-10 4:17
wbgxx11-May-10 4:17 
#include <iostream>
#include <string> 
using namespace std;

class CBuffer 
{ 
  char * m_pBuffer; 
  int m_size; 
public: 
  CBuffer() 
 { 
    m_pBuffer=NULL;  } 
  ~CBuffer() 
 { 
    Free(); 
 } 
  void Allocte(int size) (3) { 
    m_size=size; 
    m_pBuffer= new char[size]; 
 } 
private: 
  void Free() 
 { 
    if(m_pBuffer!=NULL) 
  { 
      delete m_pBuffer; 
      m_pBuffer=NULL; 
  } 
 } 
public: 
  void SaveString(const char* pText) const 
 { 
    strcpy(m_pBuffer, pText); 
 } 
  char* GetBuffer() const 
 { 
    return m_pBuffer; 
 } 
}; 

int main () 
{ 
  CBuffer buffer1; 
  buffer1.SaveString("Microsoft"); 
  printf("%s", buffer1.GetBuffer()); 
  return 0;
}

AnswerRe: My progremmer can't run,why?? Pin
Cedric Moonen11-May-10 4:18
Cedric Moonen11-May-10 4:18 
GeneralRe: My progremmer can't run,why?? Pin
wbgxx11-May-10 4:27
wbgxx11-May-10 4:27 
GeneralRe: My progremmer can't run,why?? PinPopular
Cedric Moonen11-May-10 4:33
Cedric Moonen11-May-10 4:33 
JokeRe: My progremmer can't run,why?? Pin
CPallini11-May-10 11:44
mveCPallini11-May-10 11:44 
AnswerRe: My progremmer can't run,why?? Pin
Covean11-May-10 4:33
Covean11-May-10 4:33 
AnswerRe: My progremmer can't run,why?? Pin
Tim Craig11-May-10 17:34
Tim Craig11-May-10 17:34 
QuestionRound button with image Pin
AbhiHcl11-May-10 4:16
AbhiHcl11-May-10 4:16 
QuestionUnable to CreateFileMapping for Elivated User on Windows7 Version or Windows Vista Pin
janaswamy uday11-May-10 3:54
janaswamy uday11-May-10 3:54 
QuestionRe: Unable to CreateFileMapping for Elivated User on Windows7 Version or Windows Vista Pin
Randor 11-May-10 15:46
professional Randor 11-May-10 15:46 
Questionmy strcpy funcution! Pin
wbgxx11-May-10 3:47
wbgxx11-May-10 3:47 
AnswerRe: my strcpy funcution! Pin
wbgxx11-May-10 3:49
wbgxx11-May-10 3:49 
AnswerRe: my strcpy funcution! Pin
Jonathan Davies11-May-10 4:09
Jonathan Davies11-May-10 4:09 
GeneralRe: my strcpy funcution! Pin
wbgxx11-May-10 4:13
wbgxx11-May-10 4:13 
GeneralRe: my strcpy funcution! Pin
Maximilien11-May-10 4:26
Maximilien11-May-10 4:26 
GeneralRe: my strcpy funcution! Pin
Jonathan Davies11-May-10 4:26
Jonathan Davies11-May-10 4:26 
AnswerRe: my strcpy funcution! Pin
Richard MacCutchan11-May-10 5:17
mveRichard MacCutchan11-May-10 5:17 
AnswerRe: my strcpy funcution! Pin
David Crow12-May-10 3:01
David Crow12-May-10 3:01 

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.