199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for witchDoc

Hi everyone, i'm trying to execute a .bat file through a c# console application using code from here: [http://stackoverflow.com/questions/361097/c-sharp-service-cannot-execute-batch-file](stack overflow) Kevin's solution kinda works, but some commands in my .bat file get ignored for some reason, but when i manually execute the .bat file all commands work just fine. e.g. …

Member Avatar for witchDoc
0
112
Member Avatar for thompsonSensibl

Hey folks. I'm trying to make a new Fruit object each time aMethod is called. The new Fruit object's name must be unique. The problem is that the name of this Fruit object is the same name as one of the parameters of aMethod - this name is unfortunately the …

Member Avatar for JamesCherrill
0
180
Member Avatar for game4tress

Hi, I'm trying to print a document in landscape, but i'm only being able to print it in portrait. I've searched for the problem but i haven't found a solution to the problem. Can you, please help? Here's the source code: public void btnImprimir_Click() { try { PrintDialog pDialog = …

0
171
Member Avatar for Kewne

ammm...I have this code <table border="1" name="myTable" id="myTable"> <?php $nRow = $_GET['rowLength']; $nColumn = 7; for($i=0;$i<$nRow;$i++){ echo "<TR>"; for($i=0;$i<$nColumn;$i++){ echo "<TD><INPUT TYPE='text' NAME='' VALUE=''/></TD>"; } echo "</TR>"; }?> </table> now, I'm trying to pass js variable to php variable on the same page.... but I'm having this error: Undefined index: …

Member Avatar for Kewne
0
212
Member Avatar for hwoarang69

