Click here to Skip to main content
14,366,542 members

C / C++ / MFC

 
GeneralRe: MFC VC++ Pin
Stefan_Lang17-Sep-19 23:40
memberStefan_Lang17-Sep-19 23:40 
QuestionUnresolved extern "dwTlsIndex" exported function in dll Pin
ForNow17-Sep-19 3:41
memberForNow17-Sep-19 3:41 
AnswerRe: Unresolved extern "dwTlsIndex" exported function in dll Pin
CPallini17-Sep-19 4:19
mveCPallini17-Sep-19 4:19 
GeneralRe: Unresolved extern "dwTlsIndex" exported function in dll Pin
ForNow17-Sep-19 4:42
memberForNow17-Sep-19 4:42 
GeneralRe: Unresolved extern "dwTlsIndex" exported function in dll Changed DLLMAIN.CPP to DLLMAIN.C clean link Pin
ForNow17-Sep-19 9:02
memberForNow17-Sep-19 9:02 
Questionmanual kerning with winAPI Pin
Alexander Kindel15-Sep-19 22:38
memberAlexander Kindel15-Sep-19 22:38 
Questiontypedef for a function for different platforms Pin
ForNow13-Sep-19 4:29
memberForNow13-Sep-19 4:29 
AnswerRe: typedef for a function for different platforms Pin
Stefan_Lang13-Sep-19 4:58
memberStefan_Lang13-Sep-19 4:58 
That's not a valid typedef, and you cannot resolve your problem in this manner. You could create a typedef for a function that takes a certain list of parameters, and returns BOOL, but that would not then be tied to the function ReadFileEx as appears to be your intent.

(and, on a sidenote, I'm not sure the compiler will eat that capitalized #ELSE)

Just provide an adapter function for this purpose:
#ifdef ZOS
...
#else
BOOL SYSREAD(...)
{
    return ReadFileEx(...);
}
#endif

P.S.: NOw that I've reread the code you've written, I am no longer sure what it's supposed to do. I still think that an adapter function is what you need, but the syntax you've used above doesn't appear to make any sense under that assumption.

So, if you intended something else, maybe you should point out what that code should do, or better yet, show a line of code or two that uses SYSREAD in the intended manner.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

GeneralRe: typedef for a function for different platforms Pin
ForNow13-Sep-19 5:36
memberForNow13-Sep-19 5:36 
AnswerRe: typedef for a function for different platforms Pin
Richard MacCutchan13-Sep-19 4:59
protectorRichard MacCutchan13-Sep-19 4:59 
GeneralRe: typedef for a function for different platforms Pin
ForNow13-Sep-19 5:36
memberForNow13-Sep-19 5:36 
QuestionError 12029 WinHTTP Pin
Diprom12-Sep-19 23:36
memberDiprom12-Sep-19 23:36 
AnswerRe: Error 12029 WinHTTP Pin
Richard MacCutchan13-Sep-19 2:16
protectorRichard MacCutchan13-Sep-19 2:16 
AnswerRe: Error 12029 WinHTTP Pin
Victor Nijegorodov13-Sep-19 3:26
memberVictor Nijegorodov13-Sep-19 3:26 
GeneralRe: Error 12029 WinHTTP Pin
Diprom13-Sep-19 3:30
memberDiprom13-Sep-19 3:30 
GeneralRe: Error 12029 WinHTTP Pin
Victor Nijegorodov13-Sep-19 3:38
memberVictor Nijegorodov13-Sep-19 3:38 
AnswerRe: Error 12029 WinHTTP Pin
Randor 14-Sep-19 4:03
professional Randor 14-Sep-19 4:03 
QuestionVisual Studio 2017 C++ Static analyzer (or in ReSharper C++) Pin
Maximilien12-Sep-19 5:21
memberMaximilien12-Sep-19 5:21 
AnswerRe: Visual Studio 2017 C++ Static analyzer (or in ReSharper C++) Pin
Stefan_Lang12-Sep-19 6:33
memberStefan_Lang12-Sep-19 6:33 
AnswerRe: Visual Studio 2017 C++ Static analyzer (or in ReSharper C++) Pin
CPallini12-Sep-19 22:08
mveCPallini12-Sep-19 22:08 
GeneralRe: Visual Studio 2017 C++ Static analyzer (or in ReSharper C++) Pin
Stefan_Lang12-Sep-19 23:19
memberStefan_Lang12-Sep-19 23:19 
GeneralRe: Visual Studio 2017 C++ Static analyzer (or in ReSharper C++) Pin
Stefan_Lang13-Sep-19 0:26
memberStefan_Lang13-Sep-19 0:26 
AnswerRe: Visual Studio 2017 C++ Static analyzer (or in ReSharper C++) Pin
Stefan_Lang12-Sep-19 23:46
memberStefan_Lang12-Sep-19 23:46 
QuestionMFC VC++ ListCtrl Pin
Member 1457555612-Sep-19 2:23
memberMember 1457555612-Sep-19 2:23 
AnswerRe: MFC VC++ ListCtrl Pin
CPallini12-Sep-19 2:32
mveCPallini12-Sep-19 2:32 

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.