132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ariez88

hello all, i am creating an online aptitude testing system in C# using ASP.NET. for this what i want to know is that when a registered user enters his login id and password, it should be compared with those already present in the database and it matches with tht in …

Software Development asp.net
Member Avatar for sknake
0
1K
Member Avatar for karamjeet2004

[code=java]import javax.swing.*; import java.awt.*; import java.awt.geom.*; import java.sql.*; public class panel extends JFrame implements ActionListener { ResultSet res; Connection conn; Statement stat; String lang; JFrame frame = new JFrame("Graphics Button"); lang="abc"; JButton b1; JLabel l1,l2,l3; JPanel p,p1,p2,p3,p4; p.setSize(100,100); p.setLayout(new GridLayout(3,0)); p1=new JPanel(); p2=new JPanel(); p3=new JPanel(); p4=new JPanel(); l1=new JLabel(lang); …

Software Development java java-swing
Member Avatar for karamjeet2004
0
187
Member Avatar for walter clark

For a CLR type program in Visual C++, I need to record the file date of the version of the program being run. That seems like a very normal thing to do but I can't find a solution (that works) on the web. I'm able to read the date of …

Software Development c++
Member Avatar for walter clark
0
135
Member Avatar for makymakaru

so i finally got the server.c program to run in linux environment i was elated to start the client.c program it turned out that there would be another problem. below codes are the codes of client program i compiled it and it produced an exe but there is a warning …

Software Development c++ client-server
Member Avatar for tux4life
0
109
Member Avatar for warp

Hi Please look at this small piece of code: [code] char* pArray = new someArray[128]; delete pArray; deleta[] pArray; [/code] Will this generate a mem leak? "delete pArray" wil deallocate only the first char of someArray but will "delete[] pArray" deallocate the rest of someArray or will the compiler see …

Software Development c
Member Avatar for warp
0
122
Member Avatar for akulkarni

i wish to print something like this ******** r ******* er ter uter puter mputer omputer computer where * is a blank space for each line i used array of strings String []s1=new String [20] for 5 blank spaces i used s1+" " + " "..+(5)"" then 4 blank spaces …

Software Development java pascal
Member Avatar for VernonDozier
0
202
Member Avatar for seebharath

Hi, How do I modify an audio file( say mp3 or wav) using c# . I want to compare 2 audio files if they are same.. Also if someone could tell me how to record an audio using code would be great...

Software Development audio c#
Member Avatar for Ramy Mahrous
0
120
Member Avatar for akulkarni

i was trying to explain a friend about interface i have followed the abstract concept but dont know to how to demonstrate [code] inteface a { void meth(int i){ }; } class dani implements a { public static void main(String args[]) {int i; public void meth(5); System.out.print(i); } }[/code] if …

Software Development java
Member Avatar for JamesCherrill
0
91
Member Avatar for redburn

I'm writing a function that creates an html file, loads it into a invisible browser, prints, then deletes that html file. However I'm getting an error in the print and delete portion. [B]Here are the two errors[/B] [B](Output from the debugger)[/B] A first chance exception of type 'System.IO.IOException' occurred in …

Software Development file-system
Member Avatar for redburn
0
280
Member Avatar for lolwtf

I have a datagridview that tracks when employees clock in and out. I used the datetime data type in sql but I dont want the year to display. How would i go about doing this? Do i have to modify my select statement, or can I do it with vb …

Software Development sql vb.net
Member Avatar for lolwtf
0
134
Member Avatar for mohanaraj3485

I'm trying to display the number formate according to cultureinfo for that i enter the numbers in text box like 456,456.50 and select the culture english name as German(Germany) and click the button means it display the given number in the german format ie 456.456,50 but when i enter the …

Software Development display vb.net
Member Avatar for mohanaraj3485
0
90
Member Avatar for akulkarni

i know how to find palindrome and also how to find reverse of string using for loop. but i wish to do it within a loop (for) using flag. can u please tell me how to use flag in c . my code is as follows [code] #include<stdio.h> #include<conio.h> #include<string.h> …

Software Development c
Member Avatar for csurfer
0
8K
Member Avatar for jliu66

Dear my friends, I am working a project to import and export a large amount data. Right now I save the data in spreadsheet but time consuming. I want to import and export those mixed data directly from and to csv file saved in C:\. The data file is comma …

Software Development cms file-system visual-basic
Member Avatar for vb5prgrmr
0
188
Member Avatar for serah1427

hi guys ; i have a code for read txt and later write to sql database but its not working :( can you help me _? Best regards [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; using System.Data.SqlClient; using Utilities; namespace …

Software Development sql
Member Avatar for Ancient Dragon
0
102
Member Avatar for tactfulsaint

please how do i go about this RMI project it has been giving me alot of trouble Problem statement A management wishes to automate and centralize the entire system so that the data can be stored in one central dtatabase. the system should consist of client/server architechture that can enable …

Software Development client-server java
Member Avatar for tactfulsaint
0
118
Member Avatar for metzenes

I'm designing a class where there's a method that should return a different data type depending on certain circunstances. Specifically, I'm reading from a text file. If the data found are strings of characters, I'd like to return a vector of strings. On the other hand, I'd like to return …

Software Development c++
Member Avatar for daviddoria
0
106
Member Avatar for peterbrowse

Hi I'm new to MSVC. I've entered a program into the IDE and it's compiled successfully, but no executable is generated and when I hit CTRL&F5 I get a dialogue window asking me for an executable filename, which when I try to enter it won't accept .. any thoughts Peter

Software Development c++ ide
Member Avatar for daviddoria
0
106
Member Avatar for pradeepptp

when i use PacketCapture class in my project i got this error.please let me know the procedure fir solve this. PacketCapture: loading native library jpcap.. Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\WINDOWS\system32\jpcap.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:992) at net.sourceforge.jpcap.capture.PacketCapture.<clinit>(PacketCapture.java:119) at VirtualWatch.addToolBarButtons(VirtualWatch.java:98) …

Software Development java
Member Avatar for masijade
0
289
Member Avatar for abbiejoy21

I'm brand new to python (and programming) and trying to write a script that will download a .csv from the Internet and then allow me to plot data from the .csv. I already have the plot working, and I can grab the file locally, but I can't figure out how …

Software Development python
Member Avatar for jlm699
0
301
Member Avatar for dilip.mathews

Hi all, Can anybody tell me how to calculate the order of a recursive function. Lets take factorial function. Without using recursion [COLOR=blue]int x =1;[/COLOR] [COLOR=blue]for(int i = 1;i<=n;i++)[/COLOR] [COLOR=blue] x = x*i;[/COLOR] In this case the order will the O(n) in terms of time and in terms of space …

Software Development c
Member Avatar for tux4life
0
245
Member Avatar for salie_90

i need help please...i ask, to make a program that accepts a positive integers and displays all odd number between 1 to the integer entered (inclusive) accept the integer in main() and use a recursive function to identify and display the odd numbers. tnx..salie

Software Development c++
Member Avatar for tux4life
0
349
Member Avatar for johnray31

Hi guys!! I am wondering how below given program is working. in function func1 how return (void *)y working. [CODE] #include<stdio.h> void * func1() { int y; y = 10; return (void *)y; } int main() { void *x = 0x00; x = func1(); if(x == NULL) { printf("error\n"); } …

Software Development c
Member Avatar for johnray31
0
140
Member Avatar for DeadJustice

I need to get a MIPS program to print out the first 30 prime numbers and to compute the first 200 (strange, but its the assignment). I can figure out what's wrong with this program. All it does is print 2's out in an infinite loop and I cannot figure …

Software Development assembly
Member Avatar for DeadJustice
0
4K
Member Avatar for jen140

Hello again. I have another problem =). I need to change the 1.lnk "pointing" path, i can get it with the following code : [code] string path = @"c:\1.lnk"; FileInfo fi = new FileInfo(@path); if (fi.FullName.EndsWith("lnk")) { IWshShell shell = new WshShell(); var lnk = shell.CreateShortcut(fi.FullName) as IWshShortcut; if (lnk …

Software Development
Member Avatar for devnull
0
152
Member Avatar for johndoe444

Dear friends, I have this code which attempts to get the last modified date of an http resource: [CODE]request = urllib2.Request('http://www.imdb.com') >>> opener = urllib2.build_opener() >>> request.headers {} >>> first = opener.open(request) >>> first.headers.dict {'transfer-encoding': 'chunked', 'set-cookie': 'session-id=209.251.138.146.1246519635845007; path=/; domain=.imdb.com, uu=bN4RO5T1YWqLBgRAupwcdgCRSyzj0j26pvJ+qYPCXqmT117Zs9L+/LfGO4zGx50bwJFtjNPSXuqj8g4pgDJ+meCRbaoGcS2aoNZb7PiBbbqjkm66I/I+qSAyfpnj8l7qA/I+qTAyfpngkW2KBnEtmqDXe20AkW26oLFtuqC3KyrjwW26o5IOuZOyLtnAgc0ZsLFtuqCRbergwR2Ko=;expires=Thu, 30 Dec 2037 00:00:00 GMT;path=/;domain=.imdb.com, cs=xOA2Pyx3xsSbt7wMU8ZOhAbGfbqgkW2NmIHl2qPyXuoj8j6pMDJ+meCRbYoGES2aoJFb/feFHbqjsg7/p9HNySCRWyxAGW26oKdbraCRbbqgsW26oJFt+uDBHYqg==;expires=Fri, 03 Jul 2009 …

Software Development python session xml
Member Avatar for siddhant3s
0
219
Member Avatar for kes_ee

How to acheive this in Python? [QUOTE]Converting the string "HelloPythonWorld" to "HELLO_PYTHON_WORLD"[/QUOTE]

Software Development python
Member Avatar for shadwickman
0
178
Member Avatar for makymakaru

hi.. i'm very new in this programming thing but i need to make this hello world program work in windows and linux environment. thing is i encoded the program below and i used cygwin and andlinux to compile and i still get i think some errors. I'm lost.. really i …

Member Avatar for makymakaru
0
182
Member Avatar for thrusai

Can someone help me parse a XML string using SAX parser and then validate the same against the XSD defined' I have the program that works when I pass the input xml and xsd as arguments but my requirement involves passing a input string containing the target XML and the …

Software Development java xml
Member Avatar for thrusai
0
102
Member Avatar for Jx_Man

hi all, i m a newer in c#. a already start to using c# today. in my first project i make program to add,edit and delete data from database. i m already do all of them. now i want to showing data in every control (textbox,combobox, etc) when i click …

Software Development vb.net
Member Avatar for lksath
0
351
Member Avatar for kerek2

Hi Alls, I'm really need your's help... I develop console application as a engine to pull data from oracle to SQL...the connection to both database is ok..but when to insert got problem....somebody help me plz.... [CODE] 'Connection To Sql Dim sqlcn As SqlConnection Dim sqldr As SqlDataReader Dim sqlda As …

Software Development oracle sql vb.net
Member Avatar for kvprajapati
0
166
Member Avatar for caquake

I am trying to create a program that uses nested loops to create a box. Only one of the overloaded functions need the details of nested loops.. the other 3 should call the one that has the details.. my problem is the last function and the for nested loops. Here …

Software Development c++
Member Avatar for shadwickman
0
406
Member Avatar for goody11

I was working on a program for spanish where I want to input the spanish and english and then the programputs the words in 2 listboxes when "ADD" is clicked. Here is my code and it does compile so you can kind of get an idea of what I want …

Software Development api c++
Member Avatar for goody11
0
211
Member Avatar for Debby0424

How do I find a Java application on the Web?

Software Development java
Member Avatar for kvprajapati
0
99
Member Avatar for lotrsimp12345

it needs to make sure numbers aren't duplicate and are ordered. maybe change my cout statements to arrays? Thanks. This is what program is supposed to do input Q 1,2,3-5,6-7 output do problem 1,2,3,4,5,6,7 of Q. [code] #include <iostream> #include <cstdlib> #include <sstream> #include <string> using namespace std; int main() …

Software Development c++
Member Avatar for kvprajapati
0
104
Member Avatar for dchaosblade

Hey, I'm hoping someone can give me a hand here...I'm currently writing a JApplet which uses several buttons on several different JPanels. Two of these buttons use an image and label (e.g. I did [icode]contestant.setIcon(cc); contestant.setText("C.C.");[/icode] where contestant is the button, and all formatting occurs just after and the Image …

Software Development ide image java java-swing
Member Avatar for dchaosblade
0
159
Member Avatar for Debby0424

[code=JAVA] import java.util.Arrays; // Class that hold a collection of CD objects class Inventory { // maximum number of CDs that will be held static public final int MAX_NUM_OF_PRODUCTS = 10; private CD products[] = new CD[MAX_NUM_OF_PRODUCTS]; // number of CDs currently in the inventory private int numOfProducts; // default …

Software Development gui java java-swing
Member Avatar for Debby0424
0
233
Member Avatar for jen140

Hello all. I would like to add a small handler. Imagine that i have a listbox, and when i right click i want to appear a menu with two options . How can i do it ? Thanks in advance.

Software Development
Member Avatar for sknake
0
63
Member Avatar for mexx

I am trying to read a file which contains URLs and are 100 million in number. What I need to do is find out the different websites they are from. So, I am taking chunk of data in memory and reading it line by line. Also, I need to find …

Software Development c++
Member Avatar for zdeepblue
0
317
Member Avatar for Hockeyfreak889

how would i display a yes/no dialog that would return one value if the user clicks yes and another value if they click no. I know you can do it using some part of JOptionPane but im not sure what

Software Development java
Member Avatar for BestJewSinceJC
0
73
Member Avatar for claudiu_is

I`m trying to write a web crawler but i `don`t know how to handle the situation when i have to login to acces a site. [B]How to type in that login form from my java program?[/B] I`ve searched on the net but the results points to JSP. I haven`t worked …

Software Development java java-jsp
Member Avatar for dkhang
0
183
Member Avatar for BretFelix

I have a program and I want to create a function that sorts multiple [B]lines[/B]. The lines are like this: lastName,firstName,gender,studentNumber I want to sort them by LINES, not individual words. Any thoughts? This is for a school project.

Software Development c++
Member Avatar for MosaicFuneral
0
2K
Member Avatar for Democles

I am attempting to take names and weights from strings and just simply output them. For some reason it can't get out of the while loop, it just sets there waiting for the users to input names and weights. Here's my code [code=C++] #include <iostream> #include <string> #include <vector> using …

Software Development c++
Member Avatar for VernonDozier
0
11K
Member Avatar for pmyk

How to use the name of one Userform which is received in another Userform as a variable? P. Michael

Software Development visual-basic
Member Avatar for vb5prgrmr
0
89
Member Avatar for serkan sendur

in the custom installer i want to differentiate between if the windows installer run by command prompt or by GUI. i can check for custom parameter but my command line is already long, i want to use something built-in(parameter). Thanks

Software Development gui
Member Avatar for sknake
0
150
Member Avatar for serkan sendur
Member Avatar for Furtano

Hello, i have some decimal numbers and want to put them hexadecimal in a string stream. Every Hex number should consist of 2 chars^^. I can't find a flag for it. [code]0__1__2__3__4__5__6__7__8__9__a__b__c__d__e__f__10__11__12__13__14__15__16__17__18__19__1a__1b__1c__1d__1e__1f__20__21_[/code] should be [code]00__01__02__03__04__05__06__07__08__09__0a__...[/code] [code=c++] #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <iomanip> using namespace std; int …

Software Development c++
Member Avatar for daviddoria
0
99
Member Avatar for Acidburn

Hey guys, I'm trying to access the file system of a Nokia device which operates on Symbain OS 60. Is this possible with Java? I've googled around but can't seem to find much... Most likely my search terms. Could someone point me in such a direction? Thanks, John

Software Development java
Member Avatar for di2daer
0
300
Member Avatar for Hiroshe

Hey guy's. Can't get this seemingly simple function to work. It is suppost to get a string and return the first 10 characters, than the next time you call it, it returns the second 10 cheracters and so on. I did this in basic a while ago without problems, C …

Software Development c
Member Avatar for Hiroshe
0
142
Member Avatar for goody11

I was going through a tutorial and had some trouble with an example program. Here's the coding I have and I can't fix it. Here is the main cpp file. [code] #include <windows.h> #include "resource.h" BOOL CALLBACK DlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { switch(Message) { case WM_INITDIALOG: …

Software Development api c++
Member Avatar for goody11
0
208
Member Avatar for fatalbert55

Hello All, I am trying to learn C++ on my own, but I think I am having some problems with Code::Blocks. I am familiar with Java (I did some CS as an undergrad) and I feel that the C++ basics are pretty easy to translate from Java; however, I am …

Software Development c++ oop
Member Avatar for fatalbert55
0
287

The End.