Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wouldn’t it be nice if it threw an error, and didn’t just return NULL?


If you get NULL, you are supposed to call GetLastError to get information on what happened.


How would you like this C API to throw an error?


Itd be nice if the proviser were to show a dialog that a copy was requested but couldnt be provided. Altough, dunno what a good message for that would be.


Very old school windows apps like SecureCRT display semi-helpful messages for this. Better than a silent failure anyway.


I don't think low level system APIs when called from an App should be messing with UI components. Can you explain what is better about it?


I don't think it is the system level API, but rather the program receiving a notification that the copy paste didn't succeed where the program can then display an error/warning. At least from my understanding.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: