| Thread overview | ||||||||
|---|---|---|---|---|---|---|---|---|
|
January 08, 2016 kernel32 missing symbol definitions? | ||||
|---|---|---|---|---|
| ||||
Why is kernel32 missing symbols? e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/ | ||||
January 08, 2016 Re: kernel32 missing symbol definitions? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Yamiez | 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.
| |||
January 08, 2016 Re: kernel32 missing symbol definitions? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Rikki Cattermole | On 08/01/16 1:30 PM, Rikki Cattermole wrote:
> 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.
grah, s/64/64 bit/
| |||
January 08, 2016 Re: kernel32 missing symbol definitions? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Rikki Cattermole | On Friday, 8 January 2016 at 00:30:44 UTC, Rikki Cattermole wrote:
> 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.
Yea nope wont be able to build for 64 bit :/
| |||
January 08, 2016 Re: kernel32 missing symbol definitions? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Rikki Cattermole | On Friday, 8 January 2016 at 00:31:25 UTC, Rikki Cattermole wrote:
> On 08/01/16 1:30 PM, Rikki Cattermole wrote:
>> 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.
>
> grah, s/64/64 bit/
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?
| |||
January 08, 2016 Re: kernel32 missing symbol definitions? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Yamiez | 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.
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply