Click here to Skip to main content
15,915,336 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDDE Question Pin
__DanC__27-Sep-07 6:18
__DanC__27-Sep-07 6:18 
Questionextend the "Save As..." dialog Pin
carabutnicolae123427-Sep-07 5:39
carabutnicolae123427-Sep-07 5:39 
AnswerRe: extend the "Save As..." dialog Pin
Nelek28-Sep-07 0:37
protectorNelek28-Sep-07 0:37 
GeneralRe: extend the "Save As..." dialog Pin
carabutnicolae123428-Sep-07 3:52
carabutnicolae123428-Sep-07 3:52 
GeneralRe: extend the "Save As..." dialog Pin
Nelek30-Sep-07 22:09
protectorNelek30-Sep-07 22:09 
QuestionNewbie question Pin
Nelek27-Sep-07 4:35
protectorNelek27-Sep-07 4:35 
AnswerRe: Newbie question Pin
toxcct27-Sep-07 4:47
toxcct27-Sep-07 4:47 
GeneralRe: Newbie question Pin
Nelek27-Sep-07 5:02
protectorNelek27-Sep-07 5:02 
Ahmmm, then this is the point. It was coded at the end of the 90ies. In plain C.

in that programm the datas are sent with
DWORD	GetArrayLong( const CByteArray& array, int nOffset )
{
	DWORD	dwValue = 0;
	
	for( int nIndex = 0; nIndex < sizeof(DWORD); nIndex++ )
		dwValue |= ((DWORD) array[nOffset + nIndex] << (nIndex * 8));
	
	return dwValue;
}


But in my programm I send it BYTE per BYTE with

for (i = 0; i < dataSet.GetCount (); i ++)
{   // Bucle for every OutAttribute
    for (j = 0; j < dataSet[nOut].attSet.GetCount(); j ++)
    {   byteTemp = dataSet[i].attSet[j].point.x;
        pDataBuf = &byteTemp;
        file->Write (pDataBuf, sizeof (BYTE));
    }

    dwActualPos = file->SeekToEnd ();
}


I know that is not elegant but works

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 | ;)

AnswerRe: Newbie question Pin
Matthew Faithfull27-Sep-07 4:54
Matthew Faithfull27-Sep-07 4:54 
GeneralRe: Newbie question Pin
Nelek27-Sep-07 21:31
protectorNelek27-Sep-07 21:31 
Question"Default" class member Pin
DQNOK27-Sep-07 4:11
professionalDQNOK27-Sep-07 4:11 
AnswerRe: &quot;Default&quot; class member Pin
David Crow27-Sep-07 4:17
David Crow27-Sep-07 4:17 
AnswerRe: "Default" class member Pin
Matthew Faithfull27-Sep-07 4:18
Matthew Faithfull27-Sep-07 4:18 
GeneralRe: "Default" class member Pin
DQNOK27-Sep-07 4:24
professionalDQNOK27-Sep-07 4:24 
GeneralRe: "Default" class member Pin
DQNOK27-Sep-07 4:39
professionalDQNOK27-Sep-07 4:39 
AnswerRe: "Default" class member Pin
led mike27-Sep-07 4:18
led mike27-Sep-07 4:18 
GeneralRe: "Default" class member Pin
DQNOK27-Sep-07 4:35
professionalDQNOK27-Sep-07 4:35 
GeneralRe: "Default" class member Pin
led mike27-Sep-07 4:43
led mike27-Sep-07 4:43 
GeneralRe: "Default" class member Pin
DQNOK27-Sep-07 4:52
professionalDQNOK27-Sep-07 4:52 
GeneralRe: "Default" class member Pin
jhwurmbach27-Sep-07 5:19
jhwurmbach27-Sep-07 5:19 
QuestionProject help (Port programming) Pin
TooFast27-Sep-07 3:42
TooFast27-Sep-07 3:42 
AnswerRe: Project help (Port programming) Pin
Roger Stoltz27-Sep-07 4:23
Roger Stoltz27-Sep-07 4:23 
QuestionDetaching dialog boxes Pin
William Engberts27-Sep-07 2:54
William Engberts27-Sep-07 2:54 
AnswerRe: Detaching dialog boxes Pin
Nelek27-Sep-07 3:06
protectorNelek27-Sep-07 3:06 
AnswerRe: Detaching dialog boxes Pin
KarstenK27-Sep-07 3:09
mveKarstenK27-Sep-07 3:09 

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.