Re: POLYTEXTOUT problems..( including declarations )



"Mike Williams" <Mike@xxxxxxxxxxxxxxxxx> wrote in message
news:dhtlfn$bcg$1@xxxxxxxxxxxxxxxxxxxxxxx

.. . . oops! I forgot to mention that in order to get the code working I had
to change the declaration to:

Private Declare Function PolyTextOut& _
Lib "gdi32" Alias "PolyTextOutA" ( _
ByVal hdc As Long, _
pptxt As Rum, _
ByVal cStrings As Long)

Having to do such a thing tells me for sure that I am going about all this
in a silly roundabout way, and that there is a far easier way of doing it,
but I haven't had my breakfast yet (slept in late today!). Never much good
before breakfast! (Probably simply changing your existing dynamic array for
a fixed size one will do the trick). Anyway, as I've said, there has got to
be a better way of doing this, but at least the example I posted shows that
the thing actually works ;-)

Mike



.



Relevant Pages

  • Re: Importing JPEG data into spreadsheet
    ... Shapes can be sized very small and do not need to be constrained to cell ... Lib "gdi32" (ByVal hdc As Long, ... Private Declare Function StretchBlt Lib "gdi32" _ ...
    (microsoft.public.excel.programming)
  • Re: Importing JPEG data into spreadsheet
    ... Shapes can be sized very small and do not need to be constrained to cell ... Lib "gdi32" (ByVal hdc As Long, ... Private Declare Function StretchBlt Lib "gdi32" _ ...
    (microsoft.public.excel.programming)
  • Re: Select polygon on EMF on MouseOver
    ... Private Declare Function SetWindowExtEx Lib "GDI32.dll" (ByVal hDC As Long, ... ByVal nX As Long, ByVal nY As Long, ByRef lpPoint As Any) As Long ...
    (microsoft.public.vb.general.discussion)
  • Re: Error 480 - cant create autoredraw image
    ... Private Declare Function CreateCompatibleDC Lib "GDI32.dll" (ByVal hDC As Long) As Long ... Const DemoText As String = "Hello, ...
    (microsoft.public.vb.general.discussion)
  • Re: Mike D Suttons rotated label control
    ... Private Declare Function SetWorldTransform Lib "GDI32.dll" (_ ... ByVal hDC As Long, ByRef lpXform As XForm) As Long ... Dim OldXForm As XForm, RotXForm As XForm ...
    (microsoft.public.vb.general.discussion)