|
|
Home » Developing U++ » U++ Developers corner » [Tutorial] Using the Visual Studio IDE with U++
[Tutorial] Using the Visual Studio IDE with U++ [message #37554] |
Wed, 17 October 2012 11:25  |
crydev
Messages: 151 Registered: October 2012 Location: Netherlands
|
Experienced Member |
|
|
Hi there, I have been using U++ now for a few weeks. I like the library and the way of programming. However, there is one thing that I find very annoying. The packaged IDE "TheIDE". It lacks debugging features in my opinion and does not sufficiently supports me in my work with intellisense and auto-completion.
After two hours I managed to get my whole U++ application including libraries into Visual Studio 2012. It compiles, runs and now debugging is much easier to do. This topic is meant to explain to the community what I did, in case of any others having the same opinion as I have or just want to use the Visual Studio IDE anyway.
I use Visual Studio 2012, but this will probably work with 2010 and 2008 too. I'm not sure about 2005.
1. First you have to open TheIDE and compile every U++ package that you want to use in Debug mode. Make sure you have TheIDE configured with the compiler of the Visual Studio version you want to use!
2. Create a new folder somewhere where you can find it and place every output .lib file in there. With these files I mean Core.lib, CtrlLib.lib, etc.
3. Open up Visual Studio and create a new C++ Win32 project. Make it an empty project.
4. Open up the properties of the project by right-clicking on the project and clicking Properties.
5. Go to C/C++ and add the <upp directory>\uppsrc\ to the list of Additional Include Directories
6. Go to Code Generation and set Runtime Library to Multi-Threaded Debug (/MTd). Do not set it to MDD! This will generate errors.
7. Go to Linker and click General. Click Additional Library Directories to open up the list. Add the folder where you placed the compiled U++ lib files from step 2 to the list and click OK.
8. Go to Linker and click Input. Click Additional Dependencies to open up the list. Add the following libraries to the list:
- Winmm.lib
- Mpr.lib
- CtrlLib.lib
- Core.lib
- CtrlCore.lib
- bmp.lib
- png.lib
- z.lib
- Draw.lib
- RichText.lib
These libraries ofcourse are the ones my application needed. You also need to link a few Win32 libraries because the U++ libs need these.
9. Rename every .icpp file that does not compile in your project to .cpp.
10. If you are using .iml image files you need to change the include from:
#include <Folder/imlfile.iml>
to:
Try and compile your project. It should work as it did for me. There is one problem that I got by. However, if you want to use Visual Studio only for debugging this should not be a big problem. When you run your program from Visual Studio the GUI is not drawn properly. Buttons are black, borders are missing and arrayctrl headers are not drawn properly. If there are any other problems please report them.
[Updated on: Thu, 18 October 2012 11:02] Report message to a moderator
|
|
|
 |
|
[Tutorial] Using the Visual Studio IDE with U++
By: crydev on Wed, 17 October 2012 11:25
|
 |
|
Re: [Tutorial] Using the Visual Studio IDE with U++
By: mirek on Wed, 17 October 2012 16:16
|
 |
|
Re: [Tutorial] Using the Visual Studio IDE with U++
By: kohait00 on Thu, 18 October 2012 09:29
|
 |
|
Re: [Tutorial] Using the Visual Studio IDE with U++
By: mirek on Thu, 18 October 2012 11:55
|
 |
|
Re: [Tutorial] Using the Visual Studio IDE with U++
By: kohait00 on Thu, 18 October 2012 12:45
|
 |
|
Re: [Tutorial] Using the Visual Studio IDE with U++
By: koldo on Thu, 18 October 2012 20:41
|
 |
|
Re: [Tutorial] Using the Visual Studio IDE with U++
By: mirek on Fri, 19 October 2012 09:34
|
 |
|
Re: [Tutorial] Using the Visual Studio IDE with U++
By: kohait00 on Fri, 19 October 2012 10:54
|
 |
|
Re: [Tutorial] Using the Visual Studio IDE with U++
|
 |
|
Re: [Tutorial] Using the Visual Studio IDE with U++
By: crydev on Thu, 18 October 2012 10:58
|
 |
|
Re: [Tutorial] Using the Visual Studio IDE with U++
By: mirek on Thu, 18 October 2012 11:54
|
 |
|
Re: [Tutorial] Using the Visual Studio IDE with U++
By: lectus on Sat, 15 December 2012 19:11
|
 |
|
Re: [Tutorial] Using the Visual Studio IDE with U++
By: crydev on Sun, 29 September 2013 23:06
|
 |
|
Re: [Tutorial] Using the Visual Studio IDE with U++
By: dolik.rce on Mon, 30 September 2013 06:17
|
 |
|
Re: [Tutorial] Using the Visual Studio IDE with U++
|
 |
|
Re: [Tutorial] Using the Visual Studio IDE with U++
By: mirek on Wed, 30 October 2013 07:56
|
 |
|
Re: [Tutorial] Using the Visual Studio IDE with U++
|
 |
|
Re: [Tutorial] Using the Visual Studio IDE with U++
By: mirek on Thu, 31 October 2013 07:36
|
Goto Forum:
Current Time: Sat May 03 15:02:42 CEST 2025
Total time taken to generate the page: 0.01394 seconds
|
|
|