Marleys Ghost Posted January 9, 2010 Share Posted January 9, 2010 Ok, I have MSV C# Express just lying dormant on my HDD in a "virginal" state .. whats the quickest way to set up a project to try out LE using C#? Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
Laurens Posted January 10, 2010 Share Posted January 10, 2010 Create a new Windows project (somehow LE won't use the console window anyway when writing in .NET), add a reference to the DLL, check "Allow unsafe code" in the project properties and you're set. EDIT: If you have a 64-bit OS, make sure you set your target platform to x86 instead of Any CPU. Quote Link to comment Share on other sites More sharing options...
Marleys Ghost Posted January 10, 2010 Author Share Posted January 10, 2010 Thanks Laurens, any other considerations with regard to paths and dll placement? Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
L B Posted January 10, 2010 Share Posted January 10, 2010 Nope. The Console/Window setting is because LE doesn't write to the console for some reason in C#. You can still call "System.Console.WriteLine(string text);" though. I didn't check unsafe code and do not feel like I need it, but feel free to check it if you want. Placement doesn't matter at all. If you have a reference to a DLL, a copy of it will be created in your executable's folder automatically. Your executable will be located in Project/bin/Debug or Project/bin/Release. Enjoy C# ;P Quote Link to comment Share on other sites More sharing options...
Marleys Ghost Posted January 10, 2010 Author Share Posted January 10, 2010 ok .. finally got the little "twirling box thingy" code on the wiki to run .. next a basic scene loader and camera.. Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
Rekindled Phoenix Posted January 10, 2010 Share Posted January 10, 2010 I've found that LE will write to the console if you run the application outside of VS2008. Not while you are running the application through the debugger, release or not. Quote Link to comment Share on other sites More sharing options...
L B Posted January 11, 2010 Share Posted January 11, 2010 @MG: If you have any problem, feel free to ask. It's quite simple to go around though.@RP: Interesting. Not useful though. Quote Link to comment Share on other sites More sharing options...
Rekindled Phoenix Posted January 27, 2010 Share Posted January 27, 2010 Ubu, I was commenting on what Laurens had said earlier. somehow LE won't use the console window anyway when writing in .NET Quote Link to comment Share on other sites More sharing options...
L B Posted January 27, 2010 Share Posted January 27, 2010 Ubu, I was commenting on what Laurens had said earlier. I didn't mean to be insulting, sorry if it seemed like it. Quote Link to comment Share on other sites More sharing options...
Rekindled Phoenix Posted January 27, 2010 Share Posted January 27, 2010 No Problem Ubu. Online last night I was thinking to myself, "What does he mean by 'not useful'??" Haha. Quote Link to comment Share on other sites More sharing options...
L B Posted January 28, 2010 Share Posted January 28, 2010 I meant it was as interesting information regarding the problem, although it could not lead to a solution. This is actually false, as we could perhaps trace the differences between the build methods and make it work for debug too, but it wasn't in my schedule of priorities. 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.