views:

89

answers:

0

I have a strange problem with a .NET application. I run the application (a Windows Forms app) on a 64 bit Windows 2008 Server. I run it remotely using Remote Desktop. My application does its own drawing ( i.e. g.DrawString("hello world"...) ) on the app.

If I build the app with the Platform Target (in the Build tab of the application properties sheet) set to "Any CPU" the application works fine. If however I set the Platform Target of the Windows App to "x86" then the some of the calls to the GDI drawing routines dont seem to work. The app still runs and everything normal (menus, dialogs etc) are all functioning perfectly well. However its just that a subset of the GDI drawing commands seem to have no effect anymore.

Just wondering if others have had this problem and what yo would suggest I do to rememdy it?

[I need to be running the app as x86 due to another dependency so just running it as a 64bit target is not an option]