compiler error with /clr

Jun 3, 2010 at 10:33am
Im writing on native C++ code for Direct2D and DirectX, which works fine.

#pragma managed/unmanaged directives in my source should bring the compiler clearness when Iam trying to enable the /clr-build option for adding a COM OpenFileDialog.

But I get following error C2039: "DrawTextW" : is not a member of "ID2D1RenderTarget".

Its a member, otherwise how should I draw Text instead with DirectWrite ?
Can you help me ?
Jun 3, 2010 at 12:23pm
DrawText*() is a global Windows C function. It's not a member of anything.

http://msdn.microsoft.com/en-us/library/dd162498%28VS.85%29.aspx
Jun 3, 2010 at 12:57pm
Thanx for your quick reply !

But rigth this time in the web I found a way to open the same Fileselect-Dialog without using /clr. (GetOpenFileName instead of IFileDialog).

Im writing since about 1 1/2 years on a OIDS-remake (ATARI) with editor, so I need fileselectboxes to save the userlevels.

I tried many times without succeed (damned /clr ). Now the problem is solved.

Thanks to you. Mike.
Topic archived. No new replies allowed.