Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / how to make object from dll?

Author
Message
nruser
11
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 6th Jul 2011 02:00
i am having a hard time making a simple cube object from dll, can someone help?

main.cpp


res.rc
IanM
Retired Moderator
17
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 6th Jul 2011 15:16 Edited at: 6th Jul 2011 15:16
You are using 'Model' in your GetProcAddress, but you haven't set its value anywhere except when initialising it to zero.

Add this to the ReceiveCoreDataPtr function prior to the call to GetProcAddress:


nruser
11
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 10th Jul 2011 00:31
thanks that helped

Login to post a reply

Server time is: 2019-10-18 23:07:49
Your offset time is: 2019-10-18 23:07:49