# Tried adding a new CWindowWnd class to the demo, 124 errors on compile

**URL:** <https://devforum.zoom.us/t/tried-adding-a-new-cwindowwnd-class-to-the-demo-124-errors-on-compile/46514>\
**Category:** Windows\
**Created:** [March 24, 2021, 8:52pm UTC](https://devforum.zoom.us/t/tried-adding-a-new-cwindowwnd-class-to-the-demo-124-errors-on-compile/46514 "2021-03-24T20:52:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BloodWiing](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bloodwiing/32/25000_2.png) [@BloodWiing](https://devforum.zoom.us/u/BloodWiing)\
**Post date:** [March 24, 2021, 8:52pm UTC](https://devforum.zoom.us/t/tried-adding-a-new-cwindowwnd-class-to-the-demo-124-errors-on-compile/46514/1 "2021-03-24T20:52:47Z")

</div>

**Description**  
I wanted to play around with the demo and see how it all works, thought to add a custom window. I mostly just copied and pasted the `sdk_init_auth_ui`, but removed the “groups” and made it just one class. Visually, I don’t see what’s wrong, but I am lacking a bit in C++ experience compared to other langs so it caught me off-guard when syntax errors started pouring from a different file entirely.

**Which Windows Client SDK version?**  
v5.2.42037.1112

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:  
• Here’s the code that fails. It doesn’t compile.

> **[header - Pastebin.com](https://pastebin.com/594u9Mvc)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

> **[source - Pastebin.com](https://pastebin.com/HidSsV61)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

**Screenshots**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/4/d441349311b58a12fb6c3b922a545af368da16c1.png)

**Device (please complete the following information):**

- Device: Custom-built (CPU Ryzen 5 1500X)
- OS: Windows 10 Pro 19041.867

**Additional context**  
Keep in mind, I’m not begging someone to work for me, I just need help, something to open my eyes about the mistakes I’m making. As I mentioned, it’s a learning process.  
Knew to this whole community here so I don’t know what to expect, but I would be grateful for kindness and time.

Note: I also have no clue why the errors dropped a bit.

---

<div class="post-metadata">

**Author:** ![BloodWiing](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bloodwiing/32/25000_2.png) [@BloodWiing](https://devforum.zoom.us/u/BloodWiing)\
**Post date:** [March 25, 2021, 12:15pm UTC](https://devforum.zoom.us/t/tried-adding-a-new-cwindowwnd-class-to-the-demo-124-errors-on-compile/46514/2 "2021-03-25T12:15:52Z")

</div>

Seems like it was an import issue.  
Commenting out this line fixed it:

```cpp
#include "sdk_util.h"

```

Tip for others that run into this same issue:

```cpp
#include <windows.h>

```

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [March 26, 2021, 12:58am UTC](https://devforum.zoom.us/t/tried-adding-a-new-cwindowwnd-class-to-the-demo-124-errors-on-compile/46514/3 "2021-03-26T00:58:55Z")

</div>

Hey @BloodWiing,

Thanks for using the dev forum!

I would be happy to help you 🙂. The Zoom SDK relies on the Windows API, the errors you received are because the classes and functions used in “sdk\_util.h” reference Windows API classes and functions. That is why including \<windows.h\> will silence these warnings. You shouldnt have to comment out "#include “sdk\_util.h” though.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![BloodWiing](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bloodwiing/32/25000_2.png) [@BloodWiing](https://devforum.zoom.us/u/BloodWiing)\
**Post date:** [March 26, 2021, 11:21am UTC](https://devforum.zoom.us/t/tried-adding-a-new-cwindowwnd-class-to-the-demo-124-errors-on-compile/46514/4 "2021-03-26T11:21:41Z")

</div>

Hi @Michael_Condon , and thank you for welcoming me.

I was able to figure out that a lib was missing and edited my previous reply on the correct solution, didn’t want to send a new reply resulting in this thread being pushed up when it doesn’t need to be.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [March 29, 2021, 8:24pm UTC](https://devforum.zoom.us/t/tried-adding-a-new-cwindowwnd-class-to-the-demo-124-errors-on-compile/46514/5 "2021-03-29T20:24:01Z")

</div>

Hey @BloodWiing,

Gotcha, just wanted to make sure 🙂 Please let us know if you run into anything else.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 29, 2021, 6:24am UTC](https://devforum.zoom.us/t/tried-adding-a-new-cwindowwnd-class-to-the-demo-124-errors-on-compile/46514/6 "2021-04-29T06:24:44Z")

</div>

Closed on April 29, 2021, 6:24am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
