132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mrt.work

Hi, i'm using ms access and i have a table and a form which have the field code_url. I would like to know how can i create a form with a button that i could use to cut string in the field name code_url for example: <a href="yahoo.com?234234234sdef">Episode 1</a><br><embed src="videos/vplayer.swf …

Software Development visual-basic
Member Avatar for selvaganapathy
0
92
Member Avatar for monstro

Aside from access specifiers (private, public, protected), what differentiates structures and unions from classes in C++? I have been told that in C++, classes and their associated components are instantiated in memory in pretty much random order, but structs and unions are instantiated in a fixed order? Is this true? …

Software Development c++
Member Avatar for Duoas
0
186
Member Avatar for megatr0n

okay so I'm not sure how to do this, but suppose i have a struct that looks something like this: struct soundNode{ string identifier; sound new_sound; soundNode* next; soundNode* prev; }; sound is an object that is defined by a .h file. and in my main program, i have a …

Software Development c++ linked-list
Member Avatar for VernonDozier
0
78
Member Avatar for kashi_787

I want to read file in binary mode using fread() into structure members. following is the code which works perfectly on Turbo C compiler(DOS base) but doesn't work for VC++ 6, it is giving exception at fread() statement. The input to this file we can give any .bmp file name …

Software Development c c++
Member Avatar for jephthah
0
146
Member Avatar for chazzquire

Hello, I'm trying to use getch several times in my program, but it is remembering earlier key presses. Is there a function or command I can use to clear the getch buffer? Or am is there something else I am doing wrong? Thank you. C.

Software Development c
Member Avatar for chazzquire
0
159
Member Avatar for Clockowl

hai. I'm trying to compile a program split up across multiple files. The code is far from complete, but I noticed lots of compiler warnings and errors. This ought to be due to splitting the code up: I thought the preprocessor simply copy and pasted the code into main.c when …

Software Development c
Member Avatar for Clockowl
0
127
Member Avatar for putagunta

Hi, I am debugging with gdb a huge program on HP-UX. It has a very strange behaviour and I could not identify the cause. Have a look at this for example: (gdb) c Continuing. Breakpoint 2, CExtract::extractDAT (this=0x80000001007bb9d8, user=@0x80000001004d4670) at Extract.cpp:1761 1761 meas.getSumMethodName ( sCol.meas_sum_method_name ); (gdb) p &meas $9 …

Software Development c++
Member Avatar for putagunta
0
85
Member Avatar for noraantonia

Hello, I have a question. I work in visual c++ in a document/view arhitecture (SDI application) and i draw some stuff with some opengl functions (cubes, cylinders) but when i hit the "New" menu from the File menu it doesn't erase or clear my drawing :( I don't know why. …

Software Development c++ opengl
Member Avatar for mitrmkar
0
191
Member Avatar for Jennifer84

I am reading a file that is about 20 Mb, this will take about 10 seconds. A few lines from this file look like below. The first value is a date value that go from lower to higher and the second value after the "Comma" is a number. In the …

Software Development c++
Member Avatar for Jennifer84
0
581
Member Avatar for NycNessyness

Hello. I'm having troubles with my JComboBox calculations. For example, if the strings in my JComboBox were String[] name = { "John", "Tom" }; And Tom was assigned 15% to his name. How can I have the cases in my action performed reach out to a calculation class to perform …

Software Development java
Member Avatar for NycNessyness
0
119
Member Avatar for BBaller1211

I have a Pong game with a level editor (as long as you have the source code) where you can put walls where you want. There are also walls that only balls hit by the player can pass through, walls that only balls hit by the Cpu can pass through, …

Software Development java
Member Avatar for BBaller1211
0
100
Member Avatar for CoolGamer48

hey, is this code: [CODE=C++]if(m_velocity.x == 0) return 0; return ToDegrees(atan(m_velocity.y/m_velocity.x));[/CODE] any more efficient than this code: [CODE] if(m_velocity.x == 0) return 0; else return ToDegrees(atan(m_velocity.y/m_velocity.x));[/CODE] I.e., are we saving any time by omitting the else statement?

Software Development c++
Member Avatar for Salem
0
144
Member Avatar for Aamit

In Xp... I want to access start->run through programatically like when click start ->run-> //192.168.23.5 how i access this run through c???

Software Development c++
Member Avatar for marco93
0
194
Member Avatar for agabriel

