L
lashnjo
[Linker error] undefined reference to
`HTMLWindow::HTMLWindow(std::string const&, std::string const&,
HINSTANCE__*, bool)'
Thats the error, and the code is below.
The complier is Dev-C++ 4.9.9.2.
Thank you if you can help.
#include <windows.h>
#include "HTMLWindow.h"
int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE unused__, LPSTR
lpszCmdLine, int nCmdShow) {
HTMLWindow* html_window = new HTMLWindow (
"<html><head>"
"<title>MSHTMLTest</title>" // seems a little useless in this
context
"</head><body>"
"<h1>This is a test</h1>"
"I offer the following links:"
"<ul>"
"<li><a href='http://www.google.com'>www.google.com</a>"
"<li><a href='http://www.adp-gmbh.ch'>www.adp-gmbh.ch</a>"
"<li><a href='http://www.yahoo.com'>www.yahoo.com</a>"
"</ul>"
"</body></html>",
"MSHTMLTest", hInstance,
false // not an url
);
MSG msg;
while (GetMessage(&msg, 0, 0, 0)) {
TranslateMessage(&msg);
if (msg.message >= WM_KEYFIRST &&
msg.message <= WM_KEYLAST) {
::SendMessage(html_window->hwnd_, msg.message, msg.wParam,
msg.lParam);
}
DispatchMessage(&msg);
}
return 0;
}
`HTMLWindow::HTMLWindow(std::string const&, std::string const&,
HINSTANCE__*, bool)'
Thats the error, and the code is below.
The complier is Dev-C++ 4.9.9.2.
Thank you if you can help.
#include <windows.h>
#include "HTMLWindow.h"
int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE unused__, LPSTR
lpszCmdLine, int nCmdShow) {
HTMLWindow* html_window = new HTMLWindow (
"<html><head>"
"<title>MSHTMLTest</title>" // seems a little useless in this
context
"</head><body>"
"<h1>This is a test</h1>"
"I offer the following links:"
"<ul>"
"<li><a href='http://www.google.com'>www.google.com</a>"
"<li><a href='http://www.adp-gmbh.ch'>www.adp-gmbh.ch</a>"
"<li><a href='http://www.yahoo.com'>www.yahoo.com</a>"
"</ul>"
"</body></html>",
"MSHTMLTest", hInstance,
false // not an url
);
MSG msg;
while (GetMessage(&msg, 0, 0, 0)) {
TranslateMessage(&msg);
if (msg.message >= WM_KEYFIRST &&
msg.message <= WM_KEYLAST) {
::SendMessage(html_window->hwnd_, msg.message, msg.wParam,
msg.lParam);
}
DispatchMessage(&msg);
}
return 0;
}