Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a program where I use GDI+ to draw an image on my dialog, then there is in my dialog a button to open the second dialog..but if there is:

ULONG_PTR m_gdiplusToken;
Gdiplus::GdiplusStartupInput gdiplusStartupInput;
Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);



This code is in InitInstance.

my second dialog doesn't open, if I comment this code dialog opens... but without
this code there isn't drawing.
thanks

What I have tried:

I tried to comment code but if I comment there isn't drawing.
Posted
Updated 28-Jun-22 5:06am
v2
Comments
Richard MacCutchan 28-Jun-22 6:46am    
You need to provide more details; it is impossible to guess what is happening.
Member 14594285 28-Jun-22 8:22am    
I use a PieChart class, to draw in my dialog..if I add in InitInstance this code:
Gdiplus::GdiplusStartupInput gdiplusStartupInput;
Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);

the second dialog that must open when I press button on my dialog doesn't open.

1 solution

I solved, I must add to the second dialog the option: visible = true
 
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