199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for abhi.nalluri

I have developed a GUI where in I need to update some(4) parameters in a ListBox.I am usind the following code to do this. [code] CString tmp; tmp.Format("%4d %4d %4d",a,b,c); listBx.AddString(tmp); [/code] a,b and c are integers.listBx gets updated every 1 sec. But I am not getting the output in …

Member Avatar for MrSpigot
0
102
Member Avatar for G-Dogg

hi all i would like to create a registration and login and selection database, css, mysqladmin. need lots of help.. thanx something like this for example.. I am/We are a: Man Woman Couple (man and woman) *Interested in meeting: a Man a Woman a Couple (man and woman) a Group …

Member Avatar for G-Dogg
0
98
Member Avatar for ziopulcher

Hi, I would like to read the a file in a binary code called SEGY, but I don't know how. The file has a text header 40 rows x 80 columns (bytes 1-3200) When I read the text header 40x80 using the "get" instruction this is what I obtain: Ãðñ@ÃÓÉÅÕã@z@ÇÄÆ@@@@@@@@@åÅââÅÓz@äÕÉåÅÙâÉãÁãÉâ@@@@@@@@@âÖäÙÃÅ@âÁõ÷Á@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Ãðó@ÄÁãÅ@@z@òððù@@@@@ÁÙÅÁz@ãÙÉãÖÕ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Ãðô@ÆÖÙÔÁã@z@âÅÇÄ@ÃÖÕåÅÙãÅÄ@ÉÕ@ÆÓÖÁãÉÕÇ@ãÈ@ðKõ@ÇäÕ@ÄÅÓÅ@ÙÁãÅ@z@ðKñòõ@ÔÃðö@âãÙÅÁÔÅÙ@z@ÕÅÁÙ@ÖÆÆâÅãz@ñõKõ@Ô@ÕÖK@ÃÈÁÕÕÅÓâ@z@òô@@@@@@@@@@@@@@@@@@@@@@@@@@@@Ãð÷@ÇÙÖä@ÉÕãÅÙåÁÓ@z@ñKõöòõ@Ô@@@âÙÖÃÅââÅÄ@Âè@ÆäÇÙÖ@ÖÃÅÁÕâÉâÔÉÃÁk@ÙÖÔÅk@ÉãÁÓè@@@@ÄÁãÅz@ÔÁÙÃÈ@òððù@@@@@@@@@@@@Ãðù@ÓÅ@ÙÁãÅz@ðKñòõ@Ôâ@@@@@@@@@@@@Ãñð@\\\\\@âãÁÃÒÅÄ@âÅÃãÉÖÕk@ÔÉÕÉÔäÔ@Ó@k@âÅÇ@âãÁÕÄÁÙÄ@ÅÕâÁãÉÖÕ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Ãñò@ÂäããÅÙæK@éÅÙÖ@ÆÉÓãÅÙ@õððÈézñøÄÂaâ@óòððÈézõóÄÂaâ@@@@@@@@@@@@@@@@@@@@@Ãñó@ÉÕâãÙäÔÅÕãÁÓ@âãÁãÉÃ@ÃÖÔÅÕâÁãÉÖÕ@ðKöööööÃñô@ÆÒ@ÆÉÓãÅÙ@zÙÅÄÉÃãÉåÅ@ÄÅÃÖÕ@z@ò@ãÉÔÅ@æÉÕÄÖæz@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Ãñö@æÉÕ@ñzãÙKñzñðð`ñòð@Ôâ^ãÙKòôzñóð`ñ÷ð@Ôâ^ÖÅÙzõÔâ^ÓÁÇzñKð@Ôâ^@ÁÓÉÃKzñóð`óððÔÃñø@ÙÅÁÓè@ÖÆ@Â@ÇÁãÈÅÙ@ñò@ÆÖÓÄ@ÁÕÄ@ÕÁåÉÇÁãÉÖÕ@ÔÅÙÇÅÄ@æÉãÈ@ÃÄÖâÉãÉÖÕ@ÅÕâÁãÉÖÕ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Ãòô@K@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Ãòõ@ÆÒ@ÆÉÓãÅÙ@z@ÂÁÕÄ@ÅÙzõ@Ôâ^@ÓÁÇzñKððð@Ôâ^@ÁÓÉÃKzøð`ñðõ@Ôâ@@@@@@@@@@@@@@@@@@Ãòø@æÉÕñ@ñðõ`ñòð@Ôâ@ÖÅÙzò@Ôâ^@ÓÁÇzðKñòõ@Ôâ^@ÁÓÉÃzñõð`ÅÕÄ@Ôâ@@@@@@@@@@@@@@@@@@Ãóð@Æç@ÆÉÓãÅÙ@ÂÁÕÄ@Å@ÓÃzöÄÂaÖÃã@ÈÃzòôÄÂaÖÃã]@@@@@@@@@@@@@@Ãóò@ð`ñðð@Ôâ~@õðð@`@òððð@Èé@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Ãóó@ñðð`ñóð@Ôâ~@öðð@`@ñöðð@Èé@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Ãóô@ñóð`ñöð@Ôâ~@ö÷ð@`@ñôðð@Èé@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Ãóõ@ñöð`ÅÕÄ@Ôâ~@÷õð@`@ñòðð@Èé@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Ãóö@ÃÖÕåÅÙâÉÖÕ@ãÖ@âÅÇè@ÆÉÓÅ@MÉÂÔ@ÆÖÙÔÁã]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Ãó÷@``````````````````@ÕÁåÉÇÁãÉÖÕ@`````````````````````````````@@@@@@@@@@@@@@@@@Ãóø@ÕÁåÉÇÁãÉÖÕ@ÙÅÆÅÙÅÕÃÅÄ@ãÖ@ÃÄÖâÉãÉÖÕkÃÅÕãÙÁÓ@ÔÅÙÉÄÉÁÕ@@@@@@@@@@@@@@@@@@@@@@Ãóù@ÆÉÙâã@@ÃÄ@ò …

Member Avatar for ziopulcher
0
134
Member Avatar for Gerlan

Hey All, I have stumbled upon a small problem while using an fgets function. I need to make a program that reads in lines from a text file (text file is entered via command line) Here is a little snippet of the code (concerning only the fgets function :P) [code=c++] …

Member Avatar for Gerlan
0
126
Member Avatar for metaface

Hello all, I would like to write a shell script that can scan a directory containing audio files and extract metadata or audio encoding information from the files. The goal is for the shell script to be able to process music files based on embedded data as: Format, Data Rate, …

Member Avatar for ghostdog74
0
510
Member Avatar for destruct0

Hello!!! I would like to ask anybody can help me with "interrupt 10h". I do everything correct but every time I get a message "Segmentation fault". My code is: section .text global _start _start: mov ah,00h mov al,45h int 10h When I compile the file into executable file and run …

Member Avatar for destruct0
0
157
Member Avatar for Vai

Using this code: [code] $query = "select * from `music` WHERE `music`.`catid` = '" . $catid . "'"; I cannot seem to add "ORDER BY artist so that it would be in alphabetical order. [/code] Second issue: What do I need to do to have Display X amount of records, …

Member Avatar for somedude3488
0
109
Member Avatar for fawadkhalil

Hi all Convert(decimal(10,1),(taxid*10)/100) as tax value in taxid is 1. And also im getting .0 result but it should return .1 Plz help me..........why im getting wrong answer.

Member Avatar for fawadkhalil
0
71
Member Avatar for rajeesh_rsn

Hai I had a search script in my web page. There are two inputs 1. Type 2. Location ( list with values --> Any,India,China) And location is not mandatory for search. When user submit search in database and show results. my query is like this [code]"SELECT * from dbname where …

Member Avatar for JRSofty
0
75
Member Avatar for bored4

This is part of my login form. im trying to lock the account if there are to many failed login attempts. but im not sure if my sql statement is wrong or i my ExecuteNonQuery() is wrong. heres part of my code. I should note that my "account_lock" column is …

Member Avatar for Ramy Mahrous
0
176
Member Avatar for shadiadiph

how do i find out the row size in kb? is it possible to automatically insert the size I have a mail table and have the field is there a way of automatically creating the value on insert by resetting the values of the field?? [code]`messagesize` int(255) NOT NULL default …

Member Avatar for shadiadiph
0
136
Member Avatar for kehar

Hi everbody, I have used one ADODC control in my VB6 prog with SQL 2000 as backend. I have completed the connection of ADODC using UDL file and it's working fine But when i write the following syntax to retrieve data its not working: The code is as under: [B]Private …

Member Avatar for QVeen72
0
1K
Member Avatar for cbraleyrun

Hello everyone, I have recently witten a ray tracer for a school project (I am working with Windows XP). Currently, I am simply writing my images out to .bmp files. However, I really want to display them on the screen using OpenGL and GLUT. All the images created by my …

Member Avatar for Muhammad.abid
0
198
Member Avatar for shazzy99

Hi, How can I show a long value returned from a function to a textbox on a dialog box. Void CVideoDlg::OnBnClickedFrames() { m_AMC.get_FramesDrawn(); // retunrs long } I want to display the returned value in textbox as well as a messagebox. I tried MessageBox(CString(m_AMC.get_FramesDrawn())); But it didn't work out anyone …

Member Avatar for Nick Evan
0
208
Member Avatar for ninjaimp

Hi Im tryingto create/run a webbrowser control so that i can check the status. I dont need to see the page so havent placed the webbrowser control on a form - its just in code as follows: [CODE] Sub TestBrowse(ByVal url As String) Dim testbrowse As New WebBrowser testbrowse.Navigate(url) System.Threading.Thread.Sleep(5000) …

Member Avatar for ninjaimp
0
1K
Member Avatar for leegeorg07

hi again i have this code: [code=python] #this program is a simple test OS for a till #it will loop constantly until a certain time (specified as CLOSING_TIME) COMPLETED!!! #it will check stock from a dictionary in a file (specified as STOCK) #i plan to add a profit calculator import …

Member Avatar for leegeorg07
0
127
Member Avatar for Esmeralda

This is what I am doing but I am stuck here can you help me?? // Winning Division #include <iostream> #include <iomanip> #include <cstring> using namespace std; // Constant for division name array size const int NAME_SIZE = 26; // Function prototypes double getSales (char []); void findHighest(double, double, double, …

Member Avatar for adam1122
0
129
Member Avatar for jazzezselvan

Hi All, A error message is thrown on the compilation of C++ code. The error message is error: expected initializer before '*' token Also i am attaching the C++ file here with. [code=c++] /* $Id: Debug.h,v 1.1 2005/06/23 13:47:50 srinivasar Exp $ */ /* * Copyright 1999-2001 AdventNet, Inc. All …

Member Avatar for jazzezselvan
0
114
Member Avatar for gretty

Hello I am trying to calcuate the square digit length of a number. I have written a code but I am getting an error with the "pow" function & I have no idea what is wrong? Can you help me? [CODE]#include <iostream> #include <cmath> using namespace std; int squared_digit_length(int n1); …

Member Avatar for adam1122
0
98
Member Avatar for justinmyoung

I'm working on implementing a php registration/login script. When a user registers and then login - they are directed to a page that I would like to display a form, such as you would see in a contest. The person would fill out the form, entering the information into the …

Member Avatar for rm_daniweb
0
3K
Member Avatar for Debangana

Hi I have written a ftp script in perl.It seems to work fine but for some servers it throws an error "Bad file number" while trying to close the connection.What can be the reason for this?How should I resolve it? Following is the ftp section from my code: [code]if (!$ftp->get($ftp_FileList, …

Member Avatar for Debangana
0
236
Member Avatar for turbomen

I have a menu system which can allows me to list all the contestants. The following is my menu system: Program Student_millionaire; {$APPTYPE CONSOLE} uses SysUtils, OurCrt; Var User_Choice:Integer; Procedure ContestantsList; Begin WriteLn('1 pressed,listing all the contestants...'); ReadLn; End; Procedure Generate10finalists; Begin WriteLn('2 pressed,generating the 10 finalist''s numbers...'); ReadLn; End; …

Member Avatar for FlamingClaw
0
153
Member Avatar for EdVBDev

I have three separate forms. Form1, Form2, and Form3 I declared Public var1 as Integer within Form1. Form2 and Form3 can see/access var1 as Form1.var1 However, when I declare Public var2 as Integer within Form2 (when it opens), Form3 (when opened) cannot access var2 whatsoever. Don't know what I'm missing. …

Member Avatar for c0deFr3aK
0
103
Member Avatar for max.yevs

I've learned quite a bit since my last post, i.e. it kept disappearing on me just because of syntax, but now I'm interested in something: Is it possible to make it so that when you run the .py as is , that it opens another program or directory? I.e. when …

Member Avatar for max.yevs
0
123
Member Avatar for Cardboard Box

Hi How do you draw GDI+ graphics within a class? In my normal starting form, I use the form_paint event but the seperate class doesn't seem to accept the _paint event. So I instead put my gaphics code in the same area as my second classes form propertoes. Class SenateTown …

Member Avatar for Cardboard Box
0
116
Member Avatar for MrAbbas

Hello there, I'm writing a simple code to make a n*4 matrix .. first i filled it with zeroes [ICODE]x0 = input("Please enter x0 = ") h = input("Please define step size h = ") s = input("Please specifiy the point at which you need the solution y(x) >> ") …

0
50
Member Avatar for guest7

Hi, I am getting the error "Segmentation fault" when i run my program. Then when i debug the code to find the cause of the error i get the following error messages. I do not know what these error messages mean: Error Message: ------------------------------------------------------------------ Program received signal SIGSEGV, Segmentation fault. …

Member Avatar for rm_daniweb
0
98
Member Avatar for yingfo

I've got this bug in my progrom that I cannot figure out and it's due within the next couple of hours. I was hoping someone could help. My problem is in my main function that reads in from standing input but when the user types in $PART2 it is suppose …

Member Avatar for BestJewSinceJC
0
209
Member Avatar for Dr. Worm

At my school we use Visual Basic 6.0 and I wanted to try something that we learned about arrays and using notepad as a cheap database. We would use thinks like: Open "Filename.txt" For Input As #1 Input #1, strVARIABLE lblVARIABLE = str VARIABLE So basically it'd take the first …

Member Avatar for rm_daniweb
0
182
Member Avatar for kelechi96

Hi I want to learn asm but I have Windows XP64 how do I go about learning assembeler for this operating system.

Member Avatar for NicAx64
0
179
Member Avatar for JainishP

For a assignment I was to write two functions to sort a array. One using selection sort and other using insertion sort. The thing I was stuck on was the part that said, "// insert code to display intermediate permutations". I assuming that wants me to write a code to …

Member Avatar for VernonDozier
0
108
Member Avatar for badboizEnt

please i need help with my code below, when ever i enter a wrond password first it gives me an error which its suppose to, but when entering the correct code next it still gives me an error message. could someone help me counter this problem. cheers [code]#include "stdafx.h" #include …

Member Avatar for badboizEnt
0
162
Member Avatar for Anuj Trivedi
Member Avatar for LiBOC

Dear Daniweb, I am currently doing a commandline for a rabbit module. Using Dynamic C. Do you know how to code to recognise user's key strokes? Like if user press UP, it will display the previous command typed. If user press DOWN button, displays next command typed.. Thanks! Some articles, …

Member Avatar for jephthah
0
93
Member Avatar for wblakenc

Hello everyone, I have a fairly simple question about database design. I have a database for county voting equipment. Each county has multiple pieces of voting equipment. I currently have two tables, one with counties and one with voting equipment. Is there any reason to have a relational table between …

Member Avatar for wblakenc
0
130
Member Avatar for JimD C++ Newb

Hello, all! I'm trying to understand how a client/server would work, and I found a server example I could play with on the internet. However, I can't get it to compile due to a bunch of undefined variables (sendto, socket, etc). Are there some options I should include in the …

Member Avatar for jephthah
0
315
Member Avatar for J-KeRcA

[QUOTE]i everybody, I need some help with my project. I'm trying to retrieve some data from a combo box on which i used the "data bound item task" so I can select data from a table of my database. the problem I'm having is that when i try to save …

Member Avatar for DavidOsorno
0
135
Member Avatar for Icebone1000

I dont know how to explain very well, I have a class that works 100% fine.. The problem is that now I want access that class inside of other class, when I do it, things stop of working fine and gets very unstable( some few times works, but mostly times …

Member Avatar for Icebone1000
0
277
Member Avatar for matthewsamdanny

Hey guys! I have a serious problem. I missed class for computer science because I had two grandparents die in 2 weeks. My teacher has a no exception policy for turning in homework late. Tonight has been my only free night to do homework but I am stuck and not …

Member Avatar for adam1122
0
1K
Member Avatar for Tekkno

I am new to PHP. I have a MySQL database with a column of URL's. I have a PHP script that randomizes the URL's and echoes the result to the browser. I just need a need a way to turn the randomized URL into a clickable link. I would imagine …

Member Avatar for Tekkno
0
2K
Member Avatar for rayda

[CODE]public class Employee { private String name; private String number; private boolean valid=true; public Employee(String nm, String num) { name=nm; number=num; if(number.length()!=5) valid=false; for(int i=0; i<3; i++) { if(!Character.isDigit(number.charAt(i))) valid=false; } if(number.charAt(3)!='-') valid=false; if(!Character.isLetter(number.charAt(4))) valid=false; else { if(number.charAt(4)!='A'||number.charAt(4)!='B'||number.charAt(4)!='C'||number.charAt(4)!='D'||number.charAt(4)!='E'|| number.charAt(4)!='F'||number.charAt(4)!='G'||number.charAt(4)!='H'||number.charAt(4)!='I'||number.charAt(4)!='J'|| number.charAt(4)!='K'||number.charAt(4)!='L'||number.charAt(4)!='M') valid=false; } } public boolean getNum() { return valid; } …

Member Avatar for JamesCherrill
0
120
Member Avatar for danarashad

I have users insert text on pages. When they do a copy paste from word. With a bullet point or a '. It shows up on the pages as []. Can someone help. Is there a safe html insert for coldfusion or a safe text insert. That would strip out …

Member Avatar for danarashad
0
149
Member Avatar for jonpb

Hello, I looked all over the forums here but couldn't find anything on this: I'd like to have a js random image (1 out of 4) load each time a user visits my page. Along with that image, I'd like a specific quote and sub heading (text) to appear -the …

Member Avatar for essential
0
284
Member Avatar for starzstar

Hi I am using Option parser for creating a command line application . I am able to parse command line options. I have a command for listing the contents of a folder. which goes like this python main.py --listContents When I give this I get an error error: --listContents option …

Member Avatar for adam1122
0
114
Member Avatar for pavan204

Hi I am persuing MCA and I am doing my 6th sem project on vb.net 2003 and i have problem.In my project i have to read data from a .txt file and display the data in the excel sheet.The data in the txt file is in hex and the pattern …

Member Avatar for Ramy Mahrous
0
183
Member Avatar for Akis2000

hi.....here is my code::: [CODE]int main() { srand((unsigned)time(0)); int random_integer,num,len; cout << "Random numbers: "; cin >> num; cout<<"Lenght of each numbers: "; cin>>len; for (int i=0; i<num; i++) { cout<<endl; for(int j=0; j<len; j++) { random_integer = rand() %10 ; cout << random_integer; } } [/CODE] my question is... …

Member Avatar for Akis2000
0
112
Member Avatar for Grn Xtrm

Hello, I'm trying to write a program that evaluates a postfix expression using the vector class. I have done this successfully using stacks but I am experiencing trouble with vectors. Here is the error message I am recieving: I:\vector.java:26: type Vector does not take parameters public static int evalPostfix(String str, …

Member Avatar for Grn Xtrm
0
538
Member Avatar for Clockowl

Hey guys, How do I disable/get rid of that default exception message windows shows when you have an "unhandled" exception in your program? Here's my example code (sorry for not limiting the code's size to the problem only, it's readable enough I think): [code=cpp] #include <iostream> #include <fstream> #include <string> …

Member Avatar for Clockowl
0
163
Member Avatar for CS Lover

Hello, Iam working on website, technically this is my first j2ee website .. so iam trying my best here .. I tried to make simple front-controller technique using servlets + JSP .. and this is wat i done : index.java [CODE] Map event = new HashMap(); event.put("cats", new cats()); event.put("login", …

Member Avatar for ~s.o.s~
0
144
Member Avatar for rgothard

OK.. I'm trying to write a query which combines data from two tables. (I'm pretty novice at SQL Queries, so bear with me!) However, I want to exclude duplicate data (based on just one column -- an address field). Basically, I want to only have one result per address. The …

Member Avatar for rgothard
0
21K

The End.