199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aparnesh

My project needs to read records from a CSV file. The file contains 3 columns of data. Record is continuously being appended to the file by another application (about once every 6-8 seconds), and my application is to read the records and store the new ones. I am currently opening …

Member Avatar for vb5prgrmr
0
130
Member Avatar for TheBeast32

Hi, I'm reading the header from bitmaps. When I add up everything in a struct I've made, it comes out to 54 bytes. When I do a sizeof(BHeader), it says it's 56 bytes. It adds two null bytes after the B and the M when I save a header to …

Member Avatar for TheBeast32
0
104
Member Avatar for arunmozhi

in asp.net how to show the girdview with header, when the datasource=null, i have used gridview.EmptyDataText="Some Text" but i need to show the grid with the header any one plz help me..

Member Avatar for serkan sendur
0
170
Member Avatar for rebsysue

Hi. I am just learning javascript and am making a website for my friend's photography. I've got a working slide show now where you can click next or previous to display image after image in sequence. I followed this tutorial: [url]http://www.webmonkey.com/tutorial/Make_a_JavaScript_Slideshow[/url] Now I would like to also display a caption …

Member Avatar for cubekid
0
79
Member Avatar for olgratefuldead

I have the following in a dat file: Obe 20 12 15 20 -1 Twitter 16 12 18 19 -1 Karah 30 15 12 3 30 -1 Cappy 12 12 13 15 14 -1 Monkey 17 16 15 14 14 -1 I am trying to write a Java program to …

Member Avatar for olgratefuldead
0
197
Member Avatar for Mossiah

[ICODE] #include "stdafx.h" #include <iostream> #include <iomanip> #include <string> using namespace std; char your_string[256]; char new_string[256]; void ReverseString(); int main() { cin.getline(your_string, 256); ReverseString(); cout << new_string << "\n"; return 0; } void ReverseString() { int x = strlen(your_string)-1; for(int y = x; y >= 0; y--) { new_string[x-y] = …

Member Avatar for William Hemsworth
0
74
Member Avatar for Mossiah

[ICODE] #include "stdafx.h" #include <iostream> #include <iomanip> #include <string> using namespace std; // prototype declarations void concatString(char szTarget[], char szSource[]); int main (int nArg, char* pszArgs[]) { //read the first string char szString1[256]; cout << "Enter string #1: "; cin.getline(szString1, 128); //now get the second string char szString2[128]; cout << …

Member Avatar for siddhant3s
0
84
Member Avatar for eck3ko

Hi everybody i really need your help, this is my problem: I have a c++ dll that use MFC, i need to use it in a c# project I need to end with another dll that to use it in the c# project I just cant find solution all over …

Member Avatar for eck3ko
0
172
Member Avatar for MrPickle

I want to store several structs in a vector, but the struct has a template so I get a compile error, how can I store the structs in the vector? Example: [code]template<class First, class Second> struct foo { First f; Second s; }; std::vector<foo> bar; //error! [/code]

Member Avatar for StuXYZ
0
99
Member Avatar for pash

Hi everyone!!!, am new to web services and trying to write a web method which accepts and return and array of int. Am using a c# client to consume it, when i call the web method in the client i get an error saying "can not convert int[] to int?[]". …

Member Avatar for pash
0
71
Member Avatar for freddan007

Is it possible to get the return value of a function started with the CreateThread function or is the only way I can get a value from it to use global variables? I searched but i found nothing. Thanks.

Member Avatar for freddan007
0
526
Member Avatar for naekur

Hi there! I'm having a very odd problem with mysql_fetch_array my code looks like this: [code] function getMachines($domain){ if (! is_resource ( $this->connection )) { return false; } else { if (get_magic_quotes_gpc ()) { $domain = stripslashes ( $domain ); } $query = sprintf ( "select machines from `domains`.`%s`", $this->escape …

Member Avatar for nav33n
0
165
Member Avatar for emiola

