Click here to Skip to main content
15,891,409 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Wang.

I'am adam. I program in win32 and c lang. . I converted your code about '
Yet Another Transparent Clock which Supports Custom Skin' article, from MFC to WIN32.
Everything was ok in windows XP and 7, in 32 and 64bits. But when I port it to windows 8, nothings was displayed on screen, without any error. I think GDIplus does not work on windows 8.
My question is, do you have any idea about this problem?
thank you.
adam.
Posted
Updated 12-Apr-19 18:12pm
Comments
[no name] 1-Jul-14 10:45am    
You would need to ask at http://www.codeproject.com/Articles/30707/Yet-Another-Transparent-Clock-which-Supports-Custo

1 solution

You probably need to initialize GDIPlus first.
#include <windows.h>
#include <gdiplus.h>
#include <stdio.h>
using namespace Gdiplus;

INT main()
{
   GdiplusStartupInput gdiplusStartupInput;
   ULONG_PTR gdiplusToken;
   GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);

// you code here
   GdiplusShutdown(gdiplusToken);
   return 0;
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900