Correct parameter for System.Drawing.Font.FromLogFont ?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top