199,114 Archived Topics
Remove Filter ![]() | |
hello I'm writing a program using winsock..whenever i try to send some data from the client i get the following error "Run-time error '40006' Wrong protocol or connection state for the requesting transaction or request" please help me in finding what's going wrong...my client code is given below [CODE]Private Sub … | |
How to link two html pages? If we use <a> then what do wr give value to href? | |
I'm having problems with my code regarding the value of the string I get with the JTextfield.getText() method my code goes this way: [CODE](keypressedevent evt){ int id=evt.getId(); char c = evt.getKeyChar; String s = JTextField.getText()+c; System.out.print(s); } [/CODE] if the textfield contains for example: apple and you type s, it … | |
Hello everybody i am upload image using php file uploader code provided at w3schools and it is uploading the images but when i upload swf file it will give me errors... i dont know why this is happening any suggestions... Much Obliged | |
I created a form that collects a title and some content (as well as some other data), and would like to take that title and content and automatically create a link and a new and simple web page for it (think of Craigslist). So, in the end result, when other … | |
I tried to store several data an cant achieve it: [CODE] #include <iostream> #include <string.h> #include <stdlib.h.> #include <stdio.h> #include "estructura.h" void guardar_cliente(cliente x) { FILE*f; f= fopen("data.txt", "w"); fwrite(&x, sizeof(x), 1, f); fclose(f); } [/CODE] I dont know whats wrong im using another cpp file and a header file … | |
Hi guys, having a bit of trouble with the following piece of code, [CODE] <?php if (strcmp($pubinfo_username, $_SESSION['username'] ) == 0) { echo "<img alt=\"Remove this post\" height=\"20\" src=\"../images/btns/x.png\" width=\"25\">"; } ?> [/CODE] What I need this code to do is compare the string from the variable $pubinfo_username and compare … | |
How do you participate in open source projects? I have went to a few sites that have open source projects but don't know how to participate in them. | |
Hy , i read all the other posts about this error but didn`t helped me , tried google but notheing. I have the following method : [CODE] private void jButton1MouseClicked(java.awt.event.MouseEvent evt) { // TODO add your handling code here: DefaultTableModel model = (DefaultTableModel)jTable2.getModel(); int nrrows = jTable2.getSelectedRowCount(); int[] rows = … | |
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\samples\htmls\login.php:7) in C:\xampp\htdocs\samples\htmls\login.php on line 39 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\samples\htmls\login.php:7) in C:\xampp\htdocs\samples\htmls\login.php on line 39 Warning: mysql_num_rows() expects parameter 1 to be resource, … | |
[CODE]org 100h mov ah, 09h mov dx, entername mov cx, 16 int 21h getname: mov ah, 00h ; keyboard input subprogram int 16h ; character input mov [si], al inc si jmp getname printstrg: mov ah, 09h mov dx, nameis int 21h mov ah, 09h mov dx, si int 21h … | |
hello out there,,i'm using vb6 and need to use calendar control. I managed to import the calendar using projects-->ms calendar and i've placed it on my form. Now i need to add the dates slected onto my MS-Access Database. How do i do that?? the summary::: i need guidelines,codes,functions that … | |
how to display the reverse timer like in the quiuz program the clocks are role in 50,49,48....1. (time up) i need the program for questienare with timer any one help me. | |
Hi there. Using VB5 I am a real novice to VB but slowly getting the grasp of thing but at the moment writing things out long hand (thinking there must be short cuts) Like filling a VB form with MSACCESS data I am detailing every field e.g. [CODE]txtCompGST.Text = tldt.Rows(rowpos)("CompGST").ToString() … | |
If i had to write a program with 10 different functions are you aloud to just make some functions templates and other functions initialized with data types like normal??? | |
Hi I am trying to open an image file in abc.php using function readfile() while trying to access the same image from another file say xyz.php using following tag: [CODE]<image src="abc.php" />[/CODE] But i don't know where it went wrong? Please help me out regarding this. | |
Hello, I've got a problem that I can't seem to figure out. I'm writing a program to simulate a process manager, and I'm doing four different algorithms: First come first serve, shortest job next, shortest remaining time, and round robin. I've got the first two down perfect, but I'm having … | |
I think its more than a year that I ask my questions about programming in this forum.Looks like its the time that I help a little too. So I wanna put my best here.I hope it'll help some one. Still I'll appreciate any suggestion. Another point,It was my first time … | |
I m try to solve this problem Add a column named *reorder_quanity* to the *books* table that will hold a value up to 999 with a default value of 10. 4. Update the reorder quantity of all books to 10. 5. Update the quantity ordered to 1 for all books … ![]() | |
I need help on DataGridView CheckBox. How can make a button enable or visible while only one checkBox of a datagrideview is checked? I tryed this , and it works but it only works when the datagrideview checkbox column is selected but i need when only one checkbox is checked … | |
I want two function names that do the same thing, allowing the user to use whichever they prefer. For Vec a, i use "const" because a is never changed. Correct me if this is the wrong usage. For int n in operator|, i do NOT use "const" because n is … | |
Hi to all, I'm creating an application in which the form contains one datagridview and 20 pictureboxes. When the DGV is populated, the user will drag a row from DGV and drop in any one of the pictureboxes. The picturebox should able evaluate a column value(say column 1) from the … | |
Hi i am just new to VB.NET and our teacher told us to experiment on for loop in a ODD SUM Program you need to add all odd numbers from Input One to Input Two like that but i can't stop it from adding continuously for example i input the … | |
I am trying to use CString's LoadString function but it never retrieves the text from the string table. I ported the application from Visual Studio 6 to visual studio 2003. I looked all over the web but nothing is working. Somebody help me! And if you could be very specific. … | |
hi i have downloaded this as source code and tried with my limited abilities to make it a <textarea> instead of <input type text. everything seems to work until the final update page update_ac.php when i submit i get the error..... You have an error in your SQL syntax; check … | |
DateTime Data Problems in Silverlight and C# Hello Forum. I am using VISI Fire in Silverlight and C# to produce some data charts. One style of chart allows stacked data to be displayed in colums the xaml code I am using looks like this [IMG]http://i67.photobucket.com/albums/h292/Athono/xaml.png[/IMG] The chart i am trying … | |
Hi guys, my keyboard has not [B]Break[/B] key, so i cant braek a test run with the conventional [B]Ctrl + Break[/B]. Is there any other way to break a test run? Thanks in advance. | |
Hi All, I am using Tomcat 6.0 Application server and Apache HTTP webserver 2.2 and Eclipse Galileo as my IDE. I developed an web application which is some site where users can login and browse around it. My problem is Only one user can access the application. That is when … | |
I was advised that I should not import the std namespace in a header. Also, I should create my own namespace for my library (a header file I created with function in it). Why is it a bad idea to use the std namespace for my new functions? If all … | |
Whenever I command my datareport to show, my computer halts. Their are other four report that work well. Then there is the only one that is pulling on my legs. Can any one tell me what the problem might be? | |
Hi all, i am working with Uploadify ( a neat little file uploader ) and had a tough time finding an image re-sizer to work with it. I finally found one that works quite well but it encodes the file name using md5 encoding. I am not sure where and … | |
I have a piece of code that takes two strings, puts them together, then attempts to save that result into a table in a database. For some reason, the database is only showing the second half of the string ([ICODE]Me.txtRev.text[/ICODE] in this case). When in debug, I can see that … | |
I'm trying to format a DataGridView, with style color, etc. The DGV loads (via buildGrid method) at the startup of the form, as you can see in the constructor's code: [CODE]public Report1(DataSet dsReport1, string sDateRep) { InitializeComponent(); sDate = sDateRep; dsReportGrid = dsReport1; orgDataset(); buildGrid(); } [/CODE] Here's the code … | |
I am using below curl function for sending SMS. if i put some spaces in message its not working.otherwise its working <strong class="highlight">function</strong> sendSMS($mobile, $msg, $sender, $sendPass, $sendID) { $msg=urlencode($msg); $ch = curl_init(); $url="http://bulksms.mysmsmantra.com:8080/WebSMS/SMSAPI.jsp?username=xxxxx&password=xxxxx&sendername=nix&mobileno=$phone&message=$message"; //echo $url; //$url=urlencode($url); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); $data = curl_exec($ch); curl_close($ch); … | |
I have started dabbling in Objective-C for iOS developing. Is using the C forum of this website appropriate for questions regarding Objective-C? If not, what would the correct forum be? Thanks! | |
I've got a program, a board game, that plays over LAN. I used Asynchronous sockets to connect the server and the client, so that the server won't hang until the client responds. The game flow would be like this: Player A starts server by typing in a Port number Player … | |
Say I have a basic list. [CODE]x = [2,3,1,3,5,4,5] [/CODE] And I want to find the sum result applied against the list without duplicates. So with duplicates the code could be. [CODE][elem * 2 for elem in x if elem >= 1 ] > [2, 4, 6, 6, 8, 10] … | |
Well, well. I was looking for a program online. And so, it appeared as a [ICODE].bat[/ICODE] file. However, It looked suspiciously small at 53 kB. So, before I ran it, I opened it up in notepad and voila, a virus. So, I shredded the file with the windows 7 shredder, … | |
hi guys, i'm trying to write a program in C# to read a SRF04, through a USB I2C connnector. this is my first time working wiht I2C and usb and i need some help. [URL="http://www.robot-electronics.co.uk/htm/usb_i2c_tech.htm"]http://http://www.robot-electronics.co.uk/htm/usb_i2c_tech.htm[/URL] im using the I/O settings to write to the Sonar. Can someone provide me wiht … | |
Hi everyone I've been having a small problem. on learning process of vb.net and sql server 2005 I hit a wall I want to know how can I filter the items on my datagrid which is displaying the data from my SQL server database, through a textebox text. sorry the … | |
There is an error concerning lines 10-14. I had been using this code previously without errors. I'm not sure what I may have changed. The error is "invertMatrix.cpp:14: error: invalid use of incomplete type ‘struct std::stringstream’ /usr/include/c++/4.2.1/iosfwd:83: error: declaration of ‘struct std::stringstream’ " [CODE]#include <iostream> #include <vector> #include <cmath> using … | |
I am writing some code to simulate a football tournament by comparing several teams on several parameters. I need to be able to knock out teams, edit some stats mid simulation, and be able to easily access individual teams data, what structure would I be best using? I had thought … | |
Hey, i have created a drop down menu that give me hell and refuses to work in internet explorer.. Can anyone find the error? (its a wordpress website) [B]Here is the menu itself (as i say.. wordpress):[/B] [CODE] <div class="topmenu"> <ul id="nav"> <li id="home" <?php if(is_page('home')){echo "class=current_page_item";} ?>><a href="/index.php">דף הבית</a></li> … ![]() | |
Hello everybody.. Does anybody know what's the use of the execCommand() function?? Also, is it used to add tags in textboxes?? Thanks beforehand. ![]() | |
how to get DWR readyState as in AJAX. I am using Springs. Problem for me is sometimes the Flow continues even before Ajax values being returned and hence ends up in some error. If I can get the readyState, then i can check whether it is 4, so that I … ![]() | |
Hi there, I'm trying to teach a few students how to create a text adventure game. In the past, I've generally gone about the route of using nested if-statements because it seems a bit easier to visualize. Here's what one has done in the past, and ignore the crazy code-formatting … | |
please tell me c# code i want to determine largest number in a column of sql server 2000 table and store it in a variable. | |
Can I ask for a little help with virtualenv. I am looking at the docs here [URL="http://guide.python-distribute.org/pip.html"]http://guide.python-distribute.org/pip.html[/URL] and here [URL="http://www.jython.org/jythonbook/en/1.0/appendixA.html#virtualenv"]http://www.jython.org/jythonbook/en/1.0/appendixA.html#virtualenv[/URL] There are a few things I can't quite understand about it. First just to clarify I am on ubuntu and my default python is 2.7.1 1. I use virtualenv to … | |
how to reduce primary key by 1 after deleting records | |
Hello, I have a textbox, a previous button (<<), a plus button (+) and a next button (>>). When a user clicks a plus button, he can enter the date in textbox. He could enter unlimited number of dates this way. Now user, if he clicks previous button (<<), the … |
The End.