Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 159535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:52:35+00:00 2026-05-11T10:52:35+00:00

I have some code that pops up a balloon tip. It works on Vista

  • 0

I have some code that pops up a balloon tip. It works on Vista but not on Windows XP. This is the code so far. It works on Vista but not on XP. I can’t understand why. This version does not load the icon so it will show up blank.

memset(&m_notifyData, 0, sizeof(NOTIFYICONDATA)); m_notifyData.cbSize = sizeof(NOTIFYICONDATA); m_notifyData.uFlags = NIF_INFO | NIF_MESSAGE; m_notifyData.hWnd = (HWND) m_preference_window->GetHWND(); m_notifyData.uID = 99; m_notifyData.uTimeout = timeout; m_notifyData.dwInfoFlags = NIIF_NOSOUND | NIIF_INFO;  wxStrncpy(m_notifyData.szInfo, message.c_str(), WXSIZEOF(m_notifyData.szInfo)); wxStrncpy(m_notifyData.szInfoTitle, title.c_str(),WXSIZEOF(m_notifyData.szInfoTitle));  Shell_NotifyIcon(NIM_ADD, &m_notifyData);  wxLogMessage('Balloon timeout is %i', timeout); m_timer_balloon->Start(timeout, true); 

when the time runs, this gets executed:

Shell_NotifyIcon(NIM_DELETE, &m_notifyData); 

Any ideas why XP doesn’t show the message?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T10:52:36+00:00Added an answer on May 11, 2026 at 10:52 am
    m_notifyData.cbSize = sizeof(NOTIFYICONDATA); 

    Should be

    m_notifyData.cbSize = NOTIFYICONDATA_V2_SIZE 

    Vista added several members on top of what XP provided. Size is used to indicate what version of the struct you are passing. XP is rejecting it, since the size is unrecognized.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code that popups a message box: MessageBox.Show(this, You have not inputted
I have some markup for a popup menu that works in firefox but not
I have some code that is using SyncEnumerator. As you can see here ,
I have some code that sets up a dictionary with some defualt values for
I have some code that gets the current logged in user. userID = request.session.get(_auth_user_id)
I have some code that I'd like to run on a page. My problem
I have some code that inserts a list item into a list... I then
I have some code that dynamically creates a new button through JavaScript that when
I have some code that at one part will get executed a lot, and
I have some code that attempts to test whether my application is running with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.