how do i open/render .bmp images in vscode - c

I'm using C to make a few filters that will get applied on .bmp files. I am using vscode and I need to somehow render the images to test if my algorithm works. Right now vscode is having trouble opening it and saying this:
Is there a sort of extension or anything I can enable to view these files?
UPDATE:
VSCode seems to have solved the issue by itself. My .bmp files open without any problems. No extensions downloaded nor any changes made to my code.

Related

I have a problem with react and Visual Studio Code when save

When save in visual studio code using React it breaks everything
enter image description here
VS Code determines file's language by its extension. In your case, it is javascript, but should be javascriptreact.
Either:
- change all file extensions from .js to .jsx,
- or configure file association settings in your user/workspace settings:
If you have installed JS-CSS-HTML Formatter plug-in effects in your VSCODE, try to remove uninstall it or disable it. Then restart your VSCODE. That's all.
A quick fix is to press on the bottom right side of the screen where it says "JavaScript", a drop-down menu will be opened, type "rea" for "JavaScript React" and press enter.
It works only for the current file, not even for other files in the same project. for a permanent fix, try one of the other answers.
here is how VS Code documentation explains it:
Changing the language for the selected file -
In VS Code, we default the language support for a file based on its filename extension. However, at times you may want to change language modes, to do this click on the language indicator - which is located on the right hand of the Status Bar. This will bring up the Select Language Mode dropdown where you can select another language for the current file.
Tip: You can get the same dropdown by running the Change Language Mode command (Ctrl+K M).
https://code.visualstudio.com/docs/languages/overview
IMHO, I think that isn't an error, rather it's a warning of prettier, because by default prettier in VSC requires an empty line at the end of your code.
Right click -> Format document

The CN1 Intellij Plugin is suddenly disabled on old project. Is it safe to delete an old ~/cn1Settngs/CN1Properties to fix this?

Strange issue I'm having and I want to know what to do to fix it without compromising project integrity.
I have a CN1 project in Intellij (v 2017.1.4) that I started a long time ago. The other day I started a new CN1 project to try out something new. It pulled down the latest CN1 libs (the properties file says version 174 is the libVersion) and worked fine for testing.
Now I open my original project and the CodenameOne functions are all greyed out (projectLibs version in the properties file is 159). The icon on the context menu and menu-bar are greyed out. The plugin is up to date (3.7.2). I see no messages or errors in the IntelliJ "messages" section.
I am assuming that the new project and libs re-wrote something common to both projects and now the old project can't even start the plugin to let it pull down new libs... In experimenting, I went to my home directory ~/.cn1Settings and renamed the "CN1Preferences" file so that the project would have to create a new one. When I opened the project it DID create a new one and the plugin was working.
So here's the big question: If I abandon my old CN1Preferences file, what settings/customizations in that file am I walking away from and will I need to make sure I set correctly again to ensure my project works as it should and doesn't have any hard to debug issues?
This is probably an issue of keeping two windows concurrently, try closing both projects and opening only one at a time. There is an issue with detecting the correct project in the IntelliJ/IDEA plugin

I am developing a DLL using Matlab coder.I need to fill the properties and details like copyright,file version,product name etc for the created dll

I have a query regarding Matlab Coder .I am developing a DLL from .m files using Matlab coder(R2014a).I need to fill the properties and details like copyright,file version,product name etc.. of the created dll file(The ones we get by right clicking onto to the icon and then proeprties and selecting details).I have tried building a DLL by using .c and .h files obtained from Matlab using Visual Studio.But it doesnt work...
Is there an alternative in Matlab Coder itself to solve the problem???
Okay.We worked on it and found out the solution.We need to make variations to the Matlab coder project tool chain.We need to add the .res file developed using Visual Studio(Which contains information like version,copyright etc..) to the Shared Library linker after changing the 'Build Configuration' to 'specify'

Version Control as Text File?

I am using eclipse and would like to integrate some sort of version control. Ideally, I do not want to use a plugin. I would really like to somehow write the version to a text file in some way.
The reason I would like to do this is because I have a program that needs to track the current version of the workspace. Right now I am manually creating a text file in the workspace folder called "Version.XXXX" and just reading the name of the file to get the version number. However, I would like to somehow have eclipse do this automatically in case I forget to make the text file manually.
Any help or suggestions is greatly appreciated. Thanks!
If you want a simple source version control system I suggest you use Mercurial. All the versioning information is stored in the root folder of your project in a .hg folder. There is no server and log-ins. Like SVN and Git, it has gui support from Tortoise and plug-in for your IDE. The logic and commands behind it are similar to other solutions.

Eclipse CDT Inclusion problems

I just installed Eclipse CDT. Now, Eclipse works fine for me with Java, but it's not working at all with C. I'm trying to write a simple Hello World program, and I've even loaded the Hello World ANSI premade project. However, regardless of what I do, I get a "Unresolved Inclusion: _" error on all my #include.
I've looked around for half an hour trying to figure out why, installed MiniGW and tried a ton of different configurations. Can someone tell me how to fix this? I'm guessing it's because Eclipse has no idea where the .h files are. How do I set this?
I'm on Windows 7.
Thanks!
Go to the project property (right click on the project in the left panel) then C/C++ General then Paths & Symbols.
You can configure the include paths in the Include tab (the first one normally).
The include paths must be something like $MINGW_DIR/include or something like that (can't be more precise, for me it's /usr/include so...)

Resources