digitalmars.D.learn - kernel32 missing symbol definitions?
- Yamiez (2/2) Jan 07 2016 Why is kernel32 missing symbols?
- Rikki Cattermole (3/5) Jan 07 2016 If you can build for 64 do so.
- Rikki Cattermole (2/8) Jan 07 2016 grah, s/64/64 bit/
- Yamiez (3/13) Jan 07 2016 Possible to just write a C program that wraps the actual kernel
- Yamiez (2/9) Jan 07 2016 Yea nope wont be able to build for 64 bit :/
- Adam D. Ruppe (16/18) Jan 07 2016 The kernel32 lib has them, the headers don't.
Why is kernel32 missing symbols? e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/
Jan 07 2016
On 08/01/16 1:27 PM, Yamiez wrote:Why is kernel32 missing symbols? e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/If you can build for 64 do so. That will fix it until somebody or you solve it from the import libs.
Jan 07 2016
On 08/01/16 1:30 PM, Rikki Cattermole wrote:On 08/01/16 1:27 PM, Yamiez wrote:grah, s/64/64 bit/Why is kernel32 missing symbols? e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/If you can build for 64 do so. That will fix it until somebody or you solve it from the import libs.
Jan 07 2016
On Friday, 8 January 2016 at 00:31:25 UTC, Rikki Cattermole wrote:On 08/01/16 1:30 PM, Rikki Cattermole wrote:Possible to just write a C program that wraps the actual kernel functions that I need and then just import those from the C lib?On 08/01/16 1:27 PM, Yamiez wrote:grah, s/64/64 bit/Why is kernel32 missing symbols? e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/If you can build for 64 do so. That will fix it until somebody or you solve it from the import libs.
Jan 07 2016
On Friday, 8 January 2016 at 00:30:44 UTC, Rikki Cattermole wrote:On 08/01/16 1:27 PM, Yamiez wrote:Yea nope wont be able to build for 64 bit :/Why is kernel32 missing symbols? e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/If you can build for 64 do so. That will fix it until somebody or you solve it from the import libs.
Jan 07 2016
On Friday, 8 January 2016 at 00:27:51 UTC, Yamiez wrote:Why is kernel32 missing symbols? e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/The kernel32 lib has them, the headers don't. You can define the missing functions yourselves and call them: --- import core.sys.windows.windows; extern(Windows) HANDLE CreateToolhelp32Snapshot( DWORD dwFlags, DWORD th32ProcessID ); void main() { CreateToolhelp32Snapshot(0, 0); } --- CreateProcess is there but might not be aliased for ascii vs unicode. Try CreateProcessA or CreateProcessW in your code.
Jan 07 2016