Rick Posted May 10, 2010 Share Posted May 10, 2010 I'm going to start a small experiment to create a small editor that has a game structure to it and uses C# as the scripting languages. Was there an example out there that shows how to get LE's window into a picture box defined in C#? Quote Link to comment Share on other sites More sharing options...
ZioRed Posted May 10, 2010 Share Posted May 10, 2010 On SVN there is a project "Leadwerks Forms Tests" in which a LETKControl is used to render. Quote ?? FRANCESCO CROCETTI ?? http://skaredcreations.com Link to comment Share on other sites More sharing options...
Rick Posted May 10, 2010 Author Share Posted May 10, 2010 Thanks Zio, I'll check that out. Quote Link to comment Share on other sites More sharing options...
Rick Posted May 10, 2010 Author Share Posted May 10, 2010 How can I get that project off there? I don't see any projects on there. Quote Link to comment Share on other sites More sharing options...
ZioRed Posted May 10, 2010 Share Posted May 10, 2010 You must download from the repository with some SVN tools like TortoiseSVN, then go to Source section of that web space. You should be able to update from SVN even if anonymous user. Quote ?? FRANCESCO CROCETTI ?? http://skaredcreations.com Link to comment Share on other sites More sharing options...
Rick Posted May 10, 2010 Author Share Posted May 10, 2010 I can't figure out how the control works. Do I need anything special? All I see is the dll. Isn't there supposed to be like an ocx or something? When I try to run the Leadwerks_Forms_Test I get an error: Visual Studio cannot start debugging because the debug target '...' is missing. Please build the project and retry, or set the outputpath and assembly name properties appropriately to point to the correct location for the target assembly. The program compiles already so not sure what's up. Quote Link to comment Share on other sites More sharing options...
Rick Posted May 11, 2010 Author Share Posted May 11, 2010 Bah, so I can get it to start but it just bombs right away with a 'Unable to load DLL Engine.dll' That file is in my debug dir so not sure what's up there. Quote Link to comment Share on other sites More sharing options...
TylerH Posted May 11, 2010 Share Posted May 11, 2010 Is your Working Directory pointing to a folder containing the DLLs? Quote nVidia 530M Intel Core i7 - 2.3Ghz 8GB DDR3 RAM Windows 7 Ultimate (64x)----- Visual Studio 2010 Ultimate Google Chrome Creative Suite 5 FL Studio 10 Office 15 ----- Expert Professional Expert BMX Programmer ----- Link to comment Share on other sites More sharing options...
Rick Posted May 11, 2010 Author Share Posted May 11, 2010 OK, I got it. Gave me some error about attempted to read or write protected memory, but if I hit continue it seems to work somewhat. I have a the scene with falling cubes, but I also have a black 2D square in front of that. I can run the exe directly, but not from the editor. Guessing it's because of the protected memory error I get when I run directly. I assume it's doing the same thing from VS but it won't let me get passed it in VS. Looks like it's erroring in Leadwerks.Core.CreateBuffer(). Quote Link to comment Share on other sites More sharing options...
Rick Posted May 11, 2010 Author Share Posted May 11, 2010 Looks like I didn't have 2.32 engine.dll. All good now. Still not really sure what's up with this black box. It seems to be the LETKControl. If I turn it invisible it doesn't seem to matter. If I move it it doesn't seem to matter, it just goes back to where it was originally. hmm, even if I delete it it's still there when I run. Wtf is up with that? Quote Link to comment Share on other sites More sharing options...
ZioRed Posted May 11, 2010 Share Posted May 11, 2010 If you are using 2.32 (or even the latest 2.31) and then re-added reference to the latest Leadwerks.DLL then you may experience some access violation because of some changes to the functions definition (may be those I already updated to the wrapper but not on the control). I will test the control in a few hours and then I may help you in this Quote ?? FRANCESCO CROCETTI ?? http://skaredcreations.com Link to comment Share on other sites More sharing options...
Rick Posted May 11, 2010 Author Share Posted May 11, 2010 I was able to get this working with using engine.dll v 2.32. I still get this black square in the LE control though. Not sure what's up with that. Quote 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.