digitalmars.D.learn - DMC + Win32Api: Error: undefined identifier 'SetDCBrushColor'
- Marcone (7/7) May 16 2021 Well, I program in D as a hobby for just over a year, and I like
- Adam D. Ruppe (2/3) May 16 2021 Did you include gdi32.lib on the command line?
- Marcone (3/6) May 16 2021 Yes, I did it. But not work. I get this error:
- Marcone (4/7) May 16 2021 I got this error:
- Jack (10/17) May 16 2021 if it's not one defined in one of the core.sys.windows module,
- Marcone (2/21) May 16 2021 Not DMD + D, but DMC + C++
- Marcone (1/1) May 17 2021 Why gdi32.lib in dmc is not a Valid Library File?
Well, I program in D as a hobby for just over a year, and I like to learn and explore this wonderful programming language. Now I found the DMC compiler that compiles C ++ code. So I decided to test it. Creating a program with a win32api graphical interface I run into this error: Error: undefined identifier 'SetDCBrushColor' How to solve this problem? Thanks.
May 16 2021
On Sunday, 16 May 2021 at 14:51:56 UTC, Marcone wrote:Error: undefined identifier 'SetDCBrushColor'Did you include gdi32.lib on the command line?
May 16 2021
On Sunday, 16 May 2021 at 15:43:51 UTC, Adam D. Ruppe wrote:On Sunday, 16 May 2021 at 14:51:56 UTC, Marcone wrote:Yes, I did it. But not work. I get this error: Error: undefined identifier 'SetDCBrushColor'Error: undefined identifier 'SetDCBrushColor'Did you include gdi32.lib on the command line?
May 16 2021
On Sunday, 16 May 2021 at 15:43:51 UTC, Adam D. Ruppe wrote:On Sunday, 16 May 2021 at 14:51:56 UTC, Marcone wrote:I got this error: C:\Users\Usuario\Arquivos\dm\lib\gdi32.lib Error 43: Not a Valid Library FileError: undefined identifier 'SetDCBrushColor'Did you include gdi32.lib on the command line?
May 16 2021
On Sunday, 16 May 2021 at 14:51:56 UTC, Marcone wrote:Well, I program in D as a hobby for just over a year, and I like to learn and explore this wonderful programming language. Now I found the DMC compiler that compiles C ++ code. So I decided to test it. Creating a program with a win32api graphical interface I run into this error: Error: undefined identifier 'SetDCBrushColor' How to solve this problem? Thanks.if it's not one defined in one of the core.sys.windows module, export it yourself: ```d pragma(lib, "Gdi32.lib"); COLORREF SetDCBrushColor( HDC hdc, COLORREF color ); ```
May 16 2021
On Sunday, 16 May 2021 at 18:06:40 UTC, Jack wrote:On Sunday, 16 May 2021 at 14:51:56 UTC, Marcone wrote:Not DMD + D, but DMC + C++Well, I program in D as a hobby for just over a year, and I like to learn and explore this wonderful programming language. Now I found the DMC compiler that compiles C ++ code. So I decided to test it. Creating a program with a win32api graphical interface I run into this error: Error: undefined identifier 'SetDCBrushColor' How to solve this problem? Thanks.if it's not one defined in one of the core.sys.windows module, export it yourself: ```d pragma(lib, "Gdi32.lib"); COLORREF SetDCBrushColor( HDC hdc, COLORREF color ); ```
May 16 2021