64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for MrNoob

Hey i m reading tutrial about rucursion and got code whish isnt complicated or anything but i dunno why it prints the way it does [code] /* recur.c -- recursion illustration */ #include <stdio.h> void up_and_down(int); int main(void) { up_and_down(1); return 0; } void up_and_down(int n) { printf("Level %d: n …

Member Avatar for ankush chander
0
141
Member Avatar for ayesha789

Hi, This is a code of Dynamic Drop Down Option. If I select Item Code It Shows Item Name and vice versa. I need to fill option from MySQL Database. Can anybody help me out. please . [CODE=html]<html> <head> <title>Gender Drop Down Test</title> <script type="text/javascript"> function selectItem(value, id){document.getElementById(id).value=value;} </script> </head> …

Member Avatar for ayesha789
0
135
Member Avatar for turbomen

Dear Sir, Please find the attached document for your reference. Could you tell me what is wrong of my answer? [code] program Project1; {$APPTYPE CONSOLE} uses SysUtils; var balance, posNeg, positive, negative: integer; begin randomize; writeln('Get average balance'); balance:=random(10000); posNeg:=random(2); if posNeg=0 then begin balance:=balance*-1-30; end else begin writeln('Positive balance.'); …

Member Avatar for FlamingClaw
0
175
Member Avatar for squall1986

I was working on an assignment, and I had finished everything and was cleaning up the code by just adding some comments to it and everything, and when I tried to run it again afterwards, it came up with an error that said "Debug Assertion Failed!" It says "Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)" …

Member Avatar for squall1986
0
117
Member Avatar for DaveyMoyes

hi all - can anyone help with the following - I am unable to upload any data to my database - I can connect successfully as i have changed the password, database name and got the error's i was expecting. but for some reason, the data just doesn't seem to …

Member Avatar for kireol
0
70
Member Avatar for peterv6

First off, let me state that I have read the FAQ about this error, and have tried all the fixes, with no success. If anyone can give me a hand with this I'd be grateful. I've got some PHP web pages that connect to a MySQL database. I've got a …

Member Avatar for kireol
0
111
Member Avatar for dwdata

