Click here to Skip to main content
16,017,261 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionneed some help on the friend functions Pin
nethp102016-May-07 22:53
nethp102016-May-07 22:53 
AnswerRe: need some help on the friend functions Pin
Hans Dietrich17-May-07 0:10
mentorHans Dietrich17-May-07 0:10 
GeneralRe: need some help on the friend functions Pin
nethp102017-May-07 14:45
nethp102017-May-07 14:45 
QuestionHi all Pin
josip cagalj16-May-07 22:50
josip cagalj16-May-07 22:50 
AnswerRe: Hi all Pin
Paresh Chitte17-May-07 0:07
Paresh Chitte17-May-07 0:07 
GeneralRe: Hi all Pin
josip cagalj17-May-07 0:32
josip cagalj17-May-07 0:32 
GeneralRe: Hi all Pin
Paresh Chitte17-May-07 0:41
Paresh Chitte17-May-07 0:41 
AnswerRe: Hi all Pin
josip cagalj17-May-07 0:59
josip cagalj17-May-07 0:59 
I think we misunderstand, so I'll recreate my question.
I switched off lan-cable on purposely to see how will my app react!
When I tried to get something from web server I used SetCurentDirectory() which trow error code 12031, but when i tried to get text explaining using:

'FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM,NULL,dwError,MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),achBuffer, 120, NULL) ;'

which puts it in 'achBuffer' i've got nothing!!!!
Afterward i've searched the web and find out that 1203 error code stands for 'connection to the server was reset'.
My problem is how can I get it from a above solution (FormatMessage) and post it with AfxMessageBox???
Thanks!
GeneralRe: Hi all Pin
Mark Salsbery17-May-07 5:53
Mark Salsbery17-May-07 5:53 
QuestionRe: Hi all Pin
Hamid_RT17-May-07 6:47
Hamid_RT17-May-07 6:47 
AnswerLast msg Pin
josip cagalj17-May-07 22:02
josip cagalj17-May-07 22:02 
QuestionProblem with code on Reading Files :( Pin
Immunity1816-May-07 22:32
Immunity1816-May-07 22:32 
AnswerRe: Problem with code on Reading Files :( Pin
Hamid_RT16-May-07 22:37
Hamid_RT16-May-07 22:37 
GeneralRe: Problem with code on Reading Files :( Pin
Immunity1816-May-07 22:41
Immunity1816-May-07 22:41 
Questionslow scrollbar Pin
Aint16-May-07 22:13
Aint16-May-07 22:13 
AnswerRe: slow scrollbar Pin
Mark Salsbery17-May-07 5:56
Mark Salsbery17-May-07 5:56 
AnswerRe: slow scrollbar Pin
Nelek17-May-07 20:15
protectorNelek17-May-07 20:15 
QuestionImages in CListCtrl Pin
anilkrupakar16-May-07 21:58
anilkrupakar16-May-07 21:58 
AnswerRe: Images in CListCtrl Pin
CPallini16-May-07 22:12
mveCPallini16-May-07 22:12 
AnswerRe: Images in CListCtrl Pin
Hamid_RT16-May-07 22:24
Hamid_RT16-May-07 22:24 
QuestionBoost 1.34.0 have been released! Pin
Shao Voon Wong16-May-07 21:54
mvaShao Voon Wong16-May-07 21:54 
AnswerRe: Boost 1.34.0 have been released! Pin
Sarath C16-May-07 22:33
Sarath C16-May-07 22:33 
AnswerRe: Boost 1.34.0 have been released! Pin
toxcct17-May-07 0:28
toxcct17-May-07 0:28 
QuestionHelp me Creating a Setup.exe Pin
garfield18516-May-07 21:29
garfield18516-May-07 21:29 
AnswerRe: Help me Creating a Setup.exe Pin
Hamid_RT16-May-07 22:32
Hamid_RT16-May-07 22: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.