199,113 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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ÃÅÕãÙÁÓ@ÔÅÙÉÄÉÁÕ@@@@@@@@@@@@@@@@@@@@@@Ãóù@ÆÉÙâã@@ÃÄ@ò … | |
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++] … | |
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, … | |
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 … | |
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, … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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) … | |
![]() | 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 … ![]() |
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, … | |
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 … | |
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); … | |
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 … | |
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, … | |
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; … | |
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. … | |
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 … | |
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 … | |
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) >> ") … | |
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. … | |
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 … | |
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 … | |
Hi I want to learn asm but I have Windows XP64 how do I go about learning assembeler for this operating system. | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
[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; } … | |
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 … | |
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 … | |
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 … | |
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 … | |
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... … | |
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, … | |
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> … | |
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", … | |
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 … |
The End.