64,152 Solved Topics
Remove Filter ![]() | |
Hi guys, I have a modem connected to my machine. Both My C# code and Hyperterminal can open the COM port, but when the command AT is sent, no reply is got. In control panel->Modems->Query modem however, the modem responds!!! Anybody who has ever experienced this? | |
I am new to JavaScript and have what may be a very simple and easy question to most. I am writing a simple block of code that I need to display dollar amounts with 2 decimals for change. For example instead of displaying the number 5, I need it to … | |
hi, my problem is about socket programming. My code below only connects the client to the server, and it works just fine. However, I should create a 2player game which of course require the interaction of the 1st and 2nd player. The problem here is that they really don't interact … | |
Hi I have stored File objects in a vector. Now I which to call the methods of the file objects stored in the Vector. Unlike C++ you cannot simply refer to the vector by index e.g. vector[i].getAbsolutPath() nor can you simply call vector.elementAt(i).getAbsolutePath(); I have made a File[] array = … | |
hello all.. Tel me how to create a site with different languages, if user select particular language, then all the content will be displayed in that language... How to do it??? or Any predefined free software available on the internet... Any resources or information would be appreciated.... Thanks.. Shanti. | |
hi everybody i am a beginer n m in need of yo help i've got two classes one 4 my hardwareinfo and the other one 4 create_hdwr_info_ file both work well 2gether ,but i can't seem 2 b writing on disk. with my this statement. streamfilewrite.seek((code num - 1) * … | |
Hi guys, any body knows that flash disk have a serial number like hard-disk, and it's unique or not ??? thanks. | |
ok i just startet coding c++ and ofc im geting alot of errors. but until now ive been able to fix them myself but when i try to debug my program it says misplaced else and i just cant find out how to get it to work. so well heres … | |
Hello, I am working on a non-recursive function that computes a to the power n. I have one error which is cpp(23) : error C3861: 'mypower': identifier not found [code=cplusplus] #include "stdafx.h" #include "stdio.h" double power(float a, int n); // function prototype// int main (void) { float a; int n; … | |
this is my login function: [CODE] function doLogin($username, $password) { include ("global.php"); $conn = mysql_connect($DB_HOST, $DB_USER, $DB_PASS); if (!$conn) { return 2; } mysql_select_db($dbnames[$DATABASE_MAPLESTORY]); $result = mysql_query("SELECT * FROM `accounts` WHERE `name` = '" . $username . "'"); if (mysql_num_rows($result) < 1) { mysql_close($conn); return 1; } $row = mysql_fetch_array($result); … | |
hey all... my project is showing some error in this code... plz help... [code] Dim RS As New adodb.Recordset Dim getname As String Dim logginname As String getname = "SELECT E_name FROM Employee_Details WHERE E_ID ='" & logid.Caption & "'" CN.Execute getname RS.Open getname, CN Label7.Caption = RS.Fields(0) [/code] thnx! … | |
hi, I would like a alert message to pop up on a EVENT of Mouse click in the Custom tree control and CHECKLISTBOX. Please assist me capturing the MOUSE CLICK event and pop up the alert message or FRAME with message. Your response will be highly appreciated. Regards Dinil | |
Ok, so I have an array of objects that have 3 get functions. Get last name, get first name (both strings) and get salary. What I'm trying to do is get a user to enter First name and Last name and it search the array for the persons first and … | |
I'm not too sure why I'm getting memory leaks...hopefully someone here is wiser than me, and can help me find it :P . [code=cplusplus] #include "Canvas.h" CDrawer CCanvas::gCanvas(RGB(0,0,0), 1); int const GREEN(20000),BLUE(50), RED(200), THICK(3); CCanvas::CCanvas(void): _iSize(0), _cptPoints(0) { } CCanvas::CCanvas(CCanvas const & tmpCanvas): _iSize(tmpCanvas._iSize) { if (_iSize > 0) { … | |
I have to write a program where a user trys to pick a number. The code i've written below always exits after 2 guesses abd says the guess was correct even if it's wrong. Can anyone see what i'm doing wrong? Thanks [code]# include <stdio.h> # define NUMBER 50 int … | |
Hi, I'm taking a programming class at my school. My teacher gave us a pdf that said "..You will be writing a program that can read a bitmap and insert a secret message into the bytes of the picture in a retrievable way using the picture as a cipher and … | |
HI guys, I need to create a windows service that runs a constant ping request to a list of servers and puts the data back into a text file for each server. It will read in from a text file with ip addresses in. It will also need to do … | |
Iam new to perl. This is my problem. I have calculated the distance using the formula my $distance = sqrt(($x2 - $x1)**2 + ($y2 - $y1)**2 + ($z2 - $z1)**2); and the value of $distance looks like this: 3.72851967944384 5.83210433720111 7.12922562414741 10.2322964186931 11.2073015931579 11.882666956538 14.4465118281196 16.0581479006765 17.2278339903773 Now I have … | |
Hello to everyone, I have a database with several representatives in different cities, sometimes there are many representatives in one city. The search is like: [code] sql_representatives.source = ("Select ID, CITY from REPRESENTATIVES Where PROVINCE_ID = " & LST_PROVINCE.ItemData(LST_PROVINCE.ListIndex) & ";" [/code] The above sql return all cities in the … | |
Hi, and here i am throwing a "not the exact version" of my problem, but if this is been solved, my problem is done. Lets suppose i am building a application in c++ that will simply display the content of a text file. I absolutely can make the app take … | |
Hello, I am trying to do an export from a table within a mysql database into a csv file where my parameters are a start date and end date...but I am experiencing a few problems... [U]Background:[/U] I have 2 files; testGCR.php and gcrFunction.php. testGCR.php has my form where the user … | |
I have some C code that, when compiled under Linux, works perfectly as a CGI. This same source compiles perfectly with Visual C++ producing an exe. My question is how do I use this as a CGI in a Windows, Apache environment. Can I just place the exe in the … | |
Hi Everyone, Is it possible for a table in MySQL to be updated on a regular basis from an Oracle database? | |
Hi, Could anyone help me with this problem, the following code contains the GUI for a chargeback application which was handed on to me. I want to be able to test the components DC1 and DC2 to make sure information was entered when the btnGenChargeReport button is clicked... :?: I … | |
Hi, I have a web application where the users have to create an account to be able to access the entry form. I have 2 types of users, 1. Admin and 2. User. I have a Java application that is called via a link on the page, but I only … | |
I was wondering if anyone happens to know any good c++ books to learn linked list (single, double, and/or circular)? Something that has explains with code to show how to do it and explanations to the code if possible. | |
I have an wsdl file, I puted the wsdl file in the app_code folder ("I am using visual studio 2008"), as it is supposed to be it generated the proxy for me. But the proxy file containes object type parameter for all functions even for the functions that are not … | |
Hello Every Body I Am Using PHP AND JAVASCRIPT i am using two images on my page at run time 1. first i drag one image on another 2. after that i write some text using a prompt box which is written on the dragged image at run time 3. … | |
so im working on my assignment and it says Percentage of ticket revenue which goes to administrative costs. This input will be entered in percent format (see sample runs below); your program must convert this to a decimal fraction. For example, the user enters 25% as 25, not .25; you … | |
I am trying to replace a string with another string in a string, but it is just not happeneing and is driving me crazy :@ and I am really confused :confused: Here is the snippet : [CODE] Dim strHex2 As String strHex2 = strHex.Text Dim Mystring2 As String Dim GG … | |
Thank you in advance, i have starred at this for a couple hours now and i have come to no conclusions. First off, this is an assignment to teach us how to use header files, this is the header that we were provided with: Complex.h [code=syntax] #ifndef Complex_H #define Complex_h … | |
[code]#include <iostream> #include <iomanip> #include <cstring> using namespace std; int main() { char name[40]; double date1; double date2; double date3; double h1; double h2; double h3; // Name of pole vaulter cout << "What is the name of the pole vaulter? "; cin.getline(name,40); // Month1, Vault1 cout << "What was … | |
Hello Everyone, I have a little problem with my PHP script. I have created a very detailed system using PHP and wish to upload it to a computer running XAMPP on my network. Because the file will be uploaded to a normal computer all of my PHP files will be … | |
Hello, my question is how can I read decimal from txt file? For Example expression "2.0 1.3 +" - postfix to calculate it. The one that I have right now work for integers but when it starts reading it chops of the decimal part. I can figure out what i … | |
Hello, This is just an extraction from the code. The code below works really well in Mozilla Firefox, but does not work with the <a> and <font> tags in any other browsers. When I remove <a> and <font> tags, it works in other browsers... If anyone can spot the problem, … | |
[code=cplusplus] string countx(string sky) { int count=0; for(int x=0;x<=sky.size();x++) { if(sky[x]=='x') { sky.erase(x); ++count; } } stringstream ins; string bang; // Declare an input string stream. cout<<"count " <<count; ins << count; bang = ins.str(); sky=sky+"x^"+ bang; cout<<"Sky == "<<sky<<"\n"; return sky; } [/code] Writing a function that will take … | |
When reading a txt file I am using .seekg to set the startpoint in the file to read from. linepos has a value: 1002106 First I wonder what this value stands for excatly. As I have understand this is how many characters forward in the file that will be the … | |
Hi, I set HtmlEncode="False" and DataFormatString="{0:mm/dd/yyyy}" in boundfield of a gridview but the month became 00 (18/00/2008). After removing {0:mm/dd/yyyy} from DataFormatString, the month appeared again (2008-09-18 12:00:00 AM) of course together with the time portion that I wish to get rid of. Please help. BTW, whart is {0} stands … | |
Hello people, I need your advice, what to do. I use LINQ stored procedure to select all data from sql table to DataGridView: EtiketyLINQDataContext EtiketyData = new EtiketyLINQDataContext(); IEnumerable VypisDat = EtiketyData.Vypis("Cislo", "Typ", "Hrubka", "MaterialTyp"); LINQdataGridView.DataSource = VypisDat; The problem occurs with this line: `IEnumerable VypisDat = EtiketyData.Vypis("Cislo", "Typ", "Hrubka", … | |
My head is telling me that the answer to this question is going to be NO, but hopefully i m wrong. I have a servlet which gets redirected using RequestDispatcher to a jsp page, the jsp page has some html input fields. In the servlet i get the values from … | |
Hi, I need to make a big-theta notation on an algoritm I made. The algoritm is soposed to find factors of a number. This is the algoritm implemented in java: [code=java] public class factor { public static void main (String argv[]) { int number =(Integer.parseInt(argv[0])); int counter = 0; for(counter … | |
hi Friends, I have used sizers for one of my frame which has Checklist box. THe checklist box is not displayed at first but on slight resizing the Checklist box is displayed. Please assist in this regard. Regards Dinil | |
Im developing a web page, where i can drag one image upon another background image and merge them... my problem is , i want to know the position of dragged image by the user.. im using php and javascript functions to develop this... please anybody know about this ..please get … | |
I am new to link list and I have this problem where you have two lists. One list pointed by HEAD has a list of numbers in it, and the second list pointed by LARGE that contains the highest element(s) in the list pointed by HEAD. Each element has three … | |
Hi all Just a quick question, I have avoided the ternary operator type If statement a lot in my code, because personally I find it easier to read a statement like this: [code=php] if (empty($_POST['action'])) { $action = 'default'; } else { $action = $_POST['action']; } [/code] Rather than: [code=php] … | |
Im having real trouble seeing this, how do I delete something out of a linked list if it is already there? My current delete function just deletes everything out of the list. the text file contains numbers like this: 75 85 95 25 35 75 85 95 25 [CODE]#include <iostream> … | |
So I made this script call auto ascii encrypter and it basically goes character by character through a script and converts it to ascii numbers. It makes a new a script using the ascii numbers. But I get an error no matter how simple the script is. 'invalid syntax.' Heres … | |
can someone make a simple program that prints numbers in series depending on the persons input .. for eg :- if input is 5 then output should be : 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 ....please help asap .. thank you … | |
hello, I'm new to the language and so far as I can tell this should work but it isnt. Sorry its probably just a newb mistake but i've spent hours on this silly error (and used search). [code]var call_start, call_length : integer; discount, cost: real; answer: char; const normal_price = … | |
hi, im trying to write a macro script but i need help about to using buttons.(on keybord not another device) i can define a button(with "input" for numbers if am i not wrong?) but how can use that? i want to push that button not print it or add it … |
The End.