German_N
asked on
Error while running with GDI+ in VC++6 application
Dear experts,
I've decided to enable my VC++6 with GDI+ graphics. By adding the following code:
typedef unsigned __int64 ULONG_PTR
#include <gdiplus.h>
using namespace Gdiplus;
#pragma comment (lib, "Gdiplus.lib")
to stdafx.h, I get the following error:
gdiplus.h(18) : error C2144: syntax error : missing ';' before type 'IDirectDrawSurface7'
I've tried to add the additional code needed to get VC++6 application running with GDI+, but still get the same error.
I'd be greatly appreciated for any suggestion.
I've decided to enable my VC++6 with GDI+ graphics. By adding the following code:
typedef unsigned __int64 ULONG_PTR
#include <gdiplus.h>
using namespace Gdiplus;
#pragma comment (lib, "Gdiplus.lib")
to stdafx.h, I get the following error:
gdiplus.h(18) : error C2144: syntax error : missing ';' before type 'IDirectDrawSurface7'
I've tried to add the additional code needed to get VC++6 application running with GDI+, but still get the same error.
I'd be greatly appreciated for any suggestion.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ok, try to send it to me to: emadns@yahoo.com
i received a notification message saying: This notification has been sent to inform you that a message has been deleted .The message subject is GDI+ problem project. Why is this happening? The message you are sending is infected with a virus.
ASKER
I'll be trying to send it again later... thanks for taking a care :)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
if I don't define "typedef unsigned __int64 ULONG_PTR" I get the following error: diplusinit.h(32) : error C2065: 'ULONG_PTR' : undeclared identifier. If I do, I get the following error: ddraw.h(38) : error C2144: syntax error : missing ';' before type 'int'.
It would be nice you could take a look at the project, sure if you have vc++6 installed. Probably I miss something basic.