Archived

This topic is now archived and is closed to further replies.

Using an object pointer to call function.

This topic is 5012 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.
?

Share this post


Link to post
Share on other sites
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);

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites