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

C / C++ / MFC

 
GeneralRe: Fast work: OVERLAPPED vs MEMORY MAPPED Pin
Scott H. Settlemier28-Sep-04 14:28
Scott H. Settlemier28-Sep-04 14:28 
GeneralSkipping Bytes When Reading Files Pin
InflatableGarfield27-Sep-04 9:20
InflatableGarfield27-Sep-04 9:20 
GeneralRe: Skipping Bytes When Reading Files Pin
Scott H. Settlemier27-Sep-04 9:43
Scott H. Settlemier27-Sep-04 9:43 
GeneralRe: Skipping Bytes When Reading Files Pin
shaileshkumar27-Sep-04 20:59
shaileshkumar27-Sep-04 20:59 
GeneralRe: Skipping Bytes When Reading Files Pin
David Crow28-Sep-04 5:02
David Crow28-Sep-04 5:02 
QuestionPlaySound crash under Win ME? Pin
LukeV27-Sep-04 8:24
LukeV27-Sep-04 8:24 
GeneralSockets and future portability Pin
Ivanets27-Sep-04 8:09
Ivanets27-Sep-04 8:09 
GeneralRe: Sockets and future portability Pin
cmk27-Sep-04 11:39
cmk27-Sep-04 11:39 
Short answer:
If you look at the winsock api reference most of the functions that start with a lower case letter are portable. The ones that start with and upper case letter are MS specific.

So, for example, you would use:
socket, accept, connect

as opposed to:
WSASocket, AcceptEx, ConnectEx


As for portable notifications ...

I find IOCP to be too usefull to ignore in the name of portability.
I would suggest this for windows.
There are number of good articles here on using IOCP.

For UNIX either mimic IOCP, use select, or roll you own.


In the end i would suggest you write a socket class that hides the OS specific issues.
Create one optimized for windows and another for unix, but both with the same public interface.


...cmk

Save the whales - collect the whole set
GeneralRadio buttons in Treeview (like the Folder Optionsin Windows Explorer) Pin
klkeng27-Sep-04 7:00
klkeng27-Sep-04 7:00 
GeneralADO Crashing big time! Pin
Chris Ulliott27-Sep-04 6:30
Chris Ulliott27-Sep-04 6:30 
GeneralRe: ADO Crashing big time! Pin
Anonymous27-Sep-04 7:04
Anonymous27-Sep-04 7:04 
GeneralRe: ADO Crashing big time! Pin
Chris Ulliott27-Sep-04 23:46
Chris Ulliott27-Sep-04 23:46 
Generalaaa Pin
Anonymous27-Sep-04 6:25
Anonymous27-Sep-04 6:25 
Generalbbb Pin
ThatsAlok27-Sep-04 19:27
ThatsAlok27-Sep-04 19:27 
GeneralDettecting Change to windows appearance / XP styles Pin
Tristan Rhodes27-Sep-04 6:25
Tristan Rhodes27-Sep-04 6:25 
GeneralRe: Dettecting Change to windows appearance / XP styles Pin
Yves Tkaczyk27-Sep-04 7:51
Yves Tkaczyk27-Sep-04 7:51 
GeneralRe: Dettecting Change to windows appearance / XP styles Pin
Tristan Rhodes27-Sep-04 8:24
Tristan Rhodes27-Sep-04 8:24 
QuestionHow to load own bitmap icon in place of miscrosoft default image in VC++ application Pin
mnarayan27-Sep-04 6:10
mnarayan27-Sep-04 6:10 
AnswerRe: How to load own bitmap icon in place of miscrosoft default image in VC++ application Pin
Tom Wright27-Sep-04 6:41
Tom Wright27-Sep-04 6:41 
GeneralRe: How to load own bitmap icon in place of miscrosoft default image in VC++ application Pin
mnarayan27-Sep-04 8:52
mnarayan27-Sep-04 8:52 
GeneralRe: How to load own bitmap icon in place of miscrosoft default image in VC++ application Pin
Tom Wright27-Sep-04 9:41
Tom Wright27-Sep-04 9:41 
GeneralRe: How to load own bitmap icon in place of miscrosoft default image in VC++ application Pin
mnarayan27-Sep-04 10:21
mnarayan27-Sep-04 10:21 
GeneralMonitoring a folder for new files Pin
BlackDice27-Sep-04 6:04
BlackDice27-Sep-04 6:04 
GeneralRe: Monitoring a folder for new files Pin
Tom Wright27-Sep-04 6:45
Tom Wright27-Sep-04 6:45 
GeneralRe: Monitoring a folder for new files Pin
David Crow27-Sep-04 8:20
David Crow27-Sep-04 8:20 

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.