Given below code(Win32 SDK):
int /*LRESULT*/ wndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
{
switch(msg)
{
case WM_LBUTTONDOWN:
{
Sorry.Under dmd2.031 ,windows XP
Sam Hu wrote:
Given below code(Win32 SDK):
int /*LRESULT*/ wndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
{
switch(msg)
{
case WM_LBUTTONDOWN:
{
wchar* szFileName=cast(wchar*)(new wchar[1024]);// ***questioned line
HINSTANCE hInstance=GetModuleHandleW(null);
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Max Samukha wrote:
Sam Hu wrote:
Given below code(Win32 SDK):
int /*LRESULT*/ wndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
{
switch(msg)
{
case WM_LBUTTONDOWN:
{
wchar* szFileName=cast(wchar*)(new wchar[1024]);//
Hi both:
Thank you so much for your help!
ps:just found other than write :
wchar* szFileName=cast(wchar[])(new wchar[1024);
It works also if I write:
wchar[1024] szFileName;
I am annoying everytime when pass D strings to/from OS API...
Regards,
Sam