199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cool_zephyr

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 …

Member Avatar for cool_zephyr
0
847
Member Avatar for geekme
Member Avatar for urtrivedi
0
144
Member Avatar for malchus

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 …

Member Avatar for malchus
0
235
Member Avatar for 080346

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

Member Avatar for Arkinder
0
143
Member Avatar for mgt

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 …

Member Avatar for mgt
0
130
Member Avatar for rayden150

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 …

Member Avatar for mike_2000_17
0
256
Member Avatar for jakizak

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 …

Member Avatar for faroukmuhammad
0
110
Member Avatar for MagnetoM

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.

Member Avatar for Momerath
0
149
Member Avatar for nsyncpilu

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 = …

Member Avatar for nsyncpilu
0
2K
Member Avatar for lastgame2007

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, …

Member Avatar for faroukmuhammad
0
129
Member Avatar for ionutica

[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 …

Member Avatar for faroukmuhammad
0
117
Member Avatar for venkatnams

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 …

Member Avatar for faroukmuhammad
0
4K
Member Avatar for balajiarun1992

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.

Member Avatar for faroukmuhammad
0
166
Member Avatar for Craig_V

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() …

Member Avatar for Craig_V
0
129
Member Avatar for bimoweemo

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???

Member Avatar for bimoweemo
0
117
Member Avatar for stranger_on_way

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.

Member Avatar for ddymacek
0
97
Member Avatar for Benderbrau

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 …

Member Avatar for majid_shqeer
0
3K
Member Avatar for massivefermion

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 …

Member Avatar for massivefermion
0
476
Member Avatar for agaba

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 …

Member Avatar for hfx642
0
217
Member Avatar for dibakarmishra

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 …

Member Avatar for adam_k
0
1K
Member Avatar for MareoRaft

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 …

Member Avatar for mike_2000_17
0
301
Member Avatar for meetarun007

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 …

Member Avatar for adam_k
0
2K
Member Avatar for vijaybrar

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 …

Member Avatar for adam_k
0
236
Member Avatar for madriceg

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. …

Member Avatar for madriceg
0
2K
Member Avatar for aaro

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 …

Member Avatar for aaro
0
205
Member Avatar for complete

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 …

Member Avatar for complete
0
195
Member Avatar for faroukmuhammad

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.

Member Avatar for faroukmuhammad
0
208
Member Avatar for sathyanshan

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 …

Member Avatar for masijade
0
98
Member Avatar for MareoRaft

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 …

Member Avatar for mrnutty
0
150
Member Avatar for faroukmuhammad

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?

Member Avatar for faroukmuhammad
0
84
Member Avatar for phaedrusGhost

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 …

Member Avatar for phaedrusGhost
0
119
Member Avatar for bklynman01

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 …

Member Avatar for Mitja Bonca
0
274
Member Avatar for udigold1

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 …

Member Avatar for ddanbe
0
562
Member Avatar for jacob21

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); …

Member Avatar for ddymacek
0
226
Member Avatar for Rickay

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!

Member Avatar for Rickay
0
223
Member Avatar for zack_falcon

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 …

Member Avatar for zack_falcon
0
324
Member Avatar for flebber

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] …

Member Avatar for TrustyTony
0
301
Member Avatar for emanfman

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, …

Member Avatar for sknake
0
144
Member Avatar for Donnovan

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 …

0
95
Member Avatar for Leodumbi

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 …

Member Avatar for jgat2011
0
138
Member Avatar for MareoRaft

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 …

Member Avatar for mrnutty
0
2K
Member Avatar for bigdan182

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 …

Member Avatar for mike_2000_17
0
221
Member Avatar for sagive

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> …

Member Avatar for stbuchok
0
177
Member Avatar for Pro2000

Hello everybody.. Does anybody know what's the use of the execCommand() function?? Also, is it used to add tags in textboxes?? Thanks beforehand.

Member Avatar for stbuchok
0
140
Member Avatar for vgkarthi

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 …

Member Avatar for stbuchok
0
112
Member Avatar for dark_sider_1

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 …

Member Avatar for dark_sider_1
0
219
Member Avatar for arsalanghouri

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.

Member Avatar for Momerath
0
153
Member Avatar for flebber

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 …

Member Avatar for flebber
0
196
Member Avatar for arsalanghouri
Member Avatar for romilnagrani

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 …

Member Avatar for zachattack05
0
107

The End.