199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Lord Prime

I'm moving from VB to C, I've learned about the basics of c upto using arrays. I'm self-studying & experimenting now how to display text files as databases. this is the code i use to display text files: [CODE] #include<stdio.h> int main() { FILE *f; char buf[100]; f = fopen("test.txt","r"); …

Member Avatar for Lord Prime
0
119
Member Avatar for gpittingale

Invalid query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''12' at line 1 ----------------------------------------------------------------------------------------- Seen as someone kinda helped me with the last thread i posted i have now been issued with …

Member Avatar for FlashCreations
0
85
Member Avatar for freshfitz

I need a tool to measure distance from one point to another and the area in sq ft on maps.live.com

Member Avatar for freshfitz
0
95
Member Avatar for tones1986

hey All. I am currently working on a project to create a basic student registration system using classes and other sorts of stuff later on... as of now, i am to create three classes as follows: Person, Student, and courseInfo. I have to create a simple driver program that allows …

Member Avatar for vmanes
0
271
Member Avatar for mrpoate

Hi, This is my first time on daniweb, so if I've posted in the wrong section or there's already a similarly-themed thread or I've done something wrong I apologise. Anyway, I'm hoping someone can prod me in the right direction with a problem I'm having right now. I'm currently working …

Member Avatar for mrpoate
0
2K
Member Avatar for Liszt

How would it be possible to code inside a button that the Browser will open and go to address: [url]http://www.google.com[/url] private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { //Code here to go to: [url]http://www.google.com[/url] ? }

Member Avatar for MosaicFuneral
0
262
Member Avatar for nellyznell

I have all my code for this. I have the code to read a txt file, write a txt file, convert the infix to postfix and evaluate it. I am now just having trouble putting it all together. I need it to read the text from a file convert each …

Member Avatar for nellyznell
0
642
Member Avatar for shadowfire36

i was given an assignment by my prof. , but he stated that using pointer notation . the object t=of the program was to write a C++ function ReverseArray using "pointer notation" that will write out the elements of an array of int in reverse order. his comments were This …

Member Avatar for skatamatic
0
140
Member Avatar for jrdark13

The code below I have a problem... When you hit enter on a text field firefox stays at the same page because I have returned false; (I assume) but IE still submits the form normally. What am I doing wrong? [CODE=javascript] window.onload = function() { var form = document.getElementById('keyword'); var …

Member Avatar for jrdark13
0
155
Member Avatar for rahul.k

Hi All, I am looking for a charting component purely for VB 6.0, I know VB has inbuilt Microsoft's Charting Component, but it does not solve my purpose. I need some cool look charts, If you guys know any such component, do let me know.

Member Avatar for Comatose
0
102
Member Avatar for Matt3144

im fairly new to vb 6 and doing a course which requires a project. in my project i need to save a name, age, and form of a user in a random access file when a button is pressed which i have done, and then when another button is pressed, …

Member Avatar for Comatose
0
219
Member Avatar for 3pid

Hey! do you know the game snake? well my professor asked us to develop it in c++! It`s crazy!Although he said write a simple program but I`m still confused!Can someone pleassssssssse help me with it? The snake should eat and Its length and score should increase and also do not …

Member Avatar for William Hemsworth
0
102
Member Avatar for aligatorfurr

I have to write a program that simulates a basketball game... I have the majority of it worked out with the following two exceptions 1) I can't figure out how to make my timer work. Each game is broken up into, quarters then into match ups. Each match up is …

Member Avatar for aligatorfurr
0
94
Member Avatar for serdas

this is a very messy code, i tried to copy from one to other. it displays images and the name and last name of the person. it does it vertically and i need to show let say in two columns so the third image and the name last name falls …

Member Avatar for serdas
0
114
Member Avatar for gpittingale

So i have this script, instead of having the output as what is in th script below, i would like to have it in a table i have had a couple of gos at this and failed......MISERABLY!!!. Could anyone help me out with an example. ps there are more fields …

Member Avatar for Devendar Singh
0
137
Member Avatar for ryan311

can anyone here know how to make a fade in and fade out label? in visual basic?

Member Avatar for Matt3144
0
125
Member Avatar for shazzy99

Is there any way to insert an empty line in a string type variable. string textFile = "abc"; textFile = textFile + string.Empty; textFile = textFile + "def"; This is what I'm trying. But the string.Empty has no effect. This also neither works textFile = textFile + "\n"; Any suggestions?

Member Avatar for ddanbe
0
4K
Member Avatar for tweat

Greetings, I have a 48x88 matrix and I need to sum the 1st element to the 23rd, the 2nd element to the 24th, etc until the 66th to the 88th (always using a 22 interval). Then I have to divide 100 by the sum of each column. The result will …

Member Avatar for DevonMcC++
0
68
Member Avatar for VBNick

Hi, I'm trying to make 3D clipping for my 3D projection program, and I am having trouble with the FOV calculations. The problem is that I set FOV to 45, but a point placed at 45 degrees from the camera does not appear at the edge of the viewport. I …

