Re: string vs. w/char*

2011-03-04 Thread Kagamin
Kagamin Wrote: > Tyro[a.c.edwards] Wrote: > > > class TopWinClass: WinClass > > { > > this(ushort resId, HINSTANCE hInst, WNDPROC wndProc) > > { > > super(resId, hInst, wndProc); > > SetResIcons(resId); > > wc.lpszMenuName = MAKEINTRESOURCEA(resId); //

Re: string vs. w/char*

2011-03-04 Thread Kagamin
Tyro[a.c.edwards] Wrote: > class TopWinClass: WinClass > { > this(ushort resId, HINSTANCE hInst, WNDPROC wndProc) > { > super(resId, hInst, wndProc); > SetResIcons(resId); > wc.lpszMenuName = MAKEINTRESOURCEA(resId); // [PROBLEM] > } > }

Re: string vs. w/char*

2011-03-03 Thread Tyro[a.c.edwards]
On 3/1/2011 8:25 PM, Tyro[a.c.edwards] wrote: On 3/1/2011 7:18 PM, Bekenn wrote: On 3/1/2011 12:25 AM, Tyro[a.c.edwards] wrote: Nevertheless, execution haults at the very next line following/catch and Create() never returns. CreateWindow sends a few messages to your window proc; anything inte

Re: string vs. w/char*

2011-03-01 Thread Tyro[a.c.edwards]
On 3/1/2011 7:18 PM, Bekenn wrote: On 3/1/2011 12:25 AM, Tyro[a.c.edwards] wrote: Nevertheless, execution haults at the very next line following/catch and Create() never returns. CreateWindow sends a few messages to your window proc; anything interesting happening there? Not sure how to chec

Re: string vs. w/char*

2011-03-01 Thread Bekenn
On 3/1/2011 12:25 AM, Tyro[a.c.edwards] wrote: Nevertheless, execution haults at the very next line following/catch and Create() never returns. CreateWindow sends a few messages to your window proc; anything interesting happening there?

Re: string vs. w/char*

2011-03-01 Thread Tyro[a.c.edwards]
== Quote from Denis Koroskin (2kor...@gmail.com)'s article > On Tue, 01 Mar 2011 02:08:48 +0300, Tyro[a.c.edwards] > wrote: > > == Quote from Denis Koroskin (2kor...@gmail.com)'s article > >> On Mon, 28 Feb 2011 19:35:47 +0300, Tyro[a.c.edwards] > > > >> wrote: > >> > On 2/28/2011 11:08 PM, J Cha

Re: string vs. w/char*

2011-02-28 Thread Denis Koroskin
On Tue, 01 Mar 2011 02:08:48 +0300, Tyro[a.c.edwards] wrote: == Quote from Denis Koroskin (2kor...@gmail.com)'s article On Mon, 28 Feb 2011 19:35:47 +0300, Tyro[a.c.edwards] wrote: > On 2/28/2011 11:08 PM, J Chapman wrote: >> == Quote from Tyro[a.c.edwards] (nos...@home.com)'s article >>>

Re: string vs. w/char*

2011-02-28 Thread Tyro[a.c.edwards]
== Quote from Denis Koroskin (2kor...@gmail.com)'s article > On Mon, 28 Feb 2011 19:35:47 +0300, Tyro[a.c.edwards] > wrote: > > On 2/28/2011 11:08 PM, J Chapman wrote: > >> == Quote from Tyro[a.c.edwards] (nos...@home.com)'s article > >>> Both implementations results in error code 1812 being retur

Re: string vs. w/char*

2011-02-28 Thread Denis Koroskin
On Mon, 28 Feb 2011 19:35:47 +0300, Tyro[a.c.edwards] wrote: On 2/28/2011 11:08 PM, J Chapman wrote: == Quote from Tyro[a.c.edwards] (nos...@home.com)'s article Both implementations results in error code 1812 being returned from GetLastError. explanation of the code reads: ERROR_RESO

Re: string vs. w/char*

2011-02-28 Thread Tyro[a.c.edwards]
On 2/28/2011 11:08 PM, J Chapman wrote: == Quote from Tyro[a.c.edwards] (nos...@home.com)'s article Both implementations results in error code 1812 being returned from GetLastError. explanation of the code reads: ERROR_RESOURCE_DATA_NOT_FOUND 1812 (0x714) The specified image

Re: string vs. w/char*

2011-02-28 Thread Andrej Mitrovic
I've successfully used resource files with DFL. Maybe this will help: http://www.dsource.org/forums/viewtopic.php?t=5591&sid=bf2d804f1d5a3f9efccbf29ebb6cf723 You'll have to dig into the DFL library sources to find out exactly how it loads a resource file though.

Re: string vs. w/char*

2011-02-28 Thread J Chapman
== Quote from Tyro[a.c.edwards] (nos...@home.com)'s article > Both implementations results in error code 1812 being returned from > GetLastError. explanation of the code reads: > ERROR_RESOURCE_DATA_NOT_FOUND > 1812 (0x714) > The specified image file did not contain a resource sec

Re: string vs. w/char*

2011-02-28 Thread Steven Schveighoffer
On Mon, 28 Feb 2011 08:30:02 -0500, Tyro[a.c.edwards] wrote: On 2/28/2011 9:58 PM, Steven Schveighoffer wrote: On Mon, 28 Feb 2011 07:34:39 -0500, Tyro[a.c.edwards] wrote: The bellow code attempts to use LoadStringA() to initialize _buf. However, regardless of what form _buf takes, the bo

Re: string vs. w/char*

2011-02-28 Thread Tyro[a.c.edwards]
On 2/28/2011 9:58 PM, Steven Schveighoffer wrote: On Mon, 28 Feb 2011 07:34:39 -0500, Tyro[a.c.edwards] wrote: The bellow code attempts to use LoadStringA() to initialize _buf. However, regardless of what form _buf takes, the body of the if statement is always executed. I've attempted to use e

Re: string vs. w/char*

2011-02-28 Thread Steven Schveighoffer
On Mon, 28 Feb 2011 07:34:39 -0500, Tyro[a.c.edwards] wrote: The bellow code attempts to use LoadStringA() to initialize _buf. However, regardless of what form _buf takes, the body of the if statement is always executed. I've attempted to use every type of string available in D to includ

string vs. w/char*

2011-02-28 Thread Tyro[a.c.edwards]
The bellow code attempts to use LoadStringA() to initialize _buf. However, regardless of what form _buf takes, the body of the if statement is always executed. I've attempted to use every type of string available in D to include char* _buf[MAX_RESSTRING+1] and setting _buf[MAX_RESSTRING] = '\0'