hi, iam new at php and iam doing a tutorial from youtube. I am keep getting 2 errors 1st error is "Column count doesn't match value count at row 1" 2nd error is nothing shows up when i do <?php echo $error_message; ?> full code of registration file <?php /* …

Member Avatar for pritaeas
0
236
Member Avatar for khuzdaar

I am familiar with loops, functions, recursions, (though I have praticed some questions, it is troubling to get the hang of it completely), passing by value, reference and ofcourse pointers. I can work with arrays and 2d arrays. This is my second project. My first project was hangman. My sir …

Member Avatar for khuzdaar
0
517
Member Avatar for leader2345

I'm trying to create a checkbox where the user will select their 'diseases affected: heartdisease, cancer, diabetes' and hit the submit button and will be saved into the database respective columns as as either '1' for yes or '0' for no. I've tried googling for the answer but I can't …

Member Avatar for veedeoo
0
170
Member Avatar for hwoarang69

Parse error: syntax error, unexpected T_BREAK in C:\xampp\htdocs\website1\prompt.php on line 17 line 17 is in case 0 were it say break; function createMessage($x) { if(is_numeric($x)) { switch($x) { case 0: $message = "Your account is now active. you may now <a href=\"login.php\">Log In!</a>" break; case 1: $message = "Thanks you …

Member Avatar for baig772
0
209
Member Avatar for anonymous1987

Please Help!!! My understanding of getopt is very limited. I do however realise that argv[0] is the exe file, argv[1] is the option, argv[2] is the word to compare and argv[3] is the dictionary or document I want to search(file .txt). I'm trying to set a pointer to the dictionary …

Member Avatar for ravenous
0
342
Member Avatar for lxXTaCoXxl

I had a small problem with collision detection starting out with XNA 4.0 so I figured I'd release a simple snippet that helps with two different types of collision detection; Per-Pixel and Rectangular. To use simply copy and paste the snippet into your current source, or you could put it …

Member Avatar for tpb_rocpile
0
250
Member Avatar for Awah Mohamed

how can i use if statemend with strings in php? and example is the following code: <?php $url = $_GET['url']; $length = strlen($url); $url = explode('/', $url); print_r($url); echo "<BR>"; if($length >= 0){ echo "URL excits"; } if($url[0] = 'home'){ echo $url[0]; } but whenever i pass a parameter in …

Member Avatar for diafol
0
198
Member Avatar for Mike Bishop

I have a string 17:55:88 I want to split this up into the three sections and store them in varibles. IE I would like to have the 88 stored in a varible the 55 in a varible and the 17 in a varible. the following code does what i want, …

Member Avatar for Reverend Jim
0
128
Member Avatar for jcgldr

hi i just finished an application it works good when i debug but i tried to publish it and the publishing fails with errors that some files are double but i don't get what the problem is the error details are as follows PLATFORM VERSION INFO Windows : 6.1.7600.0 (Win32NT) …

Member Avatar for hericles
0
578
Member Avatar for acsusf12

I have been working this program out with a very basic description of what it should do for days... Once I thought I figured out the right way to do it, and the compiler showed no errors, I tried to run it and it gave me some garbled symbols I …

Member Avatar for prestonk98
0
247
Member Avatar for triumphost

I want to start developing an IDE or at least a Syntax highlighter into my program. Atm it's a simple text editor with basic copy paste functions. How does Notepad++ do it? Is there a way I can integrate that into my own program? If not then I'll write it …

Member Avatar for mike_2000_17
0
1K
Member Avatar for erezz

Hi, I have four files named: AS1.txt AS2.txt AS3.txt AS4.txt The files contain the following text: Example: AS_CLI/ASDiagnostic/Diag> 7 phone 0773008619 AS_CLI/ASDiagnostic/Diag> 7 phone 033008775 AS_CLI/ASDiagnostic/Diag> 7 phone 087300936 AS_CLI/ASDiagnostic/Diag> 7 phone 0773009111 AS_CLI/ASDiagnostic/Diag> 7 phone 0773009701 Status = FAILED AS_CLI/ASDiagnostic/Diag> 7 phone 0773011572 AS_CLI/ASDiagnostic/Diag> 7 phone 0773012844 AS_CLI/ASDiagnostic/Diag> 7 …

Member Avatar for erezz
0
213
Member Avatar for annitaz

#ifndef FILM_H #define FILM_H #include <QString> class Film { protected: QString title; double dailyRate; public: Film(QString ti,double dr); QString getTitle() const; virtual double calculateRental(int num)const; }; class Video: public Film { public: Video(QString ti,double dr,QString vt,int d); QString getTitle() const; QString getVideoType() const; virtual double calculateRental(int num)const; protected: QString videoType; …

Member Avatar for annitaz
0
234
Member Avatar for vivek.vivek

Hi, I have 2 different files as below; FILE1.txt: FILE F1 abc 2011.12 31-oct-2012 35 FILE F2 abc 2011.12 31-oct-2012 40 FILE F4 abc 2011.12 31-oct-2012 2 FILE2.txt: FILE F1 abc 2011.12 31-oct-2012 25 FILE F2 abc 2011.12 31-jun-2013 40 FILE F3 abc 2011.12 31-jan-2014 4 In my 2nd file, …

Member Avatar for d5e5
0
371
Member Avatar for arabgogs

Hi Guys, I have been browsing this site for a number of years now for articles, advice and code snippets, with great interest in the expertise displayed, never actually posting any questions until now. I have been coding for a number of years now using procedural code, with breif interludes …

Member Avatar for Reverend Jim
0
145
Member Avatar for programing

hi .. i make this code .. but when i run it ..doesn't show whole output in window ..and its not show correct answer .. i can't find error / but its not worked welll /* * To change this template, choose Tools | Templates * and open the template …

Member Avatar for NormR1
0
584
Member Avatar for Maha Sh.

Hi all, I'm trying to get some values from my database using data reader. Its my first time in using dataReader and I have this error "Value of type 'System.Data.SqlClient.SqlDataReader' cannot be converted to 'String'." My code Public Sub LogIn(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim …

Member Avatar for Maha Sh.
0
234
Member Avatar for Clinton Portis
Member Avatar for Nick Evan
0
166
Member Avatar for aot

As a psychologist, it's useful to be able to time people's reactions in milliseconds. What kind of accuracy could I expect to get in this regard from Python? From what I've read so far, it doesn't look like I can hope to get precise enough timing to get reliable results, …

Member Avatar for BBTK
0
9K
Member Avatar for itsrahulk

Hi All, My URL is [url]http://localhost/project/insurance.php?link_id=NDI=[/url] i want to get only [B]insurance [/B] from the above url how can i do it ? pls help thanks.

Member Avatar for diafol
0
271
Member Avatar for yanwick

One question: How do i differentiate when a page is refreshed event from a page/browser closed event? Because it seems that the onbeforeunload event is triggered when a page is refreshed and when it's closed, and i didnt want that to happen ?

Member Avatar for diafol
0
2K
Member Avatar for yanwick

Hi, On google Chrome there is an event when someone closes the window that merely asks if you really want to leave ONLY. What i wanted was to know if there is a way in jquery or javascript that enables the logout code to be run on chrome,(or any other …

Member Avatar for diafol
0
446
Member Avatar for xanawa

I have been working all day on sql developer but now i am trying to work again and when i try to connect it is giving me the following error what shall i do? oracle.javatools.db.DBException: java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection at oracle.jdevimpl.db.adapter.CADatabaseFactory.createConnectionImpl(CADatabaseFactory.java:66) at oracle.javatools.db.DatabaseFactory.createConnection(DatabaseFactory.java:534) …

0
104
Member Avatar for Labdabeta

I used to use a tutorial for windows console API, but the website was taken down :(. So now I need to ask how to do these things (which ALL were included on the website) in the console with windows API: * Mouse events (clicks and unclicks) * Cursor seeking …

Member Avatar for Labdabeta
0
200
Member Avatar for deppy

Please write a program that will asks to give an integer number K that will be higher than 20. If the number is not higher than 20 then make the program to show a relevant message and then ask to insert again the number K. After that, depending on the …

Member Avatar for deppy
0
212
Member Avatar for evvo69

hi, i am a complete newbie on software development onlt a couple of weeks, currently working through a manual and one of the chapter challenges is to create a number guess game in a GUI enviroment. been trying to look for tips on the web to no avail. i am …

Member Avatar for evvo69
0
2K
Member Avatar for lewashby

I just downloaded netbeans and when I went to start a C++ project I was told that Netbeans couldn't find a C++ compiler. When I use to play around witt MS Visual C++ I never ran into a problem like this, Can anyone tell me what's up and what I …

Member Avatar for lewashby
0
153
Member Avatar for oskole

i foud this code , its work well in windows 7 but when i run project in windows xp its says i must use New keyword but when i use New its gives error at regkey.GetValueNames and RegistryKey = Registry.LocalMachine and regBaseKey.OpenSubKey("SOFTWARE\MyApp", False `Imports Microsoft.Win32` Public Class mform Dim regBaseKey …

Member Avatar for thines01
0
90
Member Avatar for sesan2007

please am new into programming and i was given a project to create a premier league table using C can any 1 help me thanks a lot

Member Avatar for nitinmbhanu
0
214
Member Avatar for NPDA

I'm developing wp7 app . i have a problem with this cod i want to get values of table from a webservice and show it in msg box the problem is i have two tables in a web service but in foreach only the first value can shown in two …

Member Avatar for NPDA
0
179
Member Avatar for screenedcreamy

I'm getting a null pointer exception pointing to the line containing [COLOR="Green"]dispatcher.forward(request,response); [/COLOR] Any suggestions as to where i have gone wrong. it wud be of gr8 help... thanks in advance:)[CODE] ArrayList empList =EmployeeDao.getEmpDetail();//this is defined already request.setAttribute("empList",empList); RequestDispatcher disp = request.getRequestDispatcher("/myPage.jsp") disp.forward(request,response);[/CODE] [CODE] ArrayList employeeList=null; ArrayList employeeList=(ArrayList)request.getAttribute("empList"); if(!employeeList.isEmpty()) { …

Member Avatar for deepadinnu
0
684
Member Avatar for apanimesh061

public static void main(String[] args) { Set<Point> points = new HashSet<Point>(); points.add(); --- how to add point of "Point" type cureAlgor(0.01, 3,points); } Point is a pre-defined class. I want to know what to wrtie in points.add(). Please help!

Member Avatar for NormR1
0
113
Member Avatar for zacharysr

How do i collapse data i pulled out of mysql? I have a messaging system that shows all messegse between you and another member. <table border='1' width='100%'> <?php $ID = $_COOKIE['idCookie']; $memberid = $_GET['id']; $query = mysql_query("SELECT * FROM `private_messages` WHERE to_id='$ID' AND To_Deleted='0' AND from_id='$memberid' OR to_id='$memberid' AND from_id='$ID' …

Member Avatar for diafol
0
387
Member Avatar for Valiantangel

Hi my codes works fine.When i key in ,for example, asdf 546,(f and 5 is separated by space), the programe rightly take it as invalid input ,however it takes asdf and 546 as separate type and return two "Invalid input".See below. I hav no clue why it does that oher …

Member Avatar for Valiantangel
0
129
Member Avatar for BryantFury

Hi ive made a code does the following: 1. user makes a list of items 2. user adds more items to the list 3. list is displayed it uses Linked-Lists. here is the code #include <iostream> using namespace std; struct vote { char product[10]; vote *votePtr; }; void addNodes(vote *&startPtr,vote …

Member Avatar for BryantFury
0
252
Member Avatar for BenzZz

Hi, I have a php file that contains the queries as strings. I have wrote the following query: SELECT message_no, sender, destination, time_received, type, reference_no, message FROM messages WHERE message LIKE '%:substring%'; :substring is then assigned a value from $substring. The query works when i run it directly in cmd …

Member Avatar for simplypixie
0
255
Member Avatar for silvercats

(i) In technical feasibility,we check if the company has enough hardware tech,software tech and people with tech knowledge. which company are we referring to?? the company that we make the software for (customer company) , or our company? (ones that build the system for other company) (ii) in economical feasiblity …

Member Avatar for silvercats
0
133
Member Avatar for Labdabeta

I have a C++ console project in Code::Blocks and I have set breakpoints to test an error. I have set the build for the project to produce debugging symbols for the debug build. I built it, then when I hit debug it just ignored my breakpoints and skipped to the …

Member Avatar for Goemon
0
9K
Member Avatar for vindom

Hi! Im a noob to PHP but had to use it instead of ASP because I couldn't retrieve images from database using ASP + MS Access... Anyways.. I have couple questions: Number 1: How to retrieve and displaymultiple(!) images(jpg) from mysql DB? NUmber 2: I have a main page that …

Member Avatar for grant.baker
0
296
Member Avatar for Valiantangel

Hi i came up with the following code for my Assignment.It works.What i dont understand was the following code, the rest of the code i did myself. if ( value == 1 ) smallest = randomNum; Why do i need to assign value to 1? Rest of my codes System.out.println("How …

Member Avatar for Valiantangel
0
88
Member Avatar for ebanbury

Hi I have a single search field ' agent_name' in a form which is a dropdown field of data based on the concatonation of 2 fields: reg_fname and reg_lname When I do the SELECT Query though I'm getting a bit mixed up..... The data from reg_fname & reg_lname does not …

Member Avatar for ebanbury
0
184
Member Avatar for binningen

Hi, I'm trying to write a function that enlarges a dynamically allocated array, but I am having some trouble doing so. Here's my code: void enlargeArray(int *oldArr, int arraySize) { //oldArr is a dynamically allocated array int *newArr = new int[arraySize*2]; //copy the elements from oldArr into newArr delete oldArr[]; …

Member Avatar for mike_2000_17
0
167
Member Avatar for mayapower

Hi, I am trying to create a programe like this: n1 = NAttrib() n2 = NAttrib() out = NAttrib() NAttrib class can be considered as general purpose attribute. f1 = FloatAttrib(1.0) f2 = FloatAttrib(2.0) FloatAttribute class is like float type but with some extra spices. It has operator overloading functions …

Member Avatar for mike_2000_17
0
255
Member Avatar for nitinmbhanu

//PROGRAM TO FIND DERIVATIVE(FIRST AND SECOND)OF POLYNOMIAL FUNCTIONS #include<iostream.h> #include<conio.h> void main() { int i,d,coeff[100],degree[100]; clrscr(); cout<<"\nEnter the degree of the polynomial : "; cin>>d; for(i=d;i>=0;i--) { if(i>1) { degree[i]=i; cout<<"\nEnter the coefficient of x^"<<degree[i]<<" (with sign) : "; cin>>coeff[i]; } else if(i==1) { degree[i]=i; cout<<"\nEnter the coefficient of x …

Member Avatar for mike_2000_17
0
1K
Member Avatar for prnjn

Hi. Sorry for this kind of post in this forum.. But i am in serious trouble and need help. My 6th semester of B.E (computer science) will end on 28th-may-2012 (final exams going on now ) And after that i need to do a major training of 45 days . …

0
76
Member Avatar for cartergarth

Hello everyone! How do you write a PHP function in codeigniter that lets user download data to an Excel file? Thank You.

Member Avatar for almostbob
0
206

The End.