Converting a string[] to char**
David Zhang via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon May 8 21:22:34 PDT 2017
Hi,
I'm playing around with Vulkan, and part of its initialization
code calls for an array of strings as char**. I've tried casting
directly (cast(char**)) and breaking it down into an array of
char*s (char*[]) before getting the pointer to its first element
(&a[0]). It provides the correct type, but Vulkan rejects it. Is
there a standard way of doing this?
I'm trying to set the ppEnabledExtensionNames member of
VkInstanceCreateInfo.
Regards,
David
More information about the Digitalmars-d-learn
mailing list