NS_ColorNameToRGB(NS_ConvertASCIItoUCS2("white"), &white);
NS_ColorNameToRGB(NS_LITERAL_STRING("white"), &white);
MyLoadImage(char *aFileName,PRBool  aGenLoad,nsIImage **aTheImage){char fileURL[256];char *str;    MyInterrupt();    if(aGenLoad!=PR_TRUE)      MyReleaseImages();    if (gImageGroup == NULL)       {      nsIDeviceContext *deviceCtx = gWindow->GetDeviceContext();      if (NS_NewImageGroup(&gImageGroup) != NS_OK || gImageGroup->Init(deviceCtx, nsnull) != NS_OK)         {        ::MessageBox(NULL, "Couldn't create image group",class1Name, MB_OK);        NS_RELEASE(deviceCtx);        return;        }      NS_RELEASE(deviceCtx);      }    strcpy(fileURL, FILE_URL_PREFIX);    strcpy(fileURL + strlen(FILE_URL_PREFIX), aFileName);    str = fileURL;    while ((str = strchr(str, '\\')) != NULL)        *str = '/';    nscolor white;    // set up which image gets loaded    if(aGenLoad == PR_TRUE)      {      MyBlendObserver *observer = new MyBlendObserver(aTheImage);      NS_ColorNameToRGB(NS_ConvertASCIItoUCS2("white"), &white);      gImageReq = gImageGroup->GetImage(fileURL,observer,&white, 0, 0, 0);      }    else      {      MyObserver *observer = new MyObserver();      NS_ColorNameToRGB(NS_ConvertASCIItoUCS2("white"), &white);      gImageReq = gImageGroup->GetImage(fileURL,observer,&white, 0, 0, 0);      }                if (gImageReq == NULL)       {      ::MessageBox(NULL, "Couldn't create image request",class1Name, MB_OK);      }}