Using an object pointer to call function.
Hello.
I am making an html editor and i am using a dll someone set up to do this. It calls ole stuff to create a web browser object in a window.This is my source:http://rafb.net/paste/results/WS460481.html
This is the dll that i use to do this:http://www.codeguru.com/code/legacy/ieprogram/cwebpage.zip
When i add this lie to wm create the compiler goes crazy and gives me a bunch of errors.
if ((*lpEmbedBrowserObject)(hwnd)) return(-1);
I''m completely stumped.
Lambo
I searched those error messages. All 67 of them and they all are about my existing code which compiles fine. It tells me stuff like expecting ";". But if i remove that one line of code everything is fine.
?
?
quote:Original post by Lambo429
Hello.
I am making an html editor and i am using a dll someone set up to do this. It calls ole stuff to create a web browser object in a window.This is my source:http://rafb.net/paste/results/WS460481.html
This is the dll that i use to do this:http://www.codeguru.com/code/legacy/ieprogram/cwebpage.zip
When i add this lie to wm create the compiler goes crazy and gives me a bunch of errors.
if ((*lpEmbedBrowserObject)(hwnd)) return(-1);
I''m completely stumped.
Lambo
just a guess, but try if (lpEmbedBrowserObject(hwnd)) return(-1);
The following lines dont work:
if ((*lpEmbedBrowserObject)(hwnd)) return(-1);
if (lpEmbedBrowserObject(hwnd)) return(-1);
if (*lpEmbedBrowserObject(hwnd)) return(-1);
The last one gives me a 2100 error illegal indirection
if ((*lpEmbedBrowserObject)(hwnd)) return(-1);
if (lpEmbedBrowserObject(hwnd)) return(-1);
if (*lpEmbedBrowserObject(hwnd)) return(-1);
The last one gives me a 2100 error illegal indirection
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement