199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Snowdiddy

Hello to all my fellow IT people! I have two questions! I would like to start learning how to program! Is Java a good beginners language to start with and if it is not what is a good language? My second question is if Java is a good language then …

Member Avatar for wee_shark
0
122
Member Avatar for tdspaul

I am trying to update a sequence of records where the field WebSvc = No Here is the code [code] cn.Open() da = New SqlDataAdapter("SELECT * FROM dbo.DurexBOL", cn) cmdBuilder = New SqlCommandBuilder(da) da.Fill(ds, "DurexBOL") Do While ds.Tables("DurexBOL").Select("WebSvc = 'No'") ds.Tables("DurexBOL").Rows(0)("WebSvc") = "Yes" da.Update(ds, "DurexBOL") Loop Console.WriteLine("City updated successfully") cn.Close() …

Member Avatar for kvprajapati
0
106
Member Avatar for wot

Hey guys, I'm new to C and I am trying to find a way to create a file with the following array: [code] char peer1_0[] = { 0x0c, 0x4c, 0x08, 0x00 }; [/code] The original array has a lot more data, but I am just needing a simple example or …

Member Avatar for Kurt Kubing
0
160
Member Avatar for bords

hey guys... can anyone help me in connecting xammp to vc#.net?? xammp is a package and mySQL is one of its softwares... i cant connect to my database... can anyone give me a code/s....tanx guys....

Member Avatar for kvprajapati
0
160
Member Avatar for takeshi

this is the full code of uploading image using php.. [CODE]<?php // Connect to database $errmsg = ""; if (! @mysql_connect("localhost","root")) { $errmsg = "Cannot connect to database"; } @mysql_select_db("records"); // First run ONLY - need to create table by uncommenting this // Or with silent @ we can let …

Member Avatar for jesy83
0
256
Member Avatar for bkafroboy69

public double getThirdSide() If the triangle is not valid, this should return 0. Otherwise it should return the length of the third side of the triangle. i cant figure out how to put this into coding any help thanks [CODE]public class Triangle { //PART 1 // a triangle is defined …

Member Avatar for darkagn
0
100
Member Avatar for ravikiran032

[B]I would like to read messages from gsm modem and display it on the a form in c#. How to redirect the result on hyperterminal to a form? is it possible to redirect the result? If possible , can you explain me the procedure or some sample code to display …

Member Avatar for ravikiran032
0
131
Member Avatar for wee_shark

Hi all, I'm new to java applets. This is basically my first bigger applet. It works 100% fine when I run it in the applet viewer. As soon I start it in a web browser it stops working half way through. The code below is a short version of my …

Member Avatar for wee_shark
0
97
Member Avatar for preetg

hi......... my php code for deleting records from database is working succesfully but while deleting records from database using checkbox is that only records deleted when deleting button click on two time.... means clicking delete button twice delete the record...... plz chk my code nd tell whr is mistake?????????????? plz …

Member Avatar for JRM
0
119
Member Avatar for Myko17

Hey guys, Just trying different little programs. I was looking though a book on Visual Basic .Net and came across a little password-protection program (A very simple one). Problem is, that this was written for VB6, not the 2008 version, so i did a little editing as shown below: [CODE] …

Member Avatar for apegram
0
98
Member Avatar for dalymiddleboro

/** * Simple math application using a scanner input * @version 1.00 2010/1/26 */ import java.util.*; import java.text.*; import java.io.*; public class mathopr { public static void main(String[] args) { double num1,answer1,answer2,answer3=0; String myname; String reply; char replyChar=; Scanner input = new Scanner(System.in); DecimalFormat df= new DecimalFormat("00.00"); while (replyChar=='y'){ System.out.println("Please …

Member Avatar for AndreiDMS
0
87
Member Avatar for Dimitar

I think I have a good starting point on this, but I still need some help :) First I need to ask the user for the limits of integration and the error tolerance, (that's already done). So when I divide the trapezoid (when the end points are connected) in 2, …

Member Avatar for nezachem
0
163
Member Avatar for Chetan_

I have to give this in around 10 hours and i still have lots to do. Please report any bugs; Its a scientific calculator, also supports [B]sin, cos,tan and log [/B] Take care to [B]put the entire expression under brackets[/B] For example, a valid input will be:- (5+4*-3+sin(43+7)+cos(90/2)) I've attached …

Member Avatar for Chetan_
0
205
Member Avatar for techno_weenie

Hello i need some help with parsing a string as i'm very new to C and only started learning it a few days ago. I wish to parse the string "Jan 15 05:46:07 gateway kernel: IN=eth0 OUT= MAC=00:80:c7:c3:c7:be:08:00:03:23:2a:a8:08:00 SRC=80.232.253.76 DST=80.234.144.54 LEN=48 TOS=0x00 PREC=0x00 TTL=108 ID=43600 DF PROTO=TCP SPT=3329 DPT=135 WINDOW=16384 …

Member Avatar for techno_weenie
0
152
Member Avatar for Monster Killer

i am trying to make a quiz using Visual c++ I am trying to make it so that each tab has a different question and when you press a button it goes to the next tab. Is there a way to do this? If not is there another way i …

Member Avatar for Monster Killer
0
134
Member Avatar for doha786

hi, i m facing a small prob in GUI, need to save my output to a particular folder. below this code showing the square of any integer in TextField named: "resultField". i've a button "save" that need to save the result from that TextField, suppose in my "c:\Repository " folder …

Member Avatar for BestJewSinceJC
0
156
Member Avatar for bharatk

Hello I have created a multidimensional list in python I used the following code: [CODE] r =[(300, 4), (5, 6), (100, 2)][/CODE] I tried sorting it in ascending order using r.sort() and I get [(5, 6), (100, 2), (300, 4)] I want it to get sorted based on each on …

Member Avatar for bharatk
0
100
Member Avatar for blue:

[code] #include <iostream.h> #include <fstream.h> #include <math.h> void main () { cout<<"**********************welcom*******************"; float n,j,q,d,h,t,i,m,f,b,v; cout<<"\n num of eng = "; cin >> j; n=j ; q=0; d=0; h=0; t=0; v =0 ; for (i=1;i<=n;i++) { v = i; cout<<"\n\n ** Engineer ID "<<v; cout<< "\n\n insert Salary = "; cin>> …

Member Avatar for blue:
0
117
Member Avatar for amlanjyoti.s

Hi there again, looks like I ran into trouble again. Well, programming doesn't look simple to me. What I want to know is how do I invoke an executable file from a c# application? Are the procedures same in both console applications and windows application?

Member Avatar for amlanjyoti.s
0
488
Member Avatar for jlego

Not sure if anyone has experiance with Active Reports In vb6, i used acive reports 2.0 and used a simple ado connector with dsn - user - pass to connect to a database and pull the data needed. Active reports 6 seems to be different and i am having problems …

Member Avatar for scottwilleke
0
227
Member Avatar for shaider6192
Member Avatar for shaider6192
0
87
Member Avatar for daviddoria

I want to make a type to differentiate degrees and radians. I wanted something like this to produce a compiler error: [code] #include <iostream> typedef double Degree; typedef double Radian; void MyFunction(Radian angle); int main() { Degree foo = 3.0; return 0; } void MyFunction(Radian angle) { std::cout << "Success." …

Member Avatar for Narue
0
109
Member Avatar for youngwolf0

I'm fairley new to programming in general being a fresh IT graduate. Some software I am developing needs to be able to compress a folder in to a .zip file and later extract it while maintaining its file structure. I am able to do this but extracting the file takes …

Member Avatar for ~s.o.s~
0
187
Member Avatar for Alba Ra

Let's start with the problem: I am creating a XML-based CMS that has to run on the servers of French internet service provider and web host Free.fr. So I can't use SimpleXML as only a handul of [URL="http://wiki.free.fr/wiki/index.php/Fonction_php_active_free"]functions[/URL] are activated. I can only assume that it is the old [URL="http://fr.php.net/manual/en/book.xslt.php"]XSLT[/URL] …

Member Avatar for Alba Ra
0
593
Member Avatar for chern4ever

[CODE]import javax.swing.JOptionPane; public class test{ public static void main(String args[]){ String numT = JOptionPane.showInputDialog(null,"Please enter a value."); double num1 = Double.parseDouble(numT); System.out.println("Fahrenheite = "+num1+"\nCelcius = "+convertFtoC( num1 )); } public static double convertFtoC ( double num1 ){ return ((5/9)*(num1-32)); } }[/CODE] why the value return is zero? hrm... can anyone …

Member Avatar for fardoonmuhafiz
0
177
Member Avatar for billybobc

Hello, When I add a simple <c:set var="foo" value="bar"/> line to my jsp I get the following error: javax.servlet.ServletException: javax/el/ELException org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) root cause java.lang.NoClassDefFoundError: javax/el/ELException java.lang.Class.getDeclaredMethods0(Native Method) java.lang.Class.privateGetDeclaredMethods(Unknown Source) java.lang.Class.getDeclaredMethods(Unknown Source) java.beans.Introspector$1.run(Unknown Source) java.security.AccessController.doPrivileged(Native Method) java.beans.Introspector.getPublicDeclaredMethods(Unknown Source) java.beans.Introspector.getTargetMethodInfo(Unknown Source) java.beans.Introspector.getBeanInfo(Unknown Source) java.beans.Introspector.getBeanInfo(Unknown Source) java.beans.Introspector.getBeanInfo(Unknown Source) java.beans.Introspector.<init>(Unknown Source) java.beans.Introspector.getBeanInfo(Unknown Source) …

Member Avatar for heathersh
0
2K
Member Avatar for babydol

Hi can any1 give me some idea on how to mask the url of an entire web site.I want the same url to show nomatter where the user is on the web site

Member Avatar for fobos
0
184
Member Avatar for guravharsha

Hi everyone I have one we application developed using java,servlet and jsp. i am running it using Apache tomcat server 5.5. When i am running it on my local machine, i am given path as [B][url]http://localhost:8080/student/[/url][/B] where as student is name of application. Now if i require run same application …

Member Avatar for jwenting
0
113
Member Avatar for #define

hello every body! i have very simple question, i google it alot but i didn't find the satisfactory answer my question is what is the reason that [B][I][U]int, float,char,double,boo[/U][/I][/B]l are of [B][I][U]4,4,1,8,1[/U][/I][/B] byte respectively in C++? are [B][I][U]arrays built in[/U][/I][/B]? if yes then kindly explain......thnx alot

Member Avatar for Narue
0
110
Member Avatar for fuggles

Does anyone know of a good tutorial on how to send data through a USB port? I've lately been trying to link my programming skills with my electronics skills. Thanks for your help. :)

Member Avatar for Salem
0
87
Member Avatar for phpangel

hi guyz i need ur help, i have this game with 5 files: 2 header files 3 cpp source files, we i compile it i get this error: error C2065: 'i' : undeclared identifier plz check the attachment, the files are there appreciate the answer :).

Member Avatar for tux4life
0
958
Member Avatar for shaider6192

hello! Im making a program that makes the numbers you input be divided into diffrent denominations which is in peso. example: i input: 1500 so the output will be BILL QTY 1000 1 500 1 my problem is, after it displays the output, I want the program to ask you …

Member Avatar for Narue
0
309
Member Avatar for youngwolf0

I'm fairley new to programming in general being a fresh IT graduate. Some software I am developing needs to be able to compress a folder in to a .zip file and later extract it while maintaining its file structure. I am able to do this but extracting the file takes …

Member Avatar for youngwolf0
0
159
Member Avatar for Izarian

Okay, so C++ has no specific byte class, but what they do have is an unsigned char class to convert ints/doubles/floats to binary/bytes. In trying to convert some Java to C++, I am trying to keep some of the function signatures the same or close to the same, and in …

Member Avatar for Salem
0
280
Member Avatar for sexyzebra19

I've just read up about pointers, so wanted to see if I can try and use them in my program. I have the function "equation", which at present is t^2. I also have the function "gauss", in which I am going to use the equation t^2, (code for this is …

Member Avatar for sexyzebra19
0
96
Member Avatar for Monster Killer

I am trying to create a button that turns off a panel but when i debug it i get 'error C2064: term does not evaluate to a function taking 1 arguments' [CODE] private: System::Void go_MouseClick(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e) { this->panel1->Visible(false); this->panel1->Enabled(false); }[/CODE] I would really appreciate some help. Thanks

Member Avatar for Monster Killer
0
100
Member Avatar for emompong

Hi! I am planning to create a system for my case study wherein i can Add tags from images and search for it by [B]"tags"[/B] such as [B]photobucket. [/B] For example i open an image to my system, and it's file name was [B]"WhiteHouse.jpg"[/B] and i added or[B] tagged[/B] it …

Member Avatar for emompong
0
139
Member Avatar for hpdp

Hi, I have the following XML <ext-link xlink:href="http://....com">www....com</ext-link> in my xslt, when I have ... <ext-link xlink:href="{@xlink:href}"> .... When I ran it, it gave me error " namesapce error : namespace prefix xlink for href on ext-link is not defined. I tried to use "xlink\:href", it didn't work. How to …

Member Avatar for hpdp
0
105
Member Avatar for NicholasE

Dear all, I would like to make a small script that does the following: I have a file that at some point there is a section: ... ... a heading is here .... 1 2 3 4 5 6 7 8 9 10 22 22 336 11252 12 25 3 …

Member Avatar for NicholasE
0
96
Member Avatar for denniskhor

I tried below code... it's doesn't work as well... any got solution for this? Thanks. [CODE]using (OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"" + fileName + "\";Extended Properties=Excel 8.0;"))[/CODE]

Member Avatar for denniskhor
0
584
Member Avatar for shaider6192

HI! can someone help me get the codes for this program.. Im still new to TC.. heres the criteria: 1. This program is for selling bread 2.There are 4 types of bread namely a b c d and each cost 1 2 3 4 respectively 3.each bread has a stock …

Member Avatar for shaider6192
0
137
Member Avatar for sangeeta_ratha

hi, Im using a repeater control bound to a database table. everything works fine. i need to display the total of a column from that database table in the footer template of my repeater control. but im clueless as to how it can b done. Any help would be appreciated. …

Member Avatar for apegram
0
773
Member Avatar for dot_net_rookie

Hi, This is my 1st post... I am using a checkbox in a Datalist. I am trying to display 2nd Checkbox if the 1st checkbox is checked. How do I do it in the code behind to check the "Checkbox1.Checked==True . Please find the aspx page of the file below: …

Member Avatar for jbisono
0
1K
Member Avatar for hmeco

Hi Lads im writhing a login system for a personal project. the login part work nice but there are some includement stuff i cannot get figured out. when a user logs in the session will start and he will be redirected to his CP. now. the link to the cp …

Member Avatar for nav33n
0
95
Member Avatar for Skeen

So I'm working on this game, and I've been using "glaux.h" to load my textures, however I'm interrested in using JPEG's, so I found an example to do this on: [url]www.morrowland.com[/url], however, when I compile it (after fixing the errors), then I get this, on the linking state, any help …

Member Avatar for Skeen
0
109
Member Avatar for InnocentVamp

Hello folks, I have some doubt regarding the creation of header files and libraries using C. Suppose I am defining all the functionalities related to the Stack and I wan to create it as library, for eg. stack.C which will get me the object file, Stack.o in Linux OS and …

Member Avatar for Narue
0
172
Member Avatar for hanhhanh23

I have to do my project in computing which requires extract data from excel to VB for further processes. I am a beginner. I know a little bit about VB and Pascal. Thank a lot

Member Avatar for hanhhanh23
0
32
Member Avatar for MxDev

Hi guys, How to show certain files according the selected extension in openFileDialog() object??? Thanks [EL-Prince]

Member Avatar for Kiran.dks
0
185
Member Avatar for webdragon89

I have n!/((n-r)!r!) which I figured out how to make recursive: [CODE]int crn (int n, int r) { if (r==0||r==n) return 1; return (n-1)+(n-1,r-1); }[/CODE] how do I make it non-recursive?

Member Avatar for Agni
0
121
Member Avatar for Stefano Mtangoo

This is not seek for IDE thread but rather want just to know your beloved IDE. For Me, up to recently I used Eclipse but now I'm trying IntelliJ Idea community. Not very used to it but looks promising. What about you friend?

Member Avatar for jwenting
0
151

The End.