Archived

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

Lambo429

Using an object pointer to call function.

Recommended Posts

Lambo429    122
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
Lambo429    122
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
Tim Cowley    340
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
Lambo429    122
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