Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MessageBox changes a str255 variable

MessageBox changes a str255 variable

Scheduled Pinned Locked Moved C / C++ / MFC
help
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Grant Hudgens
    wrote on last edited by
    #1

    I am working on an iTunes plugin using their own SDK the only thing I have changed is adding two MessageBoxes. iTunes sends stream information to a function in the plugin where I am able to access it. Here is the code. case kVisualPluginPlayMessage: if (messageInfo->u.playMessage.trackInfo != nil) visualPluginData->trackInfo = *messageInfo->u.playMessage.trackInfoUnicode; else MyMemClear(&visualPluginData->trackInfo,sizeof(visualPluginData->trackInfo)); if (messageInfo->u.playMessage.streamInfo != nil) visualPluginData->streamInfo = *messageInfo->u.playMessage.streamInfoUnicode; else MyMemClear(&visualPluginData->streamInfo,sizeof(visualPluginData->streamInfo)); //MessageBox(NULL, visualPluginData->streamInfo.streamTitle, "Stream Title 1", NULL); MessageBox(NULL, visualPluginData->streamInfo.streamTitle, "Stream Title 2", NULL); visualPluginData->playing = true; break; streamTitle is an str255 variable passed on by iTunes. Now, if I run it like it is it will display nothing for streamTitle. If I run it without the first MessageBox uncommented it will display nothing for streamTitle the first time, but the second MessageBox will have information in it. This is driving me insane haha and any help would be greatly appreciated.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups