- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 13
- Posts with Upvotes
- 13
- Upvoting Members
- 7
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
Hi, I am trying to make small game , but I am confronting with a problem. I have a function that should add a new button to my form when it's called. The problem is that I don't know how to create a new object (a button, a shape or … |
|
Hii , Data reader reads table rows into the 2d array. The array fills with the last row of the table. How many loops are there?. Why :?: [CODE] Input Table : ----------------------- id red green blue 1101 12 11 13 1102 12 12 14 1103 13 14 13 ------------------------ … |
|
I got a snippet off the web of how to download a file from online in c++ console with the curl library. so I installed curl, and copied the code snippet, but it doesnt work. Can someone show me whats wrong? [code]#include <curl/curl.h> #include <cstdio> // link with libcurl. eg. … |
|
Hi All.. I want to get selected item on listview. Does any one know how to solve this??? I'm using vb.net 2003 |
|
Hi I am writing a 2D game that only uses the arrow keys for input. I have done a search on this site fro ways to get input from the arrow keys and have come up with many solutions. However all of them use the getch() function. Normally this would … |
|
I just started using MS Visual C++ express to brush up on C\C++ I wrote one little sample program and it ran successfully, then every time after that i kept getting this debug assertion failed error that killed my program. Here's my code. #include <iostream> using std::cout; using std::cin; int … |
|
I have the following code in which it supposed to remove rows that have the first column checkboxes checked, but it only removes one row at a time. If you have more than one checkbox checked, you have to click the command button each time to remove the row. It … |
|
I have a login form(Form1). Which has two text box(textBox1,textBox). when i clicked the Login Button another new form(Form2) is opened.This new form is a MDIPARENT form. I want to set the text of a lable of a new child form of this parent form which is same as the … |
|
Ok I'm trying to make a GUI with multiple forms on Visual C++ 2005 Express Edition. And I was following a tutorial and made two forms. Form1 and Second. I want the Second form to open from Form1. So I included Second.h in form1 and then added this to the … |
|
So far no one has been able to tell me why this code is not working, or what I need to do to THIS code to make it work. Can someone simply show using MY code below where the problem is, and why it's not working properly? Problem: I am … |
|
I am dealing with multiple monitors in which i required to use EnumDisplayDevices() API. However, the linker gives me following error log (i am using VC++ 6.0) : [CODE]Linking... SourceCode.obj : error LNK2001: unresolved external symbol __imp__EnumDisplayDevicesA@16 Debug/AllianceProject.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe.[/CODE] I tried … |
|
Hi all I have a heap corruption problem in getting STL containers data through OCCI methods . For instance if i do an assignment of this type [code] while(rs->next() ) { SRecord r; '' struct object r.PDM_APPLICATION_NO= rs->getString(1); r.PDM_FIRST_NAME=rs->getString(2);; //Error Heap Corruption r.PDM_LAST_NAME= rs->getString(3); r.PDM_F_FIRST_NAME= rs->getString(4); }[/code] I use Visual … |
|
I am Making a STACK class which could hold a Binary Tree Nodes. I have defined a class Node. Then made a linkedlist classs. and finally the stack class. All are Template based. But during compilation it is giving me the following error. error: expected constructor, destructor, or type conversion … |
|
i have so many functions in my program,what i want to do is, i want to return back to the main() but in somewhere middle of it!. should i use goto statements? i tried 'em,it gave some error! if i should use goto then please explain how to,thanks |
|
Can anyone help me i dont understand this at all! |
|
|
#include<stdio.h> #include<conio.h> main() { window(10,55,22,77); textbackground(RED); clrscr(); } is this correct?? i run it but it didn't display anything. my prof. have an example bout this he said that the #'s inside the parentheses are the sizes of the box, (x1,y1,x2,y2) x1 is the top line of the box, y1 … |
Hey :D I wanna make a small program which changes the Desktop Wallpaper. Ok ehm. I found many things but nothing is working! Maybe because of my os: Win 7 x64 Ok here is the code which should run when someone click on the button. [CODE=C++]SystemParametersInfo(SPI_SETDESKWALLPAPER, 0,"C:\\wallpaper.bmp", SPIF_SENDCHANGE);[/CODE] Tried it … |
|
I got this to compile, but it's not popping my Dialog box. The tutorial from [url]www.winprog.org/tutorial[/url] didnt necessarily specify where my AboutDlgProc() is suppose to go ? I assumed it went above the Default but I am unsure... I'm trying to understand why it's not popping my Aboout Dialog when … |
|
I am attempting to write a program that interfaces with Command prompt (simple, bring up a tasklist, user enters the program they want to get rid of, and then the computer does the rest), I already have been able to interface and bring up a tasklist, the code compiles with … |
|
Hey everyone, I'm having this problem with the aforementioned API. Here is the code to initialize the common controls i want to use..(commctrl.h is already included in my program) [CODE] INITCOMMONCONTROLSEX icex; icex.dwSize=sizeof(INITCOMMONCONTROLSEX); icex.dwICC=ICC_BAR_CLASSES; InitCommonControlsEx(&icex); [/CODE] However, when I try to build , it gives me this error: [I] 1>tkud.obj … |
|
Hi all, just to be sure. I have a C++ DLL in which I am implementing a bit of low-level functionality. To this library I wish to pass a managed System.String pointer (ref) so that the library can load the string with the new/returned value. The question is, do I … |
|
I am trying to find a way to find a median of individual parallel arrays, but I'm not sure how to start. One question I have, though....is an array the same as a list? I was told that it might be easier to do a bubble sort of a list, … |
|
I am having major trouble with a fraction program. i spend hours fixing the errors and it still does not work. this link provides the instructions: [url]http://web.jjay.cuny.edu/~sbakiras/mat272/assignment3.pdf[/url] this is my code:[CODE] #ifndef RationalNumbers_H #define RationaNumbers_H class RationalNumbers { private: double numerator; double denominator; public: RationalNumbers(); RationalNumbers operator+(const RationalNumbers &); RationalNumbers … |
|
I am tring to convert std:string to char* in several way, however non of these work: first way: [CODE] char* c_levelMapFile = new char[levelMapFile.length() + 1]; strcpy(c_levelMapFile, levelMapFile.c_str()); ifstream myfile(c_levelMapFile); myfile.is_open(); // returns false [/CODE] second way: [CODE] const char* c_levelMapFile = levelMapFile.append("\0"); ifstream myfile(c_levelMapFile); myfile.is_open(); // returns false [/CODE] … |
|
hi guys, i'm new in c++ programming in this forum too, seen many helpful threads so far, but i just can't get over this one, something wrong with my return value , it says so "total" is undeclared identifier (line 46), but when i declare it in main function as … |
|
[QUOTE]I have an assignment that requires me to use an array, menuList, of struct menuItemType with members string menuItem and double menuPrice. I have to display the menu, let the customer order, total the bill including tax and print the check. Function getData had to load the data into the … |
|
Hello DaniWeb. ;) I have a problem with char->tchar conversion, that i cant seem to solve. I want to launch another program, anh the relative path to that program is fetched from MYSQL. [CODE] updateBox = CreateDialog(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_DIALOG2), hWnd, updateDiag); hThread = (HANDLE)_beginthreadex(NULL, 0, Blah::Start, NULL, NULL, NULL); [COLOR="red"]_stprintf(patcherLoc, _T("%s/Patcher … |
|
Hey, I have been searching this for a while now, and I cannot find a c++ code that expands the window once opened. I have found multiple codes that claim it opens it in an expanded window, but in the end all I get is compiling errors. If someone would … |
|
I am getting an Illegal Indirection Error on this code, and I am not quite sure what I am doing wrong. [url]http://msdn.microsoft.com/en-us/library/aa376065(VS.85).aspx[/url] That link shows the function and what it should do. Am I on the right track? What do I have to do to fix the error. [CODE] #include … |
|
i tried to open another form from the solution when i clicked a button, but i cannot make it work, the errors are; [ICODE]Error 3 error C2061: syntax error : identifier 'ayarlar' c:\documents and settings\administrator\desktop\develop_dersane\etud\Form1.h 211 Error 2 error C2065: 'ayar' : undeclared identifier c:\documents and settings\administrator\desktop\develop_dersane\etud\Form1.h 211 Error 4 … |