Why do you need a copy? Could you just cast the name to char*? 2017年7月5日 下午5:45,"nmago" <[email protected]>寫道:
Thank you, Honza Bambas and smaug! Found solution: char* cname = new char[N]; memcpy(cname, &name, N); nsACString strName(cname, N, 0); _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

