|
how to decalre a function to timeSetEvent.
thanks.
have a nice day,everybody!
|
|
|
|
|
void CALLBACK TimerFunc(UINT uTimerID, UINT uMsg, DWORD dwUser, DWORD dw1, DWORD dw2)
{
::MessageBox(NULL,"I am here","Hi",MB_OK);
}
MMRESULT mm;
mm = timeSetEvent(5000,1,TimerFunc,0,TIME_PERIODIC | TIME_CALLBACK_FUNCTION);
Will set it to 5 seconds.
this is this.
|
|
|
|
|
Check here[^].
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
I am using MDI Doc -View architecture.
How can I ensure that only single instance of my application is executed .How can I prevent multiple instances.
laiju
|
|
|
|
|
Have a look Here[^]
You should first try to use the search articles tool at the top of the page before posting. If you had type multiple instance, you would have immediately found the subject article.
|
|
|
|
|
Ya i should have searched using the keyword "mutltiple instance".
Anyway thanx.
laiju
|
|
|
|
|
hi,
i need to convert a gray scale bitmap to raw image. i can read the bitmap file and can access its image data. now i need help how to write a raw image file thats of extension ".raw". Does any one have a code for this conversion.
Regards
Alexen
|
|
|
|
|
Maybe this[^] might solve your problem.
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Can i create my own class objects to provide the scipting facility
using the vbscript parsing engine procided with microsoft...please
mention some web sites for me to start from scratch..
DG
|
|
|
|
|
i have uploaled my exe on the web server of our private net. now i want that whenever someone tries to download my exe, a pop-up box should come up which will ask for the license key. once the licence key is validated, only then the download should start. how do i implement it?
Secondly since the exe will be hosted on intranet, so whenever someone tries to download my exe, i need to know the IP address of the system which is trying to download it, check whether its a valid internal address and only then ask for licence input. how do i implement it?
|
|
|
|
|
Probably not the most helpful answer, but you'll have better luck asking on the Web Development forum,
is this much more their forte.
Iain.
|
|
|
|
|
Is there any easy way to get the total number of days in a month?
My method, which seems really primitive, is to increment from 26
to 33 until
if (date.GetMonth() == -1)
break;
at which time, I know I went too far by one. TotalDays is i - 1.
Is there any other way to do this?
Please, any response any one can give me will be greatly appreciated.
Sincerely,
Danielle Brina (an overworked graduate student)
|
|
|
|
|
You can also set your COleDateTime object to the first day of the next month, substract one day, then get the current date. It's perhaps not a less primitive way, but at least you avoid the loop.
Btw, what kind of alien calendar are you using? Do you really expect to find some month with 32 or 27 days?
|
|
|
|
|
A simple switch/if else statement can be used for 11 of the months.
For Feb, check for a leap year...
bool bIsLeapYear = ((((nYear % 4) == 0) && ((nYear % 100) != 0)) ||
((nYear % 400) == 0));
and if true, add 1.
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|
does any one have implementation of gabor filters for fingerprint image enhancement in c++
gobar
|
|
|
|
|
They don't look that hard, but I found some code in seconds, [^] by using google.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Or maybe you can try here[^] as well
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
ok can you please give me te link of the code coc i searched a lot and all what i found is a matlab code
gobar
|
|
|
|
|
i have two questions infact.
basically i am calling from C# to c++. i am passing the window handle as int32 to c++ code. But GetWindowDC() requires window handle. how do i convert the int32 to window handle??
Second one is how can i get the window size in c++ given an handle?
|
|
|
|
|
veligeti wrote:
GetWindowDC() requires window handle. how do i convert the int32 to window handle??
It is the handle, just cast it to HWND.
veligeti wrote:
Second one is how can i get the window size in c++ given an handle?
GetWindowRect
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi everybody.
When i get the list of processes ids, with the EnumProcess function, how i can get the window asociated with a process? For example, if i have the process id 08937 i want to call a function GetWindow(08937) and it gives me a handle to the asociated window (HWND)
|
|
|
|
|
Processes may not have created windows, and processes may create many windows.
You can loop through all the top level windows using EnumChildWindows() with the desktop window as the parent: GetDesktopWindow().
And use this function:
DWORD GetWindowThreadProcessId(HWND hWnd,LPDWORD lpdwProcessId);
Then compare lpdwProcessId with the list of ProcessIds from EnumProcesses.
If it is in the list, then the HWND from the EnumChildWindows proc is what you need.
Maybe someone else knows of a better approach, maybe one simple api function
to do all this!
this is this.
|
|
|
|
|
Hi ,
I want to compare the text of two html pages and then highlight the changed text.Do you have any idea on how to do this
|
|
|
|
|
Please don't post in multiple forums. If you wanted to choose one, the web development one would have been the logical choice ( I don't think you even hit that one, did you ? )
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
My_Fun()
{
...
pFtpConn = mysession.GetFtpConnection( my_ftpserver, my_user, my_pass );
CFtpFileFind finder(pFtpConn);
BOOL bWorking = finder.FindFile("/My Projectinfo.inf" );
...
}
The Codes can not found file "My Projectinfo.inf", Why?
Are there some way to acces file has filname have space?
Thank!!!
|
|
|
|