Click here to Skip to main content
15,847,583 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionsystem call too small Pin
2buck5615-Jan-10 11:36
2buck5615-Jan-10 11:36 
AnswerRe: system call too small Pin
CPallini15-Jan-10 11:44
mveCPallini15-Jan-10 11:44 
GeneralRe: system call too small Pin
2buck5615-Jan-10 12:36
2buck5615-Jan-10 12:36 
GeneralRe: system call too small Pin
LunaticFringe15-Jan-10 12:44
LunaticFringe15-Jan-10 12:44 
GeneralRe: system call too small Pin
2buck5615-Jan-10 13:26
2buck5615-Jan-10 13:26 
GeneralRe: system call too small Pin
Garth J Lancaster15-Jan-10 13:49
professionalGarth J Lancaster15-Jan-10 13:49 
GeneralRe: system call too small Pin
LunaticFringe15-Jan-10 14:01
LunaticFringe15-Jan-10 14:01 
GeneralRe: system call too small Pin
2buck5615-Jan-10 14:51
2buck5615-Jan-10 14:51 
Garth, I tried setting the buffer size to 2048 and 4096 but that didn't make a difference. This code is from Jan Axelson's USB code and it works in VC6++ without allocating a buffer size. I did find out that if I turn Unicode off and set it to MBCS the warning messages all disappear.

LunaticFringe, for those two lines of code I was just testing to see if the call to SetLastError would then make an immediate GetLastError call return success. But that didn't work.

Almost all of the GetLastError calls will be removed once I have the application running properly. I just put them in there for test purposes as I am developing the application.
GeneralRe: system call too small [modified] Pin
LunaticFringe15-Jan-10 15:31
LunaticFringe15-Jan-10 15:31 
GeneralRe: system call too small Pin
2buck5615-Jan-10 16:02
2buck5615-Jan-10 16:02 
GeneralRe: system call too small Pin
CPallini15-Jan-10 23:02
mveCPallini15-Jan-10 23:02 
GeneralRe: system call too small Pin
CPallini15-Jan-10 23:11
mveCPallini15-Jan-10 23:11 
GeneralRe: system call too small Pin
Garth J Lancaster15-Jan-10 23:41
professionalGarth J Lancaster15-Jan-10 23:41 
GeneralRe: system call too small Pin
CPallini15-Jan-10 23:43
mveCPallini15-Jan-10 23:43 
GeneralRe: system call too small Pin
Garth J Lancaster15-Jan-10 23:59
professionalGarth J Lancaster15-Jan-10 23:59 
GeneralRe: system call too small Pin
CPallini16-Jan-10 0:10
mveCPallini16-Jan-10 0:10 
GeneralRe: system call too small Pin
Bram van Kampen17-Jan-10 7:18
Bram van Kampen17-Jan-10 7:18 
AnswerRe: system call too small Pin
Richard MacCutchan16-Jan-10 0:55
mveRichard MacCutchan16-Jan-10 0:55 
AnswerRe: system call too small Pin
David Crow16-Jan-10 6:06
David Crow16-Jan-10 6:06 
GeneralRe: system call too small Pin
CPallini16-Jan-10 8:57
mveCPallini16-Jan-10 8:57 
GeneralRe: system call too small Pin
2buck5616-Jan-10 12:01
2buck5616-Jan-10 12:01 
QuestionDefault path to Desktop with vista Pin
dbell0715-Jan-10 10:52
dbell0715-Jan-10 10:52 
AnswerRe: Default path to Desktop with vista Pin
CoderGirl4215-Jan-10 11:18
CoderGirl4215-Jan-10 11:18 
GeneralRe: Default path to Desktop with vista Pin
David Crow15-Jan-10 11:25
David Crow15-Jan-10 11:25 
GeneralRe: Default path to Desktop with vista Pin
dbell0715-Jan-10 11:46
dbell0715-Jan-10 11:46 

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.