Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add section to DllCall post #17

Merged
merged 4 commits into from
Feb 11, 2012
Merged

Add section to DllCall post #17

merged 4 commits into from
Feb 11, 2012

Conversation

Uberi
Copy link
Contributor

@Uberi Uberi commented Feb 10, 2012

When DLLs export variables directly, there's what seems to be an obscure way to read and modify these values: GetProcAddress(). Lexikos' answer gave me this technique, and I think it would be best to share this knowledge in a more widespread way.

@Uberi
Copy link
Contributor Author

Uberi commented Feb 10, 2012

How is this? Is it readable enough, or should I separate the ternary operations into separate lines?

@maul-esel
Copy link
Owner

No, it's fine. One more thing might be: 64bit, especially the LoadLibrary / GetProcAddress return types (needs to be UInt for AHK classic and Ptr for AHK_L; not sure about UPtr).

@Uberi
Copy link
Contributor Author

Uberi commented Feb 10, 2012

I separated the type selection out since it did make it a bit easier to read.

@maul-esel
Copy link
Owner

Besides the above comment, are you ready for merge?

@Uberi
Copy link
Contributor Author

Uberi commented Feb 11, 2012

Nice catch. Yes, I'm ready for merge.

maul-esel pushed a commit that referenced this pull request Feb 11, 2012
Add section to DllCall post
@maul-esel maul-esel merged commit f3673d7 into maul-esel:gh-pages Feb 11, 2012
@maul-esel
Copy link
Owner

Thanks for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants