199,114 Archived Topics
Remove Filter ![]() | |
I would like to know how to loop a connection or close an existing connection. heres the code i have to connect [CODE]Imports System.Net.Sockets Public Class Form1 Dim clientSocket As New System.Net.Sockets.TcpClient() Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try clientSocket.Connect("ServerIp Goes Here", Server port … | |
Basically what is the system level difference between language C and C++ ? | |
Hey all, I've tried many times to write a C++ class around a C library to make a nice clean interface to that library. Now I keep on getting the same problem: Once in the class, I initialize the C library, and then the C library complains that EG: error … | |
Hello, I'm writing a music player and I'm having trouble with one of the most important concepts of it: remembering songs you add to your "Library". The main draw of my music play is being quick and efficient at everything, and keeping that in mind, what would be the best … | |
Hi dears.I want start making a web with python but I know nothing a bout web.and so don't know from where a have to start. I need a point to start and a few knowledge about webs programing foundation.please introduce me a suitable source for beginning. Thanks. | |
Hi I'm developing a WCF service, which defines a callback contract through which the server can call a method on the client. Below is a sample code: [code] [ServiceContract(SessionMode = SessionMode.Required, CallbackContract = (typeof(ISampleServiceCallback)))] public interface ISampleService { [OperationContract(IsInitiating = true, IsTerminating = false, IsOneWay = false)] bool Register(int controllerId); … | |
[CODE] while(1){ system("clear"); gotorc(10,30); printf("\n1. add records"); printf("\nyour choice"); fflush(stdin); choice=getchar(); switch(choice) { case'1' : fseek(fp,0,SEEK_END); another='y'; while(another=='y') { printf("\n Enter name, age and basic sal"); scanf("%s%d%f",e.name,&e.age,&e.bs); fwrite(&e,stsize,1,fp); printf("\n add another record(y/n)"); fflush(stdin); another=getchar(); } break; [/CODE] [QUOTE] hi friends i am working on one menu driven program and used … | |
Hello guys. I just want to ask how to convert this code to python. I am just a beginner in this code. [CODE] String output = "The number is: "; int num= 12; output+=num; System.out.println(output); [/CODE] in my python code, i try to do this: [CODE] output = "The number … | |
Can anyone explan the main idea of using set and get function , because im confusing between them .:-/ | |
![]() | I'm trying to learn how to send forms using python 3.1 and it doesn't go well. I've made a simple site with a POST form. it got user and pass fields, and it will save the data into a text file. (for debugging) The site is working, I can type … |
In the following program, what is the "values" function? [CODE]for tank in tanks.values(): if tank.alive: print tank.name, "is the winnter!" break[/CODE] I looked it up using Wing IDE and this is what I found. [CODE]def values(self, arg): """ D.values() -> list of D's values """ return [][/CODE] Thanks for any … | |
Hi, I am trying to make and use my own DLL within a C++/CLI project. The DLL project contains an header utc.h file with the following declaration: [code] namespace utc { __declspec(dllexport) void dthr (int dt[3], int hr[3]); }[/code] The source of the dthr.cpp file starts with: [code] namespace utc … | |
Hello guys, I'm trying to make this work [CODE]all: daemon client daemon: cd ./daemon; make daemon client: echo going in cd ./client; make client clean: cd ./daemon ; make clean cd ./client ; make clean[/CODE] But I'm having 2 problems: 1) Make ALWAYS tells me there's nothing to be done. … | |
Why when I save a float value into database (the data type is float as well), for example 24,62 in database is writen as 24,6200008392334. I have entered only 2 decimals, but in db there is plenty of them. This is how I have: [CODE]string Together = textBoxAmount.Text; string[] Seperated … | |
hi, i'm new to php... i have created a login page -- login.html, where user can enter username & password. when they submit the form, leads to a validation page -- login.php if login succes it forwards to 3rd page. Suppose if it fails, then again redirects to login.html where … | |
I have a file that contain data structure as below: L,13206,11,02,06,000,3981.100 19,22,25,26,19 END L,13207,11,02,06,000,6561.000 22,24,7,8,9,25,22 END K,[COLOR="Red"]1[/COLOR],P [COLOR="red"]-18970.811,53728.643[/COLOR],BKL,,e-Coord,M END so how can i extract 1 and -18970.811,53728.643 and export it into a new output file with new structured as below: C [COLOR="red"]1 [/COLOR] [COLOR="red"]-18970.811 53728.643[/COLOR] For your information, the value … | |
Hi all :) Currently I have a console for my program, which in short words, executes the function named what you write. The thing is, the functions needs, for several reasons, to be members of a class. Currently I have the code below. Manager is a class that needs to … | |
[QUOTE] fwrite writes only name from the structure emp and rest of them are written garbage value to the file. so it would be really great if any one of you can help me out[/QUOTE] [CODE] #include<stdio.h> #include<string.h> #include<stdlib.h> int main(){ FILE *fp; char another,choice,useme; struct emp { char name[40]; … | |
Hi, Im having a problem with some socket programming and im hoping someone here can help me. basically im trying to bind a listener to a port. I have used some source code i obtained from the net, however the code was a few years old and contained the obsolete … | |
First, I want to thank you for helping if you did, if not, thanks for checking it anyway. Second, I have been working on this for awhile, and I am slowly making progress. I am to make an address book, and for the most part I am getting it done … | |
What's the deal with databases in C#? I'm used to using MySQL in PHP, but my confusion is this. If I develop an app, and sell it on, would the end user need anything installed? How do other app developers store data that's quick and easy to access? Any help … | |
Hi All, I am trying to convert HTML file into XML using java. If anyone of you have sample coding please share with me. Your suggestions greatly appreciated. Thanks, Veera | |
Dear All, I have a bill to be printed on a size of 8.5 by 5.5. So I have set the both the left margin and right margin to 0 using the Design option followed by Page Setup. Then even in my code I have put this settings as below … | |
Please I have a little problem with my project. It goes "A polynomial of degree n is represented as Pn(x)=A0 + a1x + a2x2 + … + anxn Where a0, a1, a2, a3 , … , an are constant coefficients. Evaluation of such polynomials may be important if Pn(x) is … | |
I am creating a small test application in which i am trying to fetch the all the hyperlink's details(Anchor Text and url) on the web page. What i have done till now is that i create webbrowser component loaded the page and fetch all <a> tags. I also know that … | |
I am a beginner at Java. I have been given an assignment to make a simple address book(without applets) using Java. It should have the following functions:- 1) search-by name,city. 2)add-name,telephone number,city,address. 3)modify. 4)delete. I am still working on the program.But the problem comes when the screen(black one) becomes too … | |
One day while pondering about C I came up with this program. Can you predict what the answer will be? Now run it, were you right? filename.c [CODE] #include <stdio.h> #include <stdlib.h> int main(int argc, char**argv) { unsigned long *iptr = (unsigned long*)0;/*pointer equals 0*/ unsigned long ans = (unsigned … | |
Hi, I'm trying to locate a certain row in my datagridview, using textbox _textchanged event. Grid is populated with table having 2 columns as primary keys. With one column I have no problem, but using 2 columns I'm having exception . [code] private void dfSponsorname_TextChanged(object sender, EventArgs e) { try … | |
If I'm running a Do... Until or a For... Next loop in a button click event, is there a way I can allow the user to click the same button while the loop is running and escape the loop? | |
Hi, everyone. I am stuck in such a situation: When failing to open a file, of which the name is in Unicode, I need to show the user something like "Can't open file: \My Document\file-name-in-unicode.txt" by throwing an exception . I often use exceptions this way(is this a good way?). … | |
Hi guys, I'm a newbie in Visual Basic and I need some assistance. I have 2 tables in mysql: 1. stats (stats_id,statsno,statsName) 2.stats_det (stats_det_ID,stats_id,stat_DateAdd,stat_UserAdd,stat_DateModif,stat_UserModif) I have a form named status and from here I want to add a new record in the first table (stats). I've created the insert statement … | |
Dear Experts How to display picturebox as oval shape. Please help | |
Hi, this is my first post here at DaniWeb, so be gentle! :icon_smile: I am trying to learn PHP, but first want to set up an IDE on my MacBook, because others have said it will speed up the learning process. I installed Eclipse PDT All-In-One v2.0.0M2 and it seems … | |
can anyone give me a sample code of a while statement with more than one condition? please... | |
Hello all I was looking into some textbook solution (preparing for my exam) and I saw this program: Question Details: write a program that reads in a set of positive integers, representing test scores for a class, and outputs how many times a particular number appears in the list. you … | |
I am using a Webbrowser control to sign into Hotmail. Then once it is signed in then I'll just use this navigate code to open the inbox: I think that the problem is that the actual inbox(mail window) is within an iframe. I have to figure out how to call … | |
hi, I am creating a script where i have 4 combo box collecting the value from database. and i want if some one select the other option from the combo box the text box is enable. and all 4 combo box have an alternative text box and i want same … | |
Hi I have problem to get data from tag (eg: <TEXT></TEXT>). For example the string is like this: [CODE]$string = "<TEXT> Some text </TEXT>"; if($string =~ /<(TEXT)>\s*(.*)\s*<\/\1>/g) { $result = $2; print $result, "\n"; }[/CODE] It works fine, but if the string is like this: [CODE]$string = "<TEXT> Some text … | |
I just went all through the PHP manual and can't find what i need. A form has a dual function where it will display dates from mySQL if they exist in US english date format m/d/y. strftime() works fine as long as there is a date argument. When i display … | |
I make a button that create a new form and pass to it an array but there is an error there is the code [CODE] int [] x=new int[9]; x={0,1,2,3,4,5,6,7,8}; form1 x =new form1(x); [/CODE] and the other form constructor code is [CODE] public form1(int[]x) { InitializeComponent(); } [/CODE] | |
hi all i want to take a paragraph from a file and append this paragraph after ^L in another fille using shell scripting .............could you help me | |
Hi guys, how to make the default undo/redo in richTextBox support undo/redo multiple actions????????? Thanks [EL-Prince] | |
Hi, I'm not just new to this forum, but I'm also very new to programming and C#... so be warned! I am using a dictionary list to hold my usernames for an application I'm making. It's never actually going to be used, but it's purely to develop my knowledge. Firstly, … | |
Hi everyone, Hi everyone. I'm happy to be here today. actually I need help from u . I'm doing a JAVA program and there is this error that I really tried to fix but couldn't. so can u help me please. the program I'm writing is to accept data from … | |
I have a listView, in 1st column is are article names, in 2nd column are prices of these articles (data type of float). And I have checkBoxes. What I would like to do, is to count the prices in 2nd column of all selected rows. And then the counted value … | |
![]() | Hi, I am trying to make a sublime text plugin to compile C using a make file, unfortunately it is all in python and I cannot get things to work :( could you please give me advice on passing data to the g++ make command? Thanks in advance. |
Hello everyone, I don't know much about programming. But, I'm looking for a programming language (to run on my computer, not online) that can do these things: -Send cursor to set coordinates and click -Copy and store information -Perform calculations (multiply, divide, etc.) based on information that it gathers | |
![]() | I've created an array, but am struggling to get the end result I'm looking for - could anyone point me in the right direction? Current result: http://www.equinefocus.co.uk/random/4l56fdfm/20091230.php Array $filters_array = array ( "Filter001"=>array ( "<a href="http://www.equinefocus.co.uk" target="blank">Filter 001: Where rating = 1</a>", // filter name and link "SELECT * FROM … |
I have a scenario where i have a DataSet bound to a combo box, and i would like to read a row from the DataSet based on the item selected in the Combo Box. For e.g. I have a dataset that has 1 table containing 2 fields say ID & … | |
![]() | I am making a command line program that finds factors of a number that the user enters. At the moment the user could enter something like this: '768r7fg38gf8320rf' which returns an error. I would like to restrict the user so they can only enter numbers (0 - 9). How would … |
The End.