CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 1999
    Posts
    2

    Changing an Icon into an executable

    I want to change the icon of an executable...
    without compiling it.
    any help welcome

    Impulse


  2. #2
    Join Date
    Jun 1999
    Posts
    319

    Re: Changing an Icon into an executable

    if i well understood, you want to change it run-time. Ok. That's the code :
    [
    HICON icon = AfxGetApp()->LoadIcon(IDI_YOUR_ICON);
    AfxGetMainWnd()->SetIcon(icon);
    ]
    Let me know if it works fine to you
    Regards,
    faby


  3. #3
    Join Date
    Jun 1999
    Posts
    2

    Re: Changing an Icon into an executable

    No, that's not that...
    i want to change the icon a another executable than mine...
    I want to change any executable, even if it's not running...

    but thanks for awsering me



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured