199,114 Archived Topics
Remove Filter ![]() | |
I'm having a lot of trouble with a project for school. The project calls for me to create a random guessing game with three different levels. Each level should consist of a random number between 1 and 30. I have set my code to show between 1 and 5 for … | |
Hi , I am new to VB.NET.I am creating an database windows application in VS2010 and SQL server 2008 express.In one of my form i have a datagrid. My requirement is that i want to display the sum of an column of a DB table and other related data from … | |
Hi all, Im started to learn windows.h libary. I want to add example some buttons with messages with more stuff in it but where i need to put that code i didnt find any torial about it can somebody help me out. [CODE]#include <windows.h> #include <stdlib.h> #include <string.h> #include <tchar.h> … | |
Hi, I have downloaded a spinning wheel animated image and want to it to rotate when the form is busy. But when form is busy it also get struck. How to make it function when the form is busy and I want the animated image to stop rotation. Is it … | |
Can someone please explain these functions when creating a class please. Searching hasn't helped much. I need to know how they are used and examples or links to examples would be helpful. Any help is appreciated. | |
[CODE]#include <iostream> using namespace std; int main( ) { int num1 , num2 , num3; cout << "Please Enter Three Valid Integers Using The Keyboard"; cin >> num1 , num2 , num3; if {num1 => num2} && {num2 => num3} else num1 + num2; if {num2 => num1} && {num1 … | |
Hi, i have convert my code from sql to mdb but there is problem when it comes to place i highlight in red it doesn't execute the command reader....it end the application when it reaches [COLOR="Red"]Do While dr.Read[/COLOR]can any1 tel me whats the wrong with my code.....i'm totally blank ! … | |
i have created a web page and placed some text boxes on it, now i'm looking to create an error massages when a person enter a wrong input the error massage will tell him/her to enter the right one and also if he/she left a text field empty and clicked … | |
i have to make this board game in visual c++. i got the source code in c from a website. but it has some problem and isnt' running. moreover,its a hectic task to convert it into c++ for my use. if anyone who has worked on scrabble cud help me … | |
i want my program to have a splash screen as the starting screen but i need it to automatically count 10 minutes after it closes and form 1 loads. is it possible should i use a timer or what? ![]() | |
I created an application in C# and then was told it had to be started from a button selection in a C++ exec program. How do I invoke my application from the C++ program? | |
I currently have a functor that finds the closest entity (by calculated distance) to the current entity. (Vector3 is just a 3D coordinate class) [CODE] template<typename T> class MinDistanceBGE { private: Vector3 v; // The location of the 'asking' entity. public: MinDistanceBGE(Vector3 vInput):v(vInput) {} bool operator()(T t1, T t2) const … | |
Hi, need help with this. I have a text file with info in that format: [CODE]product1 description stock product2 description stock[/CODE] And want to save that values to a record like this: [CODE]prod=record name:string; des:string; sto:integer; end; [/CODE] forget the "assign" and "reset" part, I got this, I actually need … | |
[CODE] // foo vector of unsigned chars // contains 0x00, 0x00, 0xb8, 0x01, 0x00, 0x00, 0x00, 0x1F, 0xEC 0x82 std::vector< unsigned char > foo; long some_long = (long)&foo[6]; // i want the unsigned chars 0x00, 0x1F, 0xEC 0x82 to // make up the long decimal value of 2092162 [/CODE] Now … | |
Hi there, I am considering develop something use a Access database, which has been formed earlier by other my colleagues. However, I am trying to develop a cross-platform application, and I believe Access is MS related and is not friendly to Linux. There are many options of the database like … | |
I am making Yahtzee and this is what I have so far. This is my ThingsThatNeverChange.h header [CODE]#include <iostream> #include <iomanip> #include <cstdlib> #include <string> #include <algorithm> #include <ctime> #include <windows.h> #include <conio.h> #include <dos.h> #include <math.h> using namespace std; char savenum = 'y'; char rollAgain = 'y'; int i; … | |
I am currently writing a program that uses OpenGL and so it uses the include file: #include <GL/glut.h> Now when I try to compile and run the program I get this message in the error folder: "fatal error C1083: Cannot open include file: 'glut': No such file or directory" Lastly, … | |
Hi, I am confused as to all the posts by newbies. If they are new (which I am) how do they know all this code they post? I have a question and it is very basic. All I want to do is to get one JButton to pull up an … | |
Hi everybody, I want to get the HTML source code of a page like: [url]http://morfix.mako.co.il/default.aspx?q=connection&source=milon[/url] (the page is in hebrew) But, after entering a hebrew page the characters I get are like � ׳�׳ ׳’׳�׳™ ׳¢׳‘׳¨׳™ ׳¢׳™׳‘׳¨׳™, ׳�׳™׳�׳•׳� ׳�׳ ׳’׳�׳™ I want to see the Hebrew as it is. The current code: … | |
So here I am back again with my tail between my legs. I've spent the whole day trying to update my form lable during runtime. I got there in the end with what I think is threadsafe, then only to spend a few more hours trying do it from outside … | |
How to copy Checked items from first listview to another listview? i got problem with that, i made at the first listview Check boxes to every item and i want when i will click a button all the checked items will be copy (not move) to the other listView. it … | |
Hi I am having a problem with code i have created to delete a customer from my database, would be grateful if someone could tel me where i have gone wrong [CODE] <?php include ('db.php'); $cid=$_POST["cid"]; $cname=$_POST["cname"]; $cusadd1=$_POST["caddress"]; $cusadd2=$_POST["caddress1"]; $cusadd3=$_POST["caddress2"]; $ccounty=$_POST["county"]; $custpc=$_POST["cpostcode"]; $custele=$_POST["ctelephone"]; $cusemail=$_POST["cemail"]; print $cid; $str="delete from customer CustomerName='$cname',CustomerAddress='$cusadd1',CustomerAddress1='$cusadd2',CustomerAddress2='$cusadd3',County='$ccounty',CustomerPostCode='$custpc',CustomerTelNo='$custele',CustomerEmail='$cusemail' … | |
I created an application in C# and then was told it had to be started from a button selection in a C++ exec program. How do I invoke my application from the C++ program? | |
I'm doing connectivity of my sql server database with C sharp code. In sql server 2005 i made two tables person(empid,citycode,name,salary) and city(name,citycode)and entered few records. i haven't set any constraint on any column. Person 11 Ashish 101 99000 12 XYZ111 110 993939 13 yuuuuu 101 88484 14 hdhfhh 101 … | |
If I want to generate all combinations of a set of numbers 0-max, I can do so with for loops. The following code will output all two-number pairs: [code] for(unsigned int i = 0; i <= max; i++) { for(unsigned int j = 0; j <= max; j++) { cout … | |
I found [URL="http://www.daniweb.com/software-development/cpp/threads/358674"]this assignment[/URL] on C++ forum as was browsing to see little where I am in my mostly C little C++ thrown in understanding of C++ and if I should try to increase my knowledge in that language. I could not believe my eyes! The OP is completely lost … | |
Ok ... I have a handle to a game window in which inside this game my little character picks up items off the ground and drops them onto himself. It is done with drag and drop. I left click down drag the item to the character and release the leftclick … | |
What I am trying to do is simply get a coordinate system in which to run mouse commands in a window I have the handle to. What I am trying to do is macro my mouse. The catch is my mouse pointer has to move along with commands such as … | |
[CODE]public class Tokenizer{ public static void main(String args[]){ String Arr[] = new String[20]; Scanner scan = new Scanner(System.in); System.out.println("Enter a String: "); String st = scan.nextLine(); Tokenizer tk = new Tokenizer(); tk.makeToken(st, Arr); } public void makeToken(String st, String Arr[]){ int i=0; StringTokenizer Tokens = new StringTokenizer(st); while(Tokens.hasMoreTokens()){ Arr[i]=Tokens.nextToken(); i++; … | |
hi all, i m trying to insert a textfield's value in a table through applet.The table name is samp and it has only one column named 'name'.I did following control panel->admin tools->data source->and then i have added a 'bike2' as new data source. I have 4 files created. 1.Entry.java 2.Bikinfa.java … | |
hi, i downloaded the existing twofish algorithm from bruce schiener's website but i am having trouble compiling it i.e making it run. can some one plz help me. | |
I have this problem with given answer but don't understand why. May someone help explain? Thanx if (x>5) y=1; else if (x<5) { if (x<3) y=2; else y=3; } else y=4; ----------------- what is the value y if x=3? answer was: y=3 | |
Hi, I my admin area, where the administrator can create a new page, it is also possible to decide the position of the link. It is a menu in the left side of the screen, one link on top of the other, very simple nav. I have a dropdown list … ![]() | |
I have this code I need to write. In my database I have some child jobs that belong to parent job. I need to stop the parent job if all child jobs are stopped, I have this code but it is not working and I am not sure why. I … | |
Hi Guys, i have this code which draws a continuous circle using a timer. Now I have to display it in the form which has a group box with loads of other fields and information. Now can anyone please tell me how can i add the circle into the group … | |
i am trying to create a dataset for use with crystal reports. i have a dataset called dataset.xsd with two tables BatchHeader and BatchDetail these have a relationship of BatchID on both tables. (see picture1) I have this working when there is only one table in the dataset with this … | |
Hi, I want to write thread function myself and don't want to use boost or AfxBeginThread(). Oh, and it works in /MD[d], /MD, MFX. Thanks a lot DestinyChanger | |
Hi, I'm trying to create a highscore database for my game, and would like to start off with a view high score frame. When the user clicks this frame will pop up, but for some reason I can't set the player and score information to my JLabels. I'm not sure … | |
hey hello my name is babafemi from nigeria. please something has been bothering me for a while. that is, the simplicity that microsoft is bringing to the world of programming. here is my view. someone spends years learning how to hard code, sleepless nite learning how to build applications from … | |
Hello, I have a website for musicians where all users can post their ads for free. I need a script that send an email for a member user when his ad is going to be expired (let say after 30 days). Any ideas ? Sammy. | |
Thanks In Advance [B][U]Please any one can suggest me how to get network statics of remote machine in C++ .... [/B] | |
so what i'm trying to get my head around it say i have a vector of vectors containing some unsigned chars and i want to copy a certain vector to another vector as follows. [CODE] std::vector< std::vector< unsigned char > > foo; std::vector < unsigned char > bar; for (int … | |
Hi peeps, I am having some difficulty creating a reset button that resets some text to the original status. Basically I have a div box in a page which shows what it means to use a table for layout in a page - I am doing a web editing site … | |
Hey, i'm seeming to have a problem with the code below, in my calculations the values don't seem to add, it just adds the 1.50 to 25 like 25.0015 please if theres anyone who could help with this. [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> … | |
![]() | Hello guys, I`m having a problem with my assignment. I should make simple Captcha in Windows Form Application. I have one text box, picture box and button. When I click GO button, my text from text box should become Captcha end show itself in picture box. Any idea how can … |
Hey everyone I was wondering if anyone had any tips or methods for me to better my programming in C. I know I have to practice problems from my book but are there any other ways to better my code writing skrills :D thank you. | |
Hi, I am trying to copy the selected jTree elements on the left to the jTree on the right. However, I had been unable to acomplish it even when I had been looking at some books, google, forums... I had attached a screenshot. Thanks. | |
hello, Am getting the below error while compiling my project. [B]error C2440: 'initializing' : cannot convert from 'struct __POSITION *' to 'class CPtrList &' A reference that is not to 'const' cannot be bound to a non-lvalue[/B] This is the snippet of code where the error happens. Tell me what … | |
can anyone tell me what's the error in this rmi calculator program....... especially the clint.java......... here when i run the rmi calculator.........i gets an applet calculator.....but for all the mathematical addition,sub,div,mul......i'm getting the null value.......i also doubt at whether the try catch is placed wrongly............ | |
System Specification A local football club wishes to store information on its current squad of players: Each Player’s personal information (first name, last name, age, height and weight) should be recorded in a class Person. Each Player’s record for the season should be stored in a class Player. The information … |
The End.