199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Dark Pallys

Hey there everyone.. I'm pretty new in this forum and also with Assembly, to be honest I haven't programmed anything in Assembly. I'm a VB Programmer and I work with some C/C++ But well that's not the reason I'm here hehe. On the forum I work at one of our …

Member Avatar for Dark Pallys
0
103
Member Avatar for tayspen

If i were tto implement somthing like this :idea: cmd \k shutdown.exe -r on a button click would that saftley restart y comp. from that app. if not how would i do this :?:

Member Avatar for peterpollen
0
222
Member Avatar for MasterDucky

Hi there! I'd like to check if a string is preceeded by another one. More precisely in this example i would like to check if there is "lion" right before "sleeps". Im using rfind() to search backwards but for some reason it starts the search from the beginning of the …

Member Avatar for MasterDucky
0
140
Member Avatar for Scottmandoo

Alright this is my code, the error im getting is in red [CODE]<?php include("dbinfo.inc.php"); $tut_name = $_POST['tut_name']; $tut_link = $_POST['tut_link']; $tut_program = $_POST['tut_program']; $tut_category = $_POST['tut_category']; $tut_video = $_POST['tut_video']; $tut_download = $_POST['tut_download']; $tut_image = $_FILES['tut_image']['name']; function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) …

Member Avatar for Scottmandoo
0
84
Member Avatar for regalla

i have two forms and on each form one text box having access database behind and is connected to forms by using data bound controls. My problm is that what ever value i enter form1.text1 , it should come in form2.text1. iam using code like this in form1 lost focus …

Member Avatar for choudhuryshouvi
0
93
Member Avatar for trick

I have this C program which produces a .csv [comma separated variable] file, from an uploaded .txt file. The uploading part and writing the .csv file went fine, however, my problem is that the file can't be downloaded by the user. Can you tell me what's wrong missing with my …

Member Avatar for peterpollen
0
144
Member Avatar for Altarium

I'm working on writing a small program that jumbles up a word an allows the user to move letters around in a string until the word us un-jumbled. For Example: If the given word is "movie" The program might jumble it to say "vmioe" In which case "v" would be …

Member Avatar for bgeddy
0
216
Member Avatar for vesper967

I'm working on a project that is supposed to parse through a text file (about the length of a book or small dictionary) and print out the index. The program does not need to keep track of the frequency of the word. The data structure I'm using is a binary …

Member Avatar for vijayan121
0
153
Member Avatar for nickthedivil

