64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for 3cats

I have never posted to a forum before. I am taking a beginning C++ prgmming class. I am getting the error "error C2181: illegal else without matching if " I have tried everything I can think of to fix it, I can't tell if its a syntax error (such as …

Member Avatar for 3cats
0
170
Member Avatar for lishannx

ive created a new picturebox with the image to be directed from my directory. but it came be the case that the directory path will always be on my desktop. how do i make the path not hard-coded? pictureBox = new PictureBox(); pictureBox.Image = Image.FromFile(@"D:\Documents and Settings\12344\Desktop\Model Products 40x40 v2\Model …

Member Avatar for Diamonddrake
0
1K
Member Avatar for Aparna Bharath

Hi, I have a python simulator file sim.py. I need to start, stop and restart this simulator from a C/C++ test file test.cpp. I tried using system( "\sim.py" ) in my test file. This starts the simulator but in the same window as test.exe. In this case how do i …

Member Avatar for Software guy
0
157
Member Avatar for michael_r

hi every one this is my first post in any forum i have got an error while inserting a row to mysql this is my code: $query = "INSERT INTO flight(date,from,to,depart_time_hr,depart_time_min,arr_time_hr,arr_time_min) VALUES('$_POST[date]','$_POST[from2]','$_POST[to2]','$_POST[hours1]','$_POST[minutes1]','$_POST[hours2]','$_POST[minutes2]')"; the error shown is: 1064 You have an error in your SQL syntax; check the manual that corresponds …

Member Avatar for michael_r
0
157
Member Avatar for twilitegxa

I have a checkboxlist and I need to know how I can send the values of all checked items to a text file. I already have other controls on the form sending their values to my text file, but I don't know how to get the values of the checked …

0
74
Member Avatar for mrcniceguy

i`m having this problem after whenever include or require is Used. help please i dont know how to solve this. Fatal error: Cannot redeclare validateemail() (previously declared in C:\wamp\www\kislat\functions\functions.php:3) in C:\wamp\www\kislat\functions\functions.php on line 26 [code=php] <?php session_start(); require "config.php"; $user=$_SESSION['user']; $id=$_SESSION['id']; if(!session_is_registered('user')){ header("Location: checklogin.php"); exit; } define('INCLUDE_CHECK',1); require"functions/functions.php"; require"includes/functions.php"; //$user=$_POST['user']; …

Member Avatar for mrcniceguy
0
832
Member Avatar for thompsonSensibl

Hi folks, ThompsonSensibl, so I'm new to Python. This is probably a noob question... I want to convert a String input to an Integer. I usually do it like this: number = int(someString). However this time this approach doesn't seem to be efficient at all. So far I have: [CODE] …

Member Avatar for megaflo
0
8K
Member Avatar for DaveTran

I would like to skip the remainder of a function and call another should a statement prove true. [CODE] public bool A(int i) { if (i > 5) { // Skip the rest of A() and return B() return B(i); } // Do stuff to i } public bool B(int …

Member Avatar for caovan
0
316
Member Avatar for jtodd

Hey guys! This is a relativity simple program. It compiles fine but when I try to execute there is a problem. Any insight or advise would be greatly appreciated. Thank you import java.util.Scanner; public class Power { public static void main( String[] args ) { Scanner input = new Scanner( …

Member Avatar for vchandra
0
105
Member Avatar for digitalsindhx

Dear Frined my simple update statement is not working on my database software with .mdb CompanyDa.Update(CompanyDs, "DisplaycenterData") it works but only in cache, when i restart my application the record is not updated. i solved my problem with some informal steps. i m attaching vb projects zip file, plz open …

Member Avatar for samxcui
0
140
Member Avatar for amby

Hi, I have a javascript object which is converted from json to java script object. i want to display its values like after each key value pair, i want to insert new line. but i dont know exactly how to do that. below is my code, please take a look …

Member Avatar for amby
0
253
Member Avatar for onaclov2000

Hello, I wrote a little slide in box, that slides in from the edge of the screen, the problem i'm having is that I don't always know the size of the desktop if that makes sense, as well as spacially where things are, I.E. Suppose the start menu is on …

Member Avatar for onaclov2000
0
347
Member Avatar for caovan

Hi all, I am new to threading and was wondering if this works. I have a main thread that kicks off a background worker thread. It's function is to update my sql db. There are ten steps and after each step is completed, it will update the progressbar and move …

Member Avatar for caovan
0
340
Member Avatar for sharathk60

Please inform me can we use C programming in all OS of Mobiles . Like J2ME, Symbian, I Phone, Apple..

Member Avatar for Ancient Dragon
0
140
Member Avatar for ShortYute

Basically, I formulate the website name using the version information ( IDE codeblocks SVN 6088, using autoversioning plugin ) and launch the website using *gasp* CMD... the problem is I don't want to launch a web page because ... i just want to check for updates... Also I don't really …

Member Avatar for ShortYute
0
146
Member Avatar for techstu

[QUOTE][CODE]using System; using System.IO; using System.Xml; namespace Task3 { class TextFileReader { static void Main(string[] args) { XmlTextReader reader = new XmlTextReader("my.xml"); String strn, strsn; while (reader.Read()) { switch (reader.NodeType) { case XmlNodeType.Element: // The node is an element. if (reader.HasAttributes) { //Console.WriteLine(reader.GetAttribute("reader.Name")); strn = reader.GetAttribute(0); strsn = reader.GetAttribute(1); //Console.WriteLine(strn); …

Member Avatar for techstu
0
142
Member Avatar for n.utiu

I have been recently experimenting with Python embedding, but I stumbled across some problems. [CODE]#include <python3.1/Python.h> int main (void) { Py_Initialize (); PyRun_SimpleString("print (\"Hello World\")"); Py_Finalize (); return 0; } [/CODE] As you see it is not the most complicated code :). I have compiled in Code::Blocks using g++. I …

Member Avatar for n.utiu
0
723
Member Avatar for f_atencia

Hi all, I have an XML File: staff_record> <staff> <username>user1</username> <password>password1</password> </staff> <staff> <username>user2</username> <password>password2</password> </staff> <staff> <username>user3</username> <password>password3</password> </staff> </staff_record> I have a form (login.html) and I need to use an ASP page (login.asp) to redirect the user to home.asp when they have successfully logged in, based on the …

0
91
Member Avatar for Roberto9

so what i have is a list of lists each individual list is a list of cards cards1 = [AS, 10H, 3D, ...ect.] cards2 = [4H, KS, 6S, 9D,....ect] ColumnList = [cards1, cards2, cards3...etc] It should print out a spider solitare tableau, but as you play the game, this columns …

Member Avatar for TrustyTony
0
238
Member Avatar for digitalsindhx

I Applied same Code on a dummy form, it worked, but when i tried it on to a Genuine <Purchase> form on which I want to work, it is not updating record, even every code Syntax is same bit by bit, i cant know where i m doing mistake, whether …

0
289
Member Avatar for lotrsimp12345

so far I can't figure out a way to write powerset in SML :(. I see a pattern for example powerset([1,2,3]) is [] [1] [2] [1,3] [3] [1,2] [2,3] [1,2,3] Here's what I have come up with: fun add(a,L)= [a]@L fun ps(L)= ps(tl L)@add(hd L, ps(tl L)); Any help appreciated.

Member Avatar for lotrsimp12345
0
80
Member Avatar for betabasic

Sir.. I want to get the values from web pages using vb.net.. [U]THIS WORKS![/U] [CODE] [B]PHP[/B] <input type="text" name="sample" [B]id[/B]="sample" value="" /> [B]VB.NET[/B] TextBox.Text = WebBrowser1.Document.[B][COLOR="Green"]GetElementById[/COLOR][/B]("sample").GetAttribute("value")[/CODE] but.. what if there's no [B]id[/B]. [CODE] [B]PHP[/B] <input type="text" [B]name[/B]="sample" value="" /> [B]VB.NET[/B] TextBox.Text = WebBrowser1.Document.[B][COLOR="red"]GetElementById[/COLOR][/B]("sample").GetAttribute("value") ??? it cant read the value since …

Member Avatar for Oxiegen
0
3K
Member Avatar for chrisb76

I am having multible problems with my code. Here is what it is supposed to do: Write the program in Java (with a graphical user interface) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage, the term of the mortgage, …

Member Avatar for stultuske
0
102
Member Avatar for preetg

hi everyone........... i want to send sms from my wesite to moblie phone.....i dont knw how i do it?nd i dont have any guidance of experts.............. plz guide how can i do this....... i read tutorial for this .....now i knw i need http protocol but how ?????????:-/:icon_question:

Member Avatar for uniqueseo
0
111
Member Avatar for ankit894u

[CODE]#include <cstdlib> #include <iostream> #include <string> #include <fstream> #include <sstream> #include <cstring> using namespace std; int main(int argc, char *argv[]) { fstream filestr; for (int i=1; i<=17771;i++) filestr.open ("mv_0000001.txt", fstream::in | fstream::out | fstream::app); filestr.close(); system("PAUSE"); return EXIT_SUCCESS; }[/CODE] guys i m trying to create multiple text files to the …

Member Avatar for ankit894u
0
275
Member Avatar for jeetudaljit
Member Avatar for mommie

Trying to come up with a code that will give you your circumference value by taking the measurements of your waist and hips and subtracting the measurement of your neck but I'm getting several very weird errors. Most of them in regards to !=. Can someone please take a look …

Member Avatar for WaltP
0
95
Member Avatar for crodriguez08

Hey, I'm having trouble of making my program work. So far I managed it to read the file and display the numbers (just to verify that it is being read right), but I'm not sure if the storing is functioning well, as when I pick another option, well, it doesn't …

Member Avatar for crodriguez08
0
352
Member Avatar for tonymuilenburg

Hi, I'm trying to loop through multiple textboxes in a C++ form using visual studio.net 2008 to set the selection start for each. The code for a single textbox is easy: [CODE] textBox1->SelectionStart = 4; [/CODE] When I try to assign textBox1 to a Control variable, and assign selection start, …

Member Avatar for tonymuilenburg
0
177
Member Avatar for shubhamshah

Hey guys , im creating a messenger via VB.NET Using eBuddy, I need to have a status and in the status i need it to update every second. The status is in label3 and i tried to put this code on form load but it doesnt change constantly only once. …

Member Avatar for shubhamshah
0
136
Member Avatar for wyett

Alright, I'm trying to generate an ODD random number between 1 and 8. [CODE] Do While (i < 4) box(i) = randomObject.Next(1, 8) Do While (flag = 0) If (box(i) Mod 2 = 0) Then k = 0 box(i) = randomObject.Next(1, 8) If (box(i) = box(k + 1)) Then box(i) …

Member Avatar for wyett
0
126
Member Avatar for stryker4526

Alright I'm having a heck of a time figuring out what's wrong with this code. It throws an error of [quote]Error 1 'System.Collections.Generic.Dictionary<Assignment7.Station,int>' does not contain a definition for 'ElementAt' and the best extension method overload 'System.Linq.Enumerable.ElementAt<TSource>(System.Collections.Generic.IEnumerable<TSource>, int)' has some invalid arguments7[/quote] However, when I was writing the code I …

Member Avatar for stryker4526
0
678
Member Avatar for jprogram

I have writen some code for a HugeInteger class, but my input funtions will not work. It is suppose to check the array for negative numbers or 2 digit numbers. Since I randomize the numbers between 0 and 9 and checked them by not using the input funtion I know …

Member Avatar for Ancient Dragon
0
94
Member Avatar for jpob

Hey, i am new to python. I am making a translator in python 2.6 using basic commands. The translator is english to german. I need to use a i need to use a text file like this... at an brown braun cat raze etc. so far i have created lists …

Member Avatar for jpob
0
263
Member Avatar for boomop

ok, So Im very new to this whole AJAX kind of thinking, and I might be trying to do something that's either harder than it needs to be, or theres an easier way that I havent fount yet... I'm trying to make a generic javascript function to call php functions.... …

Member Avatar for boomop
0
132
Member Avatar for DawnDenise

I would like the output of this string to display each word in a column and ignore all punctuation. I have tried including an if statement that tells the string to start on a new line when a space is encountered but I haven't had any luck. Any hints are …

Member Avatar for DawnDenise
0
164
Member Avatar for makybe

Conversion Problem Formatting QBASIC to VB6 I am having real problems converting PRINT Using statements in Quickbasic to Printer.print statements in VB6. Is there a good book which outlines the method of formatting numbers and/or text in VB6 as I am on a merry goround trying to decipher M/S explanations …

Member Avatar for makybe
0
353
Member Avatar for cloud09

I wasn't sure where to post this...sorry if its in the wrong topic I was wondering if anyone could determine for me what language is integrated with this html and possibly some resources - like tutorials or basic examples so I know what I'm looking at. [CODE]<ss:set name="border" value="border:1px solid …

Member Avatar for cloud09
0
117
Member Avatar for Xufyan

the program is showing the output perfectly but the value of [iCODE]a[/iCODE] is printing more than once. for example, if i enter range from 10 to 20 , the output should be 11,13,17,19 but the output is 11,13,13,13,17,17,17,17,17,17,17,19,19,19,19,19,19,19,19,19 how can i fix this ? [CODE]int main(void) { int a,b,c,d,f; clrscr …

Member Avatar for jephthah
0
148
Member Avatar for zoner7

So I'm currently using Lazy Foo's tutorials. Here's the link: [url]http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet05e/index.php[/url] I followed all the instructions, but I'm having a couple issues. So when I choose an empty project, like the tutorials recommends, as opposed to one with a precompiled header, the C/C++ tab does not appear, and I am …

Member Avatar for thriek
0
270
Member Avatar for thriek

hey i'm really not sure how to solve this, im making a simple "press enter to continue" function called wait(), defined it in a header file with extern keyword, and then in the main file prototyped it and from then on used it as wait(); But it still states that …

Member Avatar for thriek
0
208
Member Avatar for Encrypted

This should be a rather simple question to answer. I want to include a field of data using $_POST that is not inputted by the user in an <input name=" "> text box. Is there anyway to manually add a field to $_POST without using input? Example: [CODE]<form action="<? echo …

Member Avatar for Encrypted
0
256
Member Avatar for shrutinr

Hi ... I m having question on vc++ floating value slider in CLR windows from... I want to have a slider which should have 0 to 1000 value and the values should be float values.. can anyone please help me how to resolve this problem.. here i included the code …

Member Avatar for shrutinr
0
104
Member Avatar for nats01282

Hello all im trying to work out whats wrong with this code, [CODE]#include <iostream> using namespace std; int player1score = 0; // global variable int add10 (int &score) // function that adds 10 to player1score variable by reference { return(score + 10); } int main () { cout << "Please …

Member Avatar for nats01282
0
94
Member Avatar for moonis.ahmed

Hi, how can I call another JSP without transferring control to that. The response.sendRedirect is transferring control to the next jsp page. I still have some code after the response line which needs to be executed but it doesnt gets executed. Any suggestions? Thanks

Member Avatar for filestofiles
0
99
Member Avatar for pirateninja1111

I'm wondering how to start a Boolean array at 1 instead of 0. so far the only thing i can think of is: [CODE] Boolean [] x = new Boolean[12]+ 1; or Boolean [] x= new Boolean[12 + 1]; [/CODE] and the top one does not compile while the bottom …

Member Avatar for masijade
0
137
Member Avatar for Nickair

Hi, I am currently learning the Java programming language and have downloaded the latest Eclipse Platform to program with and encountered an interesting error while trying to import a folder with some of my previous work. the importing client in eclipse encountered some error about a buffer overload which i …

0
91
Member Avatar for vsagarmb

I have a funny problem. I am trying to split a string. [code=python] DEVICE_IP = '164.178.7.30' ip = DEVICE_IP.spilt('.') print ip[0]+'-'+ip[1]+'-'+ip[2]+'-'+ip[3] [/code] The above code throws the error [code] Traceback (most recent call last): File "/home/englotk/test", line 2, in <module> ip = str(DEVICE_IP).spilt('.') AttributeError: 'str' object has no attribute 'spilt' …

Member Avatar for jice
0
2K
Member Avatar for InS@NiTy

Hi, I'm using VB.net express edition with SQL server compact for a project and I need a little help. What I'm trying to do is; I want to set a certain column to true or false automatically based on what value another column has entered. I managed to get this …

Member Avatar for InS@NiTy
0
90
Member Avatar for emilyhedgecock

Hi I have made a javascript image viewer where there are thumbnails at the top and when you click on them the bigger image below the row of thumbnail image changes according My question is, how do i make the larger image become a hyperlink to the corresponding page it …

Member Avatar for almostbob
0
5K

The End.