Hello, Okay I'm stumped and can't figure out why this code chunk isn't working properly (works on square matrixs; everything else doesn't work).... uint8 * imageTranspose( uint8 *im ){ uint8 *im_transpose; int x, y, org_offset, tran_offset; int im_size = dims[0] * dims[1]; if ( (im_transpose = malloc(sizeof(uint16) * im_size)) == …

Software Development c
Member Avatar for Clockowl
0
3K
Member Avatar for tondeuse34

Hey guys, I've came across problem and wondering say if you have a 2 lists called user_list and pass_list and you have a prompt for username and password. Instead of 1 user name and password how could it be for all can be used at the same prompt? heres an …

Software Development python
Member Avatar for tondeuse34
0
125
Member Avatar for bstylez

If a person composes a short program and hit's F5 or "run" the output will fit on the viewers screen. I have composed a long program for homework purposes, and once I hit F5 or "run" I do not see the WHOLE program output. Only the bottom half. By hitting …

Software Development qbasic
Member Avatar for bstylez
0
95
Member Avatar for picass0

my string contain "hello baby" and i wanted to find the position of the character 'l' which falls in pos 2 and 3. Using string.find("l") return me the position of first "l" found. How can i do a loop to find the position of my next character 'l' in the …

Software Development c++
Member Avatar for Radical Edward
0
78
Member Avatar for picass0

How can i cut out every 4 characters from a text file? Example: my text file rows of binary numbers like: 101010101000010101010111 i wanted to cut out every 4 characters from it becomes: 1010 1010 1000 0101 .... .... ..... i have been bale to cut out the 4 characters …

Software Development c++
Member Avatar for Radical Edward
0
92
Member Avatar for xyster

I have a quick question that is been bugging me. [CODE]void swap(void *a, void *b) { void *tmp; tmp = a; a = b; b = tmp; }[/CODE] I wrote this intending it to be either able to swap a structure, or just the data defined within a structure. Will …

Software Development c data-structure
Member Avatar for xyster
0
103
Member Avatar for Zavani Nixon

Hi, I just bought a hp laptop installed with Vista business and I hava installed in it Microsoft Visual C++ 6.0. Initially, I was able to write programs with it but it could not execute the programs. Now, I am even faced with a bigger problem, it cannot open a …

Software Development c++ microsoft visual-studio windows-vista
Member Avatar for Ancient Dragon
0
236
Member Avatar for Paua

Newbie question; How do I cast a text file to an array, after the file is read using StreamReader? I have read many threads, code etc but I really need my hand held here, I just dont get it (especially using windows forms)...this is part of an assignment.... I've been …

Software Development file-system
Member Avatar for Paua
0
174
Member Avatar for manzoor

what does the [B]<>[/B] mean in the following GWBASIC programm ? [ICODE]190 FOR C=2 TO N 200 LET I=C-1 210 WHILE I <> 0 220 IF ASN(I)>ASN(I+1) THEN SWAP ASN(I), ASN(I+1) : I=I-1 ELSE I=0 230 WEND 240 NEXT C [/ICODE] ITS BUBBLE SORT IN GWBASIC

Software Development
Member Avatar for majestic0110
0
130
Member Avatar for Black Magic

Hey, I made i looked up toupper and made a little program out of it and have come to a little situation, When i enter the space character " " it does not output what i want and it just closes. [CODE=C++]#include <iostream> using namespace std; int main() { int …

Software Development c++
Member Avatar for joshmo
0
157
Member Avatar for spirals

Not certain if this is the right place to ask this. I need to get two processes to use the same data. Process 1 reads text files, parses them and creates linked lists (structures).before this process terminates it display all the lists to prove the data has been loaded correctly. …

Software Development c debian linked-list
Member Avatar for spirals
0
108
Member Avatar for jagatsastry

Hi people. I was just wondering if I can use _LINE_( by including some header file or so) in devc++ to get the source code line number or _TIMESTAMP_ to get the compile time timestamp. If not is there an alternative? I see compile time errors when I use them …

Software Development c++
Member Avatar for jagatsastry
0
218
Member Avatar for alivip

I write code to get most frequent words in the file I won't to implement bigram probability by modifying the code to do the following: How can I get every Token (word) and PreviousToken(Previous word) and frequency and probability From text file and put each one in cell in table …

Software Development file-system os-x python tkinter
Member Avatar for alivip
0
131
Member Avatar for greg6666

Hi Guys i want to implement iir filter in assembly in c64x processor. preferably fixed point algorithm. Here is the c code of iir filter which i have written. [code=c] #include<stdio.h> void main() { float ip1_seq[10]={1,1,1,1}; float b[10]={0.049,0.074,0.105,0.074,0.049},a[10]={-1.715,1.726,-0.85,0.195}; int len_ip=4,al=5,bl=5; int n,k,i,len_seq=0; float op_seq[10]={0},op1_seq[10]={0},op2_seq[10]={0}; len_seq=al; if(al!=bl) len_seq=(al<bl)?bl:al; if(len_seq!=len_ip) len_seq=(len_seq<len_ip)?len_ip:len_seq; for(i=len_ip;i<len_seq;i++)//padding …

Software Development algorithm assembly
Member Avatar for Salem
0
151
Member Avatar for r3su3l0

Good day to all. I have an existing vb project and my back end is ms access. I changed my database to MySQL and SQL but the problem is I don't have any idea how to connect my VB project to MySQL and SQL throuch ODBC. Your help is very …

Software Development mysql sql visual-basic
Member Avatar for r3su3l0
0
44
Member Avatar for kako13

Hi, I'm trying to update a file with an information in a binary tree. However my algorithm is working only for one NODE. Any suggestion will be appreciated! [CODE]void Arbol::updateFile() { Nodeptr p = miArbol; // myTree Recorrer(p); cout << "File updated!" << endl; cout << endl; } void Arbol::Recorrer(Nodeptr …

Software Development algorithm c++ ios
Member Avatar for kako13
0
148
Member Avatar for guest7

Hi, I wish to delete the first 3 lines from a file. Following is my code which goes into an infifnte loop. [code=cplusplus] int main() { vector<string> text_file; fstream fout; int count = 1; fout.open("tempfile.txt"); assert(!fout.fail()); string temp; while(!fout.eof()) { if(count <= 3) { getline(fout,temp); count++; } if(count > 3) …

Software Development c++
Member Avatar for Ancient Dragon
0
108
Member Avatar for shadowfire36

i got my code to finally compile but, now im getting 5 linker errors that i have no idea why im throwing them the errors are: [code=cpp] football.obj : error LNK2019: unresolved external symbol "public: void __thiscall Football::SearchMatches(struct Match * * const,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int)" (?SearchMatches@Football@@QAEXQAPAUMatch@@HV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) referenced in function …

Software Development app-store c++ file-stream ios
Member Avatar for Ancient Dragon
0
156
Member Avatar for BBaller1211

I'm new to Swing, and still relatively new to Java as a whole, and am having trouble with my first Swing program. I'm trying to make a simple Pong game - it will display the title screen with a "Play" button on it that when pressed starts the game. Here …

Software Development java java-swing
Member Avatar for BBaller1211
0
82
Member Avatar for jaasaria

hi guyzz, i wanted to have two connection using access and mysql in my proj. my access was my main db connection and what ever data in my access will store directly in mysql db when their is internet connection... I declared 2 fuction connection but my problem is the …

Software Development mysql visual-basic
Member Avatar for jaasaria
0
134
Member Avatar for Sephy

So basically i got to make program where you can add rows, inside those rows numbers and count in each row and all rows pair number sum. This far im done and everything is working. Now part which don't want work. I need make option to make rows longer or …

Software Development c
Member Avatar for Duoas
0
112
Member Avatar for Yogesh Sharma

I try the foll. code--- protected void Button1_Click(object sender, EventArgs e) { int i; for (i = 0; i <= ListBox1.Items.Count - 1; i++) { ListBox1.Items.Remove(ListBox1.SelectedValue.ToString()); } } But it's not working.

Software Development asp asp.net vb.net
Member Avatar for Jx_Man
0
281
Member Avatar for salman1354

Hi All, Quick question... I have a structure for a specific type of vector: struct SParticle { float Position; float Velocity; float FcnVal; float LocalBest; float LocalBestVal; } But now I need to define 30 objects for this structure. Is there an easy way for doing this or should I …

Software Development c++ data-structure
Member Avatar for salman1354
0
107
Member Avatar for Metalsiege

Hey everyone. I've been working on a homework assignment to simulate a weather station responsible for recording hourly temps and reporting an average temp. I'm supposed to be passing an array to different functions to first get the temps and input them into the array. Then, compute the average temp …

Software Development c++
Member Avatar for Metalsiege
0
204
Member Avatar for rayman341

I am working on porting C++ code to Delphi and I am only having a problem with the correct conversion of memmove() statements in the C++ code. If you or any one you know could help me to convert this C++ code to Delphi I would be thankful. // Move …

Software Development c++ delphi pascal
Member Avatar for Duoas
0
537
Member Avatar for help22222

Write a C++ program that prints the attendance sheet of students in a class ordered by either their names or by their ID’s. The instructor will enter the number of students in the class; the students’ names [First Last] and their ID’s which will be entered as integers, and then …

Software Development c++
Member Avatar for Ancient Dragon
0
310
Member Avatar for sjinadasa

Hi, This is my first post in this forum and it is a 'help me' post :) Anyway, I took a beginners class in C Programming and at the completion of the class we were assigned to do a project. The project is designing a billing system for a supermarket. …

Software Development c
Member Avatar for jephthah
0
107
Member Avatar for monstro

Given all that I hear about the problems with global variables, is it possible to declare a windows CRITICAL_SECTION object as a member of a base class that will not be created for each derived class? I want to implement an instance counter that is threadsafe, so I thought about …

Software Development c c# c++
Member Avatar for monstro
0
199
Member Avatar for nony0905

[code]#include<stdio.h> #include<conio.h> #define MAX_ROWS 10 #define MAX_COLS 10 void add(int a[][MAX_COLS], int b[][MAX_COLS], int result[][MAX_COLS]); void displayValues(int(*)[MAX_COLS]); void diff(int a[][MAX_COLS], int b[][MAX_COLS], int result[][MAX_COLS]); void main() { int val; int i,j; int choice; int cols,rows; int operation; int table1[MAX_ROWS][MAX_COLS]; int table2[MAX_ROWS][MAX_COLS]; int result[MAX_ROWS][MAX_COLS]; clrscr(); printf("Press 1 to enter values for …

Software Development c matrix-multiplication
Member Avatar for Prabakar
0
145
Member Avatar for purepecha

[code=cplusplus] //I have a problem, i trying to get the total prime numbers for each row on the output. //I jus getting the total prime numbers from the firs line 1 to 100 // my task is to get the total prime number from 1 to 100, 1001 to 2000.....49001 …

Software Development c++
Member Avatar for Prabakar
0
114
Member Avatar for InfinityArc

hi i am trying to make a function for calculating the commercial boat fee, so if a boat is commercial, the program will add additional fee to the total sum, and if its not it won't add anything to it. i got the function to run, but all i am …

Software Development c c# c++ ios
Member Avatar for InfinityArc
0
133
Member Avatar for ze-m!nd

Hey everyone, I'm trying to make a C++ program that inputs data into a web page. For example make a program that takes an input and enters it on the google search box and presses the enter button for you! Can anyone help me? Any codes or ideas where to …

Software Development c++ html-css web-browser
Member Avatar for jephthah
0
117
Member Avatar for shadowfire36

well my struct is fix but i have new errors i hve never seen before : here are the errors [code=cpp] football.cpp(194) : error C2664: 'void Football::SearchMatches(Match *,int,std::string)' : cannot convert parameter 1 from 'Match *[2000]' to 'Match *' football.cpp(205) : error C2664: 'void Football::SearchMatches(Match *,int,std::string,int)' : cannot convert parameter …

Software Development app-store c++ file-stream ios
Member Avatar for shadowfire36
0
140
Member Avatar for TheFueley

I'm trying to work out what should be a simple composition example. For some reason I can't compile this project though. I get three errors when I try to compile. Errors listed below. Where am I going wrong? 1>c:\documents and settings\user\my documents\visual studio 2008\projects\name\name\ssn.h(5) : error C2011: 'SSN' : 'class' …

Software Development c++ visual-studio
Member Avatar for TheFueley
0
178
Member Avatar for Najid

input three numbers and display largest one

Software Development c++ display
Member Avatar for Radical Edward
0
106
Member Avatar for Jennifer84

I am readin a .txt file Line for Line and what I am interested to do is to identify that if the Line do contains any characters as Letters, text, symbols. Exceptions is things like: '\n' ' ' etc... so "" wont be possible here ? So I am trying …

Software Development c++
Member Avatar for Radical Edward
0
91
Member Avatar for rami2005

hi i have aproblem i have atable in database and the table has three colums branch_no branch_nnnno distance 1 2 5 1 3 7 2 1 5 2 4 10 3 5 15 4 5 5 i need aprogram by vb.net that find the shortest path between any two nodesw

Software Development vb.net
Member Avatar for rami2005
0
153

The End.