Skip to main content
GameDev.net gamedev.net
🔒 Locked

Using an object pointer to call function.

Started by Lambo429 Mar 29, 2004 at 5:27 AM 4 replies 500+ views
Original Post
Lambo429
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
We all think that we are the best with computers but we all keep reffering to the same all-mighty all-knowing Guru, Google.
Qw3r7yU10p!
Qw3r7yU10p!
the error messages are probably important.

also see function-pointer.org
Lambo429
Lambo429
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.
Tim Cowley
Tim Cowley
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);

Lambo429
Lambo429
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.
Lambo429
Lambo429
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.