Member Avatar

The problem is that i can't manage to compile the simplest (int main(){}) boost asio program with Code Blocks. I'm using Windows 7. Googling gave me some controversial suggestions: 1) to add -lwsock32 key - Done(Compiler settings->Other options-> -lwsock32) 2) to link with ws2_32.dll and wsock32.dll - Done (Linker settings->paths to these dlls) 3) to link with boost system lib - Done(Linker settings -> path to libboost_system-mgw47-mt-1_52.a) 4) to add _WIN32_WINNT=0x0601 for Windows 7 option - Done (Compiler settings->#defines _WIN32_WINNT=0x0601) 5) to include winsocks2.h as a header - Done. 6) to add option -std=gnu++11 - Done And still it doesn't …

Member Avatar
+0 forum 2
Member Avatar

NOTE: The games GUI is not fully implemented, so changing it's image and difficulty is done manually in the Button.Click Event NOTE: Whether you download the VS2013 source file or copy and paste the code, you need to download, and extract the two image files to the project's "Bin\Debug" directory. If you copy and paste the source ensure your form has the following controls: Button (Button1) PictureBox (Name:pbGameBoard, Width:792, Height:792) # THE GAME # This is a fun example using graphics. It is a representation of the classic tile slide game, where you slide the tiles around to make the …

Member Avatar
+1 forum 1
Member Avatar

please i have a little problem creating a class and making it run. The class is created separately as a header file with it's source code. whenever i build the source code of the class, i get an error that says: undefined reference to 'WinMain@16'. And whenever I run the main, it gives me the error: undefined reference to 'samclass::samclass' here's my code main #include<iostream> #include "samclass.h" using namespace std; int main(){ samclass obj; return 0;} header #ifndef SAMCLASS_H #define SAMCLASS_H #include <iostream> using namespace std; class samclass { public: samclass(); void printcrap(); }; #endif // SAMCLASS_H header source code …

Member Avatar
+0 forum 3
Member Avatar

Alright, so I need some more help. This time, the problem is not inherently in the code (Though I've had trouble with that thus far too). I am currently playing around with open and close file dialogs trying to get what seems to be an out-dated "GetOpenFileName()" function to work. and this lead me down the path of what is this IFileOpenDialog this and that and other things... EVENTUALLY, I found the suggestion to use the Open Watcom compiler instead of the GCC compiler. I followed the code::blocks instructons to plug the Watcom compiler in and now I am getting …

Member Avatar
+0 forum 12
Member Avatar

Background: I have a Drupal site with around 150 users. Each of those users has a spreadsheet that they send to me weekly. I've uploaded all of the spreadsheets to an Editgrid account and I've created a custom drupal block to display there Live spreadsheet and edit it so removing the need to e-mail the sheet each week. At the moment i am using the following link embedded into the block, the section that is highlighted (name of the spreadsheet) i would like to be dynamic depending on the user viewing it (so i dont have to make a different …

Member Avatar
+0 forum 1
Member Avatar

Hello, I was working with my C++ homework, and I wanted to combine a couple of projects. Now I've never done anything with project-projects before... it's all been one-file console applications in single "*.cpp" files. Well, I tried my hand at combining two projects into one project file, so I could expand my knowledge, but it didn't seem to work all that well. in my main.cpp file, I have the following code: [code] #include <iostream> #include "Project 10-2.cpp" #include "Project 10-3.cpp" #include <cstdlib> using namespace std; int main() { int choice; do { cout << "Welcome to my project! Please …

Member Avatar
+0 forum 2
Member Avatar

hello all, It is my first post on this site. i have a configuration file which is divided in the blocks like MyServer=localhost MyName=ussd MyUser=root MyPasswd=rnd MyPortNum=3306 Req_thread=20 Sleep_thread=2000 url_timeout=1000 HIT_URL_IP=10.43.14.70 HIT_URL_port=80 [*515#] URL_SUB=GET /subscription/subservice.aspx?Mobileno=?&Channel=USSD&planid=13404&clientid=511&requestType=1&SubscriptionMode=USSD&isbill=1&subid=1340&shortcodeid=49 HTTP/1.0\r\n\r\n URL_UNSUB= PRODUCT= METHOD= [END] [*522#] URL_SUB= URL_UNSUB= PRODUCT= METHOD= [END] [*560#] URL_SUB= URL_UNSUB= PRODUCT= METHOD= [END] there are 3 different block like this.what i want to do is when i got a value from db for eg 575 then only default and block related to 575 is used not other.. Please help.it's critical

+0 forum 0
Member Avatar

Hey guys im trying to generate all possible string for a given pattern given a length and length of blocks. For example if length=5 and the code was 2,1 then there must a block of 2 and then a block of 1 with at at least one gap between them. 'X' is a gap and 'Y' is a block Here is what my program gives me: YYXYX XYYXY YYXXY So the way i do it right now is using binary strings from 00000 to 11111 and then prune off the ones that don't meet the code criteria. The problem is …

Member Avatar
+0 forum 1

The End.