199,114 Archived Topics
Remove Filter ![]() | |
Forgive me again, I'm a complete noobie at Visual Studio, even though I have been using PHP for years. I need this for my new job and the classes (public, private, etc) are really a bit confusing. Suppose I'm trying to make a new windows form, and I have various … | |
I've got a question about navigating memory streams. Memory stream properties aside (like making sure the stream can use seek etc...) if someone is storing variable or dynamic data in a stream, how can you retrieve that data? Like, for example if a user could store an image from their … | |
I have an assignment that i need to do and i have no idea how to do this, I was hoping someone would be nice enough to help me out, its a begginner program that needs to be done in visual stdio c++: Heres the assignment: Try to write a … | |
Hey guys, I'm trying to solve a problem I received in school. It states: [I] Write a method named checkFermat that takes four integers as parameters—a, b, c and n—and that checks to see if Fermat’s theorem (a^n + b^n = c^n) holds. If n is greater than 2 and … | |
Hi, I'm having a difficult time printing the product of the odd integers from 1 - 15. When I run it the program prints "1 2 2 2 2 2 etc." I don't see what I'm missing or why it won't print what I want. Did I add something I … | |
I have 6 rows of items in a ListView within 2 columns that are listed like so: [CODE]1 Milk 2 Pepsi 3 Juice 4 Water 5 Coffee 6 Tea[/CODE] I'm trying to make it so when you modify the number in the first column, it will sort the list based … | |
I am trying add two polynomials by overloading the + operator. When I run the program it only adds the first coeficients. I cannot figure out why it is only returning the first coeficient. [CODE] //header file #include <iostream> using namespace std; #ifndef _POLY_H #define _POLY_H const int CAPACITY =100; … | |
This is probably an easy one that i know but its not coming to me. Im supposed to be hardcoding the 6 instances of a movie class into the array that i have set up. I am unsure where i would do that in my actuall code. [CODE] public class … | |
[B]Hello, I am new to programming. I am trying to make a dice game called 10,000. Here is the outline or pseudo code. it kind of works. It will roll and keep score, but sometimes it will roll multiple times. [/B] pick a player player one or player two player … | |
hi, i have this code: [inlinecode] HINSTANCE hComponent = ::LoadLibrary("Component1.dll"); [/inlinecode] i get this compile error: Error 1 error C2664: 'LoadLibraryW' : cannot convert parameter 1 from 'const char [15]' to 'LPCWSTR' c:\Documents and Settings\Administrator\Desktop\Component1\Client1\Client1.cpp 9 so i changed the code: [inlinecode] HINSTANCE hComponent = ::LoadLibrary((LPCWSTR)"Component1.dll"); [/inlinecode] however GetLastError returns … | |
how to seperate numbers letters in string in c | |
Hey Ive been hearing about Netbeans but Id like alternatives. Any out there? If the program is not written in Java (ironic I know) I would perfer it. Thanks | |
Hello everyone this is my first post on the daniweb community. Currently I am home sick with a nasty cold so I was trying to solve a programming problem on a wonderfull sight called Project Euler. The problem is as follows: If we list all the natural numbers below 10 … | |
Hi- Trying to rename a file using the rename() function. It works, but it appends an '@' to the end of the renamed file. Here's my code: [code=c] char oldname[] ="file1.csv"; char newname[26]; newname[0] = '3'; newname[1] = '1'; newname[2] = '1'; newname[3] = '3'; newname[4] = '3'; newname[5] = … | |
I am getting the following error when I try to access my Resource Files in Visual C++ v6 "The file is already open in an editor." I've tried closing all windows in the IDE and closing the project, even tried logging out and back in. All to no avail. A … | |
Hi Guys, I just want some one to look over this for me really, and possibly can some one tell me how to call the function! as you can see below (VB.Net Code) this is running of a button and it will connect to SQL obtain the relevant information and … | |
can someone help me find something that i can depend on making sourcecodes using while, do while, for while...thx | |
Hello to everyone, Well I'm a noob to C++, I just started two weeks ago, I'm trying to get a good head start before I start college next semester. I've done simple programs, but now I'm trying to create a body fat percentage calculator I guess you could say. but … | |
Right. Im a php developer and I have never taken the time to study Javascript, and it always gives me a hard time. I have a drop down menu with 2 options. The default option is just Choose Payment. If I go to credit card, then nothing is supposed to … | |
So I have designed my program but am stuck on one function. [I]The following is an excerpt from my class:[/I] [CODE] public class SqrXY { public void SqrXY (double x, double y) { xaxis = x; yaxis = y; } public double addition () { //this is what I am … | |
Hi, I have an xml file that has the same tag name for different categories of data. Below is an example. I would like to create an xpath to extract each data category. For example Age is the 4th tag. So I would need the xpath script to navigate to … | |
Hi, I am looking to get some help as to how I can create a script that does an Instant live search which displays results as I type: For Instance: 1) I arrive at a page and it has all lists of members from a database already displayed. 2) Then … | |
Hi just a simple n00b question. I need to split a string (from a .obj 3D model format) into a list of three doubles (the vertices). example string: v 0.200006 -0.093641 0.584690 I want to make it into an array of (for example): {0.200006, -0.093641, 0.584690} I can get rid … | |
Hi all, I am running a script that processes files line by line. It takes a while so I would like to echo a status update with each line so we can see where we are in the process. I started reading on the output buffers but that doesn't do … | |
write a program in diving competitions, each jump is assessed by seven judges who give points on a scale from 0 to 10. The point for each jump are calculated as follows: Ignore the highest and lowest scores given by the judges. Then calculate the average of the remaining five … | |
Hello Web Developers! I need a simple help out here: This is my JS code: [CODE=javascript]<script language="JavaScript" type="text/javascript"> /*<![CDATA[*/ function CngClass(){ var zxcevt=window.event||arguments.callee.caller.arguments[0]; var zxcobj=window.event?zxcevt.srcElement:zxcevt.target; while (zxcobj.parentNode){ if (zxcobj.nodeName=='LI') break; zxcobj=zxcobj.parentNode; } if (zxcobj.nodeName!='LI') return; var zxcul=zxcobj.parentNode; var lis=zxcul.getElementsByTagName('LI'); for (var z0=0;z0<lis.length;z0++){ lis[z0].className=lis[z0]!=zxcobj?'off':'on'; } } /*]]>*/ </script>[/CODE] This is my … | |
I have been working on a project, where I am able to choose the different positions of the body parts of a robot to form a dance step. The head with 3 movements. The left and right arm, shoulder and elbow with 4, 4 and 3 movements respectively. The waist … | |
I'm taking a computer science class, but I do not have a very good professor. He does not explain anything. We have an assignment to : Write a complete C++ program in stats.cc to read an arbitrary number of real numbers(one value per input record) from a specified input file … | |
I just downloaded Python 2.7 and 3.2 and it just looks like DOS. I'm using Windows, so I don't know if that's the problem--because I saw someone using a MAC and it looked like they didn't have the same problems that I'm having--because I can't save and I have no … | |
Hey Guys, I am having a couple issues with a website when I view it in Internet Explorer. It works fine in Firefox, Google Chrome and probably most other browsers, but has issues with the navigational drop down and for some reason the footer is only partially coming up (cut … | |
Is there any better way to change the text color for particular sections in a Rich Text Box than to have an TextChanged event, search for that text, and use the Select method? The problem with this is it creates a flickering effect with the scroll bar going up and … | |
hi dears. I have an unicode data in a file.it is a persian text. I want to read it and after some change write it in another file. but when I read it, I face to some hexadecimal characters. what I have to do with them? Thanks. | |
i want to write a program can caulate the area of a circle and squar using overloaded functions, i tried but it didnt work , what i missing here ? [CODE]#include<iostream> using namespace std; class math { int r; double d; public: void set_value(int t) { r = t; } … | |
So I am beginning to learn C++ and I have this issue where whatever I do pops up in command prompt quickly, like a flash of it. I remember I had this issue before and I was able to add or change something in my code so that I had … | |
Is there an easy way to have a user view their information in form fields? I have set up a query for a user's information in a table to come up, but I want the user to be able to edit their information... Does this require other programming language knowledge … | |
[CODE] /* Login Functions */ function login($usr, $pass) { $sql = "SELECT * FROM users WHERE usrNAME = '$usr' AND usrPASS = '$pass'"; $query = mysql_query($sql); $row = mysql_fetch_assoc($query); if (mysql_num_rows($query) == 1) { // in here is what it should do if successful } else { // in here … | |
[B]Aim:[/B] Well, What I am trying to do is to store the names in an array and scores scored in another array. Then Write them into the file. When the program is ran again, I will like to read the stored names and scores, add the new name and score, … | |
I'm writing a program for my C++ class that goes off of a previous assignment. The previous assignment asked the user how many numbers they wanted to enter, asked them to then enter the numbers and then found the sum, average, largest and smallest number from the inputted numbers. The … | |
I'm trying to make a program that lets user to input an array of lastnames then firstnames. Then display the a list of firstname first, then the lastname. For example: Input: Smith, John : Doe, Jane displays like: John Smith Jane Doe This is what i got so far. [CODE]Module … | |
hi all.. am working with python 2.4.1 n have pysnmp 4.1.14a installed.. the statement from pysnmp.entity.rfc3413.oneliner import cmdgen gives me the following error: ImportError: No module named pysnmp.entity.rfc3413.oneliner can anyone pls give me the reason? eagerly awaiting any response. Thanx in advance | |
Hi all, I've found a few references that address this issue, however I haven't figured out what the solution is in the specific case that I'm dealing with. Hopefully someone can help me out. The following code prototypes the general idea that I'm working with: [CODE] class FooClass { public: … | |
G'day, I just want to ask how could i run a set up for a MySQL DB through Java. For example, when installing the application, I need to check if MySQL is installed, and if not, install it. OR, how would I go about checking for a registry for mysql … | |
I'm baffled by a recent discovery with one of my programs. I'm still in beta testing, so this was a good time to catch the issue. But it seems that, when installed on a 64-bit system, the data files are simply [I]not written[/I]. If you are running a 64-bit system, … | |
Hi, What I am trying to do is enter HTML code into a variable and then pass it along to another script with POST to have it used as the HTML content with PHPmailer. As soon as my HTML code that i paste into the textarea contains double quotes it … | |
Hello Web Developers! I need a simple help out here: This is my JS code: [CODE]<script language="JavaScript" type="text/javascript"> /*<![CDATA[*/ function CngClass(){ var zxcevt=window.event||arguments.callee.caller.arguments[0]; var zxcobj=window.event?zxcevt.srcElement:zxcevt.target; while (zxcobj.parentNode){ if (zxcobj.nodeName=='LI') break; zxcobj=zxcobj.parentNode; } if (zxcobj.nodeName!='LI') return; var zxcul=zxcobj.parentNode; var lis=zxcul.getElementsByTagName('LI'); for (var z0=0;z0<lis.length;z0++){ lis[z0].className=lis[z0]!=zxcobj?'off':'on'; } } /*]]>*/ </script>[/CODE] This is my … | |
Hello i am designing a project which is intended to store the values entered in a browser into database. Finding some difficulties in displaying the database contents on browser. Below i am posting my entire code. The data i enter in browser are getting inserted into the database. I checked … | |
After a HDD wipeout, I lost my completed .cpp files for program 2 which I already have done creating a function out of the following code. The only problem is, for the last few days I have been failing to recreate or replicate what I previously have done a few … | |
Hello there, I'm currently using a perl scrip that checks if every line in a file 1.csv is present in a file named 2.csv, and writes only the different lines. The output is a file called out.csv. What I'm trying to do is to write only the most recent lines … | |
I'm having trouble figuring out a few different methods that I'm putting into a constructor. Any chance for advice? I'm having trouble with the last 3 near the bottom. I want to compare two name variable to each other to see if they are the same regardless of case, then … | |
hi guys.. i need to read tags using rfid reader. the reader is connected to the computer using serial port. can anyone advise me the codes for receving the tags data? i'm using microsoft visual studio 2005. thanks. your help is appreciated.:( |
The End.