4 ms·
Wouldn’t it be nice if it threw an error, and didn’t just return NULL?
by ErikAugust 4y ago
Wouldn’t it be nice if it threw an error, and didn’t just return NULL?
- Akronymus 4y agoItd 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.
- hackmiester 4y agoVery old school windows apps like SecureCRT display semi-helpful messages for this. Better than a silent failure anyway.
- passivate 4y agoI 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?
- Akronymus 4y agoI 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.
- bsnal 4y agoIf you get NULL, you are supposed to call GetLastError to get information on what happened.
- taspeotis 4y agoHow would you like this C API to throw an error?