Click here to Skip to main content
15,902,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFastest way to get a file size? Pin
Andrei B24-Oct-05 17:32
Andrei B24-Oct-05 17:32 
AnswerRe: Fastest way to get a file size? Pin
TrueTom24-Oct-05 18:55
TrueTom24-Oct-05 18:55 
GeneralRe: Fastest way to get a file size? Pin
Andrei B24-Oct-05 19:04
Andrei B24-Oct-05 19:04 
AnswerRe: Fastest way to get a file size? Pin
kakan24-Oct-05 19:26
professionalkakan24-Oct-05 19:26 
AnswerRe: Fastest way to get a file size? Pin
Anonymous24-Oct-05 19:49
Anonymous24-Oct-05 19:49 
QuestionRe: Fastest way to get a file size? Pin
David Crow25-Oct-05 3:49
David Crow25-Oct-05 3:49 
AnswerRe: Fastest way to get a file size? Pin
ThatsAlok25-Oct-05 19:17
ThatsAlok25-Oct-05 19:17 
QuestionNeed expert advice on many different matters Pin
Mariano Lopez-Gappa24-Oct-05 17:01
Mariano Lopez-Gappa24-Oct-05 17:01 
hi! I'm a college student but on spare time like programming, I've been programming since I was ten, and this summer I'm getting my hands on a big C++ programming project. I'm currently on the "planning stage" and need help on the following:

First a few things you should know in order to help:
---------------------------------------------------

-Most of the coding is to be done on a 486dx2 8MB RAM 800MB HDD notebook, which is able to run W95 and DOS. Graphic mode works. I haven't tried Linux, but I don't think it would be practical, as I need as much HDD I can get for project sample data.
-My main goal is efficiency meaning speed (and results, though not relevant here) and compatibility with at least every Windows-DOS PC (allowing 640x480x256) and if possible Linux.
-This program will NOT use MFC, but needs to be able to init graphic mode at 640x480x256. I want specifically this as it looks pretty standard for compatibility with older PCs.

My problems:
------------

#1:
I was thinking of using pure ASM code to "init graph", "put/get pixel", etc, but i've been told that not all OS's will allow this (at least not all will allow me to write directly to video memory).
What should I do about this? Should I use some "graphics.h" or such?

#2:
I'll be doing heavy HDD I/O as the main task in this program will be file data analysing. I've read I should open files in binary mode as it is supposed to be the faster way to perform reading and writing. Is this true? What would be the most efficient way?

#3:
I need a very light and very specific Window-GUI (by specific I mean I won't need many controls and they will need to be adapted to the program's needs), so I was thinking of making one of my own. Taking out the "complexity" issue which is being taking care of, the real doubt here is: Will it truly be more efficient given I would use ASM for graphics routines, mouse routines and perhaps also keyboard routines? I point to that perhaps any other GUI already out there uses some other sophisticated techniques which would make them faster anyway... I should add that I'm not thinking of moveable/resizable windows, as it's more about n-criteria sorting flexgrids and checkable filelistboxes...

#4:
Some libraries already made objects from my project are currently working on VC++. Now, as you know, VC++ won't fit my 486 Smile | :) , I've thought about "CommandLineTools.exe" (8,5MB) from borland but it seems to lack of some really important libraries such as "conio.h"!?!? (goodbye getch, kbhit Frown | :( ) So what I'm asking is: Which C++ distribution will fit best my needs, given all you've read so far? I've really enjoyed BCC55 (CommandLineTools.exe), is there any way I could use it? Perhaps extending the amount of libraries? What about GCC (the DOS version)? GCC should be the most compatible...

#5:
What are the main incompatibilities I should be aware of between XP, Dos 16bit and Linux? And, what key things won't be running on my 486?

#6:
As the visual interface will be graphic mode, I'll need fonts for displaying text, and MANY text will be displayed. I was thinking of making my own "font printf/cout" routines based on ASM putpixel, mostly because I don't need more than 3 different sizes nor more than 2-3 different fonts. Is this idea viable, once again taking out the complexity issue? Are there any font displaying libraries both light and simple to use out there?

#7:
While secondary to the main functionalities of the program, I will need to show BMPs, play WAVs, timing events and implementing sprites/masks. I've read there are many packages labeled as "Game Libraries" which do all this stuff, but all the ones I've found offer too many extra features which make the package too big and complex. Does someone know of a specific package which both handle my required features and is light in size/complexity? Will it work on my 486??


THX A LOT IN ADVANCE!! Big Grin | :-D

Mariano Lopez-Gappa (20) from Argentina
AnswerRe: Need expert advice on many different matters Pin
The NULL Developer24-Oct-05 17:43
professionalThe NULL Developer24-Oct-05 17:43 
AnswerRe: Need expert advice on many different matters Pin
Christian Graus24-Oct-05 18:23
protectorChristian Graus24-Oct-05 18:23 
AnswerRe: Need expert advice on many different matters Pin
khan++24-Oct-05 18:37
khan++24-Oct-05 18:37 
QuestionRe: Need expert advice on many different matters Pin
Mariano Lopez-Gappa25-Oct-05 6:26
Mariano Lopez-Gappa25-Oct-05 6:26 
Questionthread update data? Pin
cell5124-Oct-05 16:30
cell5124-Oct-05 16:30 
AnswerRe: thread update data? Pin
John M. Drescher24-Oct-05 16:55
John M. Drescher24-Oct-05 16:55 
AnswerRe: thread update data? Pin
Anonymous24-Oct-05 19:52
Anonymous24-Oct-05 19:52 
QuestionUsing c++ to write c++ Pin
Jordan C. Atlas24-Oct-05 15:09
Jordan C. Atlas24-Oct-05 15:09 
AnswerRe: Using c++ to write c++ Pin
User 58385224-Oct-05 15:51
User 58385224-Oct-05 15:51 
AnswerRe: Using c++ to write c++ Pin
Bob Stanneveld24-Oct-05 23:25
Bob Stanneveld24-Oct-05 23:25 
GeneralRe: Using c++ to write c++ Pin
Jordan C. Atlas25-Oct-05 5:06
Jordan C. Atlas25-Oct-05 5:06 
GeneralRe: Using c++ to write c++ Pin
Bob Stanneveld25-Oct-05 6:39
Bob Stanneveld25-Oct-05 6:39 
QuestionHelp needed for speech capture project! Pin
student_eng24-Oct-05 14:57
student_eng24-Oct-05 14:57 
AnswerRe: Help needed for speech capture project! Pin
Christian Graus24-Oct-05 15:28
protectorChristian Graus24-Oct-05 15:28 
GeneralRe: Help needed for speech capture project! Pin
student_eng24-Oct-05 15:31
student_eng24-Oct-05 15:31 
GeneralRe: Help needed for speech capture project! Pin
Christian Graus24-Oct-05 15:37
protectorChristian Graus24-Oct-05 15:37 
AnswerRe: Help needed for speech capture project! Pin
normanS24-Oct-05 20:24
normanS24-Oct-05 20:24 

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.