Using an object pointer to call function.

Started by
4 comments, last by Lambo429 20 years ago
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
We all think that we are the best with computers but we all keep reffering to the same all-mighty all-knowing Guru, Google.
Advertisement
the error messages are probably important.

also see function-pointer.org
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.
?
We all think that we are the best with computers but we all keep reffering to the same all-mighty all-knowing Guru, Google.
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
We all think that we are the best with computers but we all keep reffering to the same all-mighty all-knowing Guru, Google.
This is the site that i got this from:
http://www.codeguru.com/Cpp/I-N/ieprogram/article.php/c4379/
We all think that we are the best with computers but we all keep reffering to the same all-mighty all-knowing Guru, Google.

This topic is closed to new replies.

Advertisement