Comments (5)
Edit: Passing Null does not work. Crashes app.
from windevlib.
Nothing
is the proper thing to pass for an optional ByVal interface you're not using.
ret = UrlDownloadToFile(Nothing, Url, filePath, 0&, Nothing)
Null is misleading; it's a special Variant thing, doesn't work with anything else.
vbNullPtr is only for UDTs. If you find an argument that's now a UDT where before it was "As Any" and you were passing ByVal 0, you'd now pass vbNullPtr (No ByVal, but that's likely to change before tB 1.0 to more clearly indicate we mean to pass a null pointer.)
I've asked Wayne to give us a single consistent equivalent of C/C++ NULL, so hopefully less confusing in the future.
from windevlib.
That makes sense, now that you point it out. I don't know why I didn't think of it. Thanks Jon!
from windevlib.
It might be helpful to add a note for novices like me in your (very excellent BTW!) Readme that:
"You should pass Nothing
to an optional argument ByVal [Interface]
that you are not using".
from windevlib.
I'll add that and try to make the section clearer, thanks for the feedback. 👍
from windevlib.
Related Issues (20)
- OPENFILENAME[AW] UDTs incorrect HOT 1
- ShowWindow function triggering error HOT 1
- GdipFillClosedCurve2 and GdipFillClosedCurve2I declarations HOT 1
- GdipGetLineColors has different call signatures for 32-bit versus 64-bit HOT 4
- Incorrect argument for GdipDrawImagePointsRect and GdipDrawImagePointsRectI API functions HOT 1
- Non-aliased version of RtlMoveMemory? HOT 2
- CreateBitmap Function in "gdi32" Library HOT 3
- WIC Proxy Functions? HOT 5
- DeclareWide version of GetWindowTextW HOT 18
- 4 more WIC proxy functions HOT 2
- CryptBinaryToString should be DeclareWide? HOT 6
- A few more potential anomalies HOT 2
- Broken A/W/Alias pattern HOT 2
- More A/W/DeclareWide Alias pattern anomalies HOT 3
- URLDownloadToCacheFileW and URLDownloadToFileW HOT 4
- GetAsyncKeyState and GetKeyState Argument Type HOT 3
- Duplicate definition: WOW64_LDT_ENTRY HOT 1
- SHUpdateImageA and aliased version of SHUpdateImage should have String argument?
- SHCreateItemFromParsingName overload? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windevlib.