|
-
Jun 2nd, 2000, 10:54 AM
#1
Thread Starter
PowerPoster
-
Jun 2nd, 2000, 05:18 PM
#2
transcendental analytic
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.
-
Jun 2nd, 2000, 07:46 PM
#3
Thread Starter
PowerPoster
UDT
Unfortunately, WinCE does not support UDT. How abt the BitBlt? Do you know much abt this API function?
-
Jun 2nd, 2000, 08:42 PM
#4
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
-
Jun 2nd, 2000, 09:10 PM
#5
transcendental analytic
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.
-
Jun 3rd, 2000, 07:43 AM
#6
Fanatic Member
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
{;->
-
Jun 3rd, 2000, 08:20 AM
#7
you have to have CE 1.0 or later to support bitblt
-
Jun 3rd, 2000, 11:59 AM
#8
Thread Starter
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|