Despite the fact that my script runs perfectly well on the server, it fails to submit form data into mysql database. Kindly look into this for me. see code below: [code=php]<?php> $dbcnx = mysql_connect("localhost","user_name","password"); if (!$dbcnx){ exit('<p>Unable to connect to the database</p>'); } If (isset($_POST['submit'])) { $SchoolName = $_POST['SchoolName']; $SchoolEmail …

Member Avatar for nav33n
0
243
Member Avatar for Alibeg

I ve just installed ubuntu intrepid ibex (8.10.) on my laptop i have been using it for a while already but i just wanted to clear the system completely so i installed it, put some updates, some programs, but i also installed CodeBlocks using synaptic manager. Everything finished smoothly. Now, …

Member Avatar for Alibeg
0
621
Member Avatar for scru
Member Avatar for leegeorg07
0
156
Member Avatar for Pikachumanson

I have a hero sprite which I have implemented in in my game. He walks around in a grass field. Unfortunately, he is surrounded by a white border that is also in the btmap(or JPG in this case). Any idea on how I can get my program to differentiate the …

Member Avatar for Pikachumanson
0
114
Member Avatar for h3llpunk

Hi, Ive started on doing some animations in win32 but i cant seem to know how to set the starting position without messing up the movement. Also all my animations are flickering. this is my code so far exluding the intializing, windows creations and such. [code=c++] typedef struct _REDINFO { …

Member Avatar for h3llpunk
0
81
Member Avatar for db11

I have two questions, the first of which is simple but I can't think of what the answer is: <code deleted and saved as attachment> lol sorry... I get the following complier error: <errors deleted and saved as attachment> why is 'string' undeclared? Where do I declare it? It is …

Member Avatar for db11
0
248
Member Avatar for dottomm

Hello, thanks in advance to anyone who can help me with this query. What I am trying to do is to retreieve a list of all the users from the table 'users' and count how many posts the user has made. The code below will shows a list of users …

Member Avatar for dickersonka
0
457
Member Avatar for phuynh77

Hi All, I plan to have a website that has database connect to it. On my database, I want to display vietnamese characters (Input and output). How can I add vietnamese collation on my MS SQL Server 2005 developer edition? I am looking forward your help. Thanks.

Member Avatar for dickersonka
0
357
Member Avatar for veledrom

Hi, I use PHP Swift mailer to send around 2000 emails in one go. I just wonder if there is a chance to find out: Who have received? Who have not received? Any idea? Thanks

Member Avatar for veledrom
0
1K
Member Avatar for saphira

Hello guys, i'm trying to write a menu for a C program that should implement a bank system but i'm having problems with my code... I have tried to follow the example that my tutor gave on her lecture presentation, but to be honest i don't think i'm on the …

Member Avatar for Salem
0
4K
Member Avatar for LindseyV

Hi there. I am writing a program for work and for one of the parts I need to open up an outlook email account and parse through the new message bodies for specific information. After I get the information I need, I need to put it in a datbase. I …

0
66
Member Avatar for deerowbear

I am trying to update a jlabel, but the label is not updating. Thanks for any help. Daniel [CODE]package converter; import java.io.*; import java.awt.*; import java.awt.event.*; import java.util.ArrayList; import java.util.Iterator; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.*; import javax.swing.filechooser.FileFilter; public class modelConverter extends JFrame implements ActionListener, ItemListener { // Data panel …

Member Avatar for deerowbear
0
116
Member Avatar for aarti_gehani
Member Avatar for nucleon
0
74
Member Avatar for greg022549

is there anyone that can look at my small program and tell me what I am doing wrong? If I submit it to you? I am trying to learn C++ and I am a newbie. Here is my zipped file

Member Avatar for siddhant3s
0
87
Member Avatar for 94SupraTT
Member Avatar for manal

hi every one . does any one know how to insert checkbox in datagrid so user can select row and how to know which rows selected

Member Avatar for manal
0
170
Member Avatar for homeryansta

I have a linked list of operators ()+-*/ , how would I be able to compare them if they are all of type char? I looked at the ascii table, but they are all out of order so that isn't a choice.

Member Avatar for homeryansta
0
117
Member Avatar for aarti_gehani

hi... i actually want to read the raw file(CR2 file) of jpeg image using turbo C... i m confused regarding the lib to be used and variable initialization i.e. do i need to define structure or array having pixel size... plz help its urgent...

Member Avatar for Ancient Dragon
0
125
Member Avatar for Necrolis

well, after hours apon hours of serching for this, i've come up with nothing but a few sources for some plugins[from thecodeproject.com], which don't cover what I need: Basically writing to the currently active (source) file(at the position of the cursor/caret), like so(highly simplified) [code=cplusplus] fprintf(pOpenDocument,"/*\n\tTime: %s\n\tDate: %s\n\tAuther: %s\n\tReason & …

Member Avatar for Necrolis
0
166
Member Avatar for k2k

hi , i am pretty new to perl and I have a quick question. below the code won't work unless fileName is under the same directory. would any one please give a quick reference in how to specify the full address of the file? such as /home/myName/fileName [code] #!/usr/bin/perl cat …

Member Avatar for k2k
0
77
Member Avatar for lukechris

Hi, I am currently writing a program which will take a document: [ICODE] <?xml version="1.0" encoding="utf-8"?> <MenuItem version="1.0"> <item_text> <TEXT default_lang="en" str="NAME" /> ( language/ text string) </item_text> <item_help> <TEXT default_lang="en" str="DESCRIPTION" /> (help menu/language/ description) </item_help> <item_icon> <LEFT str="IMAGE" /> (image) </item_icon> <item_action> <ACTION type="Internal" str="Positioning_Maps_Id"/> (internal,external/????) </item_action> </MenuItem>[/ICODE] …

Member Avatar for lukechris
0
128
Member Avatar for Mazor

In Linux the output is printed correctly, with 'lines2' having the same value as 'lines' minus 1, but in windows the value of 'lines2' and is always printed as -2. The source code is solely for testing purposes, hence the messy code with no for loops, bad variable names etc. …

Member Avatar for Mazor
0
99
Member Avatar for dlacloche

This is boggling my mind right now. Here's what a client wants: On the index page, there is an iframe with links inside it. When you click on a link, it opens the page (not in the iframe, but in the top level) and sends a url string variable. This …

Member Avatar for dlacloche
0
137
Member Avatar for Q8iEnG

Hi guys :) I have small question of course I don't want to ask for solving my homework, no i'll work on it on my own. I just need some tips :) please. I want to make a program that calculate these function: F1 = 1; F2 = 2*lgn + …

Member Avatar for Q8iEnG
0
143
Member Avatar for hellIon

i am using pelles c y am i getting these errors ? something wrong wid the winbase header file?? if yes then can u tell me from where should i download another one [code] #include<windows.h> main() { WinExec ("C:\\Windows\\Notepad.exe"); } [/code] C:\Program Files\PellesC\Include\Win\basetsd.h(17): error #2001: Syntax error: expected ';' but …

Member Avatar for Ancient Dragon
0
394
Member Avatar for mimis

I am trying to solve an algorithmic problem. First of all the user inputs the coordinates of some nodes. I have to go to the node with the biggest x( let name it E) and then to return to the start that will always be the node (0,0)( let name …

Member Avatar for mimis
0
371
Member Avatar for tazjaime

Hi to all... I've just join and found this amazing website/forum today which is very helpful. So here's the problem.. I need to find the factorial of an input number, I have a slight problem with my script, when i enter a value which is 11 upwards it doesn't print …

Member Avatar for JamesCherrill
0
202
Member Avatar for veledrom

Hi, I use login screen in my php page withoutp HTTPS. HTTP only. I use SHA1 for password encription. What do you suggest me to do for best security practise when i check username and password from database for login process? Thanks

Member Avatar for mschroeder
0
88
Member Avatar for eigile

hi all:'( i am a newbie want to know how to get values from two tables in database. I have three tables one is the student information and the other table is the subject and grades .Both tables have id number which may join them together But what i need …

Member Avatar for javmedia
0
215
Member Avatar for arnaud257

Hi, Using dreamweaver / webassist extension / Apache 2.0.59, MySQL 5.0.41, PHP 5.2.6 on a mac: After selecting my criteria on my search page I go to a result page where I display several information from my database. I have 10 results per page and each result has field displaying …

Member Avatar for arnaud257
0
195
Member Avatar for ZeRo 00

Hiiee der..guyss i wud be gratefull if some1 can help me to sort this bit of my programme. In the shell that i am writing I need to use cd command...(move around the path specified ..das wat i think it does in linux) I have no idea how to get …

Member Avatar for Ancient Dragon
0
84
Member Avatar for MK12

Ok, so I have a project that I've written in Python(Actually it's not done yet), its the card game "Cheat" that you play in the command prompt with (until I learn wxPython -- GUI for Python) with computer players (or other people with you). I want to distribute it later, …

Member Avatar for MK12
0
172
Member Avatar for khr2003

hi I have a table in my database that look like this: id - name - orderno the table has data in the fields of id and name but orderno is empty. I made a html form based on the data of this field, in front of each name field …

Member Avatar for nav33n
0
92
Member Avatar for JP Romano

Does anybody know of a way to rename the contents of a zip file when they're extracted? I have a program which grabs zipped files from an outlook account, gives them a unique name, saves them to a network repository, then extracts the contents to a sub folder in that …

Member Avatar for vb5prgrmr
0
163
Member Avatar for ryan311

how can i save a data in listview1? i have a problem to my code heres my code [code] Dim objNewListItem As ListItem Set rs = New ADODB.Recordset rs.Open "Select * from Supplier", cn, adOpenKeyset, adLockPessimistic rs.MoveFirst Do While Not rs.EOF Set objNewListItem = lvwCustomer.ListItems.Add(, , rs.Fields("scode")) objNewListItem.SubItems(mlng_Supp_Name) = rs.Fields("sname") …

Member Avatar for ryan311
0
100
Member Avatar for Aradon

Hi, i'm trying to use the divviewer image viewer as found here - [url]http://www.javascriptkit.com/script/script2/divviewer.shtml[/url] but i cant seem to get it to work properly, as seen here - [url]www.ryanscarry.com/port_digiart/photo_retouch/models/rebecca_burgess/Copy_of_portfolio_photo_rebeccaburgess.htm[/url] any ideas please? Thanks

Member Avatar for Aradon
0
84
Member Avatar for XpL0d3r

I have an assignment where I need to create an inventory program where I can add information about a product to a text file, and shown in the file like shown: 1;Hammer;20;13.50 Where 1 is the record number, Hammer is the description, 20 is the quantity, and 13.50 is the …

Member Avatar for DemonGal711
0
124
Member Avatar for countyman

Im am trying to write a Java program with a system class called:PayScale. 1. It needs to prompt user for "Hours worked" and "Pay rate" 2. Determine if there is overtime 3. Calculate overtime at "time and 1/2" 4. Calculate regular pay It must then print out: 1. Total hours …

Member Avatar for countyman
0
283

The End.