Correct parameter for System.Drawing.Font.FromLogFont ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to use FromLogFont to create a font based on a GDI LOGFONT
structure (managed C++).
However, this function receives a parameter that I couldn't generate (I
tried copying the LOGFONT structure in a managed class, using a struc, etc.),
I always receive the error:

"An unhandled exception of type 'System.ArgumentException' occurred in
system.drawing.dll

Additional information: No PInvoke conversion exists for value passed to
Object-typed parameter."

Do you know how to fix this ?

T.I.A.

Cesar
 
Back
Top