How to rebuild this DLL?
http://www.dev-archive.com/Cpp/I-N/ieprogram/article.php/c4379/
I want to use this in my program.
However I don't want the webbrowser part to be the full size of my window. There is a tiny little change I need to make in the DLL to change the position.
webBrowser2->lpVtbl->put_Left(webBrowser2, 10);
webBrowser2->lpVtbl->put_Top(webBrowser2, 10);
webBrowser2->lpVtbl->put_Width(webBrowser2, 558);
webBrowser2->lpVtbl->put_Height(webBrowser2, 330);
This is the positions I need, but really they should be taken as arguments so you don't have to edit the DLL for this.
But when I try to compile it I get tons of errors.
When I try to compile the code non-DLL I get even more errors.
:(
Any ideas?
# 2 Re: How to rebuild this DLL?
Yea I'm getting these errors though. :-S
-- Build started: Project: DLL, Configuration: Debug Win32 --
Linking...
Creating library .\Debug/cwebpage.lib and object .\Debug/cwebpage.exp
dll.obj : error LNK2019: unresolved external symbol __imp__GetClientRect@8 referenced in function _Site_GetWindowContext@24
dll.obj : error LNK2019: unresolved external symbol __imp__GetWindowLongA@8 referenced in function _UnEmbedBrowserObject@4
dll.obj : error LNK2019: unresolved external symbol __imp__SafeArrayDestroy@4 referenced in function _DisplayHTMLStr@8
dll.obj : error LNK2019: unresolved external symbol __imp__SafeArrayAccessData@8 referenced in function _DisplayHTMLStr@8
dll.obj : error LNK2019: unresolved external symbol __imp__SafeArrayCreate@12 referenced in function _DisplayHTMLStr@8
dll.obj : error LNK2019: unresolved external symbol __imp__VariantClear@4 referenced in function _DisplayHTMLStr@8
dll.obj : error LNK2019: unresolved external symbol __imp__SysAllocString@4 referenced in function _DisplayHTMLStr@8
dll.obj : error LNK2019: unresolved external symbol __imp__VariantInit@4 referenced in function _DisplayHTMLStr@8
dll.obj : error LNK2019: unresolved external symbol __imp__OleSetContainedObject@8 referenced in function _EmbedBrowserObject@4
dll.obj : error LNK2019: unresolved external symbol __imp__SetWindowLongA@12 referenced in function _EmbedBrowserObject@4
dll.obj : error LNK2019: unresolved external symbol __imp__OleCreate@28 referenced in function _EmbedBrowserObject@4
dll.obj : error LNK2019: unresolved external symbol __imp__OleUninitialize@0 referenced in function _DllMain@12
dll.obj : error LNK2019: unresolved external symbol __imp__OleInitialize@4 referenced in function _DllMain@12
Debug/cwebpage.dll : fatal error LNK1120: 13 unresolved externals
Build log was saved at "file://c:\Documents and Settings\user\Desktop\cwebpage\dll\Debug\BuildLog.htm"
DLL - 14 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Any clue what's wrong?