Hi, I am trying to compile a detail page. Here is the code below: [CODE]<?php require_once('auth.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>Village Of Hope Worship</title> <style type="text/css"> <!-- .style13 { font-size: 12px; color: #70283C; font-weight: bold; } .style14 …

Member Avatar for kireol
0
114
Member Avatar for Zetlin

Ok so I was working on file handling, nothing special just making new (.txt) files and putting some text in it. That works fine the problem is that when I try to read the file from within python nothing comes up and when I try to open the file once …

Member Avatar for Zetlin
0
328
Member Avatar for MrNoob

in my switch program keeps reading wrong input also i know i used way too much fflush(stdin); because stupid printf keeps inputting to the screen so scanf gets bad but i m sure i desinged program nice i dunno why when i like enter num 5 it keeps reading artichokes …

Member Avatar for MrNoob
0
152
Member Avatar for Stefano Mtangoo

Hello developers, I have been playing around with C++ and wxWidgets for a little time now and I think it is time to make a little useful program I am planning to make a CD ripper and Encoder (re-inverting the wheel purposely for learning) and I plan to use CDRip.dll …

Member Avatar for Stefano Mtangoo
0
135
Member Avatar for goody11

I was making a function to save info and it doesn't work. It's actually made up of 2 functions. I've eliminated my problems down to the second function and can't figure out what to do. Here is the function: [code=cplusplus] void DoFileSave(HWND hwnd) { OPENFILENAME ofn; char szFileName[MAX_PATH] = ""; …

Member Avatar for goody11
0
289
Member Avatar for squall1986

Hi, for a class, I'm trying to implement a separate-chaining hash table stored in a vector that contains pointers to vectors where the keys will be stored. This is basically what I have: [CODE=c++] typedef vector<string> KeyChain; vector<KeyChain *> Table;[/CODE] The problem I'm having is when I want to access …

Member Avatar for squall1986
1
137
Member Avatar for eXsolved

Hey All I am trying to create a [B]DLL[/B] to handle some directx for me. But it seems to be acting up. If you take a look at the picture below you will see that the [B]LPDIRECT3DDEVICE9 d3ddev;[/B] pointer is not being created? While at the same time, the [B]D3DPRESENT_PARAMETERS …

Member Avatar for eXsolved
0
532
Member Avatar for deven_a76

Hello friends, I am new to C# and try to learn the basics. I am getting error [B][I]"error CS0052: Inconsistent accessibility: field the 'Model.Notifier' is less accessible than field 'Model.notifyViews'"[/I][/B] Could you please let me know the error I am getting... [code] using System; using System.Data; class Model { delegate …

Member Avatar for deven_a76
0
116
Member Avatar for kingben

Hi. How do I differentiate Internet and Intranet Page viewers? I am providing some extra privileges to the Intranet users to publish pages, while the Internet Users can only view them and not publish new pages. What's the class/functions that I should be googling for?

Member Avatar for kireol
0
76
Member Avatar for kangarooblood

what's wrong with this code, when i try to make the pyramid, it's always the same height of the pyramid. and somehow onumber always has the value of 20, WHY??!! Here is the code and I'll also include a picture of how it looks. [CODE=c++] #include <iostream> #include <iomanip> using …

Member Avatar for Nick Evan
0
117
Member Avatar for pixelerator

Hello my name is intekhab khab persuing BCA final i have some problem in Visual basic coding as i dont know any thing about Visual basic i know c/c++ php Ajax but i dont familiar with visual basic 6.0.Sir gave me assignment and two days of only please help me …

Member Avatar for vb5prgrmr
0
155
Member Avatar for emarshah

Hello all, Thanks in advance for any type of help, i want to create a text file from already created textfile, which will have all the "\t" characters replaced with "\n" e.g abc.txt ammar hassan shah naqvi new.txt ammar hassan shah naqvi here is the code i m using, but …

Member Avatar for Ramy Mahrous
0
183
Member Avatar for babbu

here is my code Dim oledbcom As New OleDb.OleDbCommand oledbcom.CommandText = ("INSERT INTO Customer Company, Address, Telephone values ?,?,?") oledbcom.Connection = oledbcon Dim oledbparam As OleDb.OleDbParameter = _ oledbcom.Parameters.Add("@Company", OleDb.OleDbType.VarChar, 30) oledbparam.Value = txtCompName.Text.Trim() oledbparam = oledbcom.Parameters.Add("@Address", OleDb.OleDbType.VarChar, 80) oledbparam.Value = txtAddress.Text.Trim oledbparam = oledbcom.Parameters.Add("@Telephone", OleDb.OleDbType.VarChar, 15) oledbparam.Value = txtContact.Text.Trim …

Member Avatar for Teme64
0
98
Member Avatar for kangarooblood

Since the very first time I programmed c++ I've been trying to make a program that looks like this [CODE=c++] #include <iostream> using namespace std; int main() { char name; cout << "please type in your name >> "; cin >> name; if(name == 'kevin'){ cout << "hello bitch" << …

Member Avatar for Sky Diploma
0
131
Member Avatar for sharal

hi forum i was working with odbc and used odbc_exec(). but when i used this in mysql this is not working i also used mysql_query() but this is not working too here is the code [code=php]$id; $sr; $cs='fa'; $q2="SELECT MAX(ser) AS mxid FROM (SELECT * FROM Table1 AS T2 where …

Member Avatar for sharal
0
246
Member Avatar for GeekByChoiCe

Hello I am coding an FTP program, the downloading/uploading happens in a seperate thread. The problem is now how to pause/resume the download (even on servers that don't support file resume), an easy/working way is to pause/resume the working thread with thread.suspend but it tells me that this function is …

Member Avatar for GeekByChoiCe
0
900
Member Avatar for llemes4011

Hi. When I add a JComponent to my JFrame, it isn't the size of the remaining space in the frame. I want it to work in a way so that when i add a JComponent, it (and it's contents) stretches to fill the remaining space in the screen... Is there …

Member Avatar for llemes4011
0
144
Member Avatar for GDICommander

Hello everyone! I'm developping a chat application in a client/server context and every client has a shared directory. I want the server to know the directory structure of each shared directory of every client. I'm asking myself if there's an existing class in the Java API that can keep a …

Member Avatar for ~s.o.s~
0
209
Member Avatar for sharao

hi frnds i installed apache 2.0.59 + svn-win32-1.4.0 when iam importing upto 5 mb it's accepting when i upload my java project nearly 12 mb its showing the following error [B][U]Invalid change ordering: new node revision ID without delete [/U][/B] also tried with apache 2.2.11 + svn-win32 1.5.4 even though …

Member Avatar for sharao
0
134
Member Avatar for woocha

Hi Guys & Gals, I have a JS file for an AJAX app that works great in Firefox, Chrome, and Opera, but not in IE6 or IE7. The JS file is located here: [url]http://www.russwilliamsart.com/scripts/imago.js[/url] and the XML file it grabs info from is right here: [url]http://www.russwilliamsart.com/gallery/Giclees/gallery.xml[/url] I think the problem …

Member Avatar for FlashCreations
0
317
Member Avatar for S2009

Hi all, I am creating a windows application. I have a column in the backend - MS sql server 2005 as ID which stores Patient Id. The values for this column should start with PT and contain the serial numbers in ascending order. Eg. PT001 PT002 PT003 I want to …

Member Avatar for kvprajapati
0
140
Member Avatar for lotrsimp12345

i am supposed to make 2 functions called find and they are supposed to find a character or string if they are similar when i do this progam gives me weird error: "use of search ambigious" "first declared as class search here. //main [code] #include <iostream> #include <cstdlib> using namespace …

Member Avatar for smart_pc
0
226
Member Avatar for daviddoria

i.e. [code] class A { int x = 5; }; [/code] I saw a mailing list post from October 08 where a guy asked if this was going to be added. gcc 4.4 was released April 09, so I would assume it would have been added by then? I haven't …

Member Avatar for Ancient Dragon
0
163
Member Avatar for Ibn Saeed

Hello I would like to know how to display orders placed on a certain day. For e.g. I would like to display orders placed today. My MySQL database contains the following tables: 1). orders 2). orders_statuses Under [B]orders[/B], I have the following fields: 1). orders_id 2). orders_placed_date Under [B]orders_statuses[/B], I …

