darrenc182 Posted March 2, 2010 Share Posted March 2, 2010 Does anyone know how to integrate Leadwerks with MFC (Microsoft Foundation Class) so that Leadwerks rendering and data structures can work with MFC? Quote Intel 2nd Generation i5 Quad Core Running at 3.30GHz. 8GB RAM, GeForce GTX 460 1024MB DDR5. Link to comment Share on other sites More sharing options...
Rick Posted March 2, 2010 Share Posted March 2, 2010 I don't know how, but I can't imagine why anyone would want to. Do you know and enjoy using MFC? Maybe there is an alternative that we can help you with? Did you try creating an MFC project and include LE in it? If so what kind of errors you are getting? Quote Link to comment Share on other sites More sharing options...
darrenc182 Posted March 2, 2010 Author Share Posted March 2, 2010 Hey Rick. I don't know of anyone that enjoys using MFC, but I do know how to use it. I have used it a few times to write tools, which is what I want to do with this project. I know how to do it with OpenGL, but I want to write a ragdoll creator/editor for leadwerks. I think it would be better to use Leadwerks and MFC directly rather then using Leadwerks, OpenGL and MFC because the former sounds less bloated and more efficient. I haven't tried it yet with Leadwerks and MFC. I just wanted to see if anyone had any information or if it has been done before. Quote Intel 2nd Generation i5 Quad Core Running at 3.30GHz. 8GB RAM, GeForce GTX 460 1024MB DDR5. Link to comment Share on other sites More sharing options...
Rick Posted March 3, 2010 Share Posted March 3, 2010 Not to my knowledge. I know others have done it with .NET or the Win 32 API, but not MFC. Another GUI library might be able to be easier though. Maybe something like wxWidgets or Qt. Quote Link to comment Share on other sites More sharing options...
Josh Posted March 3, 2010 Share Posted March 3, 2010 If you can create an OpenGL viewport, it will work. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
darrenc182 Posted March 3, 2010 Author Share Posted March 3, 2010 If you can create an OpenGL viewport, it will work. So are you suggesting that I need to use OpenGL, Leadwerks and MFC together and I can't just use Leadwerks and MFC? Quote Intel 2nd Generation i5 Quad Core Running at 3.30GHz. 8GB RAM, GeForce GTX 460 1024MB DDR5. Link to comment Share on other sites More sharing options...
Josh Posted March 3, 2010 Share Posted March 3, 2010 You create an OpenGL viewport, and then Leadwerks will render to that using a custom buffer. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
VeTaL Posted March 6, 2010 Share Posted March 6, 2010 I'm also re-writing some Editors, so i found: http://forum.leadwerks.com/viewtopic.php?f=1&t=2386&sid=d34f26c4bd59a140630b157a57cc4427 http://forum.leadwerks.com/viewtopic.php?f=32&t=1943 http://forum.leadwerks.com/download/file.php?id=752 - this works for me Hope this would help Quote Working on LeaFAQ Link to comment Share on other sites More sharing options...
darrenc182 Posted March 15, 2010 Author Share Posted March 15, 2010 I'm also re-writing some Editors, so i found: http://forum.leadwerks.com/viewtopic.php?f=1&t=2386&sid=d34f26c4bd59a140630b157a57cc4427 http://forum.leadwerks.com/viewtopic.php?f=32&t=1943 http://forum.leadwerks.com/download/file.php?id=752 - this works for me Hope this would help I finally got some time to work on this. I was able to get it to work using the references you gave VeTaL, thanks. I am getting this stupid unhandled exception when the render context is set to NULL before a call to wglMakeCurrent. I do not know why it happens because it will work without any problems sometimes. It only seems to crash after running another app that was using OpenGL before. I don't know why this is happening yet, but I think it's because the MFC app cannot acquire an available render context. That doesn't make much such because I check to see if the render context was created successfully. Anyway I will continue to try. Thanks for all the help and input. Quote Intel 2nd Generation i5 Quad Core Running at 3.30GHz. 8GB RAM, GeForce GTX 460 1024MB DDR5. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.