|
hi boby
u can use the CIconicButton class or CRolloverButton class for this task.
u can find this class form codeproject site
|
|
|
|
|
Hi All,
I need to detect the mouse/keyboard clicks on one windows application so that I can send the same to another identical application running on another pc and have it do the same stuff.
I am having trouble figuring out how to monitor events on an application externally from another application (meaning I can't modify the code of the application whose events I want to monitor).
Any ideas or advice. Need HELP!! Thanks.
Regards,
Zahid
|
|
|
|
|
Look for "Hooking" or "Hooks".
Hosam Aly Mahmoud
|
|
|
|
|
I am using SQL SERVER 7.0 with OLE DB connection, i can display and add arabic text to the database, but when i try to run sql command to query arabic text i got no results, with out arabiic it is working.
Sinan Swedani
|
|
|
|
|
Can guarantee that 0 or -1 will not to be a threadid in my applicaton in any version of windows??
John
|
|
|
|
|
|
Do you know if a new thread always has bigger id value than a thread created earlier? Thanks.
[Edit]Just verified on my XP, the answer is no.[/Edit]
My articles and software tools
|
|
|
|
|
Since I don't have the NT source handy, I can't say. But if true, that's an internal implementation detail that you should not even consider relying on.
--Mike--
Ericahist | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber
Kosh reminded me of some of the prima-donna programmers I've worked with. Knew everything but when you asked them a question; never gave you a straight answer.
-- Michael P. Butler in the Lounge
|
|
|
|
|
|
This was what I was thinking but I was not sure about that. I have never noticed an application with a thread id of 0 but if I assume this and I am wrong in the highly unlikely case that the thread had an id of 0 the program would crash.
John
|
|
|
|
|
It has been stated as a fact from AMD, that chips with a speed greater than or equal to 300Mhz conflict with Win95 OSR2. Explicitly, the boot process yields the message,
"While Initializing Device IOS: Windows Protection Error. You Need to Restart Windows".
This is the message I recieved after a clean install of 95 with a K6-2 500Mhz processor. I did get 95 to boot by clocking the chip down to 166Mhz. I then tried to install the chip update from AMD's web but recieved a message about a Restriction error. The details of the error are as follows:
caused an exception c0000006H in module at 0000:bff832f3.
Registers:
EAX=20040000 CS=0137 EIP=bff832f3 EFLGS=00010206
EBX=01047000 SS=013f ESP=827e4c84 EBP=827e4cb4
ECX=81789200 DS=013f ESI=0000100d FS=0da7
EDX=c10d1700 ES=013f EDI=0100d000 GS=0000
Bytes at CS:EIP:
08 0f 6a 00 6a 01 56 68 0d 00 01 00 e8 d0 e0 fe
Stack dump:
20040000 000002bb 00000014 81789064 00000050 00000003 00000000 00000003 00000000 00000000 00000001 817892bc 827e4e00 bff85528 00000014 00000000
The only conclusion this message gives me is that the K6 and K6-2 register and stack architecture don't coincide. How can I get the processor to run at 500Mhz?
|
|
|
|
|
Sorry, but you are addressing a question that doesn't belong to this forum. I don't think anyone will help you here.
|
|
|
|
|
Sorry, this forum is about programming. Please refer to another forum that could fit to your question. Thank you.
MaestroProgramador.Com
I didn't fail hundred times, I found hundred ways that didn't work.
No fallé cien veces, encontré cien maneras de que no funcionara.
|
|
|
|
|
Hello, everyone!
I have only noticed that we extern a global variable which is defined in another source file (.c) to use this variable in the current .c file. But yesterday I noticed that someone extern a function (the prototype of the function) which is defined in another source file (.c) in the currect source file (.c).
I want to know whether it is useful and whether it is correct in a practical project?
Thanks in advance,
Geo
|
|
|
|
|
i've never used extern for functions, and i've never had any problems concerning this.
Don't try it, just do it!
|
|
|
|
|
Thanks, Alexander buddy!
Your reply helps a lot. I have a question, why there is a "M." above your name?
regards,
Geo
|
|
|
|
|
Hi,
I have two Dialog boxes,the first dialog box creates (by using DoModal) the second one on receiving a signal (an event in my case) .This signal is generated at regular time intervals.How do I know whether the second dialog box is already created (Is there any function to do it) and how do I close the second Dialog Box from the first one.
Thanks,
Deepak Samuel
|
|
|
|
|
I'm trying to implement something similar to the "CListBox::FindString " function but on a CListCtrl in Report View.
I'm feeding the list with a simple CData class member (this class consists only of 3 CStrings), and after the list has been fed with all the info, i'm sending one CData variable to a function named "UpdateList (CData* pData)".
In this function, i'm trying to find this pData in the List by doing this:
void CWordToolView::UpdateList(CData* pData)
{
...
LVFINDINFO findStruct;
LV_ITEM editItem;
findStruct.flags = LVFI_PARAM;
findStruct.lParam = (LPARAM)pData;
editItem.iItem = m_ListCtrl.FindItem(&findStruct);
}
But this doesn't seem to work - i keep getting -1 as the value of editItem.iItem - meaning it does not find this in the list.
Any ideas ??
|
|
|
|
|
I would do something different:
1. I would insert all data into CStringArray (into arrays) at the same time that I insert them into the CListCtrl (for viewing into the dialog).
2. I would search through a loop:
<br />
for (int i=0; sizeof(myarray); i++)<br />
{<br />
}<br />
Hope it helped !!
MaestroProgramador.Com
I didn't fail hundred times, I found hundred ways that didn't work.
No fallé cien veces, encontré cien maneras de que no funcionara.
|
|
|
|
|
I have two programs I'm working on: one is based off of the WMSDK DPlay sample, and the other off of the SystemTraySDK sample. The former requires msvcr70.dll, but the latter does not, even after making sure the default libraries are used. Here are the linker options:
<br />
/OUT:".\Release/IGCutter.exe" /INCREMENTAL:NO /NOLOGO /PDB:".\Release/DSPlay.pdb" /SUBSYSTEM:WINDOWS /STACK:2097152,2097152 /OPT:NOREF /OPT:ICF Shlwapi.lib strmiids.lib winmm.lib olepro32.lib ..\..\..\lib\wmvcore.lib comctl32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \Programming\DXSDK\Lib\strmiids.lib \Programming\WMSDK\WMFSDK9\lib\WMVCORE.lib<br />
<br />
/OUT:"..\Release/IGCProcessor.exe" /INCREMENTAL:NO /NOLOGO /PDB:".\Release/TaskbarDemo.pdb" /SUBSYSTEM:WINDOWS odbc32.lib odbccp32.lib comctl32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib<br />
How can I make the DPlay sample-based program not require msvcr70.dll?
Thanks!
|
|
|
|
|
Use a runlime library option that doesn't require DLL. It isn't about the link phase, it is about the compile phase.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Thanks! I discovered that it was using the multi-threaded DLL library, and not the plain multi-threaded library.
|
|
|
|
|
My application can have multiple instances running. If Instance A is on top and a user tries to open a file that is already open in Instance B, I want Instance B to come to become active.
I've come up with various solutions, but am not completely satisifed with them.
Does anyone have a tried and true method of doing this?
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
One idea that comes to mind is to use a modified version of CSingleInstance http://www.codeproject.com/cpp/csingleinst.asp[^] and use the memory mapped file to track each instance running. You could also track which files each app has open, then inspect this and active the app which owns the file.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
Thanks for your reply.
Variations of this are what I keep coming back to. (I even had such a thing have written when I posted my message, wondering if I was making it too complicated.)
Incidentally, my latest idea is to convert the full path of the file to lower case, calculate an adler32 of it, then create a global event with a suffix of that adler32.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|