199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for skorm909

ok so i worked on this during lunch at school since i was bored, but here it is so far. [CODE]#include <iostream> #include <cmath> int main() { using namespace std; int badguy1; int action1; int action; int att; int def; int health; int shop; int action2; int action3; int action4; …

Member Avatar for skorm909
0
418
Member Avatar for orion_nsk

Hello Everyone, Can anyone tell me how to Register .Ocx / .Dll files on Vista Ultimate, for vb6?????? Thanks in Advance SS

Member Avatar for frubicel
0
128
Member Avatar for fugnut

Hello all, I am a major noob a C++ and need some help with managing case. we are to write program that asks the user to enter a temperature and a single letter, F for Farenheit or C for Celsius. The program should manage the upper or lower case input …

Member Avatar for fugnut
0
177
Member Avatar for jason.

Say I have a file of string[20] . I can easily write to this, but as soon as I try to receive the data I get incompatibility errors. So I make a string[20] variable to see if I can read into it. I cannot. It just says incompatible types. When …

Member Avatar for jason.
0
125
Member Avatar for moein_soltani

Hi every body... this(attachment) is my code for implemention of Huffman code,this code must read every file and compress them, it works on many test file but if I input test.txt it give an Error... How can i solve this error ... and the next problem is if we input …

Member Avatar for moein_soltani
0
2K
Member Avatar for ElegantElephant

[CODE]$query = "INSERT INTO update_feedback (updateID,comment,timestamp) VALUES ('$updateID','$comment',NOW())"; $result = mysqli_query($dbcon,$result) or die('Error saving feedback into database. ' .mysqli_error($dbcon));[/CODE] Gives me this error: [QUOTE]Error saving feedback into database. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax …

Member Avatar for ElegantElephant
0
104
Member Avatar for guruwannabe

pls i really need someone who can put me through php.i am really intrested in the language and just in need of someone to help me...

Member Avatar for Kruptein
0
133
Member Avatar for xavier666

Let's say we want to free the total memory used by a linked list in a program, I generally do it like this [CODE]typedef struct linked_list { int some_data; struct linked_list *link; }NODE; int free_memory(NODE * head) { NODE * temp = NULL; if(head == NULL) return 0; // FAILURE …

Member Avatar for Ancient Dragon
0
98
Member Avatar for free2rhyme2k

Hi there, I'm putting together a simple client and server to receive packets containing video data. Here is the part where data is read. The data packets contain typically around 1000 - 1500 bytes of data. [CODE] int getNoPackets = 0; int packetsWrittenToFile = 0; for (i=0; i<NPACK; i++) { …

Member Avatar for free2rhyme2k
0
2K
Member Avatar for johndoe444

hi, with this code fragment: [CODE] #include <stdio.h> void print_bit_string(char x) { int s = 128; for (int i = 0;i < 8;i++) { printf("%d",x & s? 1: 0); s >>= 1; } printf("\n"); } char abs(char x) { if (x < 0) { x = -x; } return x; …

Member Avatar for Dave Sinkula
0
94
Member Avatar for kgkamaraj

Hi friends, This is not java technical question. I am doing project java thats why i am posting here. I am doing project for SUMMARIZATION OF DOCUMENT. I finished 90 percent of my project. To test my project i need Data Set ( That means, Document with summarization ) . …

Member Avatar for kgkamaraj
0
125
Member Avatar for garcon1986

Hello, Now i have 3 tables which are: [CODE]CREATE TABLE IF NOT EXISTS experience( experience_id int(11) NOT NULL AUTO_INCREMENT, salarie_id int(11), consultant_id int(11), post varchar(255), entreprise_name varchar(255), start_time varchar(255), end_time varchar(255), description varchar(10000), PRIMARY KEY(experience_id) ); CREATE TABLE IF NOT EXISTS salarie( salarie_id int(11) NOT NULL AUTO_INCREMENT, name varchar(255), ..., …

Member Avatar for apegram
0
237
Member Avatar for CSW110

Hi, unsurprisingly this is my first post :) I want to learn C# mainly to support work in Excel and I was wondering what development tools I need. There are so many variations from MSDN to Visual Studio Standard and others. I am a competant programmer in other (some odd) …

