|
-
May 3rd, 2000, 09:43 AM
#1
Well im sure someone has said this already, but why doesn't microsoft make very popular API codes in basic code words? for example so many people use bitblt, so why not make it into a code word? so all you have to do is bitblt (destpic, xcor,ycor,sourcepic,xcor,ycor) you know what i mean? it would make it easier for me thats for sure. could this even be done? maybe it cant thats why it isn't being done. anyway i just thought it would be neat to make some common API into codewords...
-
May 3rd, 2000, 12:19 PM
#2
Lively Member
Post your suggestion to microsoft...
I doubt they'll read your article here...
-
May 3rd, 2000, 02:08 PM
#3
-
May 3rd, 2000, 04:26 PM
#4
Hyperactive Member
Surely you can just keep all your common API declarations in a .bas file and write your own interfaces to them (in a format you like).
OK its not the same as a Keyword, but it gives the same results. You could even define them with enumerated constants so you get a nice list when you try to use them.
All you need to do is dig around a little in thw windows .h files (if you have them).

Dan
-
May 3rd, 2000, 04:39 PM
#5
transcendental analytic
I think you all have to get used to use api's, it's not as ugly as it looks. In fact, i think if microsoft would have done a replacement for bitblt, i bet it would drain more performance than the original. That's why I like to use API whenever it is possible, even if theres methods for it in vb
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.
-
May 3rd, 2000, 06:24 PM
#6
Frenzied Member
There is a VB version of BilBlt, it's called PaintPicture, The trouble is that the Idea of VB is that you don't need to know how windows works or anything technical thike what a DC is, it's all done for you. And Paintpicture is fine if you're working entirley in the VB environment, it's just not quite as fast as Bitblt.
-
May 3rd, 2000, 07:40 PM
#7
transcendental analytic
I think paintpicture is a mixture of bitblt, stretchblt, transblt and batblt. And it drains performance in all of them except for stretchblt, where paintpicture is faster. Batblt draws bat icons on your form
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.
-
May 3rd, 2000, 11:06 PM
#8
New Member
Pointers would be kind of great, and a real compiler would be nice too.
Well, it's a pentium parrot, besides, it's only a decimal.
-
May 3rd, 2000, 11:25 PM
#9
Frenzied Member
There are Pointers in VB, VarPtr(myVar) returns a pointer to myVar, StrPtr(myString) returns a pointer to a wide character array and ObjPtr(my Object) returns a pointer to an object.
you have to use the copymemory API to get the memory out though, but still, stop complaining, If you really need do do that sort of stuff learn C++, you can use C++ as a back end to your vb project.
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
|