199,114 Archived Topics
Remove Filter ![]() | |
hi guys im having an error with my code but cant seem to figure it out. its a windows form and im just trying to make it function but the compiler gives me these errors: [code] 1>c:\\\desktop\\c++\twisttut\twisttut\Form1.h(89) : error C2059: syntax error : '{' 1>c:\\\desktop\\c++\twisttut\twisttut\Form1.h(89) : error C2334: unexpected token(s) … | |
I am confused........... I have made a project . No problem in localhost but whenever I try to execute in my domain server it shows : Warning: include_once(body/login/logIn.php) [function.include-once]: failed to open stream: No such file or directory in /mounted-storage/home36c/sub003/sc29343-BHKZ/progekt.com.utpal/helora/body.php on line 68 You can check : [url]http://utpal.progekt.com/helora[/url] I have … | |
Hello, I'm a student in a summer workshop and i'm trying to make a python table from which people can choose the type , and within a mile radius. It's suppose to be compatible with an Arcgis map. If anyone knows how to make something similar please tell me how … | |
Hey! I have been trying several times to fix it but couldnt find correct codes in C#. You can copy all these below codes of markup and C# so that you will see what is problem. Im fine with markup but only problem with C#. There is some explanations (bold … | |
I am trying to find the index position of the minimum element in a list and print the element at the corresponding index position in another list. For example: [CODE] ?- min2(X,Y,[a,b,c],[5,3,7]). X= b y= 3[/CODE] Code: [CODE] min2(A,B,[A|_],[B|_]). min2(A,B,[X|T1],[Y|T2]) :- smallest(W,[Y|T2]), % using a predicate to find the min … | |
Hey, I've just started with JSP! Was trying my hand at this Shopping cart app.here's the code..[CODE]<%@page import ="java.sql.*"%> <%! Connection con = null; String query = null; PreparedStatement stmt = null; ResultSet rs = null; %> <HTML> <BODY BGCOLOR='ORANGE'> <CENTER> <H2>YOUR CART CONTAINS</H2> <% try{ Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection("jdbc:mysql://localhost/shopping_mart?"+"user=root&password=root"); … | |
hi i have just started learning ASP.Net.. i'm try to using dropdown list in if condition it gives error message as [B]"Cannot implicitly convert type 'string' to 'bool'"[/B] [code=asp.net] if (DropDownList1.SelectedItem.Text="buyername" ) { da = new SqlDataAdapter("select * from buyermaster where buyername like '" + a + "%'", con); da.Fill(ds); … | |
Hello, I have been attempting to create a fast class for OpenGL's Vertex Buffer Objects. I finally got all the libraries to work and now i am getting a sigseg but cant see why. Can someone find my error? (I will keep looking too) [CODE]#ifndef GLMODELS_H #define GLMODELS_H #ifndef GOODGL … | |
I have a picture with 2 buttons, and I want to move it through these buttones the problem is I don`t know how to make the actionListener for the other button to move to the other side, [COLOR="Red"]pictures are in the attachments[/COLOR] [CODE]import java.awt.event.*; import javax.swing.*; import java.awt.*; import javax.imageio.*; … | |
can anyone tell plzz!!!!what is difference between interface and annotation type in java? | |
Hi I wasn't sure if this was the right section or not How is a GUI implemented in modern operating system. Currently I use win32 code to generate a window and then use openGl with C++ to generate the application. How is explorer.exe (the windows interface) designed and built. Does … | |
Hi..All..I want to design a n tire architecture in my application.I've gone through many sites and have understood the concept but I don't how to start it. I've very basic questions like..how do I create the layer and How do I connect between the layers.. Would you please help and … | |
Hi All, Can anyone tell me the difference between two tier and three tier archieture????????????? and how .net clr works with n tier architecture........... Plzzzzzzzzzzz help me:sad: | |
can anybody tell me abot the 3 tier architecture in details that means how they communicate in between layers etc... | |
hello, I am trying to connect MS ACCESS 2007 Database with textboxes which will show the info of the users..for example..when I login..I see my info in the textboxes..and when other user logs in..they can see their info.. This is the code I have on load after the window login.. … | |
help me in using ajax controls in C#.net i am using them but finally they are not getting displayed. the watermarker is not being displayed as the default text moreover the box is empty... here is the code [CODE] <asp:ScriptManager ID="ScriptManager1" runat="server" /> <br /> <br /> <br /> <asp:TextBox … | |
I have a problem in my game about button how I can display the random number example "3 + 5" in the upper button ...I try one button here but you need to click it in order to see the random number and only one number will appear..please any idea.. … | |
HI TO ALL [CODE] import java.applet.*; import java.io.*; import java.awt.*; import java.awt.event.*; import java.net.*; import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; import java.net.UnknownHostException; public class sid_fari extends Applet implements ActionListener { String msg,msgs,msgss; Button loads = new Button("clik me"); public void init(){ add(loads); loads.addActionListener(this); } public void paint(Graphics g) { g.drawString(msgs,10,40); … | |
I am populating a table with information from a database, one of the values is a rating 1, 2, 3, or 4. I made it so that depending on the value in the database the radio button with the corresponding value is selected. But I am having problems figuring out … | |
hello to all, how to make global data from mysql example: data1 from table data2 from table ... i want to make the data[] global so that i can call anywhere in the page. i'm using php thanks, | |
[CODE]#include <sys/types.h> #include <sys/wait.h> #include <stdio.h> #include <unistd.h> void *thread(void *vargp); char **ptr; /* global */ int main() { int i; pthread_t tid; char *msgs[2] = { "Hello from Thread A", "Hello from Thread B" }; ptr = msgs;for (i = 0; i < 2; i++) pthread_create(&tid,NULL,thread,(void *)i); pthread_exit(NULL); … | |
I am having trouble replacing the numbers on my Tic Tac board with the X and O from my if and else if statements. I would also like to know how to make sure how to keep the X and O in place without it being replaced after every loop. … ![]() | |
hi Is there a way to pass a structure into a function in C++? ie if I have a structure of data, can I pass it in and use all the members without having to pass them indevidually? I basically want to pass team data into a function and that … ![]() | |
Goodday great Programmers in the World Am not advanced upto this extent and have to ask for help I need a help and codes to solve this. I have 5 columns of 11 textboxes each on my form the textboxes are generated with this code [CODE] Private Sub Form1_Load(ByVal sender … | |
I am working in an older version of Python (2.6, I believe). I cannot update to the latest version because it is not currently compatible with the other program I need the code to run with so, unfortunately, the "decimal" module is not available to me (as far as I … | |
hi I have a program in c# that have connection string for network use to connect to sql server 2008,it works correctly until our company make DC server and join all computers I change my connection string,then if I log on to my computer(my computer is a server) from any … | |
Hello python gurus! I dabble in python casually, and I've just recently begun to use classes. For the most part they've proven very helpful, but this error has me stumped: [CODE]creature.health=creature.health-2*creature.metabolsim/resolution AttributeError: predator instance has no attribute 'metabolsim'[/CODE] Here's the full code of the program (it's designed to run a … | |
I searched in this forum, but it didnt help my solve my problem. Please help me. This is my code [I]int intOrderNo = (int) Session["sOrderNo"]; DetailsViewRow row0 = DetailsView1.Rows[0]; string strProductId = row0.Cells[1].Text; DetailsViewRow row6 = DetailsView1.Rows[6]; string strUnitPrice = row6.Cells[1].Text; float floUnitPrice = float.(strUnitPrice); string strQty = DropDownList1.Items[DropDownList1.SelectedIndex].ToString(); int … | |
hey ya all my question is simple, how to simulate an event by code, for example consider a simple form which has 2 buttons. button1 changes the forms color, now i want the code that i should put in click event of button2 that when i click it the app … | |
Hello, kind citizens of DaniWeb! I beg your assistance in the solution of my problem! I was trying to create a simple audio player using Tkinter and pygame, pygame being the best library that included audio playback I could find (by the way, DO NOT USE SNACK!!). Anyway, I was … | |
Here is the error [IMG]http://i1199.photobucket.com/albums/aa465/aaron55494/compileerror.png?t=1311972955[/IMG] and here is the code that i'm working on [CODE] public String getKillMessage(String player) { String[][] selection = {{"Congratulations, you have defeated ", "}, {"Congratulations, you have ", "}}; int index = (int) Math.floor(Math.random() * 9); return selection[index][0] + player + selection[index][1]; }[/CODE] Any help … | |
Hello All, Could you please help me with the following VBA code that I have to understand (but I am not aware of VBA) [CODE]Public Function ErlangB(Servers As Single, Intensity As Single) As Single 'The Erlang B formula calculates the percentage likelyhood of the call ' being blocked, that is … | |
I was doing a projecteuler problem. I made a program that would find all the prime numbers under 1000000 and write them all in a file. Why is that if I use the file name as "primes.txt", the result is gibberish from beginning to end, but when I use "primes.dat", … | |
hey guys i have a DGV which has a check box column. what i want to do is that when user checks one of these check boxes the entire row be highlighted as if a normal cell was clicked, here is the tricky part, and i want when user clicks … | |
Hey guys, I have a function called showAll, which has 2 arrays as it's arguments. I declared it as follows: function showAll($dayarray, $distinctShifts) both arguments are returned in other parts of the code, so why is it giving me missing argument errors for both of them? Please give me some … ![]() | |
Hi Guys, I hope you can help me because I've tried everything and don't know what else to do. I keep getting the error "Object reference not set to an instance of an object" and I can't seem to figure out what the problem is. I've even tried instantiating the … | |
pals i just wanna ask if anyone could show me how to declare and call a 2d array? thanks in advance!!! | |
Hello!... :) It's been a long time since my last visit to this forum. My question is: Why MD3 Models are divided into different parts (head, torso, legs)? I myself made a model with animations with only a part (the full model) in C++/OpenGL and worked just fine! I dont … | |
error: ‘void __stderrp(MattsMatrixSpace::Vec)’ redeclared as different kind of symbol I have a function called "stderr" in my program. I'm not sure where the "__" or the "p" came from. Any idea what this error is related to? PS, the next error is: /usr/include/stdio.h:169: error: previous declaration of ‘FILE* __stderrp’ | |
Hi i m having problem... i want to give each random number to each month.. but it gives erros [CODE] public class a { public static void main(String[] args) { float average = 0f; String[] Year = {"Jan","Feb","Mar","Apr","May","Apr"}; int[] values = new int[5]; for(int i=0; i<values.length; i++) { values[i] = … | |
I am working with a CSV file with multiple rows, which I need to be able to access individual data elements from a row so I can assign them to variables and send them to the other program I am working with in a loop, going through each individual row. … | |
Hi there, I am having a few problems with my website [url]http://antobbo.webspace.virginmedia.com/photography/testing/home.htm[/url] in IE6. Now, I don't want to waste too much time on this, as in I don't want ti to be perfect but I just want it to be looking decent in IE6. I created a separate css … | |
Meant mostly for windows, uses system("cls") although you can simply set USE_NON_STANDARD_CLS to false and it will use newlines to clear screen. Test it out. [code] /** * Note: Use at own risk, this is just for fun */ #include <algorithm> #include <iostream> #include <vector> #include <string> #include <windows.h> #include … | |
I am currently designing an application form that the user fills to use a room in a specified time. The application is to check if the room specified is available at the time period specified. I am stil wondering how to do this such that there is no clash. Any … | |
Hi, I'm trying to present results on an aspx web page where a store procedure parameter is defined by a dropdown list control on the page. To help accomplish this, I have followed [URL="http://support.microsoft.com/kb/306574"]this guide from Microsoft[/URL] and have my resultset presented in a DataGrid view. But I cannot seem … | |
Hi all, t to upload files to my server. Here i have created a coding. This only allows me to upload pictures. How can i amend my coding to upload word and excel files also... [CODE] <?php $db=mysql_connect('localhost','root',''); mysql_select_db('bank'); if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == … | |
Is it possible to add mouselistener to particular cell of a Jtable?? plz help... | |
Dear Sir/Madam/Friends, Sir, i have written code for first step of euclidean distance . now i need to merge the smallest distance points as single point. The class which i have written is using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.Collections; /// <summary> /// Summary description … | |
lets say I have a form (form1) with lables a-z which are all designed with default text "0". So they all show 0 on program startup. which is fine. I also have a dialog with 2 TextBoxes; I want my program to update the default text/value on (only)form1 labels x, … | |
Hello Friends, I want the following issue to be resolved: 1. page results.php shows the users list (sql query results). This page also stores all user_id to an array $_SESSION['user_ids']. And when I click to view details of a user, user_view.php shows the details of that user. 2. I want … ![]() |
The End.