199,114 Archived Topics
Remove Filter ![]() | |
Hi all, I'm new to Java (after years of Visual Basic and VBA). So right now I'm going through a very steep learning curve. I'm trying to figure out (while I bang my head on the keyboard) how to do the following in SWING: - Show mouse coordinates (x, y) … | |
This is my code so far to connect to a webpage and retrieve the html: [CODE]#include <winsock2.h> #include <windows.h> #include <iostream> #pragma comment(lib,"ws2_32.lib") using namespace std; int main (){ WSADATA wsaData; if (WSAStartup(MAKEWORD(2,2), &wsaData) != 0) { cout << "WSAStartup failed.\n"; system("pause"); return 1; } SOCKET Socket=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP); struct hostent *host; … | |
Hi and I am making a maths library which will accept infinit digits but what is the best formula a computer can understand for devision. The only one I have come across so far is long devision but is there anything better? The following is the kinda formula I am … | |
How to get the IP address of the Client (visitor of the website) I tryed with theese codes: [CODE]Request.UserHostAddress; and Request.ServerVariables["REMOTE_ADDR"][/CODE] But both gave me back the serrver IP :( | |
Hi, I'm working on a content management system for our website (ASP.NET project, C# language, SQL Server 2000), but I'm unable to save russian texts into the database. Table is okay, I've created an ntext column, which is able to store unicode characters. However, if I'll look into the database … | |
hi.. im using a a gridview with template fields which contains labels to display the dynamic data from database.. my problem is, i want to use paging concept in the gridview. but as im using template fields & a dynamic database, im getting an error.. this is how im binding … | |
Hi great ones, i have a form that i save employees photos to server and URIs to DB. Doing some tests yet. I can save in the server without no problem. the javascript callback function aint being fired .. dont know why; below is the code.. i appreciate any help … | |
Hey guys, I have been trying to write a basic program that will send and receive MIDI. I have successfully managed to send a MIDI message, but am unable to come up with the code that will receive a MIDI signal from an external source and simply display the information … | |
My below code will compile and create a form with blue inside. I'm currently trying to draw a triangle to the screen but when I call "device.DrawPrimitives(PrimitiveType.TriangleList, 0, 1);" inside of my render function the program fails. Let me know if I'm doing anything wrong, I'm still in the process … | |
Hi there I'm hoping there's an easy answer to a (hopefully) not too long-winded issue... I'm building a C# web client using a proxy wsdl.exe'd from a wsdl file and six schemas, each in a different namespace. Some schemas extend complex types in others. When i get a soap:Fault from … | |
Hello All, I want to send the email if there is any Exception in my asp.net site. Please help me. Thank in Advance. | |
Hi...kindly tell me if the following compiler accepts vectors. C++ g++ (GCC) 4.1.2 | |
I dont want to use resultset object in JSP page. Rather I want to use a java class for retrieving values in to the JSP page. Either using array list or something like that., I tried many times but failed Please advise in detail. Thanks | |
i was going through many ruby books and found this amazing text editing code (its just 17 lines ) provided u use Shoes toolkit. The code is working fine with no errors . but its only able to read (open) and input file but not save the text u wrote … | |
hi.. i am newbie on learning web dev and still find the best resource for my study .. can anybody give a mysql manual that contains all mysql syntax and the syntax usability :) thanks all, please reply | |
Hi Everyone I'm hoping someone could help me out please. I have a database of names and email addreses with the following columns: user_id (auto increments) user_name user_email user_email_sent Basically I have a form (for myself) that returns all the rows in the database and next to each row I … | |
How to select multiple location under one central location in jsp and should be stored in oracle? | |
Hai Friends ! This is my first thread .I 'm developing a vb 6.0 application with barcode scanning enalbled.It's for Photo labs.I 've a bar code scanner connected via USB.It reads the barcode values .No problem with that.But when ever I scan a barcode,the value is stored in the text … | |
Hi, I have the following problem. How do i get the number out of this variable: [CODE] <div class="right"><a id="ctl111_contestProfileLink" href="http://contests.covers.com/Sportscontests/profile.aspx?user=265839&sportid=0">Picks History</a></div> [/CODE] The numbers can range from -1000000 till +10000000. Does anyone know how can I achieve that? I saw someone do it with eregi() function, but since this … | |
Currently using ASP.net 2005 I am havin an errot in update statement my code is: Dim myConnection As OleDbConnection Dim myCommand As OleDbCommand Dim ssql As String = "UPDATE passwrd SET password ='" + TextBox1.Text + "'where username='" + TextBox2.Text + "'" myConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; " _ & "Data … | |
I am building a rotating page. For URLs. The problem is that the page does not reload a different URL when you refresh the page, and I want it to load a different URL when someone enters the site. I have tried different coding and nothing seems to work. Here … | |
Dears, I am having the headers warning that is generated from my login script. [B][COLOR="Red"] Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\tgaff\index.php:25) in C:\xampp\htdocs\tgaff\members.php on line 62 Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\tgaff\index.php:25) in C:\xampp\htdocs\tgaff\members.php … | |
I made this code to generate a textbox when I click on the button the problem is that I want to read text from those textboxes as make a arraylist that receive the texts from those text boxes [CODE] private int count=0; private void New_Click(object sender, EventArgs e) { TextBox … | |
Im using asp.net using c#.net to retrieve a field from database. The field is xyz. It contains the data value say qwerty~rtyuup. I want to split the data right and left to ~ say(qwerty) and (rtyuup) using a string. For this i have used the code as follows: String abc(); … | |
hello all, i m newbie here... and i have one silly question to ask about inet ftp... i was trying to ftp using inet ftp in vb6, but keep getting 'variable not defined' error for my Inet1 (eg: inet1.URL = host_name) do i need to register any component or add … | |
hi,.im a first year student taking information technology, never mind where i am studying.,,,i just want to ask some tips to understand easily turbo c.,. | |
I use wamp as my server. I used mysql-connector-java-5.1.5-bin.jar It worked ok/ But I set up same in another computer it gives an error saying ([I]In Jcreator[/I]) [B]Error: Error reading C:/Program Files/java.../ mysql-connector-java-5.1.5-bin.jar ; Error in opening zip file[/B] What is this error & what can I do? Plz help. … | |
Hi all... First post here, be gentle. I'm trying to get this to work, and there's no output. This is from the K&R book [v2] exercise 1-14, the prompt is in the header. I added comments for readability, and please comment on anything you believe needs improvement. Thank you for … | |
I have been given a project and i need to create a button to calculate N!. I've been trying to figure it out for a while now and I can't. Any help would be nice. | |
Hi, I used this code to check page rank. [COLOR="Green"]E.g.[url]http://www.orkut.com[/url] it gives page rank : 8[/COLOR] [COLOR="Red"] it works on localhost perfectly.[/COLOR] [COLOR="Green"]But when same code i put on my ftp i.e. live it gives wrong output Page rank: -1[/COLOR] [COLOR="Red"] I think some setting in php.ini or some other … | |
What is the problem? [CODE]<?php /************************************************* Member Registration Script Author: Adam Khoury code comments appear above sections they refer to *************************************************/ // First we check to see if the form has been submitted if (isset($_POST['mem_firstname'])){ //Connect to the database through our include include_once "z_connect_to_mysql.php"; // Create local varibles from the … | |
hi i need some help on how can i retrieved users mac address using php? so that i can restrict an access to my admin page .. thanks | |
Hi There I have come across some code in someone's API that I wish to use myself and I wonder if anyone could advise me on how to use properly.. I am able to call function <?php playerProfile($array); ?> without any return value. Subsequently, in my php I can retrieve … | |
I need to put together a quick script that will clean up a directory full of pictures for me. I want it to just delete photos that are not actively being used by members. I'm familiar with the different aspects involved in doing this but a little unsure of how … | |
Hello! I am currently working on a project with a few others. Everything has went on smoothly until now. When I run the project in NetBeans, everything is working as intended. All images show up like they should. If I start the jar file with the console commands (java -jar … | |
Hello all. I have a small problem, the next code finds the neden content, but it doenst print it: [CODE]$string = "#324423asdd asd 'BecamePosters' "; if($string =~ m/'[a-zA-Z]{1,40}'/) { print "ok!\n"; print $1; } else { print "not ok!\n"; }[/CODE] It only prints "ok!\n" but nothing more. Also triyed m/'*'/ … | |
Hi, I have a query, the output of which I need to display in my page. say, if I do ... select col1 as column from table1; how could I display 'column' in my echo statement or else how could I display it in my PHP code? Thanks for your … ![]() | |
I am making my project using netbeans 6.5. I want to open different frames in the same parent frame, But I am unable to do so. For e.g. my first frame is a login page. After Logging in the 2nd frame is displayed. But I want to display the 2nd … | |
Hi, I get the following error when I Rebuild the Solution in Visual Studio: [b]The control WindowsFormsApplication1.MyPanel has thrown an unhandled exception in the designer and has been disabled[/b] Here is what I did to get this error: 1) Started a new project and added a new User Control (MyControl) … | |
Hai I am developing a community website and peoples can create their profile and can add friends and all. But I need to show a notification if that visitor is online . Or show all visitors in online in a page. I use mysql database. I make it like this … | |
I've created a recordset in VB Express 2008 as follows [code] rsmembers = New ADODB.Recordset with rsmembers .Source = cn.Execute("SELECT * FROM members") .ActiveConnection = cn .CursorType = ADODB.CursorTypeEnum.adOpenDynamic .LockType = ADODB.LockTypeEnum.adLockOptimistic .CursorLocation = ADODB.CursorLocationEnum.adUseServer .Open("members", Options:=ADODB.CommandTypeEnum.adCmdTableDirect) .movefirst .Fields("Active").Value = vbFalse [/code] but the error window tells me that .fields("active") … | |
hello everyone .. im writting a C program that requires to insert integers from a text file .. the contents of the text file are: 1:2:4 4:12:5 13:7:5 1:20:4 how can i read each number and define it as an integer ???? please HELP !! [CODE] #include <stdio.h> int main() … | |
Hi, I'm binding data table to datagrid but i'm not sure how to delete the empty cells in that data table Plz find the below image could anyone suggest the best way to delete the empty cells as marked in black pen Thanks | |
I have one or more functions separate from main() , that besides the return value , must also return the time it tooked to process. How can I do that ? | |
I have a combobox that pulls a list of values from a database. When a new entry is entered I want an entry in the combobox to read "New record". However, from what I have seen I can only insert and object, such as a DataRow, into the combobox. Is … | |
Hi, ive been looking for a solid java community to help me when im tearing out my hair :) Basically ive constructed a GUI that has to represent the same look and functions of the typical windows calculator. Ive made 4 classes 2 do this, my reasoning so it was … | |
hi i want to create menu with icon beside it, but i don't know how and with which gui lib is it possible? please help me. | |
I finished my tic tac toe game program, I`d like to know if anyone can tell me what I need to do in order to send the .exe file to someone and make it so the file executes without problems. Thanks guys | |
Hello experts! Please how do I display markup text (in html) with a asp.net 3.0 server control? I have a database full of markup text inputted using a rich text control. but I will like to display these text using other asp.net controls that would render the text correctly with … | |
I get into DataSet CostumerNames and Hours (type DateTime) of their registrations. I would like to sort customers my time of registration (time of a day). I show both in listView. This is my code: [CODE] string DanesRezervacije = "SELECT Stranka.ImePriimek, Naročilo.RegisterTime FROM Stranka, Naročilo " + " WHERE Stranka.IDStranke … |
The End.