199,114 Archived Topics
Remove Filter ![]() | |
please i need help here after successfully deploying and i tried to test the web app but the server displays this error and i dont know what the problem might be.. HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented … | |
Hi there, I'm trying to connect to a PostGIS database (which is basically an enriched PostgreSQL database) and I'm having trouble with the [I]INSERT[/I] statement. Here's my code: [code=python] import psycopg2 try: conn = psycopg2.connect("dbname='postgis' user='fdi' host='localhost' password='fdi'"); print "Database connection established" except: print "Critical Error: Unable to connect to … | |
please tell me how to compute the maclaurin series sinx=x-x^3/3!+x^5/5!-x^7/7!..... I written below coding but i know it will not give correct output. can anyone help me to compute the series [code] #include<stdio.h> #include<math.h> Printf("Enter the n value"); scanf("%d", &n); main() { float x,i; float value,sinx; printf("Enter the x value"); … | |
I've been trying to find time to learn Assembly through the HIDE HLA IDE, but I am completely ignorant when it comes to Assembly. I do not know if my code will be portable when I start learning it. Do other Assembly languages conform to the same standards, or is … | |
Hi, I would like to pass on a parameter from VB6 for the date.value from datepicker. Pl help me how to convert date.value into string as the parameter I have created in Crystal Report is string type. The parameter name in Crystal Report is chdate. I wrote the code as … | |
Please help the question appears below and my so-called attempt appears after that as you can see I am relatively new to java, I only manage to do the sum part. Write a script that takes three integers from the user and displays the sum. average, product, smallest and largest … | |
hi i want to know that if i want to include the results from internet how can do it by using a port in c++ | |
I use VC++ 6.0 1) This small program simply reads infomation from file “in.txt” and write it in file “out.txt”. (copy contents from this file to another) 2) It doesn’t work. The compiler issues an execution-time error. And the ouput text file “out.txt” is empty. 3) I don’t know why … | |
Hello All, This is my first post here but after reading and trying for a couple of days now i figured i might just ask whether what i'm trying to do is possible.......... I have written the code below to check for changes in fields and i want to update … | |
hello Friends, can any one give me the link for free downlable .NET projects Please provide me Thanks in advance Rakesh Nagekar | |
I've searched all contents of Daiweb and found similar topics but not exactly good on me. I'm trying to build a activex DLL without any form. This DLL will be used by others as a function library about a specific purpose for "color matching". I wish to declare an array … | |
Hello All, I came across with the following case and I would like to share it with you to get your opinions about. In vb.net I use data from tables (oracle db) and i want to check two columns. Both columns have name of customers. All I want is to … | |
ImageIO.read does not work for jpgs in cmyk trying to find a method to read it been searching on google but found lot of different results. Maybe one of you know a easy method to do this. | |
hi, i want to select from more than two table using a single mysql query.please tell me a example query/. thanks in advance | |
Hi, I want to create a form for retoprt section in my VB6 project. What do i add into my form and from where? Thanks | |
i have an question... this is my text file data [COLOR="Red"]1234567,08072008,2 8767768,08072008,4 9988776,08072008,6 7891234,09072008,8 4567891,10072008,1 5213789,11072008,2 7854123,11072008,3 4561237,14072008,1 7879145,15072008,2 5218510,16072008,8[/COLOR] i would like to separate it to 3 part. this code izit correct? [COLOR="Green"]Dim a(50) As String Dim c(50) As String Dim ProductID(50) As String Dim i As Integer i … | |
Hi there I'd like to have a script run automatically each day that removes a day from a table with a column called "day" but only if an entire day has passed since the entry of the relevant row. Can someone perhaps suggest the best way of doing this? | |
Read line by line from data2.txt, compare with data1.txt lines, if match , remove , else append to a new file (result.txt) . mathces are exact string matches, both are text files. And i also need to make the directory of the file to be user input, so this program … | |
[code][COLOR="Green"]Public cnName As Connection Public rsId As Recordset Private Sub cmdImport_Click() Dim a(50) As String Dim ProductID(50) As String Dim i As Integer i = 0 cdbOpenFile.Filter = "Text Files (*.txt)|*.txt| " 'Specify default file name to open cdbOpenFile.FileName = "" ' Specify default filter to *.txt cdbOpenFile.FilterIndex = 1 … | |
For my assignment i need to turn a Hilbert Curve with recursion into a Moore Curve using recursion. We are using GLUT to draw the lines to the screen. I can see the pattern i need to use with the recursion but im not sure if i need to change … | |
Hi all. I have this assignment to show a panel to allow users to dynamically alter FlowLayout manager parameters. It doesnt look that pretty, but functionally it is working for the most part. I have most of it up and running, but I simply cannot get the JComboBox working. I … | |
hi all, i need a code for date comparision,my requirement is first we have to enter start date and when we enter end date it should check whether the date is greater than the start date or not if it is greater only it should alow otherwise it shoud alert........ … | |
how do i access the database? i am using dreamweaver as my design interface. and using php for script / coding. thanku. | |
I am having a problem when i compile a program. What happens is that i would compile program, run it, see a problem, fix it, then try to compile it again and i get LINK : fatal error LNK1168: cannot open C:\Documents and Settings\Eric 22\Desktop\Exercises\celsFahr\Debug\celsFahr.exe(example file) for writing. I don't … | |
Alright so after many people asking me to post the login script I use for my site at [URL=http://www.locatestyle.com]locatestyle.com[/URL], I made two functions. Now these functions do not include everything that is used for the login procedure on [URL=http://www.locatestyle.com]locatestyle.com[/URL] due to the fact I don't want everyone to know how … | |
Hellp all! Hoping to make new friends here: Anyways, I am new to C++ and to programming. I just started reading the book "Problem Solving with C++, 7th ed." by Walter Savitch. I am already having problems. One of the programs I am trying to figure out (not in the … | |
Hi, it's me again with another question. Here is the thing. I have a small game - a picture is shown and you should type the name of the person that's on the picture. Then you have a "check" button which when clicked checks if the answer is correct or … | |
I am trying to print a two-dimensional array to the screen. My algorithm probably isn't correct but I am having trouble even getting the process to work. on the call I get ----error A2206: missing operator in expression This line add ebx,tmpRowSize * rowIndex I get ------error A2026: constant expected … | |
when you are writing a program and you get an errer do you have to start all over again or is it ok to go on. i am just writing some of the programs that are on this site in the sticky's i am writing them in the command line … ![]() | |
Hey, basically im trying to create a Kill/Death ratio program where the user types x number of kills and y number of deaths and this creates an answer for ratio " :1" for example " how many kills ? 3388 " "How many deaths? 1237" "Your ratio is 12.129:1" the … | |
Hi, I need to get the output of a program called with the system() function. How would I do this? | |
This may be a simple answer, but after self teaching myself on vectors for a few hours of I haven't been able to find the answer. I'm using class objects in a vector, and trying to complete the delete functionality according to a class variable. [code=c++] #Identify BUFFER 8 class … | |
Hey, I am currently reading "Accelerated C++" (Page 100, not far) and I'm starting to get a bit confused... In console application mode for VC++ (MSVC), the code in the book works fine and everything is fine and dandy. The code looks the same as the book and it's not … | |
Hello Friends, I am learning Perl now. I have a small query. I have a directory Z with file name Z.txt. I would like to copy this file Z.txt to 3 new dir with new filenames as follows dir 1 1.txt dir 2 2.txt dir 3 3.txt I would like … | |
Im sorry if my game code is long, but, the save feature wont work. Their are no errors, but when I load the game and buy weapons the stats are correct, but when I save and load It the stats are not there. Can you please help me? Yes I … | |
hi! ive compiled a program that gives me this error: (88) : error C2296: '%' : illegal, left operand has type 'float' (94) : error C2296: '%' : illegal, left operand has type 'float' (100) : error C2296: '%' : illegal, left operand has type 'float' thing is that i … | |
Write the pseudocode for a program that uses a single while loop to print the numbers from 20 to 25 and from 40 to 45. your loop will have at least one nested "if" statement that will determine when the numbers should be printed. [code]If X >= 20 Then If … | |
I know How to Delete a Textfile , I even know how to write the temp string data into a TextFile. But i do noy know how to delete from String array,into which i read all the data of the file. Mine Code is as under,Plz help me out. I … | |
I am a student new to VB I am currently in the second year of my degree I have encoutered VB before but on my first attempt I failed the module Currently there is no lecturer willing to take on VB full time and the part time teachers are too … | |
Is there something special i need to do to get this to work? I made a script that builds a neat little table with pictures from the sql database, and want it to go into an iframe. When i run the code I get this: (screenshot) [url]http://www.freewebs.com/xylude/helpme.jpg[/url] It just shows … | |
I am trying to create a 2d array in my program that can hold CStrings. I need to be able to add my CString to any row and column in the array(not just at the end) and I need it to be able to grow in size. Does anyone know … | |
hi guys, this is my first post here. may be my question sound very silly and stupid to you....apology for that. can anyone plz provide me the above algorithm : 1. c++ algorithm for finding the i th smallest element from a binary heap . 2. c++ algorithm to find … | |
Hi All, I'm having a weird problem. I'm trying to do division like this: [CODE]vector = timeStamp / 12800.0;[/CODE] where vector is a double and timeStamp is an int. The answer that I get is a double, however it's only to 2 places of precision. For instance 28521602 / 12800 … | |
![]() | I am writing a 3D graphics program to read and display *.stl files. These are stereo lithography files generated by 3DMax. Any idea how to do that? This file format consists of data as in following format: ********************************************* solid Object01 facet normal -9.999635e-001 -7.604078e-008 -8.545205e-003 outer loop vertex 1.033284e+001 2.616666e+002 … |
Hi :) I am fairly new to programming and am trying to error check the user input. I stumbled upon the 'isalpha' etc functions and so my plan is to loop through the array checking everything is a number or (the one) decimal point. However I am using getline for … | |
I am attempting to use a queue. I am doing it just like an example i read. I am doing a vs2005 form applicaiton. [CODE]#pragma once #include <queue> public ref class DataSource { public: DataSource(void); void DSInitilize(void); char* getNextElement(void); System::Void setNextElement(char* value); private: queue<char> MessageQueue; };[/CODE] It is not finding … | |
Ok here is what I got so far. When you type add, it asks what object would you like to add When you type list, it lists those objects When you type exit, you leave the program What I would like to do is create a search function where I … | |
Hi, Why a database with two words separated by a space causes problem to a bcp command like below : EXEC xp_cmdshell 'bcp [History Data].dbo.InventoryValuation_FP102008" out D:\test.txt -q -T -c' Do you guys met with the same problem before? If yes, how to solve it. Many thanks. | |
int a = 10; int* b = &a; int c = 4; int* d = &c; (*d)++; d = b; *d = c - *b; cout << a << " " << c; Output 5 -5 I am having difficulties understanding pointers, like I know that *something means the value … | |
Hi again, It's me, the C++ fatal n00b :( I was wondering about something. I just completed a program in Visual C++ 2008, and I need some way of the user installing it with Windows Installer. (I need a setup file that's able to install into program files, add desktop … |
The End.