Click here to Skip to main content
15,896,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWho can help me(resize a bitmap) Pin
Abd.Eskandari28-Jul-05 20:35
Abd.Eskandari28-Jul-05 20:35 
GeneralRe: Who can help me(resize a bitmap) Pin
Halawlaws28-Jul-05 20:42
Halawlaws28-Jul-05 20:42 
GeneralRe: Who can help me(resize a bitmap) Pin
Russell'29-Jul-05 0:06
Russell'29-Jul-05 0:06 
GeneralMapping views of a MMF Pin
Bob Stanneveld28-Jul-05 20:02
Bob Stanneveld28-Jul-05 20:02 
GeneralSolved. Pin
Bob Stanneveld28-Jul-05 20:46
Bob Stanneveld28-Jul-05 20:46 
Generalreading data from a data file Pin
a_david12328-Jul-05 19:34
a_david12328-Jul-05 19:34 
GeneralRe: reading data from a data file Pin
Christian Graus28-Jul-05 19:50
protectorChristian Graus28-Jul-05 19:50 
GeneralRe: reading data from a data file Pin
David Crow29-Jul-05 6:00
David Crow29-Jul-05 6:00 
There are many ways to approach this. One, although not the most efficient, looks something like:

FILE *pFile;
int XLOC, YLOC, INDIX;
char szLine[128];
pFile = fopen("filename.dat", "rt");
 
// discard the first six lines
fgets(szLine, sizeof(szLine), pFile);
fgets(szLine, sizeof(szLine), pFile);
fgets(szLine, sizeof(szLine), pFile);
fgets(szLine, sizeof(szLine), pFile);
fgets(szLine, sizeof(szLine), pFile);
fgets(szLine, sizeof(szLine), pFile);
 
while (! feof(pFile))
    fscanf(pFile, "%d %d %d", &XLOC, &YLOC, &INDIX);
 
fclose(pFile);
A similar MFC solution exists.


"One must learn from the bite of the fire to leave it alone." - Native American Proverb


GeneralRe: reading data from a data file Pin
knapak29-Jul-05 7:27
knapak29-Jul-05 7:27 
GeneralRe: reading data from a data file Pin
a_david1231-Aug-05 18:00
a_david1231-Aug-05 18:00 
Generaltroubles on using scroll bar in frame Pin
firebolt7728-Jul-05 16:39
firebolt7728-Jul-05 16:39 
GeneralRe: troubles on using scroll bar in frame Pin
Christian Graus28-Jul-05 17:34
protectorChristian Graus28-Jul-05 17:34 
GeneralRe: troubles on using scroll bar in frame Pin
firebolt7728-Jul-05 18:14
firebolt7728-Jul-05 18:14 
GeneralRe: troubles on using scroll bar in frame Pin
Christian Graus28-Jul-05 18:23
protectorChristian Graus28-Jul-05 18:23 
GeneralRe: troubles on using scroll bar in frame Pin
firebolt7728-Jul-05 19:52
firebolt7728-Jul-05 19:52 
GeneralRe: troubles on using scroll bar in frame Pin
Christian Graus28-Jul-05 19:54
protectorChristian Graus28-Jul-05 19:54 
GeneralRe: troubles on using scroll bar in frame Pin
firebolt7728-Jul-05 20:06
firebolt7728-Jul-05 20:06 
GeneralRe: troubles on using scroll bar in frame Pin
Christian Graus31-Jul-05 12:59
protectorChristian Graus31-Jul-05 12:59 
GeneralRe: troubles on using scroll bar in frame Pin
firebolt7731-Jul-05 15:19
firebolt7731-Jul-05 15:19 
GeneralRe: troubles on using scroll bar in frame Pin
Christian Graus31-Jul-05 15:58
protectorChristian Graus31-Jul-05 15:58 
GeneralRe: troubles on using scroll bar in frame Pin
firebolt7731-Jul-05 16:16
firebolt7731-Jul-05 16:16 
GeneralRe: troubles on using scroll bar in frame Pin
Christian Graus31-Jul-05 16:20
protectorChristian Graus31-Jul-05 16:20 
GeneralRe: troubles on using scroll bar in frame Pin
firebolt7731-Jul-05 16:38
firebolt7731-Jul-05 16:38 
Generala very looooong integer Pin
knapak28-Jul-05 15:34
knapak28-Jul-05 15:34 
GeneralRe: a very looooong integer Pin
Christian Graus28-Jul-05 15:40
protectorChristian Graus28-Jul-05 15:40 

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.