Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGetPrivateProfileInt( ) crashes for a specific domain user on a Specific Machine (Dell Optiplex 755 with Vista Sp1) Pin
V K 218-Dec-08 19:15
V K 218-Dec-08 19:15 
AnswerRe: GetPrivateProfileInt( ) crashes for a specific domain user on a Specific Machine (Dell Optiplex 755 with Vista Sp1) Pin
Sarath C18-Dec-08 20:13
Sarath C18-Dec-08 20:13 
AnswerRe: GetPrivateProfileInt( ) crashes for a specific domain user on a Specific Machine (Dell Optiplex 755 with Vista Sp1) Pin
Randor 19-Dec-08 3:56
professional Randor 19-Dec-08 3:56 
QuestionGet icon/bitmap from CMenu on Owner Draw Menu ?? Pin
karhong18-Dec-08 19:12
karhong18-Dec-08 19:12 
AnswerRe: Get icon/bitmap from CMenu on Owner Draw Menu ?? Pin
Sarath C18-Dec-08 20:21
Sarath C18-Dec-08 20:21 
Questionneed difference between using static variable in 'C' and 'C++' ? Pin
Sakthiu18-Dec-08 18:16
Sakthiu18-Dec-08 18:16 
AnswerRe: need difference between using static variable in 'C' and 'C++' ? Pin
Sarath C18-Dec-08 20:25
Sarath C18-Dec-08 20:25 
QuestionProblem using Queue timers.............. Pin
shaina223118-Dec-08 17:47
shaina223118-Dec-08 17:47 
i m creating 3 queutimers and after adding them in queue using 3 callbacks functions for each timer ,and calling one function after 10ms 2nd func after 100 ms,3rd func after 1sec but its not working properly they functions are not executing at specefied intervals,to call them after a bit interval i hv to use sleep method . so plz tell me how to fix it the code is below
HMODULE hlib = LoadLibrary ("kernel32.dll");
   CTQ CreateTimerQueue = (CTQ)GetProcAddress (hlib, "CreateTimerQueue");
   CTQT CreateTimerQueueTimer = (CTQT)GetProcAddress (hlib, "CreateTimerQueueTimer");

   HANDLE htimer=CreateTimerQueue();
	HANDLE t,t2,t3,t4;
	 int arg = 10;
  if(!CreateTimerQueueTimer( &t, htimer,TimerRoutine, &arg , 10, 1,4))
  {
	  SetDlgItemText(IDC_S,"not set");
  }
  else
  {
	  SetDlgItemText(IDC_S,"set");
  }
  CreateTimerQueueTimer( &t2, htimer,TimerRoutine2, NULL, 100, 1, 2);
  CreateTimerQueueTimer( &t3, htimer,TimerRoutine3,NULL , 1000, 1, 2);
// CreateTimerQueueTimer( &t4, htimer,TimerRoutine4, NULL , 1, 1, 1);
   
  // HANDLE t;
   //CreateTimerQueueTimer (&t, CreateTimerQueue(), f, NULL, 10, 1, 0x10);

	
}
VOID CALLBACK TimerRoutine(PVOID lpParam, BOOLEAN TimerOrWaitFired)
{
	  one++;
  char a[20];
  itoa(one,a,10);
	st1->SetWindowText(a);
//	Sleep(10);
}

VOID CALLBACK TimerRoutine2(PVOID lpParam, BOOLEAN TimerOrWaitFired)
{

  	two++;
  char a[20];
  itoa(two,a,10);
	st2->SetWindowText(a);
//	Sleep(100);

   
}
VOID CALLBACK TimerRoutine3(PVOID lpParam, BOOLEAN TimerOrWaitFired)
{
  three++;
   char a[20];
  itoa(three,a,10);
	st3->SetWindowText(a);
//	Sleep(1000);
      
}

AnswerRe: Problem using Queue timers.............. Pin
Stuart Dootson18-Dec-08 23:04
professionalStuart Dootson18-Dec-08 23:04 
QuestionContext help systems in VC8 with MFC Pin
snavece18-Dec-08 10:08
snavece18-Dec-08 10:08 
AnswerRe: Context help systems in VC8 with MFC Pin
Stuart Dootson18-Dec-08 10:46
professionalStuart Dootson18-Dec-08 10:46 
GeneralRe: Context help systems in VC8 with MFC Pin
snavece19-Dec-08 8:03
snavece19-Dec-08 8:03 
QuestionHow to program UI so it works with all font sizes and dpi's ? Pin
Defenestration18-Dec-08 7:20
Defenestration18-Dec-08 7:20 
AnswerRe: How to program UI so it works with all font sizes and dpi's ? Pin
Randor 18-Dec-08 7:30
professional Randor 18-Dec-08 7:30 
GeneralRe: How to program UI so it works with all font sizes and dpi's ? Pin
Defenestration18-Dec-08 10:37
Defenestration18-Dec-08 10:37 
QuestionMFC Internals EBook Pin
riteshsv18-Dec-08 6:40
riteshsv18-Dec-08 6:40 
QuestionRe: MFC Internals EBook Pin
David Crow18-Dec-08 6:43
David Crow18-Dec-08 6:43 
AnswerRe: MFC Internals EBook Pin
sunilkumar_prog30-Sep-10 2:14
sunilkumar_prog30-Sep-10 2:14 
AnswerRe: MFC Internals EBook Pin
Eytukan18-Dec-08 6:58
Eytukan18-Dec-08 6:58 
AnswerRe: MFC Internals EBook Pin
CPallini18-Dec-08 10:47
mveCPallini18-Dec-08 10:47 
Questionconfigure local area connection properties programatically Pin
skydiver13518-Dec-08 5:54
skydiver13518-Dec-08 5:54 
AnswerRe: configure local area connection properties programatically Pin
led mike18-Dec-08 6:55
led mike18-Dec-08 6:55 
AnswerRe: configure local area connection properties programatically Pin
Randor 18-Dec-08 6:58
professional Randor 18-Dec-08 6:58 
AnswerRe: configure local area connection properties programatically Pin
Stuart Dootson18-Dec-08 10:42
professionalStuart Dootson18-Dec-08 10:42 
QuestionMFC CSocket and thread: architecture and performance Pin
popacio18-Dec-08 5:43
popacio18-Dec-08 5:43 

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.