Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Anarchi

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    605

    Battery wear level

    Anyone know how to retrieve the battery wear level?

    It appears that the wear level is missing in Win32_Battery via WMI.
  2. Replies
    7
    Views
    1,455

    Re: Simple SQL database in MFC?

    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...
  3. Replies
    7
    Views
    1,455

    Simple SQL database in MFC?

    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)....
  4. Why does ShellExecute() prompt the UAC when the file is on a server?

    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..

    ...
  5. Re: How to I return multiple values in a function

    As Paul mentioned, structs is probably the easiest way.

    in header file:

    typedef struct tagMYSTRUCT {
    bool bHello;
    int nHello;
    CString csHello;
    } MYSTRUCT;
  6. Replies
    4
    Views
    3,970

    Re: WM_DEVICECHANGE not working in Vista

    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...
  7. Thread: Include error

    by Anarchi
    Replies
    5
    Views
    649

    Re: Include error

    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...
  8. Replies
    4
    Views
    3,970

    Re: WM_DEVICECHANGE not working in Vista

    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...
  9. Replies
    4
    Views
    3,970

    Re: WM_DEVICECHANGE not working in Vista

    Hi, thanks for the info.

    I added RegisterDeviceNotification() exactly like in that article, but I still dont receive WM_DEVICECHANGE :(

    The RegisterDeviceNotification() function was...
  10. Replies
    16
    Views
    2,651

    Re: Adding an item to an existing CMenu

    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;...
  11. Replies
    16
    Views
    2,651

    Re: Adding an item to an existing CMenu

    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...
  12. Replies
    16
    Views
    2,651

    Re: Adding an item to an existing CMenu

    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
  13. Replies
    16
    Views
    2,651

    Re: Adding an item to an existing CMenu

    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.
  14. Replies
    16
    Views
    2,651

    Re: Adding an item to an existing CMenu

    Interesting, why is that "GetSubItem" :confused: Thanks I'll look into it.
  15. Replies
    16
    Views
    2,651

    Re: Adding an item to an existing CMenu

    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...
  16. Replies
    16
    Views
    2,651

    Re: Adding an item to an existing CMenu

    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: ...
  17. Replies
    16
    Views
    2,651

    Re: Adding an item to an existing CMenu

    Its a standard CMenu.

    CMenu SysTrayMenu;
  18. Replies
    16
    Views
    2,651

    Adding an item to an existing CMenu

    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...
  19. Replies
    3
    Views
    1,788

    Re: Can't access DOS memory above 0x0010F000

    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...
  20. Replies
    3
    Views
    1,788

    Re: Can't access DOS memory above 0x0010F000

    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...
  21. Replies
    3
    Views
    1,788

    [RESOLVED] Can't access DOS memory above 0x0010F000

    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...
  22. Replies
    2
    Views
    1,352

    Re: GetDateFormat is one day off

    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
  23. Replies
    2
    Views
    1,352

    GetDateFormat is one day off

    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...
  24. Replies
    4
    Views
    3,970

    WM_DEVICECHANGE not working in Vista

    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) ||...
  25. Re: Pre-Build commands in VS2005 - close my app before building

    Found a (free?) command line utility called CMDOW, looks like it'll do the trick

    It can identify the Pid, caption, or hex handle :)
Results 1 to 25 of 245
Page 1 of 10 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center