codeblocks

wininet.h not compiling using GNU GCC compiler with code blocks

本秂侑毒 提交于 2020-01-17 17:30:10
问题 i'm getting a peculiar issue when trying to compile my program. I don't have a huge ammount of experience with C++. I'm trying to simple create a function that can FTP put a file upto my plain FTP server. I'm using codeblocks IDE, and the GNU GCC compiler, and in the end, i thought to try a full fledged example i found online to test if it was me writing some silly code. I have installed the windows SDK with all libs, so i can confirm the files are present, and if i build without any code,

Unable to connect to MYSQL using SQLAPI++

夙愿已清 提交于 2020-01-17 07:24:05
问题 I am new to working on SQLAPI++. I have everything installed, i.e. MYSQL, SQLAPI++ and I am using Code:Block++ as the editor for my C++ program. I was trying to connect to the database that I had created in the MYSQL, but I am unable to. I see the following error when I invoke Connect() written in SQLAPI++ Process returned -1-73741819(0xC0000005) execution time: 0.431s. The MYSQL is running on my local machine on port no 3306. int main(int argc, char* argv[]) { SAConnection con; SACommand cmd

How to fix “fatal error: filesystem: No such file or directory” in Code::Blocks?

孤街醉人 提交于 2020-01-17 00:37:32
问题 I'm writing a script which deletes old backup files. I've included "filesystem" as I would normally do, but this time, I got this error: "fatal error: filesystem: No such file or directory" I tried to include "experimental/filesystem" and I set "-lstdc++fs" as GCC flag. Nothing has worked for me. #include <cstdlib> #include <algorithm> #include <vector> #include <filesystem> namespace fs = std::filesystem; int main() { fs::path const directory{ "C:\Test" }; std::vector<fs::directory_entry>:

How to fix “fatal error: filesystem: No such file or directory” in Code::Blocks?

大城市里の小女人 提交于 2020-01-17 00:37:30
问题 I'm writing a script which deletes old backup files. I've included "filesystem" as I would normally do, but this time, I got this error: "fatal error: filesystem: No such file or directory" I tried to include "experimental/filesystem" and I set "-lstdc++fs" as GCC flag. Nothing has worked for me. #include <cstdlib> #include <algorithm> #include <vector> #include <filesystem> namespace fs = std::filesystem; int main() { fs::path const directory{ "C:\Test" }; std::vector<fs::directory_entry>:

Setting up VST Steinberg SDK on Windows

江枫思渺然 提交于 2020-01-16 20:00:13
问题 I need to write a basic VST plugin (2.4) in Visual C++. I Googled it, but what I found is lots of deprecated descriptions with dead links. Could anyone recommend me a good step by step guide which helps setting up the environment in Windows 7 (I would like to use Code Blocks) and test the plugin with the test host? This blogpost says that it's possible to build the plugin in Code Blocks. I followed the instructions, but in the latest Steinberg SDK the files are different. 回答1: VST2.4 and VST3

Codeblocks' Cygwin compiler isn't working

﹥>﹥吖頭↗ 提交于 2020-01-16 04:46:06
问题 Using the default setup for Cygwin with codeblocks, I get the following error. "NameScanner - Debug" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping... Nothing to be done. I tried their custom installation instructions and that gave me this error on cstdlib , a default file C:\Dev-Cpp\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\include\c++\3.4.2\cwchar|249|error: `::wcstold' has not been declared| C:\Dev-Cpp\bin\..\lib\gcc

C++ - Making the console fullscreen?

丶灬走出姿态 提交于 2020-01-15 12:25:28
问题 All right, I'm sad now. Microsoft has removed the fullscreen console feature from Win7, which is what I'm running. Now I'm looking into things like OpenGL or SDL to see if I can emulate the console, and make it fullscreen (and I mean FULLSCREEN no window or border or anything). Is it possible to emulate the console fullscreen (like DOS) in OpenGL or something similar? 回答1: try the system command it's a bit esier (system ("mode 650"); } example: #include <iostream> using namespace std; int

C++ - Making the console fullscreen?

谁说胖子不能爱 提交于 2020-01-15 12:25:04
问题 All right, I'm sad now. Microsoft has removed the fullscreen console feature from Win7, which is what I'm running. Now I'm looking into things like OpenGL or SDL to see if I can emulate the console, and make it fullscreen (and I mean FULLSCREEN no window or border or anything). Is it possible to emulate the console fullscreen (like DOS) in OpenGL or something similar? 回答1: try the system command it's a bit esier (system ("mode 650"); } example: #include <iostream> using namespace std; int

This code gives me errors when compiled using visual studio 2012, but with codeblocks it is okay

僤鯓⒐⒋嵵緔 提交于 2020-01-15 05:47:07
问题 #include <iostream> #include <string> #include <fstream> #include <sstream> #include <vector> #include <iterator> #define ADDR "c:\\Users\\Library2\\Desktop\\Books record\\" using namespace std; int main() { ifstream fin(ADDR "reportcard.csv", ios::binary); string line; int rowCount=0; int rowIdx=0; while(getline(fin,line)){ rowCount++; } vector<string> data[**rowCount**];//this rowCount gave me "expression must have a constant value" fin.clear(); fin.seekg(fin.beg); while(getline(fin,line))

how to position the cursor on the screen?

…衆ロ難τιáo~ 提交于 2020-01-15 05:36:31
问题 I'm new in programming and currently learning about arrays in C. I'm making a puzzle that contains 15 numbered square pieces mounted on a frame and one piece is empty.It allow the user to hit any of the arrow keys(up,down,left,right).The user will continue hitting the arrow keys till the numbers aren't arranged in ascending order.These pieces can be move horizontally and vertically. My problem is that i don't know how to position the cursor.I know a library function gotoxy() but i think it