Visual Basic, .NET, ASP, VBScript
 

   
   
     

Форум - Офф-топ

Страница: 1 |

 

  Вопрос: Типа сочинение про API (ENG) Добавлено: 27.06.05 19:38  

Автор вопроса:  Morpheus | Web-сайт: xury.zx6.ru
Вот блин, перед экзаменом тренеруюсь... ещё надо негативные эффекты описать будет.

Windows API: Хорошо или плохо?

Many peope believe, that using Windows API function in programming has a lot of negative effect such as low reliability or operating system dependence. Some people think, that even a small error may cause an application crash. But everything has its advantages and disadvantages. Moreover, nothing will work properly if it is used incorrectly. I am sure, using Win32Api in programming has many benefits, because it works
fast, it opens up new possibilities and it allows to reduce the size of an executable file.
Firstly, API functions work much faster than their standard visual basic analogues. Written on best compillers and optimized for speed by highly skilled programmers, API functions guarantee the excellent perfomance. Using API for game creation or working with large value of information may accelerate your program by a factor of two or even more. For example, using BitBlt function to draw a picture instead of standard vb function will make your program executing three times more faster than usual. This is why it is so widely used nowadays in game creation. In addition, you can use API if you work with great values of data. For instance, if you have a list, which contains hundreds of items and you need to find one of them, you can use SendMessageByString function to find needed item five times more faster than using cycle. Thus, API allows you to make your programs much faster.
In addition to working fast, API functions open up a lot of new possibilities.Visual Basic was created as a relyable and compatible compiller and this is why it lost some if its functions. API allows you to make up this deficiency and you will get acces to new properties and events of standard controls, which you could not use directly in VB. For example, SetWindowLong is a function, that can modify standard control such as button
as you need to improve your program's interface. Moreover, it can help you to modify the appearence of another application! In addition, API allows to get an extended information about hardware, system parametres
and tools or to set them. SystemParametresInfo, for exmaple, is one of these functions which can help you to modify the appearence and actions of windows. Moreover, API allows you to edit the system registry, what
is impossible via vb functions. Thus we see, API functions can be widely used to open up new possibilities.
Finally, using API finctions allows you to reduce the size of your executable file. If you call an API function, you load a code from standard DLL files, which exist on each computer. This is why it is not necessery
anymore to include the same code in each EXE file. You just need to do a few declarations. It can also help you not to include OCX controls and replace it by windows functions. For instance, if you work with network,
you just declare needed API functions to avoid adding Winsock component.
In conclusion, I like Win32API, because it help me to optimize my program to work faster, to discover new abilities and to make my exe file smaller. I am sure, API is the best way to program, so it should be widely
used.

Ответить

  Ответы Всего ответов: 7  

Номер ответа: 1
Автор ответа:
 ViktorZ



ICQ: 271202919 

Вопросов: 56
Ответов: 837
 Профиль | | #1 Добавлено: 27.06.05 20:24
So so. This day is very terrible day in my life... ;-))))))))))))))

Ответить

Номер ответа: 2
Автор ответа:
 Morpheus



Вопросов: 224
Ответов: 3777
 Web-сайт: xury.zx6.ru
 Профиль | | #2
Добавлено: 27.06.05 20:48
Почему?

Ответить

Номер ответа: 3
Автор ответа:
 ViktorZ



ICQ: 271202919 

Вопросов: 56
Ответов: 837
 Профиль | | #3 Добавлено: 27.06.05 22:06
Да это так прикол есть. Какой-то комик рассказывал как он этой фразой англицки на 5 сдал:-)))

Ответить

Номер ответа: 4
Автор ответа:
 Илья



ICQ: 251647191 

Вопросов: 37
Ответов: 167
 Web-сайт: www.lirc.narod.ru
 Профиль | | #4
Добавлено: 27.06.05 22:54
Gy! API forever! It's rather useful!

Ответить

Номер ответа: 5
Автор ответа:
 AASoft



Вопросов: 86
Ответов: 920
 Профиль | | #5 Добавлено: 28.06.05 06:00
Est` neskol`ko grammaticheskih oshibok...a tak vrode normal`no

Ответить

Номер ответа: 6
Автор ответа:
 freeloader



ICQ: 50804884 

Вопросов: 72
Ответов: 642
 Web-сайт: freeloader.folder-pro.net
 Профиль | | #6
Добавлено: 28.06.05 11:26
Даж читать обламывает :(
Руссишь форева! :)

Ответить

Номер ответа: 7
Автор ответа:
 Morpheus



Вопросов: 224
Ответов: 3777
 Web-сайт: xury.zx6.ru
 Профиль | | #7
Добавлено: 28.06.05 21:34
Да это я ж тренируюсь :)

Руссишь форева! :)

Лоооол :) пиши тогда "Русский навеки!"

Ответить

Страница: 1 |

Поиск по форуму



© Copyright 2002-2011 VBNet.RU | Пишите нам