Click here to Skip to main content
15,795,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C, Win32 API: l need help with ReadFile function Pin
Jochen Arndt2-Apr-16 22:02
professionalJochen Arndt2-Apr-16 22:02 
AnswerRe: C, Win32 API: l need help with ReadFile function Pin
David Crow1-Apr-16 3:25
David Crow1-Apr-16 3:25 
QuestionOpenCL program uses only 1 core from 192 cuda cores Pin
Javier Luis Lopez31-Mar-16 5:04
Javier Luis Lopez31-Mar-16 5:04 
QuestionRe: OpenCL program uses only 1 core from 192 cuda cores Pin
David Crow31-Mar-16 7:09
David Crow31-Mar-16 7:09 
AnswerRe: OpenCL program uses only 1 core from 192 cuda cores Pin
Javier Luis Lopez20-Apr-16 2:14
Javier Luis Lopez20-Apr-16 2:14 
QuestionHow to overwrite one angle arc over other during runtime Pin
Member 1053643030-Mar-16 2:45
Member 1053643030-Mar-16 2:45 
SuggestionRe: How to overwrite one angle arc over other during runtime Pin
Kornfeld Eliyahu Peter30-Mar-16 3:06
professionalKornfeld Eliyahu Peter30-Mar-16 3:06 
QuestionC, Win32 API: l need a help Pin
Member 1213944229-Mar-16 22:19
Member 1213944229-Mar-16 22:19 
Hi, Good day everyone.
l have some difficulties in the following which l need some help. Am a learner in win32 programming.


l created an application with a button "LogOut", which l want, when the user clicks the LogOut button, the application starts afresh. Just like in a standard program(eg. MSWORD) where when "New" is clicked, a new workspace pops out. So l need help in making my program to start afresh when LogOut button is clicked.


MY TRIAL:

l had done the following, and it worked but it only run the codes in WM_CREATE and l still had sent messages to other cases like WM_PAINT, WM_NOTIFY etc, still only the code in WM_CREATE runs.
C++
case IDC_LOGOUTBTN:
 SendMessage(hWnd,WM_CREATE, 0,(LPARAM)lpcs)//where lpcs is a pointer to CreateStruct structure.
break;



At some point in my program, l generate random numbers using srand((unsigned)time(&t)) and rand() functions when NEXT button is clicked. But l want to know if there is anyway to get the previous random number(s) when PREVIOUS button is clicked?



Thanks.

modified 30-Mar-16 3:27am.

SuggestionRe: C, Win32 API: l need a help Pin
David Crow30-Mar-16 11:09
David Crow30-Mar-16 11:09 
AnswerRe: C, Win32 API: l need a help Pin
Victor Nijegorodov31-Mar-16 2:11
Victor Nijegorodov31-Mar-16 2:11 
Questionproblem with compiler Pin
Ngoc Linh Nguyen29-Mar-16 21:52
Ngoc Linh Nguyen29-Mar-16 21:52 
AnswerRe: problem with compiler Pin
Jochen Arndt29-Mar-16 22:33
professionalJochen Arndt29-Mar-16 22:33 
GeneralRe: problem with compiler Pin
Ngoc Linh Nguyen30-Mar-16 4:14
Ngoc Linh Nguyen30-Mar-16 4:14 
GeneralRe: problem with compiler Pin
Jochen Arndt30-Mar-16 5:15
professionalJochen Arndt30-Mar-16 5:15 
GeneralRe: problem with compiler Pin
Ngoc Linh Nguyen30-Mar-16 6:36
Ngoc Linh Nguyen30-Mar-16 6:36 
GeneralRe: problem with compiler Pin
Jochen Arndt30-Mar-16 6:53
professionalJochen Arndt30-Mar-16 6:53 
GeneralRe: problem with compiler Pin
Ngoc Linh Nguyen30-Mar-16 6:58
Ngoc Linh Nguyen30-Mar-16 6:58 
GeneralRe: problem with compiler Pin
Ngoc Linh Nguyen31-Mar-16 1:39
Ngoc Linh Nguyen31-Mar-16 1:39 
GeneralRe: problem with compiler Pin
Jochen Arndt31-Mar-16 1:51
professionalJochen Arndt31-Mar-16 1:51 
Questionproblem with compiler Pin
Ngoc Linh Nguyen29-Mar-16 21:52
Ngoc Linh Nguyen29-Mar-16 21:52 
QuestionInitDialog in splitter Pin
Member 1228273828-Mar-16 11:07
Member 1228273828-Mar-16 11:07 
QuestionRe: InitDialog in splitter Pin
Richard MacCutchan28-Mar-16 22:46
mveRichard MacCutchan28-Mar-16 22:46 
AnswerRe: InitDialog in splitter Pin
Victor Nijegorodov29-Mar-16 3:20
Victor Nijegorodov29-Mar-16 3:20 
GeneralRe: InitDialog in splitter Pin
Member 1228273829-Mar-16 4:04
Member 1228273829-Mar-16 4:04 
GeneralRe: InitDialog in splitter Pin
Richard MacCutchan29-Mar-16 5:23
mveRichard MacCutchan29-Mar-16 5:23 

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.