Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

[Solved]Semantics

For general discussion related FlowStone

[Solved]Semantics

Postby JB_AU » Tue Nov 18, 2014 4:09 am

Code: Select all
require 'Win32API'

module GDI32
      ANSI_CHARSET      = 0
      DEFAULT_CHARSET   = 1
      SYMBOL_CHARSET    = 2

      TCI_SRCCHARSET     = 1
      TCI_SRCCODEPAGE    = 2
      TCI_SRCFONTSIG     = 3
      TCI_SRCLOCALE      = 0x100

#Declare Function GetTextCharset Lib "gdi32" Alias "GetTextCharset" (ByVal hdc As Long) As Long
GetTextCharset = Win32API.new('gdi32', 'GetTextCharset', 'L', 'I')
      def GetTextCharset(hdc)
         GetTextCharset.call(hdc)
      end
#Declare Function GetTextCharsetInfo Lib "gdi32" Alias "GetTextCharsetInfo" (ByVal hdc As Long, lpSig As FONTSIGNATURE, ByVal dwFlags As Long) As Long
GetTextCharsetInfo = Win32API.new('gdi32', 'GetTextCharsetInfo', 'LPL', 'I')
      def GetTextCharsetInfo(hdc, fontsig, flags)
         GetTextCharsetInfo.call(hdc, fontsig, flags)
      end
#Declare Function TranslateCharsetInfo Lib "gdi32" Alias "TranslateCharsetInfo" (lpSrc As Long, lpcs As CHARSETINFO, ByVal dwFlags As Long) As Long
TranslateCharsetInfo = Win32API.new('gdi32', 'TranslateCharsetInfo', 'PPL', 'I')
      def TranslateCharsetInfo(src, chrset, flags)
         TranslateCharsetInfo.call(src, chrset, flags) != 0
      end
      end


Does it really matter if the Definitions are mixed with the Declarations?
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

Albert Einstein
User avatar
JB_AU
 
Posts: 171
Joined: Tue May 21, 2013 11:01 pm

Return to General

Who is online

Users browsing this forum: No registered users and 86 guests