Re: Windows Resources

2015-09-06 Thread Kagamin via Digitalmars-d-learn
On Sunday, 6 September 2015 at 15:42:52 UTC, Prudence wrote: So how does one actually include resources such as menu's (rc files and all that) in a D project? Or am I stuff creating all that stuff programmatically? Just like in a C project: write, compile and link them.

Re: Windows Resources

2015-09-06 Thread Prudence via Digitalmars-d-learn
On Sunday, 6 September 2015 at 10:28:59 UTC, Kagamin wrote: On Sunday, 6 September 2015 at 02:37:21 UTC, Prudence wrote: Obviously the issue is that I'm not using any resources yet it is giving me such an error. You do. See docs for lpszMenuName field. GUI projects generated by Visual Studio

Re: Windows Resources

2015-09-06 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 6 September 2015 at 10:28:59 UTC, Kagamin wrote: You do. See docs for lpszMenuName field. I can't believe I missed that!

Re: Windows Resources

2015-09-06 Thread Kagamin via Digitalmars-d-learn
On Sunday, 6 September 2015 at 02:37:21 UTC, Prudence wrote: Obviously the issue is that I'm not using any resources yet it is giving me such an error. You do. See docs for lpszMenuName field. GUI projects generated by Visual Studio include resource generation, that's why it works for them.

Re: Windows Resources

2015-09-05 Thread Rikki Cattermole via Digitalmars-d-learn
This may interest you: https://github.com/Devisualization/window/blob/master/platforms/win32/devisualization/window/window.d

Re: Windows Resources

2015-09-05 Thread Prudence via Digitalmars-d-learn
On Sunday, 6 September 2015 at 00:29:13 UTC, Adam D. Ruppe wrote: On Saturday, 5 September 2015 at 19:06:15 UTC, Prudence wrote: That's about as far as I can get. (what resource data? Where I do put it? How, who, when?) Resource data in Windows is data compiled into your exe. It is stuff like

Re: Windows Resources

2015-09-05 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 5 September 2015 at 19:06:15 UTC, Prudence wrote: That's about as far as I can get. (what resource data? Where I do put it? How, who, when?) Resource data in Windows is data compiled into your exe. It is stuff like icons, menus, or other arbitrary stuff you attach. However, the

Re: Windows Resources

2015-09-05 Thread BBasile via Digitalmars-d-learn
On Saturday, 5 September 2015 at 19:06:15 UTC, Prudence wrote: [...] Check this file https://github.com/D-Programming-Language/dmd/blob/master/samples/winsamp.d ,it's distributed with your D setup.

Windows Resources

2015-09-05 Thread Prudence via Digitalmars-d-learn
I'm trying to create a win32 window. I coped the code pretty much directly from msdn: MSG msg; BOOL bRet; WNDCLASS wc; // Register the window class for the main window. if (!hPrevInstance) {