Click here to Skip to main content
15,912,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Printer DC? Pin
murali_utr28-Nov-03 0:56
murali_utr28-Nov-03 0:56 
GeneralPlz help me Pin
satadru27-Nov-03 17:33
satadru27-Nov-03 17:33 
GeneralRe: Plz help me Pin
twing27-Nov-03 17:52
twing27-Nov-03 17:52 
GeneralRe: Plz help me Pin
Prakash Nadar27-Nov-03 17:57
Prakash Nadar27-Nov-03 17:57 
Generalftp without internet Pin
kamal_bahadur27-Nov-03 16:44
kamal_bahadur27-Nov-03 16:44 
GeneralRe: ftp without internet Pin
Prakash Nadar27-Nov-03 17:23
Prakash Nadar27-Nov-03 17:23 
GeneralRe: ftp without internet Pin
Anonymous28-Nov-03 5:47
Anonymous28-Nov-03 5:47 
General8254 Pin
FlyingDancer27-Nov-03 15:08
FlyingDancer27-Nov-03 15:08 
Here is a code to figure out timer0's frequency of 8254

(1)First,
llCountOfBegin=KeQueryPerformanceCounter(&llFreq);
wCount2=ReadCount8254(0);//read timer0 count
while (lCountINT8<500)//wCount2 is the current count,
//wCount1 the former count
{
wCount1=wCount2;
wCount2=ReadCount8254(0);
if(wCount2>wCount1)
lCountINT8++;
}
llCountOfEnd=KeQueryPerformanceCounter(&llFreq);
lTemp=(ULONG)(llCountOfEnd.QuadPart-llCountOfBegin.QuadPart);
(2)Then the frequency is
freq=lCountINT8*llFreq.lFrqForCmpCount/lTemp;

However, there is a problem. The frequency that is evaluated in this way is twice of the theoretic value When I write an initial count(lCount) into timer0's counter. The theoretic value is: 1,193,200/lCount.

My test env is windows2000/xp. Do you know the reason and how to solve this problem?

Thanks for your attention!
GeneralNeed help in how to read files... Pin
Snyp27-Nov-03 12:06
Snyp27-Nov-03 12:06 
GeneralRe: Need help in how to read files... Pin
Christian Graus27-Nov-03 12:27
protectorChristian Graus27-Nov-03 12:27 
GeneralBitmap file search Pin
John R. Shaw27-Nov-03 11:30
John R. Shaw27-Nov-03 11:30 
Questionwhat is the diff between String and string? Pin
mitil2039048230427-Nov-03 10:20
mitil2039048230427-Nov-03 10:20 
AnswerRe: what is the diff between String and string? Pin
Christian Graus27-Nov-03 10:22
protectorChristian Graus27-Nov-03 10:22 
GeneralRe: what is the diff between String and string? Pin
mitil2039048230427-Nov-03 10:33
mitil2039048230427-Nov-03 10:33 
GeneralRe: what is the diff between String and string? Pin
Christian Graus27-Nov-03 10:37
protectorChristian Graus27-Nov-03 10:37 
GeneralIWebBrowser2->Stop(): annoying "click" Pin
peterchen27-Nov-03 10:06
peterchen27-Nov-03 10:06 
Generalclickable bitmap colour problems Pin
b_girl27-Nov-03 7:49
b_girl27-Nov-03 7:49 
GeneralRe: clickable bitmap colour problems Pin
Maximilien27-Nov-03 8:51
Maximilien27-Nov-03 8:51 
GeneralRe: clickable bitmap colour problems Pin
b_girl27-Nov-03 9:22
b_girl27-Nov-03 9:22 
GeneralRe: clickable bitmap colour problems Pin
Big Art27-Nov-03 9:21
Big Art27-Nov-03 9:21 
GeneralRe: clickable bitmap colour problems Pin
b_girl27-Nov-03 9:28
b_girl27-Nov-03 9:28 
GeneralRe: clickable bitmap colour problems Pin
Big Art27-Nov-03 10:49
Big Art27-Nov-03 10:49 
GeneralRe: clickable bitmap colour problems Pin
b_girl2-Dec-03 8:47
b_girl2-Dec-03 8:47 
GeneralRe: clickable bitmap colour problems Pin
Mike Dimmick27-Nov-03 9:26
Mike Dimmick27-Nov-03 9:26 
GeneralCFileDialog - Reset the last configuration Pin
Denislef27-Nov-03 5:55
Denislef27-Nov-03 5:55 

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.