Member Avatar for VBNick
0
154
Member Avatar for ambarisha.kn

How to wait for some time while writing to a file. I am appending some text in log file, its giving error as Some other process using this file. How i have to wait untill its free.

Member Avatar for nelis
0
1K
Member Avatar for wendas

When building classes I thought if I just added an enum to the parameter list it would pop up the list of the enums, sort of like intellisence.. But I clearly am missing something.. [code] public enum eFullWeekDays { Sunday = 1, Monday = 2, Tuesday = 3, Wednesday = …

Member Avatar for nelis
0
104
Member Avatar for serkan sendur

can you please give me an article address which tells when to use stack and when to use heap, how to use them properly and the performance issues related to usage. Thanks

Member Avatar for serkan sendur
0
108
Member Avatar for Marija-

Hi! I have a problem to make a list of students (i know how to put all the input and to calculate the average of the students grades) but i don't know how to put the students in new list arrayed by their average form biggest to smallest and if …

Member Avatar for Narue
0
130
Member Avatar for lordx78

[code=java] import java.awt.EventQueue; import javax.swing.JFrame; public class tatat extends JFrame { private static final long serialVersionUID = 1L; public static void main(String args[]) { EventQueue.invokeLater(new Runnable() { public void run() { try { tatat frame = new tatat(); frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); } public …

Member Avatar for ~s.o.s~
0
83
Member Avatar for neoangin

Hey! I am college student training for exam. Found one problem and I know you'll know what to use straight away. Here we go: We got a file where the excel sheet is encrypted like this: 1;2;3;=A2 ;;1;4;5 ;=580*A;=D2+1 Formulas are just simple ones, max. two numbers and *, /, …

Member Avatar for neoangin
0
127
Member Avatar for rtepp

Hi, I need start IE in new window without addressbar, status bar but I cannot use kiosk mode (I need defined window size). I need to know the processID of the IE process also. I have 2 different codes: System.Diagnostics.Process p = new System.Diagnostics.Process(); p.StartInfo.FileName = "C:\Program Files\Internet Explorer\IEXPLORE.EXE"; p.StartInfo.Arguments …

Member Avatar for nelis
0
648
Member Avatar for yuleball

hi, i am using rtb. I want to print a specific character when user presses Alt+some key by using chrW() method. I want to detect in KeyPress() event of rtb when user presses Alt+Key. How can i do that? I know i can detect (Alt+x) like combinations in Key_Down event …

Member Avatar for Comatose
0
1K
Member Avatar for securegds

hi, I have implemented the following query to search the db for exact phrase (ex : if the search term is "air" should match the exact word not like hair). Quote: [code=sql]select A.*, B.*,C.GGCategoryID,C.CategoryName,C.CategorySlugName,XX.EcoStatus from tbl_products A,tbl_members B,tbl_product_categories C ,tbl_eco_ratings XX WHERE A.MerchantMemberID=B.MemberID and B.MemberType='Merchant' and A.GGCategoryID=C.GGCategoryID and XX.EcoStatusValue=A.EcoStatusValue and …

Member Avatar for securegds
0
293
Member Avatar for sotiris25s

i have exams tomorrow and i really really need someones help on my problem. here how it goes: "we have 100 students info such as surname,name,id and grades for 6 lessons for those students. the program must: - can take grades from 1 to 10 - can calculate and find …

Member Avatar for ajay.krish123
0
196
Member Avatar for denniskhor

[code] import java.io.*; import java.util.*; import java.io.IOException; import java.util.Scanner; public class Lab { public static void main(String[]args) { System.out.println("MAIN MENU"); System.out.println("<1> Bahasa Melayu"); System.out.println("<2> English"); System.out.println("<3> Exit"); System.out.println("Your selection (1,2 or 3)?"); Scanner read = new Scanner (System.in); int selection = read.nextInt(); if(selection == 1) { System.out.println("Hello, apa khabar?"); } …

Member Avatar for ~s.o.s~
0
771
Member Avatar for ryan311

i have 2 table in my database access 1 is temporary and the second one is temporary2, how can i save all the data in temporary to temporary2? im using adodb.

Member Avatar for choudhuryshouvi
0
86
Member Avatar for lolHANNAHH

Hi! So, I'm new, and I had gotten this book on how to make an RPG. Well, as I was typing the code, it underlined some words, but at that time I didn't think anything of them, and now its being a pain. DX Here's my code that has some …

Member Avatar for rapture
0
102
Member Avatar for ssreevidya.m

Hi, I stored a file in the folder taht selected using file upload control. When I tried to view this content from that folder I got an error like this. Cannot find the C:\Documents and settings\Terapc\LocalSettings\temporary Internet Files\Content.IE5\6AJ9DNHZ\name.txt file Do you want to create a new file? The code I …

Member Avatar for nhauck
0
86
Member Avatar for serkan sendur
Member Avatar for serkan sendur
0
76
Member Avatar for arun_lisieux

QUESTION: The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? I was trying to solve this problem. I was previously suggested to use the "Sieve of Eratosthenes" Method to find the prime nos. [url]http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes[/url] I came up …

Member Avatar for arun_lisieux
0
288
Member Avatar for adam291086

I am trying to write some simple information to a file and i am getting the error message "No such file or directory when i know full well it exists. If you take the url [url]http://www.adamplowman.com/uni_project/log.txt[/url] you get the file heres the code [CODE]#!/usr/bin/python print "Creating a text file with …

Member Avatar for Gribouillis
0
121
Member Avatar for giovany

how do i learn programing?eventhough how hard i try to understand the languages, i can not absorb it, pls help me about it

Member Avatar for giovany
0
87
Member Avatar for guest_user

We have a Log table which logs the events of a request. When any error event occurs, I need a query to see the row with errorevent and the previous row to this row which contains the actual data which caused the error. Here is the table structure: LOGID (int), …

Member Avatar for pclfw
0
142
Member Avatar for mabz_jean

Implement a subject scheduler using the topological sorting algorithm. The program shall prompt for an input file containing the subjects in the set and the partial ordering of subjects. A subject in the input file shall be of the form (number, subject) where number is an integer assigned to the …

Member Avatar for javaAddict
0
100
Member Avatar for l_03

[CODE] import javax.swing.*; public class A { public static void main (String args[]){ String ask = JOptionPane.showInputDialog("Enter"); if(ask.equals("hello")){ System.out.println("ok."); main(args); }else if(isRepeat(ask)){ System.out.println("Invalid,string has been repeated."); System.exit(0); } } public static boolean isRepeat(String ask){ if(ask.equals("hello")){ return true; }else{ return false; } } } [/CODE] Hello, I am having problems with …

Member Avatar for ahihihi...
0
176
Member Avatar for ddanbe

I have a class derived from a TableLayoutPanel and if I have more than 3 rows or columns I don't show them directly, I add(I let the object add) scrollbars so I can reach the other cells. I have code that works perfectly,but... [CODE=csharp]public void CalculateSize() { const int cMaxCol …

Member Avatar for LizR
0
114
Member Avatar for winrawr

I was just curious, besides the APIs and DLLs, etc, what is the difference between C++ compiled in windows, and C++ compiled in linux? Is it just the OS interrupts used in the machine code or what?

Member Avatar for Ancient Dragon
0
101
Member Avatar for c_Newbie

hi all, i used the search function, but the threads i found didnt really help me much since i am quite a newbie and didnt understand how it worked. so what i am trying to do seems simple but it doesnt work. i have a textfile with a single line …

Member Avatar for c_Newbie
0
112
Member Avatar for Datsun90

Hi everybody, I have a VB 2005 (Express) application with SQL 2005 database; a report (named 'c:\Items.rpt') already designed and set to "Items" table. When I preview this report from Crystal Reports, it shows data correctly. How can I show it from within VB code depending on its default dataset …

Member Avatar for Ramy Mahrous
0
121
Member Avatar for visuallearner

Hello- I am new to Visual Basic and have done tutorials, as well as checked VB help and online to help me with this problem, but I can't figure it out. I am trying to make a 'Supervisor field' in an excel spreadsheet mandatory. If users do not complete this …

Member Avatar for Ramy Mahrous
0
196
Member Avatar for asif786

i am using vb dot net 2003. I want to store randomly generated numbers in an array. The Numbers are declared as integers. The amount of numbers generated will not be constants so i can not initialize the array before hand. However the numbers generated will be from 1 to …

Member Avatar for Ramy Mahrous
0
139
Member Avatar for Lilal

Dear Sir/Madam, I'm currently trying to compare a value from an array vs (In the first instance) A set character, and (in the second instance) against a set integer. None of the comparisons are ever returning true even when they appear to be the same on a printf statement, although …

Member Avatar for Lilal
0
119
Member Avatar for adam291086

I am trying to construct a class and call upon some functions within that class, but nothing is returned, somehting should definitely be returned [CODE] #!/usr/bin/python import cElementTree as ET import urllib2 import MySQLdb print "Content-type: text/html\n" class xml: @staticmethod def find_text(element): if element.text: yield element for subelement in element: …

Member Avatar for adam291086
0
172
Member Avatar for sonakrish

Hi.. I hav a database for maintaining emp details. I want to get my EmpID to be generated automatically when my add new button is clicked. That too in C# only...

Member Avatar for greeny_1984
0
123
Member Avatar for starsinthesky

i cant figure out what's wrong with my code. can anyone help me pls? [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class MyGUI implements WindowListener, ActionListener { public void windowClosing(WindowEvent e) { System.exit(0); } public void windowClosed(WindowEvent e) { } public void windowIconified(WindowEvent e) { } public void windowOpened(WindowEvent …

Member Avatar for starsinthesky
0
112

The End.