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
G

Grant Hudgens

@Grant Hudgens
About
Posts
4
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MessageBox changes a str255 variable
    G Grant Hudgens

    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.

    C / C++ / MFC help

  • Getting an "Access violation reading location" error for an iTunes plugin
    G Grant Hudgens

    The Way I debug is I try to open iTunes after putting the compiled dll into the plugins folder a Visual Studio Just in Time Debugger pops up and gives me the option of using visual studio to debug so I click yes and that is when I get the violation reading location error.I tried adding iTunes.exe to the debugging tab but it says debugging information cannot be found or does not match. Unfortunatly I was not able to find any information for any arguments to put in for the debugger. Also I have not been able to find an iTunes debugging message boards either...

    C / C++ / MFC help testing beta-testing

  • Getting an "Access violation reading location" error for an iTunes plugin
    G Grant Hudgens

    I am very new to creating Windows DLLs and I am trying to create a plugin for iTunes but I need this plugin to have a window that runs alongside iTunes. When I open iTunes it does create the window but I get "Unhandled exception at 0x10911758 in iTunes.exe: 0xC0000005: Access violation reading location 0x10911758."

    BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
    {
    HINSTANCE hInstance = (HINSTANCE)GetModuleHandle(_T("iTunesLyrics"));
    switch (ul_reason_for_call)
    {
    case DLL_PROCESS_ATTACH: InitWnd(hInstance); break;
    case DLL_THREAD_ATTACH:
    case DLL_PROCESS_DETACH:
    case DLL_THREAD_DETACH:
    break;
    }
    return true;

    }

    int InitWnd(HINSTANCE hInst)
    {
    static TCHAR szAppName[] = TEXT("iTunesLyrics");
    MSG msg;

    WNDCLASSEX wndclass;
    	wndclass.hIcon			= LoadIcon(0,IDI\_EXCLAMATION);
    	wndclass.cbSize			= sizeof(WNDCLASSEX);
    	wndclass.style			= CS\_HREDRAW | CS\_VREDRAW;
    	wndclass.lpfnWndProc	= (WNDPROC)WindowProcedure;
    	wndclass.cbClsExtra		= 0;
    	wndclass.cbWndExtra		= 0;
    	wndclass.hInstance		= hInst;
    	wndclass.hCursor		= LoadCursor(NULL, IDC\_ARROW);
    	wndclass.hbrBackground	= (HBRUSH)(COLOR\_WINDOW+1);
    	wndclass.lpszMenuName	= NULL;
    	wndclass.lpszClassName	= \_T("Testing");
    	wndclass.hIconSm		= NULL;
    
    if(!RegisterClassEx(&wndclass))
    	MessageBox(NULL, \_T("RegClass Failed"), \_T("Error"), MB\_OK);
    
    hWnd = CreateWindow(\_T("Testing"), \_T("This is a test"), WS\_OVERLAPPEDWINDOW, CW\_USEDEFAULT, 0, CW\_USEDEFAULT, 0, NULL, NULL, hInst, NULL);
    ShowWindow(hWnd, SW\_SHOW);
    
    return 0;
    

    } //InitWnd()

    LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
    {
    switch (message)
    {
    case WM_DESTROY: PostQuitMessage (0);
    break;
    case WM_CREATE: return 0;
    break;
    case WM_NCCREATE: return true;
    break;
    default:
    return DefWindowProc (hwnd, message, wParam, lParam);
    }

    return 0;
    

    }

    Any help would be greatly appreciated.

    C / C++ / MFC help testing beta-testing

  • Creating iTunes dll plugin.
    G Grant Hudgens

    I am trying to create a dll from c++ to be used as a plugin for iTunes. Unfortunately I cannot find any documentation on this. The plugin I am trying to make will be pulling information from iTunes while running and display it in the taskbar as an icon with bubble notifications when the song changes, showing song title etc. Does anyone have any code from plugins they have made in the past? I am very new to this haha. Thank you

    C / C++ / MFC c++ question
  • Login

  • Don't have an account? Register

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