64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for daviddoria

Is there a reason to use [code] cout << static_cast<int>(thing); [/code] instead of [code] cout << (int)thing; [/code] ? Thanks, Dave

Member Avatar for Narue
0
102
Member Avatar for toadzky

I like really clean code so I want to pull all of the common includes into a separate file and then include that single file in all my other files. Also makes it easier if I start using a new or different library cuz I only have to change it …

Member Avatar for toadzky
0
194
Member Avatar for phpNewbie

i'm still struggling with php - its soooo confusing to me this is the code i have now - is it in the wrong order? or whats missing please to make it work - i'm trying to get a result if 'both' genders are selected and if 'any' origin is …

Member Avatar for phpNewbie
0
152
Member Avatar for serkan sendur

i need to know what brand is the pocket pc that is using my website in order to show them a page accordingly. do you have any ideas?

Member Avatar for almostbob
0
119
Member Avatar for Lido98

HI I am very pleased to join this forum I am new to SQL programming , I am facing a challenge I need to copy the data from one table in one sql server to the same table in enother SQL Server From Server A table (Employee) To Server B …

Member Avatar for Lido98
0
1K
Member Avatar for losh177

Hi, i need some help, i'm stuck with a program that takes that takes 4 object, sorts them out and prints them. I'm using pointers but now i'm stuck because i cannot out see what i'm doing wrong. I have a felling that at some point i'm not passing the …

Member Avatar for losh177
0
229
Member Avatar for Icebone1000

The file gets more kB then the original ( 114KB to 914KB) And something weird: when I try open the new file with the notepad, it loads forever and i get a program not responding message when I try to close it, with the original file it loads ok.. By …

Member Avatar for nucleon
0
209
Member Avatar for eviocg

how can i pass a variable to command? ex.. [CODE] #include <iostream> using namespace std; int main(int argc, char *argv[]) { string ip cout << "Enter an ip"; cin >> ip; system("ping ip"); //// this is the problem. how do i enter the value of "ip" here? system("PAUSE"); return EXIT_SUCCESS; …

Member Avatar for eviocg
0
99
Member Avatar for Hiroshe

I just wrote a simple function to convert a number with any base into a base 10 number: [CODE=c]#include <stdio.h> #include <math.h> #include <string.h> int tobase10(int *input, int size, int base); int main() { int input[256] = {2, 2, 1, 0}; printf("%d\n", tobase10(input, 4, 3)); printf("Press any key to continue …

Member Avatar for Hiroshe
0
171
Member Avatar for serkan sendur

[CODE]Loop: LD F0, 0(R1) ;F0 - array element ADDD F4, F0, F2 ;add scalar in F2 SD 0(R1), F4 ;store result SUBI R1, R1, #8 ;decrement pointer ;8 bytes (per double) BENZ R1, Loop ;branch R1 != zero [/CODE] on DLX this looks: [CODE] Cycles Loop: LD F0, 0(R1) 1 …

Member Avatar for serkan sendur
0
73
Member Avatar for daviddoria

If I make an array like this [code] GLubyte bufImage[100][100][3]; [/code] I can pass bufImage to a function and then get the values using: [code] r = bufImage[im_x][im_y][0]; g = bufImage[im_x][im_y][1]; b = bufImage[im_x][im_y][2]; [/code] However, if I don't know Width and Height at runtime, this does not work. I …

Member Avatar for Narue
0
313
Member Avatar for serkan sendur

guys, first of all please dont post some google search results, i already did it. i need to grap mobile device information and send it to the server. the user connect to web server using pocket pc internet explorer, and then redirected to appropriate page according to its model, using …

0
72
Member Avatar for Trekker182

I went today open an existing VB project and noticed that all of my project files are missing for all of my VB programs that lets me start VB with that particular program. The only file that I'm able to open is the .sln file and that's only from inside …

0
235
Member Avatar for chebude

I am stuck with large text files which I have to merge and further work with my model. I tried to follow the previous thread in text merging [url]http://www.daniweb.com/forums/thread38625.html[/url] Here is the script which I used: [CODE= python] one = open("one.txt",'r') two = open("two.txt",'r') ofh = open("out.txt",'w') # read in …

Member Avatar for chebude
0
137
Member Avatar for yssirhc

I've stored an array in an html hidden input and now need to transfer that array to my delphi function. I've tried: [code=delphi] var fileArray : array of string; fileArray := formvar('fileArray', ''); [/code] but this gives an incompatible types error when I compile. How can I convert the string …

Member Avatar for yssirhc
0
4K
Member Avatar for monad

Hello, My intended scenario is that, there is a Button component on the visual web jsf page and someone click on the button, instantly a confirm box (javascript) is displayed. Now if the person click on the ok button of the box the form will be submitted but the form …

Member Avatar for monad
0
120
Member Avatar for csinquirer

How complicated should a program be for you to make plans for it (eg. flowcharts, drafts, etc)? When do you just jump into coding with just a vague idea of how a program is supposed to run?

Member Avatar for Narue
-1
81
Member Avatar for AbuShokry

Hello all, I'm having the following problem, I have three tables, Person, Income, Outcome Person has the primary key : ID Income has two fields : PersonID [Foreign] and IncomeAmount Outcome has two fields : PersonID [foreign] and OutcomeAmount I need to make a query that gets the summation of …

Member Avatar for AbuShokry
0
147
Member Avatar for aman_dba

hi friends I am new to SQL SERVER I am using sql server 2005 enterprise for server and express for client m/cs. Having issue while connecting from client to server. i have read some tutorials on net. while connecting to server from my client machine, i usually get error: 18452. …

Member Avatar for aman_dba
0
179
Member Avatar for billgone

Can anyone please help me make a program that does following: i enter first string then i enter the second string i.e. first string: "abcxyzefg" second string:"xyze" and the program should the write a new string without the second string in the first one i.e "abcfg" thank you

Member Avatar for Mazzin
0
81
Member Avatar for bharatshivram

hi, i have 3 cols in my db col 1 ( unique identifier ) col2 ( varchar ) col 3 ( integer ) how can i retrive the 3 greatest values from the database on the basis of col 3..

Member Avatar for bharatshivram
0
128
Member Avatar for PinoyDev

good day! I want to pass the value that contains tha table name and load its data.But my sql turns error.Below is my code. [code=vb] Combo2.Text = "first_year" sql = "select * from " & Combo2.Text & "'" rs.Open sql, conn, adOpenKeyset, adLockOptimistic, adCmdText [/code] Im using mysql as backend …

Member Avatar for PinoyDev
0
76
Member Avatar for serkan sendur

