anon_user anon_user - 1 year ago 119
C Question

Visual Studio: Identifider "MSFDTEDIT_CLASS" is undefined

I'm new to Visual Studio. I want to do Win32 programming in C and I need to have rich text edit there. I've tried to link msftedit.dll, but it doesn't seem to do it.
I have this:

#pragma comment(lib,"msftedit.dll")

But it doesn't do anything.

Also I tried to have
in project
properties > linker > input > additional dependencies, but it gave me an error.

Answer Source

Make sure to include the proper header file. In this case, include RichEdit.h. In addition, use LoadLibrary to dynamically load the module that implements the control (msftedit.dll). If you don't, the call to CreateWindowEx will fail.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download