Search:
Type: Posts; User: Anarchi
Search:
Search took 0.09 seconds.
-
Anyone know how to retrieve the battery wear level?
It appears that the wear level is missing in Win32_Battery via WMI.
-
November 11th, 2010, 02:09 AM
Hmm thanks guys something to think about.
I've been thinking of just creating my own file type or maybe even use XML files, and have each knowledge base item in a separate file, and each category...
-
November 9th, 2010, 07:48 PM
Hi guys,
Basically I would like to implement a simple database in my own MFC Application just for shared information storage (its basically a Knowledge Base with search functions and keywords)....
-
Hi,
I have created a small MFC app that many people use at work which needs to be updated regularly. Its important that everyone has the latest EXE running to avoid data corruption etc..
...
-
As Paul mentioned, structs is probably the easiest way.
in header file:
typedef struct tagMYSTRUCT {
bool bHello;
int nHello;
CString csHello;
} MYSTRUCT;
-
Finally got it working!
PreTranslateMessage was not receiving WM_DEVICECHANGE (but all other messages appear to work fine).
I noticed HWDetect wasn't using PreTranslateMessage, so I used the...
-
Perhaps its because there are two different Object.h files in your project?
I would try renaming the Object.h file, or change the #ifndef OBJECT_H_ to OBJECT2_H_
If thats no help, then try...
-
This is driving me nuts lol
I downloaded the HWDetect article sample from here: http://www.codeproject.com/KB/system/HwDetect.aspx
I recompiled the source in Visual Studio 2005 SP1 (because the...
-
Hi, thanks for the info.
I added RegisterDeviceNotification() exactly like in that article, but I still dont receive WM_DEVICECHANGE :(
The RegisterDeviceNotification() function was...
-
April 26th, 2010, 11:53 PM
Finally got it working. I realized that there is the "Main" menu bar, which has sub "popup" menus.
I was adding the new item to the Main part, rather than the sub popup menu.
CMenu *cMenu;...
-
April 22nd, 2010, 06:18 PM
Thanks for the help Igor.
I haven't had time to try again (very busy at work :() but I'll have another read of MSDN when I get a chance.
With a lot of Microsoft coding, you need to spend a huge...
-
April 21st, 2010, 07:46 PM
I'm confused, so do I need to add the new item to the submenu? (instead of the parent menu)
Why do Microsoft make things so complicated lol :p
-
April 20th, 2010, 06:06 PM
Sorry I meant "GetSubMenu(0)"
I still haven't figured it out, maybe I'll just work around the problem and add a hotkey or something.
-
April 17th, 2010, 09:00 PM
Interesting, why is that "GetSubItem" :confused: Thanks I'll look into it.
-
April 15th, 2010, 06:42 PM
I added the below line in that systemtrayicon class, but it didnt make a difference.
::DrawMenuBar(AfxGetMainWnd()->m_hWnd);
By the way, when I call InsertMenuItem() in the main InitDialog...
-
April 15th, 2010, 05:59 PM
The CMenu is declared as a member in the main MFC Dialog class.
The menu is activated when right-clicking the system tray icon.
I use the CSysTrayIcon Class made by Prateek Kaul, found here: ...
-
April 15th, 2010, 02:02 AM
Its a standard CMenu.
CMenu SysTrayMenu;
-
April 14th, 2010, 09:12 PM
VS2005 C++ MFC
When I try to add a new Menu Item to an existing Menu, the new item never shows up. All I see are the existing menu items from the Resource.
// Load SysTrayMenu...
-
February 7th, 2010, 08:50 PM
Got it working! :)
I installed the Open Watcom 32bit DOS Compiler and ported my code, it can directly access (read) BF7F:5000 via a simple pointer to 0xBF7F5000 without any fancy FAR pointers or...
-
February 7th, 2010, 07:18 PM
The target platform is pure DOS (I boot of an MSDOS Disk), not from within XP.
I can find the _SM_ and _DMI_ anchors ok, I'm just having a problem with the 32bit Structure Table Address.
The...
-
February 4th, 2010, 11:42 PM
I am using DJGPP 32bit DOS compiler (latest v4.22) to read the SMBIOS table (to get the BIOS version and serial number).
I use dosmemget() to copy chunks of memory to a malloc'd buffer.
It...
-
December 1st, 2009, 07:03 PM
No worries I think I figured it out. I changed GetSystemTime to GetLocalTime.
All these time functions are very confusing sometimes lol
[edit] surfdabbler thanks anyway
-
December 1st, 2009, 06:53 PM
When I run the below function, the date gives me 1st DEC 2009 instead of 2nd DEC 2009
I am in Sydney (+10 GMT), its 10:50am here right now. If I change the Windows time to 2:50pm, the date is now...
-
October 26th, 2009, 11:59 PM
I use WM_DEVICECHANGE to detect when a USB Key is inserted or removed.
BOOL PreTranslateMessage(MSG* pMsg)
{
// USB key plugged/unplugged?
if((pMsg->message == WM_DEVICECHANGE) ||...
-
September 28th, 2009, 07:32 AM
Found a (free?) command line utility called CMDOW, looks like it'll do the trick
It can identify the Pid, caption, or hex handle :)
|
Click Here to Expand Forum to Full Width
|