Define the Images in Headerfile ?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 5 of 5

Thread: Define the Images in Headerfile ?

Threaded View

  1. #1
    Join Date
    Dec 2011

    Cool Define the Images in Headerfile ?

    Iam very new to Visual C++2010. Its my first project converting from C# to VC++2010.

    Actually I have a headerfile for my strings and variables to use with my whole project. But I don't know, how to define or declare the similar for images...Iam facing the problem like the below...

    For Strings....Below is good
    #define MY_STR "My Value" 
    System::Drawing::Image^ MyMainImge=System::Drawing::Image::FromFile("C:\\MyPrgCodes\\Images\\MyMenuImage.jpg");
    error C3145: 'MyMainImge' : global or static variable may not have managed type

    Any Ideas for me? Thanks
    Last edited by ovidiucucu; December 31st, 2011 at 06:02 AM. Reason: [CODE] tags added

Tags for this Thread

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)