Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Exporting DirectX types to DLL

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 GuardianX   Members   

1586
Like
0Likes
Like

Posted 29 June 2012 - 12:25 PM

Hello.

I have a really simple question, but so far can't find an answer to it. I'm using DX in unmanaged C++.
So, I have a class GameApp in namespace Game. I want to export GameApp class into dll so I can use it in my further applications (also I want to inherit it in my app which will use this dll). So far I exported public methods via __declspec(dllexport), but some things are seem can't be exported in dll this way. For example some STL types and DX pointers can't be exported.

Can someone point out direction to solve my problem? Thanks.

#2 kubera   Members   

1570
Like
1Likes
Like

Posted 30 June 2012 - 01:41 AM

Exporting classes in DLL would be a problem sometimes.
Maybe the better way would be COM intefaces.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.