Member Avatar for ddanbe
0
174
Member Avatar for muralibobby2015

i am adding products. in that i have multiple select categorys option is there. i am selecting multiple categories and imploading that and storing categorys in database product table using categorys ids. now i am fetching with single catagory id. how to call (in_array) for that query? [CODE]"select * from …

Member Avatar for diafol
0
104
Member Avatar for bharatk

Hello I'm making an GUI app to open a image and zoom it. This function is used to open the image & display it: [CODE] def file_open(self): filename =askopenfilename(filetypes=imageTypes) image1 = ImageTk.PhotoImage(Image.open(filename)) self.canvas.config(height=image1.height(), width=image1.width()) self.canvas.create_image(2, 2, image=image1, anchor=NW) self.image = image1 self.img_zoom(image1) # passing image1 to img_zoom function[/CODE] The image …

Member Avatar for bharatk
0
383
Member Avatar for derekcpt

Hi everyone. Is there a guru who can tell me how to do this; What I need, When on page x, one can click a link where page z opens as a popup. Page z has to collect data, and when finished, page z has to send the daa back …

Member Avatar for mali01
0
194
Member Avatar for musthafa.aj

i coding these line ... it is working fine.... but what i need is compress that [COLOR="Red"]Bufferedimage [/COLOR] before getting it as [COLOR="Green"]Raster[/COLOR] i tried jpeg compreesion but it return bytestream instead of int.. so i got exception "can't cast BufferdByte as BufferedInt"... [CODE] [COLOR="Red"]Bufferedimage [/COLOR]image=robot.createScreenCapture(new Rectangle(width, height)); ////here i …

Member Avatar for masijade
0
172
Member Avatar for henrybahus

Hi all, I want to say first of all that I'm a beginner with jsp. Now I explain my issue: I have a page (called A) where I want to execute some code if user come from page B and other code if user came from page C. How could …

Member Avatar for peter_budo
0
83
Member Avatar for icccapital

I had built a small cRM database in MS Access. The database is outgrowing its life in access so i was thinking of porting the backend to SQL server express. I was curious on what people's favorite/best frontend for forms and reports was. ie keep my access forms/reports on top …

Member Avatar for icccapital
0
130
Member Avatar for Dedodido

Hi, I'm writing a small program to simulate a projectile moving through air in a gravitational field. I have several classes for vectors, the gravitational field, and the projectile itsself. However, when constructing any of these objects in the main method, I get a "cannot find symbol" error, despite the …

Member Avatar for Dedodido
0
136
Member Avatar for rwbarrette

Once again, I'm stuck on a wx.python issue with regards to the floatcanvas. So... I have a script that erases and redraws an image in the canvas, based on changes made to two slider widgets (sldMFI, sldIDT). Before it redraws, I'm trying to define the current zoomed view as the …

Member Avatar for rwbarrette
0
346
Member Avatar for nerdinator

For reading from an xml file, [CODE] char s[6]; ifstream x("output.xml"); x.getline(s,34); [/CODE] char s[6]; I don't want to specify the maximum number of characters in 's'.So,I tried to use string s instead,but getline only takes character arrays. When I used char*,it said,The variable 's' is being used without being …

Member Avatar for nerdinator
0
75
Member Avatar for glenndr_15
Member Avatar for praveenvkumar

is it possible to write a program for selected files copying to CD using VB6

Member Avatar for vb5prgrmr
0
41
Member Avatar for turbomen

Dear ALL, Hi. Long time no see. How are you? I have come back to Programming class already. Could you tell me how can I start to VCL Forms Application if I use Delphi6? Cheers, turbomen

Member Avatar for finalist
0
587
Member Avatar for MGIndia

