199,114 Archived Topics
Remove Filter ![]() | |
hiiiiiiiii evryone, plz help me out.i want to delete a record but not able to do so.plz check the code and rectify the mistake.it is giving some unknown error.thnqqq [code=csharp] private void button1_Click(object sender, EventArgs e) { int i; String sqlvar =("Delete from emp where empno=" + textBox1.text); string conn1 … | |
Could someone tell me if there is anyway to pass the selected items(files) from Explorer to my Prog....Now I can retrieve the last item selected using the registry. ie shell -> command -> Prog %1. But if the user Selects multiple items(files) in Explorer the %1 can only send the … | |
I need some help. I am modifying a script that I wrote some time ago that uses JavaScript to calculate a return on investment. The script works pretty well but it sometimes returns values with an infinate number of digits past the decimal. Since this calculator is dealing with money … | |
it is known that dennis rithie made c with only 32 keywords and writing functions is the responsibility of the programmer. who wrote the functions printf, scanf . what is it's sourcr code? | |
Hi, I create one application, in that application i am calling one vc++ exe so i want to run that exe in background which is not visible to the user. If any one have idea about this please reply on this. Thnak you. | |
hi i have two flat file having content like this file1.txt raghu,23,1000 ragiv,66,1800 file2.txt ramya,45,2455 ragiv,66,1800 i need to compare the two file and print the content in the other file which are different among the two file i.e raghu,23,1000 ramya,45,2455 plz help thanx in advance | |
the code that i have coded is of operator overloading for incrementing and the i need some help in the operator overloading for decrementing ,mutiplication and division please send the following in a code form shall be thankful.. [CODE] #include<iostream> class Weight { private: int kg,grms; void ConvertWeight() { if(grms … ![]() | |
Hello, I'm trying to create a window with a C++ win32 app project. I am using creating the HWND object, setting its properties, and then registering the object. Also, there is a WindowProc function. What seems to happen is that the object registers but when I call CreateWindowA(...), this function … ![]() | |
Hi, I've coded huffman coding.I've formed my codebook.Its correct upto that point.I'm using unsigned int(32 bits) and packing the codes into it and writing to file whenever 32 bits get filled.Somehow..my resultant file is larger than my source file.Am i doing something wrong? | |
Sorry 4 bothering you guys... its that im a beginner at this... they gave me a problem but I dont know how to interpret it, it says as follows: [i]The Babylonian algorithm to compute the square root of a number n is as follows. (1) Make a guess, say g, … | |
hi everyone, im trying to write a shell script that calculates memory usage of several processes (i basically run bash several times). here's the script: [code=bash] #!/usr/bin/bash memUsage=`ps -ef | grep bash| awk '{sum+= $2}'` echo $memUsage if $memUsage>130000000000000 ; then echo "mem usage exceeded" else echo "mem usage normall" … | |
Hey....Help me in this one please... I have to encode something that the output will come out as example....10, 8, 6, 4, 2, 0..... please help me what I did wrong....Thanks ...and I like to thank Narue too...for helping me in my last problem....I have to do this without using … | |
Hello, I am retrieving html out of a multipart message using: [ICODE]$html = imap_fetchbody($imapStream, $emailId, '2');[/ICODE] And I am retrieving plain text by using [ICODE]$plain = imap_fetchbody($imapStream, $emailId, '1');[/ICODE] My question is: Why is this working? I got this to work through trial and error. I don't know why I … | |
hi, I am trying to replace certain strings in my mysql database. I have addresses such as this: 60 W 23rd St, New York 10010 Btwn 5th & 6th Ave I would like to get rid off all the words starting from New York including the comma before the word … | |
it's my first time here and i hope somebody will help me solve my problem about my project...i have a project about payroll system using c# that provides web user clock in and clock out(minimum working hours-8hrs, it will detect if its overtime) , generate time worked, generate payroll slips, … | |
you will have to write a programe , and debug it and the it should give the result 'c#-programming language,'can you help me. | |
hello frds, I m very new about xml. I just write table in xml files and now want to execute sql statement on that files. provide help. Thanks in advance. | |
In the code below I am getting a complier error that looks like this: ';' expected }while (employee_equals("")) ^ I am not sure why I am getting this error or how to fix it. [code] //get employee name { System.out.println( "Enter employee name: " ); employeeName = input.nextLine(); do { … | |
Hello out there ? i have one question rather a strange one i have two tables say admission and attendance with different fields however admn id , name are the fileds common to both of them when i add my data in admission table (via form) can i at the … | |
I am new to programing. i know how to return a date [code] public Date yesterday() { if(this.day == 1) { if(this.Check("Mar", this.month)) { if (this.checkLeapYear(this.year)) { this.day = 29; this.weekDay = this.week[this.flipBack(this.week, this.weekDay)]; this.month = this.monthOfYear[this.flipBack(this.monthOfYear, this.month)]; } else { this.day = 28; this.weekDay = this.week[this.flipBack(this.week, this.weekDay)]; this.month = … | |
I found the following code in the 'Code snippets' section( written by nanodano). i tried compiling it in my Dev-Cpp compiler, and i got the output as shown in the attachment for up, left, down and right arrow keys respectively. All other defined keys i.e., F1 to F10 gave the … | |
Hi - Please help me with the following. I have to a parse a log file and here is the part of the log file which is occurs repetitively. [Text1] [Text2] [Text3] [Text4] [Text5] [Text6] [Text7] [ ===== PATTERN1 ======= Text8_line1: value1 Text8_line2: value2 Text8_line3: value3 Text8_line4: value4 . . … | |
Hello, I have a problem with something very simple, but because of my 0 knowledge in js, i can't understand what am i doing/thinking wrong. I have one main site, that have 2 small iframes in between everything else. In the second iframe i have a form, when i submit … | |
I've been doing some more work on my robot today and I'm having a bit of trouble with calling a random function like so: [CODE=python] import speech import random import pythoncom running = 1 class OnTopic: topic = "nothing" def TopicChange(self): self.topic = "nothing" print OnTopic.topic class Know_Raptors: def RapYoung(self): … | |
Hello ALL, In my program, I first receive data from another machine, then processing the data. Data receiveing is fast, but data processing is relatively time consuming. Hence, I put the code for data processing in a POSIX thread (i am using Red Hat enterpriese linux AS 4). In the … | |
I would like to have a count down that have days, hours, minutes and seconds. I have labels, lbldays as Days lblhours as Hours lblminutes as Minutes lblseconds as Seconds I want to countdown to 1 January 2009, 0000, and it will counting seconds by seconds. When it reach the … | |
what difference between access and sql. i use access in a database project not sql. what what problem i will faced for not use sql. or what advantage i will get for using sql. | |
Hi, Im trying to make the price appear in a text box in a form when the user selects the quantity from a drop down box. The price is fixed at 38.50. Any help is highly appreciated, here is the code in my form (I havent attempted any javascript yet … | |
Im attemtping to return the next value in this suequence recursively 1, 4, 11, 34, 101 this is what i've done thus far, im not sure how to pass this list to the function to compute the next value which i believe to be 304. can some explain how i … | |
I'm a beginner to C++, I use CodeBlocks which I think is related to Ming so please make your answers pointing to C++ but not Visual C++. Thanks! And also, please ecplain things in detail ... Well, after a long search on the net I found the code that looks … | |
A lot of blah blah, scroll down for the matter i need help with... Hello everybody. I'm a moderator of a gaming forum and a big fan of bishoujo games. I sometimes do my own game releases/revamps, but what i've did till now didn't involve much "real" coding. I want … | |
Iam having problem with the following code: All this code does is extract words separated by spaces from string when i compile it i get error27 C:\Dev-Cpp\Untitled1.cpp invalid operands of types `char*' and `char*' to binary `operator*' plzzzz help [code=cplusplus] // Tokenizing program:pointer version #include <iostream> #include <cstdio> using namespace … | |
Hi all, I have a piece of program written in Visual C++ which works just fine in Win XP. However when its run in Vista, the error message "A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available." … | |
[B][COLOR="Red"]Hi all i have a question which i need it's answer as soon as possible plz . i am a student in software engineering faculty , me and my team are making a game using c# language. so i need to know what graphic programms that i can use in … | |
Hello there! I wrote a small program in C on Windows using DevC++. It works perfectly, but when I try to run it on Linux I get compiler erros at these lines: [code=c]void printOctets(int octets[][], char []); void printInterval(int suntwk[][], int brdc[][]); [/code] This is a college assignment and I'm … | |
Dear, All Hello, Im a student studying Computer Science and Engineering at the German University in Cairo (GUC). I take a course were I should Implement a game called "Attaxx" using java programing. I should submit a java engine for the game by next week or so... its quite similar … | |
Hi there. I do not understand the following line of code. [ICODE] program_counter = (memory[0xFFFD] << 8) | memory[0xFFFC]; [/ICODE] [QUOTE] The array memory[] represents the memory space of our processor. The starting address for a 6502 program is stored at location $FFFC and $FFFD in memory. The 6502 stores … | |
I think this could be a simple question. I have declared a 2D vector like below. The thing is that by default all elements is set to 0. What I want to do is to declare all of these elements to: -1 how this is possible without doing that with … | |
Hi, I wanna know my site traffic ranking for last 3 month, (Apr-Jun'08), yet i didn't install any tracking code...............plz suggest me any site or tools... | |
Hi everyone... i'm just a beginner in vb2008 i try to make a program that will shutdown pc in the network and i try the shell command below.... shell("shutdown -m \\PC04 -s") I type this code but nothing happen it just open a command promt look alike. PC04 has not … | |
This thing is pushing me around. I've been through my book, and I have even downloaded the professor's notes on subject (he posted them). I can't find what I'm doing wrong. Below is the code I've written, below the code is what the console is "supposed" to look like. (Code … | |
I really don't know where to start and to be honest I really don't know what I'm doing. I was given this project and we never went over these topics in class or the previous class. My attempts to wing it are not going so well and quite frankly its … | |
I am (obviously) extremely new to javascript. I need to have this script execute once, then quit. I've tried several commands but I must be an idiot...could someone please help me modify it? Thanks so much... [code] <!-- Begin var speed = 5; var cycledelay = 1000; var maxsize = … | |
Hi, I am using fgets in my program to count the number of lines in file. The number of columns in each line is entered by the user. But the number of lines are not known. After counting the number of lines in the file i am again using it … | |
Hi I have a question. Basically I want to create a dictionary of words, where a user has typed in a couple of sentencies. Im then supposed to sort it in alphabetic order and also count how many times a word has appeard. The sentence contains letters and whitespaces. Ex: … | |
This triangle shape full of numbers is the reference I have to use for the first part of a homework problem, but I haven't the slightest clue as to why the rows and columns are indexed starting at zero and what that means in terms of all the other rows. … | |
Hi, Im trying to make the price appear in a text box in a form when the user selects the quantity from a drop down box. The price is fixed at 38.50. Any help is highly appreciated, here is the code in my form (I havent attempted any javascript yet … | |
I had a website of 75 html pages Now I need to add a search into my index page. I wish to done it in PHP because my web server supports PHP. Please help me.... Thanks in Advance Rajeesh | |
Is there a way, in BNF, to specify a rule that an element consists of a list of items, and each item is optional, can appear only once, and order isn't important? For example: <meal> ::= <appetizer><salad><entree><dessert> <appetizer> ::= <empty> | <cheeseplate> | <breadsticks> | ... etc. So I have … | |
I havebeen using wxdev c++ but have problems when compiling directx code even though I have installed devpaks for DX9 anyway i think the best thing is for me to get a real compiler not freeware. Are there any good compilers that have gui design tools that will compile directx … |
The End.