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
16
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
21
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
16
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: 2024-03-29 01:32:37
Your offset time is: 2024-03-29 01:32:37