Click here to Skip to main content
15,918,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalscale control in inches Pin
KKR24-Sep-03 2:15
KKR24-Sep-03 2:15 
Generalerror with deleting database record Pin
coda_x24-Sep-03 2:00
coda_x24-Sep-03 2:00 
GeneralRe: error with deleting database record Pin
Terry O'Nolley24-Sep-03 5:46
Terry O'Nolley24-Sep-03 5:46 
GeneralRe: error with deleting database record Pin
coda_x25-Sep-03 0:32
coda_x25-Sep-03 0:32 
GeneralAdding Text With Superscript to Dialog Title Bar Pin
Doug Knudson24-Sep-03 1:40
Doug Knudson24-Sep-03 1:40 
GeneralRe: Adding Text With Superscript to Dialog Title Bar Pin
Roger Allen24-Sep-03 2:15
Roger Allen24-Sep-03 2:15 
GeneralConverting app to Unicode Pin
markhatsell24-Sep-03 1:07
markhatsell24-Sep-03 1:07 
GeneralRe: Converting app to Unicode Pin
Ravi Bhavnani24-Sep-03 4:34
professionalRavi Bhavnani24-Sep-03 4:34 
GeneralMSComm, MFC, and Win98 compatibility problem Pin
caykahve23-Sep-03 23:42
caykahve23-Sep-03 23:42 
Generalpassing boolean as argument Pin
PaulUK0123-Sep-03 23:38
PaulUK0123-Sep-03 23:38 
GeneralRe: passing boolean as argument Pin
jhwurmbach23-Sep-03 23:58
jhwurmbach23-Sep-03 23:58 
GeneralRe: passing boolean as argument Pin
PaulUK0124-Sep-03 0:49
PaulUK0124-Sep-03 0:49 
GeneralRe: passing boolean as argument Pin
jhwurmbach24-Sep-03 1:14
jhwurmbach24-Sep-03 1:14 
GeneralRe: passing boolean as argument Pin
PaulUK0124-Sep-03 2:02
PaulUK0124-Sep-03 2:02 
GeneralRe: passing boolean as argument Pin
Ryan_Roberts24-Sep-03 0:03
Ryan_Roberts24-Sep-03 0:03 
GeneralRe: passing boolean as argument Pin
Joaquín M López Muñoz24-Sep-03 0:04
Joaquín M López Muñoz24-Sep-03 0:04 
GeneralRe: passing boolean as argument Pin
PaulUK0124-Sep-03 0:54
PaulUK0124-Sep-03 0:54 
QuestionCPropertyPage OnOk? Pin
murali_utr23-Sep-03 23:15
murali_utr23-Sep-03 23:15 
AnswerRe: CPropertyPage OnOk? Pin
Roland Bär23-Sep-03 23:34
Roland Bär23-Sep-03 23:34 
GeneralFit into the A4 Paper Pin
sdfdsfa23-Sep-03 22:46
sdfdsfa23-Sep-03 22:46 
Generala challenge Pin
harshsingh23-Sep-03 21:48
harshsingh23-Sep-03 21:48 
GeneralRe: a challenge Pin
Michael P Butler23-Sep-03 21:54
Michael P Butler23-Sep-03 21:54 
GeneralRe: a challenge Pin
harshsingh24-Sep-03 3:22
harshsingh24-Sep-03 3:22 
Generalabout overload : operate new Pin
1.5kg23-Sep-03 21:43
1.5kg23-Sep-03 21:43 
I want to get this code:

// -->
class A
{
public:
A(int a) { m_a = a; }
public:
int m_a;
};

FILE *fp = fopen("C:\\test.txt", "wt");

A* obj = new (fp) A(10);

fclose(fp);

// <--

When this code run over, the C:\test.txt file will be written in 10. Just as A(10).
In other words, the operate new Function can save A(10) before A construct function implement.
I can't solve it!

My project have the same codes, but I have no sourcecode. I want to know how to do?

I need your help~~~~ Thanks a lot~~~
GeneralRe: about overload : operate new Pin
Joaquín M López Muñoz23-Sep-03 23:55
Joaquín M López Muñoz23-Sep-03 23:55 

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.