guys when i try to run this code on pc it is fine but it doesnt work on pocket pc : [CODE]<HTML> <HEAD> <TITLE></TITLE> </HEAD> <style> .Field {color: black; border: 1px solid #FFFFFF; background-color: #FFCC00;} .Find {color:blue; font: 10px Arial;} </style> <script> var Fo =new ActiveXObject("Scripting.FileSystemObject"); var StrOut = new …

0
78
Member Avatar for siddhant3s

Well, first of all I will speak much so that you guys can target my problem better. Hello, I am a poster from the C++ forum. Hence, I am a well established C++ programmer. Now I want to learn Python. First of all, should I? I mean, keeping in mind …

Member Avatar for sneekula
0
773
Member Avatar for serkan sendur

hi guys, by default microsoft pocket internet explorer does not display javascript errors to do that, you need to add a registry key : [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main] "ShowScriptErrors"=dword:00000001 to edit windows mobile registry you can download this software from the following address( i used this software to edit mine, it is …

0
85
Member Avatar for serkan sendur

hi guys, i need to know what should i type to my browser to access apache/tomcat webservers root web folder. there should be some config files that i could see. help please thanks.

Member Avatar for nav33n
0
60
Member Avatar for serkan sendur

guys i am creating a mobile web application, i dont know how should i incorporate some javascript functionality without passing its limited javascript support, it doesnt support dhtml for example, is there any documentation for that?

0
246
Member Avatar for rEhSi_123

Hello, Basically I am creating a Forum system and I want to add a feature in which the the 'admin' of the forum can delete the topic created inside the forum. I know I would need the following sql statement: [code=php] $sql = "DELETE FROM `forum_topics` WHERE `id`='".$id."'; [/code] Currently …

Member Avatar for rEhSi_123
0
246
Member Avatar for veledrom

Hi, Can i use sleep() for 1 hour? I mean is there any expiry time for it or browser or session so on. Purpose is to send 2000 emails every one hour. Thanks

Member Avatar for digital-ether
0
198
Member Avatar for killhha

i am trying to use an if statement which will say some thing if points is greater than or equal to 15 AND less than 20. like this: [code] if points >= 15 and < 20 then writeln('Nice!'); [/code] but this code doesnt work. how would i do it?

Member Avatar for FlamingClaw
0
157
Member Avatar for Grn Xtrm

Hello. I'm working on a class hierarchy that starts with an abstract class called GeometricObject. I want to use this class to create classes of different types of triangles. I want to these classes to inherit the perimeter method from the Triangle class. Here's what I have so far. abstract …

Member Avatar for Grn Xtrm
0
914
Member Avatar for erik09

Hi! I'm a third year BS Computer Science student and we're now on the process of proposing a topic for our thesis next semester. I'm thinking of proposing an Improved Image stitching algorithm, but i don't know where to start. I only have basic programming knowledge, and I'm not that …

Member Avatar for erik09
0
102
Member Avatar for rjrasmussen

Hi there, Although I wouldn't consider myself a noob, I am still learning about the many facets of PHP. I have encountered a need to write an if statement that will generate an error if the specific criteria are not met. Here's the deal... There are four fields that a …

Member Avatar for nav33n
0
81
Member Avatar for GDICommander

I need help with the code below. At root->removeChild(nodeToRemove), I have a NOT_FOUND_ERR code. It is not supposed to return this code, because I look in the DOM Tree with IsInDocument. Can someone tell me what's wrong with this code. I'm becoming blind with this code. [CODE] DOMNode* nodeToRemove; if …

Member Avatar for GDICommander
0
165
Member Avatar for LindseyV

Hi there. I am writing a program in Access 2003 and I trying to update a forum with new strings. To explain better. The forum window is already up and I hit a button to process a command. Now I need the fields in the forum to update without saving …

Member Avatar for LindseyV
0
75
Member Avatar for cubekid

I am using OWC 11 in my new web application for displaying charts. Is it possible in OWC 11 to combine and display a column and a line graph (Looking like they overlap each other)? I tried it using this code but it doesn' t work. [code] int width = …

Member Avatar for haragin
0
256
Member Avatar for dev_kc

I have been asked to use data grid in my proj,bt i dnt knw hw to use this,please help... On click of search btn,the data should be displayed in the grid and textbox,I know how to display in the text box,but dnt knw anything abt this grid........ PLEASE HELP:S

Member Avatar for arvin2006
0
76
Member Avatar for kavithakesav

Hi Everybody, I need some hlep for my website. Whenever i will open my website one pop is required. Can anyone tell me how to do.... please. Thanks in Advance. KavithaKesav

Member Avatar for kavithakesav
0
242
Member Avatar for tendolm

I want to apply heat on a tube surface (3D). The heat is to be applied on a straight line on the tube. The equation of line is x= 87.5 y = 126.1620 + (-1*1004.0820) z= 166.1620 + (-1*-1004.0880) Since x is constant is given asposition holder, real x[ND_ND]; For …

Member Avatar for tendolm
0
308
Member Avatar for karthik.c

hi guys im trying to write a makefile which contains :two cpp files and two header files. now i've put cppfiles in a folder called source whose path is: /root/workspace/source and header files in a folder called header whose path is: /root/workspace/makedemo/header my makefile is in the path:/root/workspace/makedemo my makefile …

Member Avatar for karthik.c
0
156
Member Avatar for Shanti C

Hello.. I want to compare my database date with current system date and i can do some oprations by that.. Wating ... Shanti

Member Avatar for Shanti C
0
157
Member Avatar for spec80

Hi, I have a couple of classes and I am trying to do the following: I have a main class that contains a boolean value called "display" that displays various messages throughout the class depending on true/false values. Main class example: [CODE]public static void main (String[] args) { boolean display; …

Member Avatar for spec80
0
1K
Member Avatar for azStudent

Why would I get a Segmentation Fault error? It compiles fine with g++, but gives an error when it runs. [code] void blowUp(char *board, int *boardSkin, int row, int column) { //set the board's 'skin' to 1, (meaning it will be displayed) *(boardSkin +(row * columns) + column) = 1; …

Member Avatar for azStudent
0
143
Member Avatar for Avaviel

Here is the [url=http://dl.getdropbox.com/u/297962/Lab7.zip]whole project[/url], in a zip file. I'm having trouble getting the delete function to work. I can delete head just fine, but when I try to delete either something at the end, or something in the middle, it does not work out. I'm sure it has something …

Member Avatar for Avaviel
0
114
Member Avatar for thacravedawg

I am trying to make an application that sorts a database with user input and returns a form. This form then accepts some user input, and then needs to be sorted in another event. I am using ado.net, and am attempting to complete this task by cloning a dataset and …

Member Avatar for thacravedawg
0
120
Member Avatar for mps727

I'm having trouble compiling my servlet, because it says the servlet classes can't be found. [code] CreateAccount.java:2: package javax.servlet does not exist import javax.servlet.*; ^ [/code] I googled a bunch and most people with this problem had their CLASSPATH set incorrectly. Here is the result when I echo my classpath: …

Member Avatar for mps727
1
139
Member Avatar for crazynp

Hi,Will anyone plz suggest me on how to build a html file from rss feed and store it in a webserver or is it possible to make and store html file from the contents of mysql database using php and then store the html file in the webserver. Thanks in …

Member Avatar for alan_ot
0
394
Member Avatar for slik33

So I made all the functions for a project where I was supposed to take input from the user through a menu and make an array and do various things with it. Two things I couldnt figure out were how to Lock and unlock the array, and then I also …

Member Avatar for Narue
0
124
Member Avatar for konczuras

Hello Everybody! I've the following issue, and just cannot figure it out myself: I've a button, which's width and height can be set by numericupdowns. To prevent the button's text truncating, I've also set the minimumvalues, like this: [CODE]NumericUpDownWidth.Minimum = Convert.ToInt32(Button1.Width); NumericUpDownWidth.Value= Convert.ToInt32(Button1.Width); NumericUpDownHeight.Minimum = Convert.ToInt32(Button1.Height); NumericUpDownHeight.Value= Convert.ToInt32(Button1.Height);[/CODE] The one …

Member Avatar for ddanbe
0
135
Member Avatar for FREEZX

I need to make a program that will extract numbers from a file sorted like bowling cones, like this: 1 2 5 2 2 7 1 6 4 8 2 9 4 7 3 and than calculate the maximum a bowler can score if the ball can go down on …

Member Avatar for FREEZX
0
112

The End.