199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for BBKisaki

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 …

Member Avatar for switch3d
0
168
Member Avatar for xorpej

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 …

Member Avatar for biglovehaha
0
221
Member Avatar for eternaloptimist

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 …

Member Avatar for eternaloptimist
0
107
Member Avatar for valeriy_zf

[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 …

Member Avatar for jonsca
0
320
Member Avatar for shawnk

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% …

Member Avatar for shawnk
0
97
Member Avatar for suncica2222

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 …

Member Avatar for Salem
0
171
Member Avatar for pirula

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 …

Member Avatar for samaru
0
662
Member Avatar for KirkPatrick

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 …

Member Avatar for KirkPatrick
0
106
Member Avatar for clutchkiller

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 …

Member Avatar for clutchkiller
0
187
Member Avatar for VilePlecenta

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 …

Member Avatar for VilePlecenta
0
140
Member Avatar for axa121

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] …

Member Avatar for axa121
0
146
Member Avatar for FotG2

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 …

Member Avatar for FotG2
0
941
Member Avatar for bombasstic

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!

Member Avatar for apegram
0
83
Member Avatar for Skeen

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 = …

Member Avatar for mrnutty
0
227
Member Avatar for mdwhite76

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 …

Member Avatar for jbisono
0
68
Member Avatar for csfriends

how is artificial passenger different from other gadgets(like radio)? can v disable the device?

Member Avatar for Nick Evan
0
366
Member Avatar for baloonie

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 …

Member Avatar for Ezzaral
0
111
Member Avatar for liljazz2007

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 …

Member Avatar for Nick Evan
0
243
Member Avatar for DJPlayer

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() …

Member Avatar for Narue
0
156
Member Avatar for anjoz

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; …

Member Avatar for abhimanipal
0
76
Member Avatar for dottomm

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. …

Member Avatar for dottomm
0
126
Member Avatar for rEhSi_123

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() { …

Member Avatar for WaltP
0
2K
Member Avatar for soapyillusion

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 …

Member Avatar for soapyillusion
0
257
Member Avatar for renyges

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 …

Member Avatar for renyges
0
225
Member Avatar for paptamas

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 …

Member Avatar for Graphix
0
206
Member Avatar for furqankhyraj

[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]

Member Avatar for WaltP
0
150
Member Avatar for motters

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 = …

Member Avatar for motters
0
116
Member Avatar for Nicholas_Roge

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 …

Member Avatar for gerard4143
0
97
Member Avatar for mith_cool

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 …

Member Avatar for mith_cool
0
257
Member Avatar for hemant_is_here

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 …

Member Avatar for jamma
0
804
Member Avatar for emompong

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 …

Member Avatar for emompong
0
429
Member Avatar for rsaska

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); …

Member Avatar for rsaska
0
78
Member Avatar for c++student01

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 …

Member Avatar for potatosoftware
0
192
Member Avatar for Masterace
Member Avatar for avirooge
0
190
Member Avatar for bdrkb

How can i convert amount like 400 as Four Hundred dollar only , any one can help me pls

Member Avatar for avirooge
0
158
Member Avatar for mingas

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 …

Member Avatar for Ancient Dragon
0
214
Member Avatar for strunful

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 …

Member Avatar for strunful
0
183
Member Avatar for manoj30dec

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]

Member Avatar for harshbavaliya
0
117
Member Avatar for SOURP0PCORN

[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 …

Member Avatar for vegaseat
0
189
Member Avatar for PDB1982

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; …

Member Avatar for PDB1982
0
52
Member Avatar for frezek
Member Avatar for muralibobby2015

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 …

Member Avatar for saiprem
0
123
Member Avatar for JBeginer7891

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 …

Member Avatar for JBeginer7891
0
4K
Member Avatar for whiteyoh

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 …

Member Avatar for whiteyoh
0
120
Member Avatar for charqus

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.

Member Avatar for ashishkumar008
0
131
Member Avatar for ksp_852005

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 …

Member Avatar for padtes
0
253
Member Avatar for charqus

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"; …

Member Avatar for ashishkumar008
0
178
Member Avatar for peter_budo

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 …

Member Avatar for peter_budo
0
606
Member Avatar for donald1804

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 …

Member Avatar for finalist
0
734
Member Avatar for mmonclair

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 …

Member Avatar for grungy coder
0
117

The End.