132,726 Archived Topics

Remove Filter
Member Avatar for
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ÃÅÕãÙÁÓ@ÔÅÙÉÄÉÁÕ@@@@@@@@@@@@@@@@@@@@@@Ãóù@ÆÉÙâã@@ÃÄ@ò …

Software Development pdf visual-basic
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++] …

Software Development 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 …

Software Development assembly video
Member Avatar for destruct0
0
157
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 …

Software Development microsoft-access open-source vb.net
Member Avatar for Ramy Mahrous
0
176
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 …

Software Development visual-basic
Member Avatar for QVeen72
0
1K
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 …

Software Development c++
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) …

Software Development vb.net web-browser
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 …

Software Development python
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, …

Software Development c++
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 …

Software Development c++
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); …

Software Development c++
Member Avatar for adam1122
0
98
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, …

Software Development file-system perl session
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; …

Software Development pascal
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. …

Software Development vb.net
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 …

Software Development python
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 …

Software Development vb.net
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) >> ") …

Software Development python
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. …

Software Development c++ ios
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 …

Software Development java
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 …

Software Development visual-basic
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.

Software Development assembly 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 …

Software Development c++
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 …

Software Development c++
Member Avatar for badboizEnt
0
162
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, …

Software Development c
Member Avatar for jephthah
0
93
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 …

Software Development c client-server
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 …

Software Development vb.net
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 …

Software Development c++ ios user-interface
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 …

Software Development python
Member Avatar for adam1122
0
1K
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; } …

Software Development java
Member Avatar for JamesCherrill
0
120
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 …

Software Development python
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 …

Software Development display vb.net
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... …

Software Development c c# c++
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, …

Software Development java
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> …

Software Development c++ ios
Member Avatar for Clockowl
0
163
Member Avatar for harish92

In a game of Hangman, a setter of the word/phrase is required to enter a phrase. However, I was wondering if there was any way to input data blindly, so that the guesser cannot see the phrase getting typed in. An example of its use would be passwords being entered.

Software Development pascal
Member Avatar for FlamingClaw
0
173
Member Avatar for pao09

im making a project right now.. a employee will input some personal information in a jframe then when the user click the button another window will popout and it will display the information of the employee.. im using setter and getter methods.. i think there is the problem because when …

Software Development java
Member Avatar for pao09
0
111
Member Avatar for rudolph2004

Hi, I need to create a function that will allow me to search for records in a struct. Any ideas if how to get started? Thanks

Software Development c++
Member Avatar for rahul8590
0
84
Member Avatar for YaelGD

Hi y'all! I need to sort an input of integers, long as we wish (not defined, depending on the user), which ends up by -1, and print it to the screen sorted. I can't think of anything that is simple enough to use (a beginners level, all we learned in …

Software Development c
Member Avatar for Narue
0
116
Member Avatar for HBMSGuy

Hi, I was wondering how in C# one would go about creating a worker thread, and after the Start Method is finished, have the thread preform another task. For example: I create a thread, and pass path[0].calculate. Now once that is complete I would like to be able to on …

Software Development
Member Avatar for Ramy Mahrous
0
110
Member Avatar for Clockowl

Hey guys, I've this code: [code=cpp] #include <iostream> #include <fstream> #include <sstream> #include <string> using namespace std; bool load_file(const string &filepath, string &dest){ ifstream file; file.open(filepath.c_str(), ios::binary); if(!file.good()){ cerr << "Fatal error while opening file." << endl; return false; } //get filesize in bytes from ifstream //seek end, get pointer, …

Software Development c++ ios
Member Avatar for Clockowl
0
997
Member Avatar for JimD C++ Newb

I'm trying to write a short code that will take in a string of text, and tell me how many vowels are in it, with the information being passed between a parent and child process using pipes (I am only testing for "a" at the moment until I get that …

Software Development c
Member Avatar for Aia
0
117
Member Avatar for densman

i am trying to save values in a textbox for each item in a list of items. The textbox will prompt for values and a button(btnTag) saves the value to the item in a list. The code below saves the value of the textbox for all the items in the …

Software Development vb.net
Member Avatar for Ramy Mahrous
0
110
Member Avatar for lionleo

program that produces a report with a header line containing the total sales and total expenses. Following this header should be a table with each salesperson's name, percentage of total sales, and percentage of total expenses, sorted by salesperson's name. the text file should be like the following form bob …

Software Development c c# c++
Member Avatar for ithelp
0
80
Member Avatar for tag234

hi guys... im having a problem figuring out exactly how to fill a dynamically allocated array of doubles. bool getData(double **x, double **y, int n) my function is passed these two pointers to pointers and, in the end, they are supposed to point to the addresses of dynamically allocated arrays …

Software Development c++
Member Avatar for siddhant3s
0
84
Member Avatar for jam7cacci

#include <iostream.h> #include <string> void main() { char name[10]; int num_name; int count; cout << "How many names do you want to enter?\n"; cout << "Answer: "; cin >> num_name; int j =1; cout << "\nEnter names\n"; for (count=1; count<=num_name; count++) { cout << j << "." <<" name: "; …

Software Development c++
Member Avatar for jam7cacci
0
111
Member Avatar for joejoe55

Never done this successfully before and can't seem to figure it out... Any help appreciated. Basically this code draws my Winamp Track like this; "Song Title - Song Artist - Winamp 0:00/0:00" I would like to remove the - Winamp from the drawing if possible, any pointers or code would …

Software Development c++
Member Avatar for VernonDozier
0
115
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 …

Software Development python
Member Avatar for adam1122
0
187
Member Avatar for pt_solar

Hello...I'm trying to write this program answering this question and I keep getting C2440 errors and C2664 errors and I did some research but couldn't find anything on how to correct it. The question says : Write a program that dynamically allocates an array large enough to hold a user …

Software Development c++
Member Avatar for pt_solar
0
553
Member Avatar for yingfo

Hi, I'm trying to write a java program that will read in the scanner input from a user and outputs an postfix expression and answer so if you typed in: A = 5 B = 7 $PART2 AB+ the output would be AB+ = 12 I'm having trouble with the …

Software Development java
Member Avatar for stephen84s
0
168

The End.