I am developing with cocos2d-iphone under Xcode. The problem seems to be a tool problem. Clicking on a file under the Project Navigator usually shows that file. If it is source code, you see the source text in the main pane. If it is an image file, if you click on the filename the image shows in the main pane.
At the moment, none of my images/png-files show up when I click on them. Yet they are clearly being loaded into the bundle and show up in the app when it is run.
Any ideas how to fix this?
Related
Recently I started learning QT framework for developing GUI applications* in C++. Till now everything was fine with QT creator but when I try to change the background color of an element using CSS style sheet the QT UI designer does not get updated. Moreover even while writing the code the QT doesn't detect my newly added controls to the screen. Here is a GIF to show this problem.
Also I am not sure if that's the way QT works but after adding an element on the form I am not able to access that element by its object name in code immediately unless I build it again
Here is my QT details
Forgive me if i went wrong somewhere or made any mistakes, I am a Visual Studio guy and am quite new with using QT.
Note: I am asking that second one because i have seen a lot of tutorial videos on QT widget where the object could be accessed immediately in code after adding it.
Also first time when I used it, it did work. But since then the designer doesn't get updated
It was pretty much easy. I just had to change the border property to any value and immediately changes can be seen. It was because of the border i guess that was causing the problem.
Here is a gif to show you that...
And regarding the issue of mainwindow.ui not matching with ui_mainwindow.h file the solution was pretty simple both the build directory and working directory contain the same file called ui_mainwindow.h Delete the one in the working directory and bingo it works.
Thanks to this QT forum's post
[Solved] What would cause a mainwindow.ui file not to match with it ui_mainwindow.h file?
Note: Whenever the project is built or run, the ui_*.h files will be generated again causing you to delete the files again and again. A solution for that is to add a makefile in the working directory that automatically deletes the ui_*.h files after building the project ( post build step ). Here are the steps for it.
Step 1 : Create a makefile called deleteUI_header.mk and add the following code to it as shown in the figure below
Step 2 : Save the file in the working directory of the project.
Step 3 : Now open the project in QT and click on the project tab in the left hand side. Under build settings->build step click on add build step->make
Now override jom.exe with make (ensure that make's location is present in PATH environment variable ) and provide the following make argument
-f deleteUI_header.mk
Now whenever you will build the project the ui header files generated will automatically be deleted.
`
Why can't I add images to my UWP assets folder? I usually use C#, but I have to use C++ because I'll eventually be turning this into an optional package (somebody tell me if I'm wrong, and I can write optional packages in C#).
Using Visual Studio, I right click on the Assets folder in the Solutions Explorer click Add->Existing Item and then click on my image. It shows up in Visual Studio, but it doesn't actually get added to the Assets folder so I'm unable to view it when I load my app. I wouldn't think that it matters whether I use C++ or C#, but one is working and not the other.
I've tried rebuilding the project, rebooting the computer, repairing Visual Studio and I'm still stuck.
As suggested by paxbun, I tried using File Explorer to add the file. If I added the file in the Assets folder with the project files, it didn't help. I was able to get the code to work by adding the file to the AppX folder in the Debug folder, but this won't help when I'm ready to release (to make sure, I did a quick sideload).
I haven't put much at all in the code, but you can view it at https://github.com/benjasperson/SimpleCPPImage
Upon further research, I found my answer here.
Clicking "Show all files" in the Solution Explorer and then setting "Include in project" to true was all I needed to do.
I finished working on a Mac application. This application has been coded in Xcode. It used multiple images and fonts that formed the GUI. When I was adding these images, I had to put them in the directory of the debug file to be loaded (just placing them in the sidebar didn't work). Now, when I exported the application to my desktop, the app didn't load any images or fonts. I even tried adding the images to the same directory, but still none were loaded. Do you know what might be the issue? Perhaps, where should I place the files?
When the application is compiled within Xcode, everything works well, all the images are loaded. When I open the app in the debug directory, no images are loaded. And, if exported, still no images are loaded.
I don't know whether this is the issue with archiving, but I noticed that my SFML frameworks are displayed in red in Xcode. I don't know why as the framework directory is set correct, however the frameworks do load during build.
The problem is that you need to get the xcode 5 templates from the website and then put those into the developer folder in your lib.
Each time I load Code::Blocks by double clicking my Code::Blocks project file it opens up Code::Blocks and the window blinks a bit once it loads, but then it's like it didn't load anything, it acts like I didn't open any project. It also does this if I do File -> Open. What should I do? I already tried to re-install it. Thanks in advanced!
It is the default behaviour of code blocks, when you double click your project file (.cbp) notice the title bar, if it shows the name of your project, it means project is open, and the blank window means that you haven't opened any files of the project yet, open them using file->open.
I've specified symbol (pdb) file inside 2010 so that it is loaded correctly but I get the No source available error and the Browse to Find Source Code is greyed out. Does anyone know how I can specify the source code directory or look inside the pdb to find out where it is?
EDIT: My DLL is being called by an external program. The error is happening inside my DLL so I have the source code. When the error occurs I click Debug, the pdb symbols are loaded but not the source.
If you moved the DLL from its build directory then the debugger is unlikely to be able to find the source code files itself. First thing you can do is to right-click the Solution root node in the Solution Explorer window, Properties, Common Properties, Debug Source Files and add the path to the DLL project source directory.
Second way: the debugger prompts you the first time it needs to find a source code file. If you ever clicked Cancel on that dialog, pretty common thing to do when you don't know what it is really asking, then the IDE remembers your selection and won't prompt you again. Fix that by deleting or renaming the hidden .suo file in the solution directory.
From what I understand you just want to debug your program, that you have in form of DLL. The problem is that external program uses this DLL and you click "Debug" from the window that pops up after the error occurs.
I assume you want to open your project in Visual Studio and then press Ctrl + Alt + P to open "Attach to Process" window, where you should select process that uses this DLL (iexplore.exe or whatever you are working with) so that you can toggle some breakpoints there and see what's going on before the error occurs.
The hack by #Hans Passant works, but there's actually an official way to achieve this: right click your solution at the solution explorer, select properties / Common Properties / Debug source files. You should be able to see and edit a list of all files where you previously selected 'cancel' when prompted for a source path.