I am using Dev-C++ version 5.11. It has feature of code completion, but it is not turned on. I don't know how to do that because I am using Dev-C++ for the first time. Any help will be appreciated!
You need to go to Tools->Editor Options->Completion->The tab code completion and then click "Enable code completion" box
you can also change the delay with which the prediction will be made
Note: Its not going to predict variables names or function names. By the time i write this, it only predict things you put after the -> operator
It's not gonna show you the member functions inside your header file if you're calling the class member functions from another file. works if you use the class and main in the same file.
My man I have the answer
--DevC++ is an awesome IDE and I don't have any plans to move to any other IDE. So I found Intellisense in DevC++ and the best part YOU DON'T NEED ANY ADDONS OR PLUGINS it's just hidden in the DevC++ shortcuts. (I have been using Dev C++ NEWER VERSION so I dont know about the old version and I do recommend the new version found on sourceforge) so when you need Intellisense simply press Ctrl+Space. Yup That's it . Just try .U Can thank me later...................
Related
i'm trying to solve the following issue with VS Code and the C/C++ Extension from Microsoft.
The mentioned Extension adds a reference count above every function/object definition in the source code. That's a helpful feature so far, but for me it doesn't work as intended I think.
In my example I started implementing a thread-safe linked list to practice (please ignore the code, thats not what this topic is about). The whole class is greyed out although I import the header-file and instantiate an object of that class in the main.cpp file in the main-function. Also, the whole main function is greyed out because no references to the main-function are found. That makes no sense to me, why would I ever reference the main-function in my code? It's the entry point to the program and shouldn't be referenced in my project source code afaik.
When I disable the C/C++ Extension, the reference counts are gone and the source code is highlighted again. But I would really like to keep the reference count and only get rid of the greyed out code (or make it work properly so that main function and definitions I reference in my code are not greyed out).
Also by disabling the extension, code auto completion is gone. So that's not a good trade.
I spent hours of reading the configuration and searching the web for solutions, but I couldn't find anything helpful.
The only thing slightly realted to the greying out of code I found is the option "Dim inactive regions" found in the C/C++ Extension's setting. But it didn' solve my problem.
Thank you in advance for reading/trying to help!
Example of greyed out code and reference count:
greyed out main function because of 0 references to main:
Dim inactive code option:
Update:
So it turned out that the reference counter not only disappears when I disable the C/C++ extension but also when I disable the TypeLens extension. That does not solve my problem but at least I can get rid of the greyed out code by disabling TypeLens and still use the auto completion the C++ extension provides.
Possibly you should declare your main function with
int main(void)
or
int main(int argc, char * argv [])
As I mentioned in the updated question, the problem isn't realted to the C/C++ Extension. It is acutally the TypeLens extension that causes problems here.
The best solution I have found is to configure TypeLens to not grey out unreferenced code. This way I can keep the reference counter and the code completion feature from the C/C++ extension but prevent the source code from being greyed out by TypeLens.
To achieve this, you have to set the Typelens:Unusedcolor value from #999 to nothing (just delete the value).
Im trying to make (what I thought was a simple) extension for Game maker studio 2.
I am restricted to making a DLL app.
I am wondering is there any was to have a dll app open the file explorer have the user locate a file and then return said directory?
I fell like this is a sumb question but one I really need to know the answer too before slaving away coding for hours only to find its not possible.
You do not want to launch the explorer but to open a file dialog that allows the user to select a file.
Depending on the framework you use in your program the solutions may differ.
If you are using Qt framework you may use a QFileDialog for a platform independent mechanism.
If you are okay that it will only works on Windows then you may directly use the WinAPI functions GetOpenFileName or GetSaveFileName (that is a lot easier than the Common Item Dialog that is suggested as replacement on their documentation pages)
On GameMaker terms, you want to use get_open_filename or get_open_filename_ext.
See Dialog Module (marketplace, github) for C++ implementation reference.
I am new to XLL development. I downloaded 2010 XLL SDK and was able to build the example in VisualC++ 2012. When I load the xll in Excel2010, I am seeing the popup with "thank you ..." message and I am seeing all the functions exported from the example in Excel, so it seems everything is loaded successfully.
But, the xlcalert does not work in most of the functions. I am only seeing popup dialog from xlcalert in xlAutoAdd and xlAutoRemove. I even modified EvaluateExample() function to just do:
Excel12f(xlcAlert, 0, 2, TempStr12(L"Finished EvaluateExample"), TempInt12(2));
When I run the function, I don't see popup. What am I missing? I can't seem to find much references to xlcalert.
Thanks in advance
If you are new to XLL development, do yourself a favor and use http://xll.codeplex.com.
Your example would be ExcelX(xlcAlert, OPERX(_T("Finished EvaluateExample")), OPERX(12))
The code will work with either the old or new SDK.
For everyone looking for the answer for this question - one can find it here:
https://social.msdn.microsoft.com/Forums/office/en-US/6951ef0a-a66a-489a-b0da-9516667bffa9/xlcalert-in-xll-example
Long story short:
You also see 1 in the cell if you use it as a function for cell. However if you run it as a macro via Application.Run "xlGetNameExample" you will see the dialog. I think your issue is similar like it. Please try it. Let's see whether you can see the prompt.
I was looking at a project that someone wanted done and in order to do it I need to edit Windows' Start Up Programs. I am unsure of where to begin looking. What I really need is just a reference to some Windows API functions that will let me do this.
Thanks
Startup programs is just a directory, I don't think there are any specific functions for it. You should be able to create shortcuts inside and that should be it.
c:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\
As Nikola Smiljanić says the Startup area is just a directory with file shortcuts in it. However it is dangerous to use a hardcoded path because this changes with different versions of Windows.
You can get the path to the startup folder with the SHGetFolderPath function and CSIDL_STARTUP as a parameter.
I'm currently trying VS2010 and while it's smooth, good looking, sexy would I even add, I've met a MAJOR Turn off, being still a big teen noob in C and C++, I need my AUTO Completion until I learn some of the lib's members.
I tried toggling the CTRL+ALT+SPACE Option, using the hotkeys, the Button in the EDIT Tab is disabled (grey) And LASTLY I tried it using the command but got a message saying that it's disabled. It works in other languages.
This blog post explains how to disable it ... perhaps you can use it to reverse the process? If you would like to see how nice VS2010 intellisense for C++ is compared to 2008, take a look at http://www.msteched.com/2010/NorthAmerica/DEV316