Hey I know i am over looking somthing small but can i get some help on line 23 [code](strcmp(chartryname, charname)==0 && (chartrypassword, charpassword) ==0){ [/code] I know this will not work its just to show what i am trying to do. I need to check two pairs of strings how …

Member Avatar for amitahlawat20
0
114
Member Avatar for hyperoctave

I will start this thread with a problem that I am trying to solve. I have searched for a solution, and can't find one, and daniweb.com users have been a great help in the past. This is a tricky one for me.. I hope we can find a solution. All …

Member Avatar for hyperoctave
0
602
Member Avatar for kemboy

[code=cplusplus] /////////interface //appication.h #ifndef APPLICATION_MAIN_H #define APPLICATION_MAIN_H #include<string> using std::string; class appliance { protected: string Manufacturer; string Type; public: appliance(string a,string b); ~appliance(); void setManufacturer(string a); string getManufacturer(); void setType(string b); string getType(); void showDetails(); }; #endif [/code] [code=cplusplus] ///////implementation//////////////////// //appication.cpp #include<iostream> using std::cout; using std::cin; using std::endl; #include<string> using …

Member Avatar for kemboy
0
92
Member Avatar for digitz101

I'm having problem w/ this codes in bright red, when i'm trying to enter a name the first two letters are always not shown or when inside the inner looping, it don't show what the inner looping is containing. [code] #include <iostream> #include <iomanip> [COLOR="red"]#include <cstdio> // used for reading …

Member Avatar for Ancient Dragon
0
89
Member Avatar for curt1203

I have an assignment to do and i have a good portion of it already complete...The only thing i need is to validate that the number can only have one decimal point and the output of the number that has been validated is multiplied by two.....See the assignment question i …

Member Avatar for curt1203
0
115
Member Avatar for mallikarjun

mysql4.X is installed on my system.while i tried to install Phpbb forums in my personal computer it is giving the following error: Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Program Files\Apache Group\Apache2\htdocs\phpBB2\db\mysql4.php on line 48 Warning: mysql_error(): supplied argument is not …

Member Avatar for jayjaygibbs
0
389
Member Avatar for OmniX

I have a page that allows you to add images to the server. As of course you are able to add them to the server you should be able to delete them. Now the problem I have is that. I cannot delete the folder if there are contents in it. …

Member Avatar for OmniX
0
168
Member Avatar for Joatmon

Hi, after searching this forum adequately (I think) I have decided to post this thread asking for an easy to understand resource that describes how to do multithreading on C++ in windows. The current ones I am finding out there on the web either 1. Simply don't work or 2. …

Member Avatar for Ancient Dragon
0
110
Member Avatar for jalo3030

I need help work wil not compile this is what I have to do. Write a program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions (define these as constant variables): Federal Income Tax: 15% State Tax: 3.5% Social …

Member Avatar for Ancient Dragon
0
120
Member Avatar for jalo3030

Whats am i doing wrong it is not compile Write a C++ program that creates customers’ bills for a carpet company when the following information is given: a.The length and the width of the carpet in feet. b.The carpet price per square foot. c.The percent of discount for each customer. …

Member Avatar for Ancient Dragon
0
286
Member Avatar for jalo3030

What am I doing wrong with this one. I'm a beginner Write a program that takes as input any change expressed in cents. It should then compute the number of half-dollars, quarters, dimes, nickels, and pennies to be returned, returning as many half-dollars as possible, then quarters, dimes, nickels, and …

Member Avatar for Ancient Dragon
0
430
Member Avatar for jesseb07

hey, been working on a program and I had a need for a password line (btw I am using linux w/ gcc compiler). while I was making it I checked the net and found there's no getch() for linux, so I frankensteined one from several sources and got it to …

Member Avatar for jesseb07
0
2K
Member Avatar for The Midnighter

Hey there folks. I am trying to write a program that will take in a paragraph file, and compare it against a "Dictionary" text file, which is being inserted into a Binary Search Tree. Here's what I've got so far: [code]#include <iostream> #include <string> #include <fstream> #include <iomanip> #include <cctype> …

Member Avatar for chaosatom333
0
105
Member Avatar for Crushyerbones

I'm trying to do something similar to this: [code] int output_type=1 if (output_type==1) char real_out[7]="binary"; else if (output_type==2) char real_out=[6]"octal"; else if (output_type==3) char real_out[8]="decimal"; else { char[20]real_out="This REALLY shouldn't have happened.\n";} } [/code] I know the coding is kinda messy but I basically want the variable "real_out" to contain …

Member Avatar for Crushyerbones
0
113
Member Avatar for Shveetis

I am trying to write a code for sending a mail in JAVA.. And I am getting the error [code] javax.mail.MessagingException: Could not connect to SMTP host: mail.yahoo.com, port: 25; [/code] What can my mistake possibly be..?? Please help me find my mistake..

Member Avatar for Shveetis
0
268
Member Avatar for adnanius

hello I'm new to c++ and I'm writing a program for a college project. I'm getting an error I don't understand, if someone can help me with it I'll be thankful Oh, and by the way, the functions names are in French, hope this wont be a problem. Here is …

Member Avatar for adnanius
0
705
Member Avatar for amithasija

hi all, i just want to know whether it is useful to alter the 50% threshold scheme that mysql uses by default ,is it beneficial in any way regarding serach(either by increasing or decreasing its value)or is it good to use default value of 50% only. which is better (altering …

Member Avatar for Dani
0
76
Member Avatar for cyberdyne

hello frnds, I am a computer science student and i am very much interested in presenting a research paper in the field of computer networks.can u give some of the hot topics for the research.It will be greatly helpful if someone is ready to guide me in this process . …

Member Avatar for jwenting
0
99
Member Avatar for ITbull

Hi i'm getting an error CODE : ERROR: E2356 TEXTSORT.C "TYPE MISMATCH IN REDECLARATION OF 'SWAP' and i am exhausted trying to fix it...if you could help me please i would appreciate it. [code=c] void sort(char* string_array[], int length) { int i; int exchange_done; do { exchange_done = 0; for …

Member Avatar for mitrmkar
0
137
Member Avatar for farag

Hi I need urgent help doing this program (attached here) I must make it within hours, please help me Thanks

Member Avatar for farag
0
83
Member Avatar for jeffige

I have been following a C tutorial and using DevC++. When I write this code: [CODE]#include <iostream> using namespace std; int main () { cout << "Hello World!"; return 0; }[/CODE] and try to compile and run, I get this file popping up... [*] cstddef // Copyright (C) 1997, 1998, …

Member Avatar for jeffige
0
345
Member Avatar for jeffige

Is there any way to get rid of the "Press any key to continue" in the Dos window.:-/ I am using DevC++ ver. 4.9.8 It gets alittle annoying after awhile. And yes, I am new to programming.

Member Avatar for jeffige
0
206
Member Avatar for mexaros

I am relatively new to mysql. I am updating a site for a customer, and I'm using mysql 5 w/ phpMyAdmin. I was supplied an .sql (echeck.sql) script to build the database for this site. I create a database named "echeck" in phpMyAdmin, and once created go to the import …

Member Avatar for sls
0
113
Member Avatar for bornok15

How can i make a configuration in INI and XML so that i won't hardcode the location of my database and other configurations, and i would just change it from a form within my program? Can anyone help me? thanks..

Member Avatar for Ramy Mahrous
0
216
Member Avatar for lifei

hi..i know this question sounds like stupid, but there is nobody that surrounding me i can ask. i had already found the other people program at [url]http://www.ucancode.net/Visual_C_MFC_Example/Create-2d-bar-line-pie-chart-vc-example.htm[/url] however, there are a few things that i am not sure about it. can someone help me to solve it? what is it …

Member Avatar for Ancient Dragon
0
171
Member Avatar for guitarrick

Hello out there!! I am trying to search a string for the proper format of a date and time...... My date will simply be: ##/##/#### and my time will simply be ##:##A.M. or P.M. I am thinking I can use something like : [CODE=C++] size_type find_first_of(CharType ch, size_type indx = …

Member Avatar for Joatmon
0
160
Member Avatar for DOrmisher

I'm using Borland Builder C++ 6 (my tutors force me to) and I want to make a TImage full screen. I don't think there's any specific function for this, the only way I can see doing it is possibly manipulating the Height and Width properties, but then again I can't …

Member Avatar for DOrmisher
0
157
Member Avatar for majestic0110

hi hope you all ok. this block is in a for each statement. [CODE]TextBox tb = new TextBox(); tb.Text = rowData[key]; cell.Controls.Add(tb);[/CODE] I need these textboxes (which are created at runtime) to be required user entry fields. Bear in mind i know how to do this with asp.net, I am …

Member Avatar for majestic0110
0
446
Member Avatar for os.hacker64

I realize that kprint takes a pointer as a parameter. I don't understand how it loops through each character when you do something like kprint("HELLO WORLD"); Can you really just increment *s to get to the next char like: s++; char c = *s;

Member Avatar for Ancient Dragon
0
95
Member Avatar for Gaurav arora

hi all! Till now i have made simple applications in C# that dont make use of Database. But now i wanna make a simple projects that keep records of employee i.e. their name,ids,emails,addresses etc. For that purpose i need database connectivy code in C#. Another problem is this that i …

Member Avatar for JerryShaw
0
211
Member Avatar for shaka2

[code=c++] #include<iostream.h> #include<stdio.h> #include<io.h> #include<conio.h> #include<math.h> #include<stdlib.h> #include<string.h> void minmax(int); float max[13],min[13],array[13][270]; void main() { FILE *fp; char line[100]; char symptom[10]; float f; fp=fopen("input.txt","r"); int i=0,j=0,k,l=0; int rw_cnt = 0; int cl_cnt = 0; int len; while(!feof(fp)) { //i=0; //l=0; fgets(line,99,fp); printf("%s \n",line); // getch(); rw_cnt++; // len=strlen(line)+; // line[len]='\0'; …

Member Avatar for Ancient Dragon
0
237
Member Avatar for abhi287

Hi all On my jsp page i m having two tables.. first table have 14 rows which takes input type=text. and my second table is having 9 rows which also takes 9 inputs. Thus total 23 inputs on a form.. Now when the user click submit, i want to check …

Member Avatar for abhi287
0
72
Member Avatar for lordx78

[code=php] echo "<td align=center style='width: 30px'><strong><a href='' . $link1 . '' style='color: red'>CID</a></strong></td>"; [/code] Is this part properly coded [code=php] <a href='' . $link1 . '' style='color: red'> [/code] I tried like [code=php] <a href="' . $link1 . '" style='color: red'> [/code] but not working. Pls advise.

Member Avatar for lordx78
0
112
Member Avatar for Fatboy58

Vb 2005 problem Is there a way to search for identical items in a listbox en count them ?

Member Avatar for Monza
0
63
Member Avatar for avinash1986

hi, i am unable to read the newline using stream reader from a text file where it contains some names and their account ids. i need to copy each line to a string how can i change to next line. how can i know when end of file is reached???????

Member Avatar for aminit
0
154
Member Avatar for nicky-river

Hi everyone, This is just a short description on the various classes & interfaces that help you write an application, which can parse an XML document. The SAX API consists of the foll. packages :- [I]org.xml.sax[/I] - This package contains the basic interfaces of the SAX API. Some of the …

Member Avatar for ajithraj
0
152
Member Avatar for ajithraj

haii... pls help me to get the cursor position in javascript....from textArea thankzzzzzzz

Member Avatar for ajithraj
0
86
Member Avatar for OmniX

I require to refer to a Variable through the use of a variable is this possible? Thankyou Regards, X

Member Avatar for OmniX
0
63
Member Avatar for ferrier18

Hey, I've never done any programming in my life and would greatly appreciate some help :) I have to create a windows application where there are 3 text boxes in which you enter assignment scores (numerical) and then click on a button that adds the 3 scores together and displays …

Member Avatar for Jx_Man
0
117
Member Avatar for bornok15

I want to write a code that will view all the records within a table and assign a checkbox for each record.. the check box will be used for deleting the records just like in emails. can anyone help me on this?

Member Avatar for somedude3488
0
143
Member Avatar for knight fyre

I'm experimenting with fgets because I heard it's better for dealing with memory buffer overflow but I am not sure of the [B]sizeof[/B] component and how to the [B]stdin[/B] part helps it to work. Is [B]METHOD 1[/B] or [B]METHOD 2[/B] in the following code the correct implementation of [B]sizeof [/B]and …

Member Avatar for knight fyre
0
167
Member Avatar for sgk26p10p07

Now i have been able to create the gdt's and when i change to pmode, will a short JMP flush the instruciton prefetch queue? here is a sample of my code and the gdt and gdtr content, [code] mov ax,07c00h mov ds,ax lgdt [ds:descr] ;switch to pmode by setting bit …

Member Avatar for koyi
0
173

The End.