199,114 Archived Topics
Remove Filter ![]() | |
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"); … | |
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 … | |
I need a tool to measure distance from one point to another and the area in sq ft on maps.live.com | |
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 … | |
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 … | |
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] ? } | |
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 … | |
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 … | |
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 … | |
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. | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
can anyone here know how to make a fade in and fade out label? in visual basic? | |
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? | |
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 … | |
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 … | |
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. | |
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 = … | |
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 | |
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 … | |
[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 … | |
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 *, /, … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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?"); } … | |
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. | |
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 … | |
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 … | |
what is the usual cause for "out-of-line member function declaration" compiler error? | |
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 … | |
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 … | |
how do i learn programing?eventhough how hard i try to understand the languages, i can not absorb it, pls help me about it | |
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), … | |
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 … | |
[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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
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... | |
![]() | 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 … ![]() |
The End.