Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: try to stump me on C++ Pin
andersod28-Jul-08 10:53
andersod28-Jul-08 10:53 
QuestionCFileStatus [modified] Pin
baloneyman5-Jul-08 7:39
baloneyman5-Jul-08 7:39 
AnswerRe: CFileStatus Pin
Mark Salsbery5-Jul-08 8:50
Mark Salsbery5-Jul-08 8:50 
GeneralRe: CFileStatus Pin
baloneyman5-Jul-08 12:56
baloneyman5-Jul-08 12:56 
QuestionHow to put my toolbar visible by default? Pin
DillerXX5-Jul-08 7:20
DillerXX5-Jul-08 7:20 
QuestionError Code 87 Pin
Saksida Bojan5-Jul-08 6:35
Saksida Bojan5-Jul-08 6:35 
AnswerRe: Error Code 87 Pin
User 24844375-Jul-08 7:32
User 24844375-Jul-08 7:32 
AnswerRe: Error Code 87 Pin
Mark Salsbery5-Jul-08 9:04
Mark Salsbery5-Jul-08 9:04 
In addition to Stefan's reply...

First, you shouldn't be calling GetLastError() unless a return value indicates
an error actually occurred. If no error occurred, the return value of GetLastError()
is undefined in many cases. SetLastError() may have no effect if you're calling a Windows
API right after you use it. You have no idea how many times the error code for the thread may
change during that one API call.

Second, what do your marshaled structs look like? Are you marshaling them properly?

Third, you should be using IntPtr types for handles instead of int.

Mark




GeneralRe: Error Code 87 Pin
Saksida Bojan5-Jul-08 21:28
Saksida Bojan5-Jul-08 21:28 
Questioncompressing audio with g711 makes lots of noise Pin
doudou-shen5-Jul-08 6:09
doudou-shen5-Jul-08 6:09 
AnswerRe: compressing audio with g711 makes lots of noise Pin
Varghese Paul M7-Jul-08 0:01
Varghese Paul M7-Jul-08 0:01 
Question"The ultimate grid" - adding new rows to a grid Pin
Sternocera5-Jul-08 5:58
Sternocera5-Jul-08 5:58 
AnswerRe: "The ultimate grid" - adding new rows to a grid Pin
followait5-Jul-08 14:49
followait5-Jul-08 14:49 
QuestionRe: "The ultimate grid" - adding new rows to a grid Pin
Sternocera6-Jul-08 0:05
Sternocera6-Jul-08 0:05 
AnswerRe: "The ultimate grid" - adding new rows to a grid Pin
followait6-Jul-08 2:04
followait6-Jul-08 2:04 
AnswerRe: "The ultimate grid" - adding new rows to a grid Pin
Graham Shanks6-Jul-08 10:44
Graham Shanks6-Jul-08 10:44 
QuestionHow could this be? Pin
followait5-Jul-08 4:16
followait5-Jul-08 4:16 
AnswerRe: How could this be? Pin
David Crow5-Jul-08 4:48
David Crow5-Jul-08 4:48 
Answerthe thread could be finished [modified] Pin
followait5-Jul-08 13:57
followait5-Jul-08 13:57 
QuestionLarge File problem Pin
Ubik K5-Jul-08 2:45
Ubik K5-Jul-08 2:45 
QuestionRe: Large File problem Pin
David Crow5-Jul-08 4:55
David Crow5-Jul-08 4:55 
AnswerRe: Large File problem Pin
Joe Woodbury5-Jul-08 11:24
professionalJoe Woodbury5-Jul-08 11:24 
GeneralRe: Large File problem Pin
Ubik K5-Jul-08 15:44
Ubik K5-Jul-08 15:44 
GeneralRe: Large File problem Pin
David Crow5-Jul-08 16:11
David Crow5-Jul-08 16:11 
GeneralRe: Large File problem Pin
Ubik K6-Jul-08 3:10
Ubik K6-Jul-08 3:10 

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.