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

LPCWSTR and other strings are translated to ints #296

Open
Temtaime opened this issue Aug 22, 2021 · 1 comment
Open

LPCWSTR and other strings are translated to ints #296

Temtaime opened this issue Aug 22, 2021 · 1 comment

Comments

@Temtaime
Copy link

#include "windows.h"

struct S
{
	LPCWSTR p;
};

Produces

extern (C)
{
	struct S
	{
		const(ushort)* p;
	}
}

Can we have a wchar ?

@atilaneves
Copy link
Owner

I have to check what libclang thinks this is, which means checking on Windows, which... ugh. It might just be that it treats it the same as uint16_t, in which case there's no way to know it's supposed to be a character type in D unless it's special cased somehow.

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

No branches or pull requests

2 participants