199,114 Archived Topics
Remove Filter ![]() | |
Hi Pros! I've started a project called grina ( code name) which is web browser program fro people to view web pages using C++ with Qt based on the QtWebKit module. The fact is that, i know a little about the web browser system, that it acts like a compliers … | |
hi evryone. i really dont get it. i want to put keyboard shortcuts on the button i have other than clicking this buttons. but the problem is i dont know how. i tried putting an ampersand (&) sign before the text of the buttons and it work, but the ampersand … | |
i have a few questions.: 1)if i wanted to write a line of code needed to declare a 1-dimensional array named names that can hold 8 string values would this be correct?: char names[8]; 2)how would i write the code needed to assign strings to each element of the array … | |
[B]Microsoft Visual C++ 2008[/B] My Project contains one Form1 and one Unit (module) Test1.cpp. There is the button1 on the Form1 which calls the function: [CODE]Test1::Change_Button_Text();[/CODE] There is only one function in unit Test1.cpp [CODE]void Test1::Change_Button_Text() { // #1 Form1::button1->Text = "Hello forum!"; // isn't working :( // #2 Form1 … | |
I am trying to execute a simple grep command in my shell script. I am not sure why it also greps the other file system. [COLOR="Green"]> df -g|grep /oracle/BP1/sapdata1 70.00 11.37 84% 21 1% /oracle/BP1/sapdata1 100.00 89.44 11% 8 1% /oracle/BP1/sapdata10 > df -g|grep /oracle/BP1/sapdata10 100.00 89.44 11% 8 1% … | |
I have problem with this code,I want to print names of the windows in .txt file and it compile with no errors but it snaps in runtime. this function int x = GetWindowText(hWnd,title, 256); for the second arg require char* and cant deal with WCHAR and if i cast title … | |
Hi, I would like to search one field in database with multiple words. Also i will allow searches for example : a or cs....(one,two characters). My code: [code] <cfparam name="URL.NAME" default="1" type="Any"> <cfquery name="search" datasource="datasource"> SELECT * FROM search WHERE NAME LIKE ="%#URL.NAME#%" ORDER BY DATE DESC </cfquery> [/code] this … | |
I'm wondering if it is possible to control certain aspects in my function. All my it does is control how an object gets placed on my gui. I'm wondering if there is a way to control [I]GridBagConstraints.fill[/I] and [I]GridBagConstraints.anchor[/I] [B][U]Function:[/U][/B] [code=java] public void gridBagControl(Component ob, JPanel p, Insets in, int … | |
This is an assignment for my c++ class im taking. [code] #include <iostream> #include <fstream> using namespace std; const int NAMESIZE = 50, DATE = 25; struct inven { char name[NAMESIZE]; int qnty; double wholeCost; double retailCost; char date[DATE]; }; void displayMenu(); void addRecord(fstream &); void displayRecord(fstream &); void modifyRecord(fstream … | |
While finishing up my app, I included into the project the code for loading and injecting my dll into running processes. Once compiling I received these errors [CODE]error C2039: 'getchar' : is not a member of '`global namespace'' error C2873: 'getchar' : symbol cannot be used in a using-declaration error … | |
Hi I am trying to read data from a text file, line by line. However I am having problems with the output of the last line. The text file I have created is: position 50 10 line 50 0 line -50 0 line 0 -50 Here is my code: [code] … | |
I am having trouble making use of a MouseMotionListener to make some card images be able to be dragged around the screen. What this program does is show a table of cards in a random order. The user will be able to drag any of the card images and move … | |
Hi, i have a division of 2 integer that give me a result as 2,3944534 ... how i can give e result as 2,3 ??? please help me! | |
Okay, I'm making a shooter game, and all my weapons are differnt userdefined objects; ie. the flamethrower works differently then the gun, however, I'm calling some functions in my "main", an example of this would be; [CODE] /* <Init> */ MachineGunClass *CurrentWeapon; MachineGunClass *MachineGun; MachineGun = new MachineGunClass(); CurrentWeapon = … | |
Greetings All, I'm relatively new to ASP.NET and I'm currently working on a site that has a treeview used to navigate through the site. The problem is the first page on the site (home page) when initally loaded pulls a ID from a URL via QueryString. This works when the … | |
how is artificial passenger different from other gadgets(like radio)? can v disable the device? | |
1/ Write a Java program that reads in a Name and Age (in years) of four persons and prints the name and age of the youngest person. Assume that all persons are of different age. The sample program run must look as follows: Enter the name of the person: John … | |
ANY HELP YOU CAN PROVIDE WILL BE GREAT. Here is the code Im trying to convert. This is my 1st time hearing about SRC Code and my teacher isnt being a big help. Please help in any way you can. Here is the code: int a = -5; int b … | |
I have to lines listed.. a cin >> x and a scanf("%f",&x). If I use cin program works perfectly.. change it to scanf and values arent' even corect any longer.. different decimal values all together.. anyone??? [CODE] #include <iostream> #include <cstdlib> #include <cmath> using namespace std; double ApproxCos(double,double); int main() … | |
i have a problem with this code iv been try lots of expressions to show elven thousand to nineteen thousand and nothing seems to be can you guys help me out tnx in advance [code] #include<stdio.h> int main() { int n,teens,thousands,hundreds,tens,ones,tthousands; printf("Enter a number: "); scanf("%d", &n); tthousands=n/10000; n=n%10000; thousands=n/1000; … | |
Hello and thank you for taking the time to read my question. I am currently moving a static html site into a faux CMS and have a question about which direction is best recommended. I have series of 'News Articles' that I would like to make available through a db. … | |
Hello everybody! I am trying to create folder's which will contain files and lastly all these files will contain texts. My problem is that am not able to create this folder into a specific location or pathname!!! Here is the code, please advice accordingly: [CODE] #include<stdio.h> #include<sys/stat.h> int main() { … | |
Hey all I have another riveting problem from my genius professor T_T. I have to make a program using functions, reference Parameters and full string words. Now if it were just a single letter at a time this would be easy. But it wants us to let the user enter … | |
hi i need help with add edit and delete records in access using vb.net. i got textbox 1 to5 and three buttons which named addnew ,edit, delete. my database is in name records.mdb i want user to enter the information and click addnew button and the system save the records … | |
Helo. I have a TD element, with a SPAN element inside. I use td-s onmouseover and onmouseout events for a small animation. My problem is, that, when I move the cursor over the SPAN element, the onmouseout event for TD element is fired. I want to prevent this. With other … | |
[CODE] #include<stdio.h> #include<conio.h> void main() { int n,f; f=1; printf("Enter the number:\n"); scanf("%d",&n); while(n>0) { printf("%d",n); f=f*n; n--; } printf("The factorial of the integer is:%d",f); getch(); } [/CODE] | |
hi i have a contact form that i want to submit to a dater base and here is my code to do that [CODE] <?php require_once('Connections/mywigan.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = … | |
It's actually not help with the code, it's help finding an assembler and linker that will work on 64 bit windows 07... Not only that, but I'd like to be able to be able to debug it. But since windows dropped debug from 64 bit. Any help? P.S.: I have … | |
I am currently storing the values retrieved from the user form including image supplied by the user to sql database. The image is stored in the database but at the time when am trying to retrieve that image am getting the following exception Parameterized Query '(@name varchar(8000))select firstname,image from register … | |
hi all plz explain me with syntax "how to pass pointer to a function or pointers to a function " . plz tell me if there any big tutorial which can solve my problem providing a deep knowledge about it . and one more probim : what is incorrect int … | |
HI! I am working with an image tagger system.. Im done reading the file's properties.. then when i go to code for keywords.. an error exist saying that Retrieving the COM class factory for component with CLSID {58968145-CF05-4341-995F-2EE093F6ABA3} failed due to the following error: 80040154. I Already added the DSO … | |
Hello, I am creating code that seemed fine, except when I entered a single character, or strings instead of numbers, the console continually prompts for user input and it is difficult to terminate the console. Below is the code [CODE] printf("\nHow many computers do you want to update?\n"); scanf("%d", &numComputersToUpdate); … | |
I am in a c++ class and I am doing a program which requires me to read in a text file and do change it. I need to know if something is in " " or ' ' to do this program. I can get the " " by doing … | |
codes for moving bar while indicating progress in percentage (1-100) | |
How can i convert amount like 400 as Four Hundred dollar only , any one can help me pls | |
Hi forum! My name is Eduardo and I´m from Portugal. I´m a newbie to C++ and I hope to learn a lot with you I´m facing a doubt that I couldn´t solve yet. (I will also post this thread at c++ area, hope you don´t mind ) My doubt lies … | |
Hi there my first post :), i've started a project that transforms a table from SQL to XML, works like a charm.Now i want to transform from a XML file to database: 1)search if there is a database created(i've done that using try catch) if not create a database XMLReader … | |
hi I am using following code to validate username and password please can any body check where is the mistake... [code] $adminuser = $_POST['adminuser']; $adminpass=$_POST['adminpass']; if((!$adminuser=="") or (!$adminpass=="")){ echo "Please enter Username and Password"; } elseif((!$adminuser=="admin") or (!$adminpass=="manoj")){ echo "Invalid Username and Password"; } else{ "good"; } [/code] | |
[code]#!C:\Python26\python.exe # Three-times-the-square-root-of-your-age.py # # This is a python program that # will input the user's name and age # the output will be 3 times the # square root of the user's name # # author: Min Ku "Peter" Joo # last revision: 02/10/2010 import os import math def … | |
Can anyone help me with this one? I have the following code and produces an output, but the Probability stays at 1 regardless of how many students I input....Any ideas? [code] #include <iostream> #include <fstream> #include <cmath> using namespace std; void main() { int numStudents, DayOfBirth, cnt; double Probability, Power; … | |
I whant to create registration page n login page ! I dont now how to create! | |
hello.... i want to do search box. it is exactly like google custom search. i am not talking about functionality. i am talking about look and feel. you see google search box. in that google image will appear. when we mouse in that text box that image will disapear. how … | |
Hello everyone! I have a button on my main form that allows me to get the visitInfo Table. The data are displayed inside a JTable. What I would like to know is how do I edit or delete a row from that Jtable by the click of a save button … | |
Hi All, This follow script does exactly what it says on the tin, except 1 thing, the "show next 10 results" wont show the next ten. any ideas anybody? [code] <?php // Get the search variable from URL $var = $_GET['q'] ; $trimmed = trim($var); //trim whitespace from the stored … | |
Hello guys. Could you like to help me to make a button browser ? I made the FORM , but i don't know what code to write , like when i press the GOOGLE button , to open my browser at [url]http://google.com[/url]. [url]http://files.uploadffs.com/d/3/74fd3cfe/googlebutton.PNG[/url] Thank you guys. | |
below is my code....i m gettng "System.InvalidCastException: Specified cast is not valid." error in my code...m new on asp.net n sql...m trying to build login area....but unless n until i solve this error i can't move forward n as m new, m not gettng y m gettng dis error... can … | |
Hello guys. I made a picture box and i want like when a button is pressed , the BackgroundImage of Picture Box to be changed in a screenshot from my resources. Look what i did: [code] private void listBox1_SelectedIndexChanged(object sender, EventArgs e) { if (listBox1.SelectedItem.Equals("Rocket Launcher I")) pictureBox1.BackgroundImage = "sa-mp-042.png"; … | |
I'm looking to find out a way to drag and drop table rows between two tables. I reused jQuery example for[URL="http://jqueryui.com/demos/sortable/#portlets"] portlets[/URL], but that did not work to full satisfaction. [attach]13597[/attach] In above screen shot I added border, but that is just for illustration of the issue. Problems: [LIST=1] [*]As … | |
Hi, Thanks for opening. I'm writing a "fill-out" form in Delphi, with each section enclosed in its own tab, using TPageControl and TTabControl. When the info on each tab has passed validation rules (all working fine), the next button is enabled and the tab can be moved on. When the … | |
Hi all, I am working on an interface that communicates with a PostgresSQL to create and grade a multiple choice test. The steps go like this: 1. Get user information 2. Set up a record of the user's test in the database 3. Pull in questions and possible responses from … |
The End.