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

C / C++ / MFC

 
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 
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 
Mariano Lopez-Gappa wrote:
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).


I don't see how you can target linux as well. IMO you should use DirectX for the fastest possible video. I don't think that asm is a good move, from a maintainability standpoint as much as anything, but I also believe that DX handles differences between video cards for you - you don't want to do that in asm.

Even creating a DIBSection will give you direct memory access to bitmap bits, although running in 256 colour mode means you're using a palette, which is always more messy than 16 bit or higher.

Mariano Lopez-Gappa wrote:
read I should open files in binary mode as it is supposed to be the faster way to perform reading and writing.


That's possible, are you reading binary data, or text. You should use the class that's optimised for the sort of data you want to read. Worry about speed as it becomes an issue, and do your own tests to see what works best.

Mariano Lopez-Gappa wrote:
Will it truly be more efficient given I would use ASM for graphics routines, mouse routines and perhaps also keyboard routines?


No. Using Win32 is as close to the machine as you need to get.

Mariano Lopez-Gappa wrote:
Which C++ distribution will fit best my needs, given all you've read so far?


The command line compiler that comes with VC.

Mariano Lopez-Gappa wrote:
What are the main incompatibilities I should be aware of between XP, Dos 16bit and Linux?


DOS means writing a text only program, or doing the graphics by hand. Linux will have it's own libraries for graphics. I don't see you targetting all three, without an abstraction that allows you to write three presentation layers.

Mariano Lopez-Gappa wrote:
While secondary to the main functionalities of the program, I will need to show BMPs, play WAVs, timing events and implementing sprites/masks


Windows will let you show BMPs, play WAVs and run a timer.



Christian Graus - Microsoft MVP - C++
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 
QuestionChunk data trasmfer between two thread. Pin
LeeeNN24-Oct-05 13:39
LeeeNN24-Oct-05 13:39 
AnswerRe: Chunk data trasmfer between two thread. Pin
PJ Arends24-Oct-05 15:17
professionalPJ Arends24-Oct-05 15:17 

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.