Jump to content

P/Invoke AddFontResource in VB.net


Guest felixtcpip

Recommended Posts

Guest felixtcpip

Hey,

I'm trying to use a custom font in my app for the smartphone 2003. I've been told to use the AdFontResouce function in the gdi32 dll with P/Invoke. Does anyone have any sample code of how that would work in Vb .net? I cant figure it out, and searching didn't really come back with much info.

Thanks,

Felix

Link to comment
Share on other sites

Guest felixtcpip

No one knows..wow...here...i figured it out:

Public Shared Function _

AddFontResource(ByVal lpFileName As String) As Integer

End Function

Hey,

I'm trying to use a custom font in my app for the smartphone 2003.  I've been told to use the AdFontResouce function in the gdi32 dll with P/Invoke. Does anyone have any sample code of how that would work in Vb .net? I cant figure it out, and searching didn't really come back with much info.

Thanks,

Felix

<{POST_SNAPBACK}>

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.