Results 1 to 8 of 8

Thread: BitBlt API - Fox + Megatron + Kedaman

  1. #1

    Thread Starter
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Question BitBlt API - Fox + megatron + Kedaman

    Hey! Fox, Megatron & Kedaman Do your know the WinCE support this API function? Meanwhile anyone of you know how to convert a lists of vector coordinate data into a binary map format? So that I can read it more faster.

    Because currently I'm writing an GIS (Geographical Information System) application to display my current position. Don't worry about this, because I've got the GPS (Global Positioning System) feed me all the data. Base on this data my programe will recalculate location (longitude and latitude value) and load the appropriate map and display on the screen. All this need to be done on WinCE 2.11 or 3.0

    End up, the map will be moving as the person hold the device is moving.

    I did downloaded some example code from Fox's homepage & currently is studies and learning the BitBlt API function. So hope your guys and others as well can give me some guidance on how can I archieve this task.

    Don't know Aaron Young .Serge and Yonatan can help me on this? Since both of you are well known Guru on this forum.

    [Edited by Chris on 06-03-2000 at 08:21 AM]

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I don't have WinCE, so i can't answer you on that one, but to convert a list of vector coordinate data into binary is quite easy. You have to make an array of UDT containing the data and then open a file in binary and use put to store it.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Unhappy UDT

    Unfortunately, WinCE does not support UDT. How abt the BitBlt? Do you know much abt this API function?

  4. #4
    Guest
    Sorry, I do not have WinCE either.

    Regarding your other question. Did you want to convert the X and Y into Binary? For example.

    The coordinates are 14x5 and you want to convert that into raw binary?

    The closest you can get to writing directly to disk is by opening the file as Binary.

    Code:
    Open "MyFile" For Binary Access Write As #1
    Put #1, 1, 1  'Put #(FileNumber), bytenumber, varname
    Close #1
    But you might also want to use the Random method.

    Code:
    myvar = 444
    tmpvar = myvar
    Open "MyFile" For Random As #1 Len = 1000
    Put #1, 1, tmpvar  'Put #filenumber, recnumber, varname
    Close #1

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I can't believe it! WinCE not supporting UDTs?

    Try this and see if it supports or not:
    Code:
    Type Tchris
     s$
     i%
    end type
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  6. #6
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Hi,
    I'm probably barking up the wrong tree, but i woulda thought that the picclip control was exactly right for what you want to do.

    DocZaf
    {;->

  7. #7
    Guest
    you have to have CE 1.0 or later to support bitblt

  8. #8

    Thread Starter
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Lightbulb Single Data Type

    Thanks everybody, I manage to get the function declare syntax.

    Code:
    Private Declare Function BitBlt Lib "Coredll" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
    As I know, WinCE only support single data type and that is Variant and does not suuport UDT.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width