|
If I understand you want to share processor's time with the Flash Program. If you call/switch some programs from main program without using tasks then the main program will wait realization calling program. You can use thread functions to share procesor's time for more applications. Also, you can use windows timer function.
|
|
|
|
|
i want to get cpu clock speed use by wmi on win9x platform.
so i have found that need installation of wmi9x.exe(m.s wmi 9X tool) for using wmi on 9x.
but "MVSOFT PCINFO FOR WINDOWS" program can get correct cpu clock speed without installation of wmi9x.exe
on 9x.
is really possible it.?
i'd like do it.
plz help me.
a
|
|
|
|
|
You can read the speed from the key HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0 DWORD value ~MHz (the number is the approximate speed in MHz)
--Mike--
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber
"You have Erica on the brain" - Jon Sagara to me
|
|
|
|
|
Hi,
I have a application which calls a method of a pre-compiled library (which exists already). Now I want to step into the method of pre-compiled library. How do I do this? I have all the source code with me.
Somebody told me that I need to attach .pdb file, lib file etc. but the system never asked to attach these files. If I press F-11, it simply comes out without entering the required method.
Pls help me..
Prashant
|
|
|
|
|
If I understand that you must put a path where are source files of this library and normaly the library already consist debuging informations.
|
|
|
|
|
also, you must link with the debug version of the library.
|
|
|
|
|
Hi,
In a dialog, how can I move the focus with the ENTER key ?
Thanks,
Claude
|
|
|
|
|
It's not standard, then you shouldn't, but you can trap the enter key and then SetFocus() manually...
Take a look at the PreTranslateMessage() function in your dialog...
NOTE:
I've not tried it, but you could even try to read the enter key in the pretranslatemessage and then process the TAB key there...
Hope this helps.
|
|
|
|
|
It is non standard but you can use windows message VK_ENTER and Get/Set Focus.
|
|
|
|
|
It would be even quicker to change the VK_ENTER into a VK_TAB and then let the default processing do the work, that way you can use the correct tab order defined in the resources and not have to worry if it changes:
PreTranslateMessage()
{
if (pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_ENTER)
pMsg->wParam = VK_TAB;
}
Roger Allen
Sonork 100.10016
Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
|
|
|
|
|
Does anyone have the code for adding and multiplying matrices using vectors and arrays?
|
|
|
|
|
So long as all you need to do is add and multiply you could check out the boost uBLAS library. Reasonably efficient and it builds under MSVC6, the uBLAS library also lists some other good libraries under resources.
boost::numeric::uBLAS[^]
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
http://www.codeproject.com/cpp/MatrixClass.asp
|
|
|
|
|
Dear everyone,
we know that CDateTimeCtrl could display date or time and do some selection, it do convinient for us. But we find that we cound not display both date and time in CDateTimeCtrl.
So, could you tell me where we could find the class or OCX for display date and time at the same time?
Welcome any suggestion!
Good Luck
|
|
|
|
|
MyDateTimeCtrl.SetFormat("MM/dd/YYYY HH:mm");
|
|
|
|
|
thk u very much for ur help.
Good Luck
|
|
|
|
|
I am a newbie to Visual C++ and I am trying to create a program that uses only edit boxes and modeless dialogs. My problem is trying to figure out how to get the Save As... in the menu to work, oh I do use a menu. I have read and studied examples and they only confuse me, I know it involves serializing, but how do I serialize modeless dialog edit boxes. I have tried to find clases in my area but their are none, I am learning on my own so thats a challenge in itself. I am trying to get the program to work with Windows 95 and newer OS's, but first things first I need to crack this egg first, what I need is, what do I need to do, I have to serialize the data, how, etc, It took me 6 months to figure how how to create and display a modeless window with a button click from the parent modeless window.Any help is greatly appreciated, I don;t expect you to write the program but point me in the right direction, thanks again.I am using Visual C++ 6.0 Professional edition.
|
|
|
|
|
These are things that cannot be explained with just a few words. You said you have looked at examples, but have you looked at any books or tutorials on MFC programming?
// Afterall I realized that even my comment lines have bugs
|
|
|
|
|
Sorry for being so late getting back to you, most of the books I have deal with Visual C++ 6.0 and I don't have any books on MFC, but after reading your reply I will get some books on MFC and study, thanks for answering.
|
|
|
|
|
Hi all,
I am working on a project for school(my final exam grade) and I have having a lot of trouble with it. We are making a hangman game and here is what I have to do.
One user inputs the # of letters that the word will be and then enters those words into an array of CHAR's. Then a different user will take the seat and start guessing the letters. How do I search the first array and if a letter is right, fill the second array with the appropriate letter? Does this make any sense? Half my class doesn't get it and the teacher wasn't very helpful. An answer ASAP would be great as my exam is at 1:00 tomorrow. THanks
Matt
Matt Millican
http://www.internetmill.com
|
|
|
|
|
|
I'm not sure if I understood you, but that's quite simple. An example:
------------------------------------------
#include <iostream.h>
#include <memory.h>
#include <stdlib.h>
void main()
{
char singleLetter;
bool wordCompleted = false;
unsigned int numOfLetters;
unsigned int numOfGuessedLetters = 0;
cout << "Number of letters: ";
cin >> numOfLetters;
char* pArray1 = new char[numOfLetters+1];
char* pArray2 = new char[numOfLetters+1];
memset(pArray2,'_',numOfLetters);
pArray2[numOfLetters] = '\0';
cout << "Type in the word: ";
cin >> pArray1;
system("cls"); // Should the other player see what word we've typed in?
while(wordCompleted==false)
{
cout << "Type in a letter: ";
cin >> singleLetter;
for(unsigned int i=0;i<numOfLetters;i++)
{
if(singleLetter==pArray1[i])
{
pArray2[i] = singleLetter;
numOfGuessedLetters++;
}
}
if(numOfGuessedLetters==numOfLetters)
{
cout << "\n\n";
cout << "Current status: " << pArray2 << endl;
cout << "Hey dude! You won!" << endl;
break;
}
else
cout << "Current status: " << pArray2 << endl;
}
delete [] pArray1;
delete [] pArray2;
}
|
|
|
|
|
Hi,
I changed some stuff around that was incorrect, compiled it and all I got when I ran it was The very end of the program. Any other things?
Matt
Matt Millican
http://www.internetmill.com
|
|
|
|
|
Hello,
I have a little problem on re-using a socket after a completed AcceptEx call. The number of maximum clients is equal to the number of sockets in my program. On every socket I made an AcceptEx() call to accept a new connection and receive the data. So far so good. After receiving the data I need a new AcceptEx() call which can receive data from other clients who are trying to connect.
But - something is going wrong! When I simply recall AcceptEx() on the same listener socket and the same accept socket I get an error (WSAEINVAL / 10022L).
Do I have to close the socket before I try to make a new AcceptEx() call on that socket? I would like to re-use this socket and leave it open, because it's queued in a completion port.
I hope you can help me.
Thanks for your attention!
bond006
|
|
|
|
|
Yes, you must close the socket before assigning a new socket to that same variable.
Kuphryn
|
|
|
|