Click here to Skip to main content
15,909,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: want to add any number of images of any type in a dialog box using mfc only Pin
jhwurmbach20-Sep-07 2:43
jhwurmbach20-Sep-07 2:43 
GeneralRe: want to add any number of images of any type in a dialog box using mfc only Pin
Dhiraj kumar Saini20-Sep-07 3:30
Dhiraj kumar Saini20-Sep-07 3:30 
GeneralRe: want to add any number of images of any type in a dialog box using mfc only Pin
jhwurmbach20-Sep-07 3:51
jhwurmbach20-Sep-07 3:51 
QuestionProblem between CPU Utilization & Data Transfer Pin
Andy Rama20-Sep-07 1:09
Andy Rama20-Sep-07 1:09 
AnswerRe: Problem between CPU Utilization & Data Transfer Pin
Cedric Moonen20-Sep-07 1:19
Cedric Moonen20-Sep-07 1:19 
QuestionRe: Problem between CPU Utilization & Data Transfer Pin
Andy Rama20-Sep-07 1:31
Andy Rama20-Sep-07 1:31 
QuestionHow to code Pin
snoop8220-Sep-07 0:06
snoop8220-Sep-07 0:06 
AnswerRe: How to code Pin
Nelek20-Sep-07 0:34
protectorNelek20-Sep-07 0:34 
The easiest way is to use an empty project with Doc/View arquitecture.

In the CMyDoc::Serialize (it comes by default using the assistant) you can code directly your random functions to save the ints that you want.

If not...

You should use the CFile,
CFile f;
if (!f.Open ("FileName.ext", CFile::modeRead))
{
//Read your ints
}

if (!f.Open ("FileName.ext", CFile::modeWrite))
{
//Write your ints
}


Sample to write numbers

void CMyView::WriteFile (CFile* file)
{
int Array[LIM];

for (int i = 0; i < lim; i++)
{
//fill with random
}

int* pBuf;
pBuf = &Array[0];
file->Write (pBuf, sizeof (Array));
}


Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

GeneralRe: How to code Pin
snoop8220-Sep-07 0:40
snoop8220-Sep-07 0:40 
GeneralRe: How to code Pin
Nelek20-Sep-07 1:47
protectorNelek20-Sep-07 1:47 
GeneralRe: How to code Pin
snoop8220-Sep-07 2:15
snoop8220-Sep-07 2:15 
GeneralRe: How to code Pin
Nelek20-Sep-07 3:05
protectorNelek20-Sep-07 3:05 
GeneralRe: How to code Pin
David Crow20-Sep-07 17:42
David Crow20-Sep-07 17:42 
QuestionRe: How to code Pin
David Crow20-Sep-07 17:44
David Crow20-Sep-07 17:44 
AnswerRe: How to code Pin
DevMentor.org20-Sep-07 18:20
DevMentor.org20-Sep-07 18:20 
QuestionHow to use bitmap buttons Pin
Engr_Arsalan19-Sep-07 23:28
Engr_Arsalan19-Sep-07 23:28 
AnswerRe: How to use bitmap buttons Pin
KarstenK19-Sep-07 23:54
mveKarstenK19-Sep-07 23:54 
GeneralRe: How to use bitmap buttons Pin
josip cagalj20-Sep-07 3:19
josip cagalj20-Sep-07 3:19 
GeneralRe: How to use bitmap buttons Pin
KarstenK20-Sep-07 3:27
mveKarstenK20-Sep-07 3:27 
GeneralRe: How to use bitmap buttons Pin
josip cagalj20-Sep-07 3:32
josip cagalj20-Sep-07 3:32 
GeneralRe: How to use bitmap buttons Pin
Engr_Arsalan24-Sep-07 20:42
Engr_Arsalan24-Sep-07 20:42 
GeneralRe: How to use bitmap buttons Pin
josip cagalj24-Sep-07 22:28
josip cagalj24-Sep-07 22:28 
Question[Message Deleted] Pin
imdx8019-Sep-07 23:24
imdx8019-Sep-07 23:24 
AnswerRe: VC++ Editor Quick Question, Pin
nbugalia20-Sep-07 1:33
nbugalia20-Sep-07 1:33 
General[Message Deleted] Pin
imdx8020-Sep-07 2:02
imdx8020-Sep-07 2:02 

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.