Member Avatar for Ibn Saeed
0
122
Member Avatar for funfullson

I am sorry if it is simple or repetitive but I have problem with this. I make a play : I have python 2.6 or 3.0 a program in my c partition its name is test.py I want to compile it and it have to works in linux and windows. …

Member Avatar for shadwickman
0
113
Member Avatar for wanne

Sorry.. I am new to this forum. I tried to find solution from older threads but couldn't. Here I am starting a new thread. My doubt is that suppose i want to do one looping process to assign values, how I have to do. For example: Having one list like …

Member Avatar for woooee
0
97
Member Avatar for mansi sharma

I want to get image from the file..I m able to do it....But mine code do not close the file,after getting the image,I want to close the file.Cz after getting the image,I want to delete that file.....on Deleteing error is dere file is user by another process... Public Sub GetImagesContent(ByVal …

Member Avatar for mansi sharma
0
831
Member Avatar for john_beginner

hello every one... i'm very new to c# in the following program (Console application prg.) i want to get "int" value of "eno","ph_no" in place of string type but i don't know how to convert string type to "int" type if i use like eno=(int)console.readLine(); then it will give error …

Member Avatar for ddanbe
0
170
Member Avatar for breakid

it copy the file with 0 kb. can anyone please help me. I am working in this over a week no progress. server class [CODE] package javaapplication29; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.sql.ResultSet; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; import java.net.ServerSocket; import java.net.Socket; public class Server …

Member Avatar for ede
0
158
Member Avatar for andreivanea

Hello. I am writing a program that uses a List<T> object to retain a list of int[] objects. [CODE=C#] private int[] numbers = new int[9]; private List<int[]> theList = new List<int[]>(); [/CODE] It's basicaly a backtracking algorithm that constructs the [I]numbers[/I] object, which contains a permutatio of the numbers 1..9, …

Member Avatar for Poab9200
0
6K
Member Avatar for purijatin

class A { void show() { System.out.println("show"); } } class B extends A { void disp() { System.out.println("disp"); } } class Prac2 { public static void main(String args[]) { A ob = new B(); ob.disp(); } } /*this thing shows an error */ now my question is :i thought we …

Member Avatar for purijatin
0
117
Member Avatar for revski

Hi i have another question this time about mathmatical calculations in delphi. i have 3 labels on the form. Label1 is formatted like this 200/50, i need to use both parts of this caption in the calculation, the calculation needs to be 200 * .50 the 2nd Number in the …

Member Avatar for FlamingClaw
0
162
Member Avatar for salibaray

Hi there, I'am developing a system for banner selection (affiliates) and I have tested the system throughly on my local machine and everything works just fine, but when I have uploaded it to my GoDaddy account and tried to use my system I got the following error: Warning: mysql_fetch_array(): supplied …

Member Avatar for salibaray
1
250
Member Avatar for scsachira

I'm designing chat application these days.. I tried several samples which i found from the web.. I designed Server and Client.. When i run client in my machine, server get it nicely.. but when server in my machine and client in other machine, server doesn't detect client.. I tried 5+ …

Member Avatar for scsachira
0
128
Member Avatar for painless

i m not getting the desired out put .....according to the program ,it will have to give the movement of the circle in the direction of the diagonal. [code=java] import javax.swing.*; import java.awt.*; public class DrawCircle{ int x=70; int y=70; public static void main(String[] args){ DrawCircle dc = new DrawCircle(); …

Member Avatar for kvprajapati
0
110
Member Avatar for kimbula...

Hi all, I need a favor on SQL this time There are 4 tables as follows Employee(EmpID,EmpName,...........) Designation(Des_ID,Designation....) EmpProfInfo(EmpID,Des_ID,..........) Training(TrainingTypeID,EmpID,TrainingType,.......) When an employee allocated to a training their details will be inserted in to the Training Table I want to write a sql query so that I can select EmpID,EmpName,Designation …

Member Avatar for samir_ibrahim
0
123
Member Avatar for Piya27

Hi All, I am working on a windows application in vb.net. (School Management Project). My problem is that, when I am adding the Personal Details of a student,(which include enrolmentno(primary key in the database),name,class,section,etc), when I click the save button what I want is that the enrolmentno should appear on …

Member Avatar for Teme64
0
165
Member Avatar for VernonDozier

I'm pulling my hair out on this one. It's been a while since I've specified a path for an ofstream. I just want a simple file called "abc.txt" in the C: folder and I want to write "abc" to it. Anyone see anything wrong? Thanks. [code] #include <fstream> using namespace …

Member Avatar for VernonDozier
0
117
Member Avatar for dwdata

I am working of a musicians volunteer DB. I have a ADD Volunteer page: [code] <?php require_once('auth.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>Village Of Hope Worship</title> <style type="text/css"> <!-- .style1 { font-size: 24px; font-weight: bold; } .style3 { …

Member Avatar for dwdata
0
192
Member Avatar for tomtetlaw

When I run this code: [code=python] import wx ID_FILE_QUIT = 101 class MainFrame(wx.Frame): def __init__(self, title): wx.Frame.__init__(self, None, wx.ID_ANY, title=title) self.menuBar = wx.MenuBar() self.fileMenu = wx.Menu() self.fileMenu.Append(1, '&Quit\tCtrl+Q') self.Bind(wx.EVT_MENU, self.Close(), id=ID_FILE_QUIT) self.menuBar.Append(self.fileMenu, '&File') self.SetMenuBar(self.menuBar) self.Show() app = wx.App() frame = MainFrame('Ya Mum') app.MainLoop() [/code] I get some error about expecting …

Member Avatar for lllllIllIlllI
0
131
Member Avatar for cinemaduro

Hey all. First time poster here. This looks like a great community! I'm getting a "Parse error: syntax error, unexpected T_STRING" error. I'm just starting to get into PHP and can't for the life of me see where the problem is. This is part of the NextGen Gallery plugin for …

Member Avatar for cinemaduro
0
157
Member Avatar for Quan Chi2

Hello. I hope not to annoy you with such a question. I'd like to read cell data from specific columns within a spreadsheet. I'm trying to read data within the following format (from the .xls file I'm analyzing). [code] Wavelength (nm),Absorbance (AU),Std.Dev. 190,-0.333324432373047,0.187723662173536 191,-0.184257030487061,0.169325912513228 192,0.0989446640014648,0.243154257457939 193,-0.196856021881104,0.322099862671817 194,0.0530929565429688,0.250335468281439 195,0.146337985992432,0.301110817821903 196,0.0579915046691895,0.359937145256163 197,-0.309549331665039,0.293385120791022 …

Member Avatar for Quan Chi2
0
162
Member Avatar for travis67

Hi again. I need to make tooltip work on mouse click, so when I click on the button for an example, a popup info should appear.

Member Avatar for travis67
0
220
Member Avatar for Your_mum

Right, so I looked at some python tutorials about interfacing with internet, but every time a use a code such as: [code] import urllib pagetext = urllib.urlopen("http://www.python.org.html").read() print pagetext [/code] It just comes up with a load of error messages. how can i sort this

Member Avatar for vegaseat
0
129

The End.