199,114 Archived Topics
Remove Filter ![]() | |
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; … | |
Hello Everyone, Can anyone tell me how to Register .Ocx / .Dll files on Vista Ultimate, for vb6?????? Thanks in Advance SS | |
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 … | |
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 … | |
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 … | |
[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 … | |
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... | |
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 … | |
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++) { … | |
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; … | |
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 ) . … | |
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), ..., … | |
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) … | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
| |
is it possible to write a program for selected files copying to CD using VB6 | |
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 | |
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 … | |
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 … | |
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 … | |
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() … | |
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.:) | |
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 … | |
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 … | |
![]() | 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. … ![]() |
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 … | |
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{ … | |
[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];?>> … | |
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 … | |
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 … | |
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. | |
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 … | |
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. … | |
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, … | |
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. | |
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 … | |
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...............:-) | |
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 … | |
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 | |
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 … | |
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? |
The End.