Results 1 to 9 of 9

Thread: I have an idea!

  1. #1
    Guest

    Lightbulb

    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...

  2. #2
    Lively Member
    Join Date
    Aug 1999
    Posts
    89
    Post your suggestion to microsoft...
    I doubt they'll read your article here...

  3. #3
    Guest

    Wink

    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.

  4. #4
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337

    Exclamation

    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

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  6. #6
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    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.

  7. #7
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  8. #8
    New Member
    Join Date
    May 2000
    Posts
    14
    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.

  9. #9
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    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
  •  



Click Here to Expand Forum to Full Width