 |
|
 |
Can you tell me the licensing terms for using this code in a commercial application?
|
|
|
|
 |
|
 |
Thanks for your inquiry. I just applied the CPOL[^] license.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
 |
|
|
 |
|
 |
Hi,
I want to apply Bitmap::ConvertFormat () method for my project. But above method is not in the GDI+ version 1.0 .So I have to download GDI+ version 1.1. From where can I download it? I search it .But I didn't get suitable URL for that. please help
Is there other way to do this?.
|
|
|
|
 |
|
 |
Yeah, I need to use Bitmap::ConvertFormat(). Anyone know how to include GDI+ version 1.1?
|
|
|
|
 |
|
 |
If I remember correctly GDI+ version 1.1 is part of Office 2003 and can not be redistributed freely.
Regards
Microsoft MVP in Visual C++
www.jiangsheng.net
|
|
|
|
 |
|
 |
When I run this macro, I get an unknown error at Line 42: Documents.Open ( FileName ), "Text", False
Why would this be?
There is no spoon. Or fork, or knife. Eat with your hands.
|
|
|
|
 |
|
 |
An "Unknown Error" doesn't tell me much, so I would not know what the problem is. All that line attempts to do is open your StdAfx.h file as a text file with read and write access.
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
 |
|
 |
I got ur reply and thanks,I am new to VC++ and GDIplus,will u please help to install gdiplus.dll.My OS is Windows 98 and I dint get the answer for wheather this macro helps to get the intellisence.
Expecting ur help
Vimal
|
|
|
|
 |
|
|
 |
|
 |
Is it legal to re-distribute GDI+ (GDIplus.dll) with my final product on user computer
Thanks
|
|
|
|
 |
|
 |
Yes, AFAIK but IANAL. The GDI+ download link I supplied in my previous post contains the text "Platform SDK Redistributable: GDI+ RTM", so I am assuming that the word "Redistributable" means you are allowed to redistribute the dll with your app.
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
 |
|
 |
Thank you for your makro. It helped me very much.
It works fine on XP (2k??), but on 98/Me: It might cause problems while used inside a dll. It is not recommended to load/unload a dll (here GDI+dll) inside Initinstance/Exitinstance, because this is called by the systems Loadlibrary/Freelibrary. The makro inserted code itself calls the GDI+ dll by GdiplusShutdown(m_gdiplusToken);. This tries to end the thread, created by the GDI+ dll, but inside a Freelibrary-call there is done no context switch. The thread does not end, it gets stuck. A workaround is that the app calls some function inside the dll before it shuts down. The function itself should call GdiplusShutdown.
|
|
|
|
 |
|
 |
I installed the macro and it went fine. But when i try to compile/build, i get this errors:
c:\program files\microsoft visual studio\gdiplusfiles\gdiplusinit.h(32) : error C2065: 'ULONG_PTR' : undeclared identifier
c:\program files\microsoft visual studio\gdiplusfiles\gdiplusinit.h(32) : error C2065: 'token' : undeclared identifier
c:\program files\microsoft visual studio\gdiplusfiles\gdiplusinit.h(32) : error C2165: 'left-side modifier' : cannot modify pointers to data
c:\program files\microsoft visual studio\gdiplusfiles\gdiplusinit.h(32) : error C2071: 'NotificationHookProc' : illegal storage class
c:\program files\microsoft visual studio\gdiplusfiles\gdiplusinit.h(33) : error C2146: syntax error : missing ')' before identifier 'token'
c:\program files\microsoft visual studio\gdiplusfiles\gdiplusinit.h(33) : error C2165: 'left-side modifier' : cannot modify pointers to data
c:\program files\microsoft visual studio\gdiplusfiles\gdiplusinit.h(33) : error C2071: 'NotificationUnhookProc' : illegal storage class
c:\program files\microsoft visual studio\gdiplusfiles\gdiplusinit.h(33) : error C2059: syntax error : ')'
c:\program files\microsoft visual studio\gdiplusfiles\gdiplusinit.h(86) : error C2059: syntax error : 'const'
c:\program files\microsoft visual studio\gdiplusfiles\gdiplusinit.h(95) : error C2146: syntax error : missing ')' before identifier 'token'
c:\program files\microsoft visual studio\gdiplusfiles\gdiplusinit.h(95) : warning C4229: anachronism used : modifiers on data are ignored
c:\program files\microsoft visual studio\gdiplusfiles\gdiplusinit.h(95) : error C2182: 'GdiplusShutdown' : illegal use of type 'void'
c:\program files\microsoft visual studio\gdiplusfiles\gdiplusinit.h(95) : error C2059: syntax error : ')'
Can someone please tell me what to do? Sorry if this is a dumb question, but I'm new to programming. Thanks.
|
|
|
|
 |
|
 |
Try here[^]
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
 |
|
 |
I get the very same errors! I tried to comment #define VC_EXTRALEAN as suggested, but with any result.
Other ideas?
Gianluca Nastasi
|
|
|
|
 |
|
 |
you can try #define ULONG_PTR ULONG in your stdafx.h file. But I think the best solution is to make sure you are using the latest headers from the platform SDK. I am using the Feb 2001 edition with VC6 with no problems.
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
 |
|
 |
Hi There!
i have the same problem. just put this code in your stdafx.h just after you define the gdiplus.h
#ifndef ULONG_PTR
#define ULONG_PTR unsigned long*
#endif
hopefully help
|
|
|
|
 |
|
 |
class CGdiPlusInit
{
private:
ULONG_PTR m_gdiplusToken;
public:
CGdiPlusInit()
{
GdiplusStartupInput gdiplusstartupinput;
GdiplusStartup (&m_gdiplusToken, &gdiplusstartupinput, NULL);
}
~CGdiPlusInit()
{
GdiplusShutdown(m_gdiplusToken);
}
};
Just declare a variable of this type anywhere (either in the app class) or globally.
The mistakes made in this API make me realise that Microsoft has become big enough that it can shelter morons. If anyone working for me wrote anything this bad and tried to release it, I would kill them and display the body as a warning to the rest of the team. - Christian Graus about C# - GDI+
|
|
|
|
 |
|
|
 |
|
 |
I sure have found it useful! Thanks
|
|
|
|
 |
|
 |
I am a beginner of GDI+, please tell me where can I found more materials about GDI+. Thank you.
|
|
|
|
 |
|
|
 |
|
 |
Good information on setup of the GDIPLUS stuff. The include file order got rid of most of my errors! Even the ULONG_PTR problem.
http://support.microsoft.com/default.aspx?scid=kb;en-us;320234
Peter Stephens
|
|
|
|
 |
|
 |
Is it true that GDI+, does not support graphics acceleration under the hood yet? I think I read it a while back.
|
|
|
|
 |