gHINSTANCE is undefined ERROR when trying to have a custom icon for a toolbar button
Hello everyone
I am trying to add a button to a toolbar using plugins and I want it to have a custom icon.
I found in the SDK the following code snippet:
//Declare an AVToolButton object
AVToolButton MyButton = NULL;
//Create an AVIcon object
AVIcon myIcon = (AVCursor)LoadBitmap(gHINSTANCE, MAKEINTRESOURCE(IDB_BITMAP1));
//Create a new button
MyButton = AVToolButtonNew(ASAtomFromString("MyExtn:MyButton"), myIcon, false, false);
When I try using this in visual studio, it shows me the error "identifier gHINSTANCE is undefined"
I have included the "PIMain.c" file as well , and as the SDK says that gHINSTANCE is an instance of object HINSTANCE, I can also see this object declaration in PIMain.c file.
Can anyone suggest what could be going wrong here?
Thanks
