-
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...
-
Post your suggestion to microsoft...
I doubt they'll read your article here...
-
Great suggestion...Yes post to Microsoft. Gee if they could also have multi-values and escape the tyranny of flat data bases it would be an outstanding product. :):):):):):)
Maybe we could get it working ourselves...hmmm...have a friend who got a version working with C++....Will think about it. :):)
-
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).
:cool:
Dan
-
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
-
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.
-
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
-
Pointers would be kind of great, and a real compiler would be nice too.
-
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.