199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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) … | |
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 … | |
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 … | |
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 … | |
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 … | |
"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." Now this is a really stupid error. (yes that sums up the error S T U P I D) I am making an update to … | |
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. | |
"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." Now this is a really stupid error. (yes that sums up the error S T U P I D) I am making an update to … | |
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 … | |
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 … | |
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 … | |
Hello everyone, just got a query regarding calculating I'm building a form and depending on how you fill it in you are given a score, currently i am using if/else statements. Here is an example $age is taken from the database after the form is completed (persons age) $mc is … | |
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 … | |
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. … | |
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 … | |
[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 … | |
hello, i just asking if any body can help me to make a marquee display data from mysql data base like this web site [URL="http://www.aljazeera.net/NR/exeres/F06E0D8B-BE98-445A-9752-8E7EA9DAD30F.htm"]http://www.aljazeera.net/NR/exeres/F06E0D8B-BE98-445A-9752-8E7EA9DAD30F.htm[/URL] thx v. much | |
[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 … | |
i have created this piece of code to retrieve the path to a file from a mysql db, the file exists and can be displayed directly from the sql query. the code looks like this [CODE]$query = "SELECT broad1 FROM images_broad"; $result=mysql_query($query); while($row=mysql_fetch_array($result)){ $image_path="{$row['broad1']}"; }[/CODE] i now want to display … | |
Hi. I'm a newbie to php and have created a login form that does not use an sql database. After inputing all the code I've tested it in IE and it doesn't work properly. If I leave the username and password blank but hit the submit button, it takes me … | |
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 … | |
Dear Friends I have finished the Data dictionary table for my assignment but I cannot figure out my (Composite and Foreign) Keys. I am attaching my physical data dictionary table with this massage. I would be very grateful if someone could identify them for me and update the table for … | |
i have store an image on the server from a file upload with a random number attached to it. i have then stored the random number in a mysql db for use on other pages to display the images. the problem i am having is that the image will not … | |
Please I need some help! When I am developing, these code below works fine: [code=php]<?php if($_SERVER['SCRIPT_NAME'] == '/aktuelle seite/index.php') { $style_home = 'style="background-color: #6C674F"'; } ?> <ul> <li class="linkLevel01"><a href="index.php" class="homy"<?php echo $style_home ?>>Home</a></li>[/code] But, when I put on the server : [code=php]<?php if($_SERVER['SCRIPT_NAME'] == '/bobo/index.php') //"bobo" is the name … ![]() | |
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 … | |
Hi everyone, I am so new to javascript and it is really giving me a micrain. It looks easy but tend to be hard. Atleast for me since I am a beginner. I need help please. I need to make work with the element getElementById I have tried numerous way … | |
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 … | |
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' … | |
| |
Hi, I've got a form with a few text fields, and only today I noticed that when i tried copying some text from an email and pasting it into one of the fields, after submitting to the database (and printing the query), i noticed that the name sent had something … | |
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 … | |
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 | |
Hi All, I have a form with a submit button that enters the registration data into the MySQL DB...is there a way for a notification to be sent to the System Administrator notifying her about the registration? | |
Hi, Can anyone tell me what is wrong with my code? I am trying to have an email sent to the email addy hardcoded informing the the email receiver that the info was sent into the DB...and when I do add a user, no email was sent...only the registration data … | |
Hi All, I think I'm lost..... Here's my problem, I have a searchUser.php which allows the user to enter the Employee ID and submit (which searches for the user). The result is displayed from the chunk of code below. I want to allow the user to append a particular field, … | |
i am extemly newbie and don’t know whether I should post my problem here or somewhere else, however… i have following problem in one of my php-mysql application header link through browser is, "http://localhost/test/reply.php?id=852" and query is as follow, [ICODE] $name=$_POST['name']; //from the name form $q_id=$_GET['id']; $sql="INSERT INTO `test`.`reply`(`rid`,`tid`,`name`)VALUES(NULL,'$q_id','$name')"; $result=mysql_query($sql);[/ICODE] … | |
HI First I apologiz ‎ about my bad language Be cuz my language is not English I have this problem in my project code And I try to solve it but I cannot This is in the part of main [CODE]int main () { Queue<primaryPatient> primaryQueue;//create object from class Queue … | |
Please write echo statement from html statement below; <a href="javascript:ajaxpage('test.htm', 'contentarea');">test</a> | |
Hi, I wish to do the following things: a) Append the first three lines from the file "file1.txt" at the end of another file "file2.txt" b) Run a program "prog1.cpp" which uses the file file2.txt. c) Delete the three lines appended at the end of the file "file2.txt". and append … | |
I have written this code in Jsp file . [code=JSP]<% Connection con=null; Statement st=null; PreparedStatement ps; String nm=request.getParameter("tnm"); String loc=request.getParameter("tlc"); try { Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection("jdbc:mysql://localhost:3306/rahul","root","root"); st=con.createStatement(); try { ps=con.prepareStatement("insert into dept(deptname,location) values(?,?)"); ps.setString(1,nm); ps.setString(2,loc); ps.executeUpdate(); out.println("Value inserted "); } catch(SQLException e) { out.println("sql is not executed"); } } catch(Exception ex) { … | |
typedef struct iphdr { u_char ip_hl:4, /* header length */ ip_v:4; /* version */ u_char ip_tos; /* type of service */ short ip_len; /* total length */ u_short ip_id; /* identification */ short ip_off; /* fragment offset field */ #define IP_DF 0x4000 /* dont fragment flag */ #define IP_MF 0x2000 … | |
I have an assignment on currency I turned it in, and it is not right by no menas. I had no loops in any module, can anyone explain how to do a loop? | |
can i use animated gif instead of bitmap images on the background of my forms? or can i post animated gif on my forms? can anyone tell me how this can be done? need your response thnx in advance. | |
I, i am beginner in VB programming. I am developing a software using Vb as front end & database in foxpro. Can anybody help me to connect entered text in textboxes to database. How it is saved in database & retrieval. I am using DAO tool. Neeraj Pareek | |
Hello I have been working on this script for a little while. All is working good(get all information into the xml). But I am needing to have the php code add an image to the xml for download. If anybody as any ideas i would greatly appreciate it. I have … | |
I am helping a website owner to transfer a site to new servers. All site files have been uploaded onto the new server, only thing left is the database. In phpmyadmin, when I try to export the DATABASE to my local PC, using zip or gzip to compress, as this … | |
I have some questions, some might seem kind of dumb, but we're studying overloading operators and inheritance/polymorphing. I'm having trouble finding some references on some things to show me how to do this stuff or why I'm doing it a certain way. what kind/type of binary operators can I use … | |
pls can anybody help with how to insert a bracket into a string after the count of 3 characters in vb6 |
The End.