199,114 Archived Topics
Remove Filter ![]() | |
Hi, I want to know just the name of the files that contains a given pattern. Then I would open the files in vi and replace the pattern. But using grep -n '&&&' * gives all the occurrence of the pattern which is not very helpful. How do I view … | |
Hi Is it possible to capture a mouse click anywhere on a form (both on the form itself and on any control) without putting code in each control? I want to reset a timer/timeout when the user hits a key (which I have working no problem w/ a combo of … | |
Hello, I have two tables--QUESTIONS, ANSWERS. I store the questions in one table and the answers in the second. Table Structure--QUESTIONS Field 1: Question_ID Field 2: Question Field 3: Question_Type (There are 3 types of questions) Field 4: Step_ID (There are 15 steps in the program) Table Structure--ANSWERS Field 1: … | |
hello, I have faced a problem that is almost as same as the problem below: ((((If I try to define a timer in an ogl.BitmapShape, like this: class T6963_device (ogl.BitmapShape): def __init__(self): ogl.BitmapShapeinit__ (self) self.t1 = wx.Timer (self) I get this error Traceback (most recent call last): File "D:\data_to_test\smtest2.py", line … | |
Hi everybody, I'm trying to install python 3 from source in my new Mandriva 2010. I have read a lot of posts in this website, but none of the instructions has worked for me. The code compiles and all, but it doesn't install tkinter. I know that tcl/tk are installed … | |
This program is to accept input from a user to select there own username and then a password which will be compared to the password KazzyB, and give an output saying Welcome, The only problem in it is a single error KB.cpp(18) : error C2447: missing function header (old-style formal … | |
i'm trying run a cgi script from a c program using execve(). It seems to be able to open and run the cgi file. but instead of actually generating graphical html it generates html code. example: execve("this.cgi", NULL, NULL) will generate: [CODE] /this.cgi /this.cgi <html> . . . the rest … | |
I don't know where to begin: Lab 5 Write a program that will first fill two out of three parallel arrays (local to the main function) with user-supplied data and then give users the choice to query the parallel arrays. The first array is as follow: char title[SIZE_ROW][SIZE_COL]={"Intro to Calculus", … | |
hello, i'm trying to install opencv 2.0 and use it in vs 2005, but i'm having some trouble compiling any piece of code that uses opencv including the examples installed with it. I searched all around and all i could find is instruction for installing previous opencv versions but not … | |
hello can any one help me out dt how top create a symbol library using openGL? ...how to fetch dis symbol and display on screen ??... | |
I'm making a red black tree (RedBlack class) whose nodes will contain customers (customer class) rather than the generic int data. Unfortunately, I can't seem to get VS 2008 Express recognize that data is of type customer. I get all sorts of redefinition errors, and I've tried pragma once and … | |
Hello, i would like to make program in python which reads the lines from an input file, which looks like this: Bob 10 20 30 John 15 15 Kate 20 and the program sums the numbers for each person and writes into an output file which should look like this: … | |
Okay, I have read through all of the average grade java swing threads I could find on this site, but I can't seem to fix this problem. Everything seems to work correctly, but the average grade won't display in the JTextPane. I am going to get rid of the extra … | |
I'd like to display the contents of some fields in a MySql table as a table on a webpage. I found sample scripts, but I'm doing something wrong in trying to adapt them. Can anyone give me a link to a webpage that displays a table like this, so I … | |
Is this possible to write a variable argument macro like this: [CODE]#include <stdio.h> #include <stdarg.h> #define func(x, ...)\ {\ va_list ap;\ va_start(ap, x);\ int y = va_arg(ap, int);\ printf("y is %d\n",y);\ }\ int main() { int x; func(5, 4); return 0; }[/CODE] I found an interview question which asked how … | |
I am attempting to get the username of the current user on a windows computer using windows API. I am using the GetUserName function in the Windows Unit. I am having some problems with giving the correct data types for function arguments. Any help would be greatly appreciated. [code] program … | |
Hi all, I am using object tag to play flv video in my webpage.I want to change param value dynamically so that i can play videos when i click image button. I want to do like the one in youtube but without using database. Please help me to get rid … | |
My assignment is to develop a C++ program to count the number of capital letters in a given string. String will be entered by user. The idea is to build my knowledge of loops and loop terminations. I've got the basics down (I think) but I just don't get what … | |
Is there a way I can know what is the Url I am currently browsing? If I would use that command or script it on this page it would return me: [url]http://www.daniweb.com/forums[/url] And if I would be testing on localhost or on some acceptance server, it would return me [url]http://localhost:1996/forums[/url] … | |
[CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; using System.Data.OleDb; using System.Web; //using System.Web.UI; //using System.Web.UI.WebControls; using System.Configuration; namespace QuanLiDSSV { public partial class Frm2 : Form { public Frm2() { InitializeComponent(); } private void btnBrowse_Click(object sender, EventArgs e) { } private … | |
I've inherited a project which pulls data from 2 DB (*.mdb), one is access 97 and one is access 2002. DAO 3.6 is referenced. We use OpenDatabase and OpenRecordset instructions. When running, we get "Unrecognized data format" error or error code 3343 when attempting to refresh any table in the … | |
Error message: "error C2181:1> illegal else without matching if 2>fatal error C1075: end of file found before the left brace '{' at 'c:\documents and settings\tjeo1\my documents\visual studio 2008\projects\new\newc\exercise.cpp(3)' was matched [CODE]#include <stdio.h> int main (void) { int c; printf("letter="); c = getchar ( ); if (('0' <= c && c … | |
![]() | Hi I had a quick question about the libraries in C. Is there anything available like the java api library (java.sun.com) but for C? The closest thing I can think of is the MSDN Library but I'm not sure. A comprehensive guide that describes what the various libraries do would … ![]() |
Hi have done the whole program but now am stuck at what initially seemed like a simple thing a repitation loop the program is supposed to ask the user if he/ she wants to continue with adding more data - if no exit and continue with the other stuff. [CODE]char … | |
hey guys very sorry for creating a new thread here but i couldn't find my queries in available threads I just want to connect the java applets with mySQL database, so that the project i am working on, should move forward. Any suggestion would be thankful. The code specs would … | |
Hi, I am trying to learn exceptions using "throws". So , my code is [CODE]public class A { public static void main(String args[]) { A a = new A(); int x1; int x2; x1 = 7; x2 = 0; a.printer(x1, x2); } void printer(int x1, int x2) throws ArithmeticException{ System.out.println("Add: … | |
Hi All I have my URLs without cleanup [url]http://10.0.0.76/project/mydashboard.php?section=12§ion_childs=1[/url] [url]http://10.0.0.76/project/some_x_page.php?section=12§ion_childs=1[/url] OR [url]http://www.myprojects.com/mydashboard.php?section=12§ion_childs=1[/url] [url]http://www.myprojects.com/some_x_page.php?section=12§ion_childs=1[/url] How can I get my URL like below [url]http://10.0.0.76/project/mydashboard/section/12/section_childs/1[/url] [url]http://10.0.0.76/project/some_x_page/section/12/section_childs/1[/url] OR [url]http://www.myprojects.com/mydashboard/section/12/section_childs/1[/url] [url]http://www.myprojects.com/some_x_page/section/12/section_childs/1[/url] I know we can do it with .htaccess, but i don't know how to write, can any one please help me to implement this. | |
Hi, I am calling web service through jquery ajax call for the first time and getting an error. Can please somebody help me in this i would really appreciate it. Below is the code: [CODE]<%@ Page Language="C#" AutoEventWireup="true" CodeFile="userNTID.aspx.cs" Inherits="Default2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html … | |
I am inputing from a text file, displaying it on the screen, displaying the menus and the choosing from there. It will repeat the menu, but, how to do I get it to read the next line in my input file and display it to the screen before repeating the … | |
I have a table like this (say, friends): [CODE] |_name1_|_name2_| | james | sarah | | bob | james | | james | dave | [/CODE] I want all james' friends. It will need to include 'bob' as well but I can not figure out what the query will need … | |
Hey, just curious. Is atof() a C++ only function or will it work in standard C? | |
Hello all, I'm fairly inexperienced at C# and I am currently working on a project that requires me to generate two random numbers, then apply a random mathematical operator (+,-,*,/). I'm currently struggling on how I would do this. So far I have worked out how to generate two random … | |
Hi, why i can put only one value in MySql db? When put first value, show this error: "Parameter "?city" has already been defined" Ant stop on this line: cmd.Parameters.Add(new MySqlParameter("?city", MySqlDbType.VarChar, 40)).Value = city; [CODE=C#] conn = new MySql.Data.MySqlClient.MySqlConnection(); cmd = new MySql.Data.MySqlClient.MySqlCommand(); string strConnection = "SERVER=localhost;" + "DATABASE=new;" … | |
OK I'm not really sure how to put it but I will try my best to explain my question. Basically I am really lost when it comes to arrays and for loops, so I need help badly. I have in my HTML Form about 20 checkboxes like this: [CODE]echo "<input … | |
Trying to find the string length,of word_to_guess,wont work,any suggestions??? [CODE] #include <iostream> #include <cstdlib> #include <string> using namespace std; int main() { int num; int size; int num_guess; string word_to_guess; string words [10] = {"john","paul", etc} char exit = 'y'; char guess; srand((unsigned)time(NULL)); num = rand() % 9 + 0; … | |
Hi there, I did not see an Android thread, but its pretty much an extension of J2SE so this is probably the best place for it.. I'm currently developing on minimum sdk version 3 (Android 1.5 - cupcake) and I'm having a strange unexplained issue that I have not been … | |
1. Why Nesting of comments is not supported by c. code does not involve much complexity to have that. 2. Why Array partial initialization have zero appended. why it cannot do in normal declaration. 3. continued.... Thanks, 3R | |
HI all, I am using a php Code for Image hosting script and having this kind of error continuously..... "Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpbihhaX' to 'http://masalalook.com/imagehost/upload/41270034561.jpg' in /home/masalalo/public_html/imagehost/config.php on line 83" Line Number 83 contains this "if (move_uploaded_file($_FILES['file']['tmp_name'],$filedir."/".$newname))" Help me plz how to get out of this trouble...... … | |
I want to fill a structure and then print it. How to print the values of the structue? The structure is: [CODE] #define UINT32 unsigned int #define INT32 int #define UCHAR unsigned char typedef struct CheckSumPair { UINT32 weakcs; // The weak, rolling Adler32 checksum. UCHAR StrongCS[10]; };[/CODE] I have … | |
i want this code to keep track of whose turn it is: but i keep getting this error : error: a function-definition is not allowed here before '{' token any help [CODE]void turn_it_is(int play1, int play2) { cout << ((turn_it_is%2)==1)?(play1:play2)<< cout << " it's your turn "; cin>> turn_it_is; }[/CODE] | |
Hello There, I am Using This code to backup mysql database from my hosting server. [CODE]#!/bin/bash # # MySQL Backup Script # VER. 2.5 - http://sourceforge.net/projects/automysqlbackup/ # Copyright (c) 2002-2003 wipe_out@lycos.co.uk # # This program is free software; you can redistribute it and/or modify # it under the terms of … | |
Hi, I have one page session-bom.php, in which computer parts are availlable for shopping. e.g. mouse , keyboard ect. with the checkbox. and textboxes to enter quantity and label of prices. When user hits 'submit' button, only selected parts goes to the bill.php page and showing their price multiplied by … | |
I need to read a file into a struct so i can print out a monthly bank statement after adding all deposits and with drawkls from another file but im having trouble reading the fileinto the array this is what i have so far.. [CODE]#include <iostream> // Need for cout,cin … | |
i'm having problem in executing this statement.... error expression syntax switch(col) { case 1:text[]={"0x00000000"}; break; case 2:text[]={"0x00FFFFFF"}; break; case 3:text[]={"0x0000FF00"}; break; case 4:text[]={"0x00FF0000"}; break; case 5:text[]={"0x00C000C0"}; break; case 6:text[]={"0x000000FF"}; break; case 7:text[]={"0x0000FFFF"}; break; case 8: text[]={"0x00FFFF00"}; break; } char text[10] is global. please help me out............. | |
He guys, I am trying to figure out what is wrong with this code for level traversal in binary tree in C. I would really appreciate any help or suggestion or changes in my code. [CODE] status level_traverse( tree T, status( *p_func_f ) () ) { tree *node ; queue … | |
[CODE]public class Employee { private String name; private String SSN; private Employee e = new Employee("ME","MYSSN"); Driver x = new Driver(32); public Employee(){ } public Employee(Employee e){ this(e.name,e.SSN); } public Employee(String name, String SSN){ this.name = name; this.SSN = SSN; } public static void main(String [] args){ Employee e = … | |
im trying to add i think you call a random string picker heres what i have added it too [CODE]#include "stdafx.h" refimport_t * ri = (refimport_t *) NULL; refexport_t * re = (refexport_t *) NULL; refimport_t * o_ri = (refimport_t *) NULL; refexport_t * o_re = (refexport_t *) 0x0068A1E8; cg_t … | |
Is it possible to convert [ICODE]std::FILE*[/ICODE] to [ICODE]iostream[/ICODE]? | |
So here is the code: [CODE] #include <cstdlib> #include <iostream> #include <iomanip> #include <stdlib.h> using namespace std; void printintromessage (); void getUserInput (char& Y); //void printplayerinfo (const int& numofgamesinseries, const int& numofplayersonteam, int& i); int main(int argc, char *argv[]) { const int numofgamesinseries = 3; const int numofplayersonteam = 4; … | |
Hello to all..plz help me in this plzzzzzzzzzzzzz i want to view/download a files from production server and after downloading i want to delete the same file from 2 places i.e from (database and one Uploaded folder in server). i have 2 quries: 1: View Only ? i have this … |
The End.