199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Progr4mmer

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 …

Member Avatar for Progr4mmer
0
156
Member Avatar for john butler
Member Avatar for Narue
0
159
Member Avatar for harryhaaren

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 …

Member Avatar for harryhaaren
0
445
Member Avatar for SoulMazer

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 …

Member Avatar for SoulMazer
0
146
Member Avatar for funfullson

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.

Member Avatar for Stefano Mtangoo
0
172
Member Avatar for koleraba

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

Member Avatar for yahawili
0
549
Member Avatar for cthoes

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

Member Avatar for WaltP
0
270
Member Avatar for letlet_pogs

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 …

Member Avatar for sneekula
0
113
Member Avatar for لولوة

Can anyone explan the main idea of using set and get function , because im confusing between them .:-/

Member Avatar for Dave Sinkula
0
213
Member Avatar for yoni0505

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 …

Member Avatar for sneekula
0
228
Member Avatar for lewashby

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 …

Member Avatar for sneekula
0
74
Member Avatar for BobFX

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 …

Member Avatar for Excizted
0
185
Member Avatar for Crushyerbones

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

Member Avatar for Crushyerbones
0
136
Member Avatar for Mitja Bonca

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 …

Member Avatar for sknake
0
119
Member Avatar for nadnakinam

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 …

Member Avatar for mangel.murti
0
605
Member Avatar for wasyazwan

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 …

Member Avatar for wasyazwan
0
407
Member Avatar for Excizted

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 …

Member Avatar for Agni
0
146
Member Avatar for cthoes

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

Member Avatar for gerard4143
0
271
Member Avatar for jsnowden2008

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 …

Member Avatar for jsnowden2008
0
188
Member Avatar for Dougnukem

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 …

Member Avatar for blackeyedanel
0
219
Member Avatar for JayOne

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 …

Member Avatar for sknake
0
208
Member Avatar for veerasek

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

Member Avatar for ~s.o.s~
0
6K
Member Avatar for newbie14

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 …

Member Avatar for newbie14
0
92
Member Avatar for Pamilerin

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 …

Member Avatar for tux4life
0
79
Member Avatar for j4jawaid

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 …

Member Avatar for j4jawaid
0
148
Member Avatar for shubhang

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 …

Member Avatar for blackeyedanel
0
232
Member Avatar for gerard4143

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 …

Member Avatar for gerard4143
0
142
Member Avatar for snakay

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 …

Member Avatar for snakay
0
1K
Member Avatar for OldQBasicer

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?

Member Avatar for Progr4mmer
0
156
Member Avatar for kevintse

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

Member Avatar for kevintse
0
3K
Member Avatar for venom80

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 …

Member Avatar for venom80
0
2K
Member Avatar for tqmd1
Member Avatar for selvaganapathy
0
89
Member Avatar for amy.damnit

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 …

Member Avatar for shanimal
0
108
Member Avatar for aladar04
Member Avatar for aladar04
0
533
Member Avatar for new programer

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 …

Member Avatar for vmanes
0
128
Member Avatar for ludamizleeto

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 …

Member Avatar for ludamizleeto
0
795
Member Avatar for sandipan.rcciit

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 …

Member Avatar for sandipan.rcciit
0
169
Member Avatar for back2arie

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 …

Member Avatar for k_manimuthu
0
144
Member Avatar for JRM

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 …

Member Avatar for JRM
0
88
Member Avatar for Egypt Pharaoh

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]

Member Avatar for sknake
0
84
Member Avatar for reham84

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

Member Avatar for issue9
0
109
Member Avatar for MxDev

Hi guys, how to make the default undo/redo in richTextBox support undo/redo multiple actions????????? Thanks [EL-Prince]

Member Avatar for sknake
0
2K
Member Avatar for jfoster80

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

Member Avatar for jfoster80
0
294
Member Avatar for RoyaLPearL

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 …

Member Avatar for mellowmike
0
161
Member Avatar for Mitja Bonca

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 …

Member Avatar for Mitja Bonca
0
3K
Member Avatar for leegeorg07

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.

Member Avatar for vegaseat
0
103
Member Avatar for snarb

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

Member Avatar for nats01282
0
101
Member Avatar for Borderline

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 …

Member Avatar for CFROG
0
139
Member Avatar for shreyas2785

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

Member Avatar for sknake
0
202
Member Avatar for _Michael_

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 …

Member Avatar for WaltP
0
121

The End.