hi !!! I am making a window application in which I want tree view in left panel .For each nodes (the nodes here are outlook messages stored in a vault,) click I want the corresponding outlook message to be displayed in right panel . The outlook message in the right …

Member Avatar for kvprajapati
0
175
Member Avatar for servis

hello, i want to arrange variables in array from foreach loop like this [ICODE] foreach($arr as $array){ $variable['first'] = $array['im']; //first record from im column in a table $variable['second']= $array['im']; //2nd record from im column in a table } echo $variable['first']; echo $variable['second']; [/ICODE] the purpose is to make the …

Member Avatar for servis
0
99
Member Avatar for Jabga

Hi all. I am wondering how to handle e commerce payment on my creating web. It can't redirect to such as Paypal or moneybookers.com etc, payment should be start at my web form and finish on my web. Can it be? How to make it? It should accept international visa …

Member Avatar for Jabga
0
160
Member Avatar for sarithak

hi frnds, i m new to ajax...i m using the below javascript code. here the functionality is working good. but the page(specific div) takes some time for loading. so, i need to put some loading bar(just 4 indication)... plz check the below code and add the onload funtion.. [CODE] jQuery(document).ready(function() …

Member Avatar for liamfriel
0
140
Member Avatar for manikandan_dani

Hi, I am developing web application using jsf2.0. In this case, I wish to validate the email field with the help of import org.hibernate.validator.Email; But it is not working, How to validate the email fileld... Thank.:)

Member Avatar for manikandan_dani
0
111
Member Avatar for tomtetlaw

When I debug my program, I get this error: Unhandled exception at 0x004d2776 in engine.exe: 0xC0000005: Access violation reading location 0xccccccd0. This is the stack trace: [code]> engine.exe!CEntityController::SpawnEntities() Line 18 + 0x24 bytes C++ engine.exe!CEntityController::Start() Line 50 C++ engine.exe!DarkGDK() Line 21 C++ engine.exe!_WinMain@16() + 0x13 bytes C++ engine.exe!__tmainCRTStartup() Line 263 …

Member Avatar for mitrmkar
0
128
Member Avatar for sandeep.handa

Hi All, I am working on application where i need to read flatfile and then i need to transform using XSLT to another flatfile.How can i achieve this. I am also thinking when we use XSLT 1.0 we can load XML in DOM and validate in SOM aganist schema and …

Member Avatar for pritaeas
0
102
Member Avatar for diafol

I'm losing the will to live! I'm currently trying to place array values from php files into a mysql db table. As it happens some of the values have non-ASCII values: [B]e.g. “%1$s”[/B] I seem to be able to encode all my usual accented characters, but the slanted inverted commas/quotes. …

Member Avatar for diafol
0
157
Member Avatar for new_2_java

Hi all, In my program I need to create 2 log files, success and error. But I need to create either one of them, depending on the out come of the program execution. In other words, if program fails for any reason, I need to create the error log file …

Member Avatar for kvprajapati
0
1K
Member Avatar for chixm8_49

Hello! I am about to load details from a file and save it to a node. I am having an error regarding to a certain code. Here's the code:: [CODE]boolean loadFromFile(String filename) throws Exception{ boolean b = false; try{ FileInputStream myfile = new FileInputStream(filename); ObjectInputStream in = new ObjectInputStream(myfile); do{ …

Member Avatar for kvprajapati
0
86
Member Avatar for venus_me11

[CODE] <html> <head> <script language="JavaScript"> var bgcolorSelected = "#cc3333"; var bgcolorNotSelected = "#ffffff"; function HighLightTR_a(el){ if (document.myform.s23.checked == true) { el.bgColor=bgcolorSelected; } else { el.bgColor=bgcolorNotSelected; } } </script> </head> <body> <form name="myform" action="" method="POST"> <table border="0" cellspacing="1" cellpadding="4" bgcolor="#F2F2F2" > <tr align="center" bgcolor="#FFFFFF"> <td height="50" width="50" onClick="HighLightTR_x(this);" <?php echo $c[23];?>> …

Member Avatar for saiprem
0
157
Member Avatar for pbcomput

hi... i m trying to get values of more then one select box on same page.. i am showing list of all users with select box..so per user there is one select box... i want to get the value of all select box...which is select or not select... here is …

Member Avatar for pbcomput
0
138
Member Avatar for smith78

HI Friends, I tried: I inserted a row in mysql using php in the first webpage and second webpage i tried to retrieve it. I got: But in the next page i did not get the lastely inserted row. When inserted the another row, i was able to get the …

Member Avatar for pritaeas
0
106
Member Avatar for ~s.o.s~

Hello here i am posting the non recursive or no recursion implementation of outputting [B]Permutations of a string [/B]as compared to the recursive implementations previously posted. Any feedback, constructive criticism or comments are most welcome.

Member Avatar for samir1
0
2K
Member Avatar for Jayakrishnan_gk

I have 3 tables. Locations, Units and phases. Each location can have multiple units and each unit will have multiple phases. Hence my database structure consists of foreign key associations as follows. 'Units.location_id' references 'Locations.id' 'Phases.unit_id' references 'Units.id' When I delete a Location, all associated Phases of the Location and …

Member Avatar for vee_liang
0
133
Member Avatar for tquiva

Could somebody please help me with this program. This is my first time working with an EOF loop. This program simply adds up all the input numbers. My task is to have the last wanted input terminated by an EOF. However, when I run my program, my loop is infinite. …

Member Avatar for biswajit_cs07
0
122
Member Avatar for Hangfire

Hi all, I dabble in a bit of XNA from time to time. I'm creating a 2d top down tank game. My AI bot that controls the enemy tank, works like this simple pathfinding to target until in range, turn turret to target and fire. The problem I have is, …

Member Avatar for Hangfire
0
131
Member Avatar for kgkamaraj

HI, Can any one know how to convert byte array into char array. For example : byte buf[]=teststr.getBytes(); Note: buf is byte array. I need to convert this into char array.

Member Avatar for kgkamaraj
0
219
Member Avatar for abs0lut3z33r0

Here's a code from the C# Windows Form [CODE] SpeechSynthesizer audio = new SpeechSynthesizer(); audio.Speak(textBox1.Text);[/CODE] - This will read anything that is in the textbox [B]Problem in trying to implement the pause and stop feature.Any button or menuitem doesnt get clicked when the code reads something [/B] [CODE]public void button1_Click(object …

Member Avatar for kvprajapati
0
70
Member Avatar for whiteyoh

Hi All, Can anybody give me some good pointers on cause, effect and workarounds for injection attacks please? Id really like to know actual commands that people use, where they use them and how to stop them. Answers on a postcard...............:-)

Member Avatar for pritaeas
0
129
Member Avatar for bdrkb
Member Avatar for Fulladder

Hello I am learning Java at my spare time as a hobby. It only been a week and at the moment I am trying to get my head around the following things fields, constructor, accessors etc. There is an exercise which I ma having trouble with: [U]Human [/U] 1. Create …

Member Avatar for BestJewSinceJC
0
140
Member Avatar for denny42

hello all I have Table1 and table2 table1 design is Name ,varchar amount , decimal table2 design is Name , varchar nominal,decimal how is the statement to find the sum of amount in table1 plus the sum of nominal in table2 ? thank you denny

Member Avatar for denny42
0
90
Member Avatar for yila

i have a problem with a program which gets a matrix[3][3] (with values 1-20.) i want to print the index of cells whose surrounding cells all have lower values. in a matrix 0 0 0 0 1 0 0 0 0 it supposed to print only [1][1]. can someone look …

Member Avatar for WaltP
0
179
Member Avatar for sedai77

I wanted to create a java program usig arrays. The program uses the file to input student name, city, grades scores and gender information. From this information the percent and letter grade should be calculated. how do i start?

Member Avatar for BestJewSinceJC
0
136

The End.