132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cwarn23

Hi, I'm looking for an open source c++ compiler to embed into an ide project I'm working on. I'm using Visual C++ express 2008 and would like to know what you's recommend as I have heard of gcc and MinGW but don't know what is best and EASIEST as they …

Software Development c++ ide open-source
Member Avatar for cwarn23
0
379
Member Avatar for rmlopes

Hi all, I am new to threads in c++, and I must use the pthread library. The documentation is easy to understand, but there is a more general aspect that I am missing. My question is: Is it possible to give a pointer to an object's function as argument to …

Software Development c++
Member Avatar for rmlopes
0
118
Member Avatar for sravan953

I have some code here: [CODE]import urllib import subprocess import time open_site=urllib.urlopen("http://www.freewebs.com/sravan953/command_python.html") read_site=open_site.read() site_list=[] for a in read_site: if a=='<': break elif a!='<': site_list.append(a) site_list.remove('\n') site_list.remove('\n') site_list.remove('\r') for a in site_list: site_string=''.join(site_list) def run_program(): current=time.asctime() print 'Runnning program'+' ['+current+']' subprocess.call(site_string) def check_argument(): current=time.asctime() if str=='': print 'No command given'+' ['+current+']' …

Software Development python
Member Avatar for Stefano Mtangoo
0
134
Member Avatar for saalvi

Problem Statement: Writing and Reading student data in a file. Detailed Description: Write a program in which you have to: 1) Create a text file "Student_info". 2) Using Code Write the following data in it: Roll NO Student Name Class 101 Ali Raza BS(CS) 102 Usman MS(CS) 103 Faizan BS(CS) …

Software Development c++
Member Avatar for siddhant3s
0
174
Member Avatar for newToC

Hello everyone. I am new to C++ and, I guess trying to pool task that is to advanced. I have a MDI application written in PowerBuilder. One of the child windows in that application has MultiTab control with several tabs on it. What I’m trying to do is to add …

Software Development c++
Member Avatar for newToC
0
172
Member Avatar for Shraddha Kiran

hey people i wud really really appreciate a hand here ohk dis is my task i have been given a bunch of urls to webpages containing blog posts i need to extract the authorname,date,content of blogpost and meta data and put it into a database. Here is wat i thought …

Software Development html-css python
Member Avatar for Shraddha Kiran
0
157
Member Avatar for vishalag

Hi I am using eclipse under ubuntu for my work. I am calling a function with specified arguments. It builds correctly but while debugging it stops at the call giving the error as "no source available for function()" [code] int f1(a1,a2){ //some description here } int main (){ //call f1 …

Software Development c++ ubuntu
Member Avatar for vishalag
0
414
Member Avatar for elisgugu

Hello! I am using BCB and I really need a help! I have to fetch the value from each row in a table and I know I have to add a loop,but when I read the buffer-it takes only the firs value in the firs row in the field and …

Software Development c++
Member Avatar for elisgugu
0
148
Member Avatar for Zay

[ICODE]#include <iostream.h> main() { int n, k = 5; n = (100 % k ? k + 1 : k - 1); cout << "n = " << n << " k = " << k << endl; return 0; } [/ICODE] How the value of n become "4" ? …

Software Development c++
Member Avatar for kvprajapati
0
1K
Member Avatar for alsoumhi

Hi all , I have decided to use java applets and java servlets regarding creating a form.(because I don't know other langauages except java) guys the scenario is like this , visitors will enter to website, surfing it and then they will enter to feedback form , they have to …

Software Development client-server java
Member Avatar for kvprajapati
0
106
Member Avatar for krishnampkkm

[CODE]string source; char *src = (char*)(source.c_str()); LPCWSTR lpszsrc = (LPCWSTR)src; Handle h= CreateFile(lpszsrc,.........); if(h==INVALID_HANDLE) printf("Error occured") return 0; [/CODE] [B]The above code segment always shows invalid file handle.I know the reason is my LPCWSTR conversion is not correct.How to make it correct.?[/B]

Software Development c++
Member Avatar for krishnampkkm
0
124
Member Avatar for grisha83

Hello, I am getting out of bound error whenever i run the program and trying to add a Node (this would be in my switch). but the error that i am getting is just above my switch statement. Can anyone help me to figure out what it is that i …

Software Development java
Member Avatar for grisha83
0
222
Member Avatar for mrnutty

I know that it returns the remainder but what happens when say : x% y, where x,y is int and x<y. I see that results in x; For example, 3% 101232 = 3 and similarly 3%y, where y is greater than 3 yields 3. Why is that> Just wonder the …

Software Development c++
Member Avatar for chaines51
0
284
Member Avatar for cruisx

Hi guys, I am making a memory game for my school project and i just have a few things that i would like to add to it to make it better. In my game, i have a 5x5 grid that has letters hidden by $ underneath. So when the user …

Software Development algorithm c++ gui ios
Member Avatar for mrnutty
0
180
Member Avatar for star34

Hi, i made a display()function that uses level-order traversal of the tree to display nodes level-by-level.I was told that I needed to put a queue class in my project. the hint was to put the queue in the root, do regular traversal but when we meet the marker, get() the …

Software Development c++ display queue
Member Avatar for s_sridhar
0
205
Member Avatar for hypernova

[U]see the following code-[/U] [code] #include<stdio.h> #include<conio.h> struct emp { int age; char name[6]; }*e; void main() { printf("%u\n",&(e->age)); printf("%u\n",(&(e->age)+0)); printf("%u\n",(&(e->age)+1)); printf("%u\n",(&(e->age)+2)); printf("%u\n\n\n",(&(e->age)+3)); printf("%u\n",(&(e->name)+0)); printf("%u\n",(&(e->name)+1)); printf("%u\n",(&(e->name)+2)); printf("%u\n",(&(e->name)+3)); printf("%u\n",(&(e->name)+4)); printf("%u\n",(&(e->name)+5)); printf("%u\n\n\n",(&(e->name)+6)); printf("%u\n",((e->name)+0)); printf("%u\n",((e->name)+1)); printf("%u\n",((e->name)+2)); printf("%u\n",((e->name)+3)); printf("%u\n",((e->name)+4)); printf("%u\n",((e->name)+5)); printf("%u\n\n\n",((e->name)+6)); } [/code] OUTPUT------------------------------- 0 0 4 8 12 4 10 16 22 28 …

Software Development c data-structure
Member Avatar for s_sridhar
0
124
Member Avatar for sciguy77

I finished making a basic web server a little while ago, however I cannot access it at all. I ran it on my mac, which didn't work. I then ran it on my PC and tried to access it from my mac using Firefox. This is the code I have …

Software Development python web-browser web-server
Member Avatar for xav.vijay
0
452
Member Avatar for llemes4011

Hi, I have another question. This one is about header files. I have a header for a player and the opponent of my battleship game. They way I have it set up, the opponent needs a player object to make a move, and vise versa. This is what i have. …

Software Development c++
Member Avatar for llemes4011
0
155
Member Avatar for sciguy77

Hi, I'm making a password program that I want to launch every time I turn on my computer. Anyone know how I'd do this? Also, is it possible to make it so that the user is prompted to enter the password before any other files or applications can be accessed? …

Software Development python
Member Avatar for woooee
0
152
Member Avatar for jrex

I am having trouble with a list that doesn't want to append like they normally do. I have been messing around with it for the last couple of days off and on. For the life of me I can't seem to figure out what I am doing wrong. n=range(0,31) x=[] …

Software Development python
Member Avatar for woooee
0
1K
Member Avatar for snta

i have a problem with msflexgrid. in msflexgrid, i have 7 columns and 10 rows. i insert data into 2nd column 1st row, and now my problem is; after insert data and click tab, i want the data(2nd column 1st row) will be automatic display in same column but in …

Software Development visual-basic
Member Avatar for snta
0
98
Member Avatar for ViLeNT

Hello, I am fairly new to scripting, I am interesting in writing a shell script which acts as a DOS command. I want to be able to utilize dos commands such as cd, dir, type, del, ren, and copy to do the same functions as the UNIX commands, cd, ls, …

Software Development shell-scripting unix
Member Avatar for sknake
0
141
Member Avatar for VIPER5646

[QUOTE]HI These are the forms I Have Log in,Customer,Order. They are opened In this order. At start up the Log in Form assigns the User in The Order Form and all works fine. But when I close the Order Form I loose the user. I would like to maintain the …

Software Development visual-basic
Member Avatar for VIPER5646
0
81
Member Avatar for dephrate

Hello, I'm writing a program for class that holds information from a parking garage and calculates the cost of parking for each vehicle and the total revenue generated. The code I've written uses a struct Car which contains variables for `Tag#(string)`, `Make(string)`, `Cost(int)`, `Time in(int b/w 1 & 24)`, and …

Software Development c++
Member Avatar for dephrate
0
162
Member Avatar for seank

I have python 2.4.4 installed on Ubuntu for use with Zope 2.9.8 (plone). I am moving my zope/python install from a hosted server to a new server of my own. I am setting up everything from scratch for the first time. When testing my installation, I get an error message …

Software Development python ubuntu
Member Avatar for seank
0
259
Member Avatar for matt4615

Hello, I'm new here. I am trying to make a program that simulates the game Lotto. I have managed to get it to input numbers, but, I cannot figure out how to stop it from having the same number appear twice on the same line. Below is what I currently …

Software Development c++
Member Avatar for VernonDozier
0
848
Member Avatar for abhishaki

hello friends,I made an applet to calculate sales tax but i am having a problem in executing it.It is giving error on execution. and the error it is giving is, cant create:java.lang.reflect.InvocationTargetException following is the piece of code of applet. import java.awt.*; import java.awt.event.*; import java.text.*; import javax.swing.*; public class …

Software Development java java-swing
Member Avatar for abhishaki
0
170
Member Avatar for cougarclaws

Hi all, Class assignment is to list all numbers between user input. I have this much, but have no idea how to get it to list the numbers between them. I know this is simple, but it still eludes me ;) Thanks in advance! [code=cplusplus] #include <iostream> using namespace std; …

Software Development c++
Member Avatar for Narue
0
94
Member Avatar for fdelriog

Hi, I don´t understand what are constructors and what are they used for. Can someone explain me in simple words or with an easy example what is a constructor and why are they neccesary? Thx

Software Development
Member Avatar for sknake
0
127
Member Avatar for mirfan00

I want to enter password in asteriks and compare it from the file. I compare it but i cannot able to show it in asteriks.If someone knows please solve it ?

Software Development c++ display
Member Avatar for Narue
0
198
Member Avatar for andy126

Hi, I'm trying to read data from a text file and store it into an array. I know this issue has been dealt with earlier, but none of those threads seem to be helpful in this case. Sorry in advance if I missed a relevant post. The data in the …

Software Development c file-system
Member Avatar for jephthah
0
163
Member Avatar for monkey_king

Hi I'm having a very basic newbie problem, The compiler forces me to do a strdup (because of cons correctness), can I void the extra line in my code, and then I cant seem to update my array after the funciton call [CODE=c++] void fix_name(char *name){ if(name[strlen(name)-1]!='/'){ char *tmp = …

Software Development c++
Member Avatar for monkey_king
0
189
Member Avatar for SnagglezMaw

I'm trying to compare lines in two different files. The basic idea is I want to take line 1 of file 1 and compare it to all the lines of file 2 and print the results into a third file, then do the next line of file 1 and repeat …

Software Development java
Member Avatar for Ezzaral
0
113
Member Avatar for Achayan

Hi All I think this is my post in DW . I need a help from you guys . I have a data [code] ['\x1a', '\x05'] [/code] , and how i can convert this to ascii ?? Any ideas , please give a hint :) thanks

Software Development python
Member Avatar for vegaseat
0
128
Member Avatar for somekid413

I am using python portable on a thumb drive and on some computers my script works normally, on others it does not. I Checked the paths and it had the _imaging.pyc file and the path was set up for it correctly on all computers. Is this because 1 computer has …

Software Development python
Member Avatar for vegaseat
0
682
Member Avatar for giftalp

I have problem to start. I need algorithm for program that prompts the user to input a sequence of characters and outputs the number of vowel, using user-defined value returning function Vowel. Please help

Software Development algorithm c++
Member Avatar for Dave Sinkula
0
2K
Member Avatar for SteveInAlabama

How does one control what's included and not included in a project? I am forced by the environment to work in the same directory as other projects. I have written a Class and also a Module with a subroutine that does not show up in my project, yet I see …

Software Development vb.net
Member Avatar for SteveInAlabama
0
126
Member Avatar for llemes4011

Hi, I'm new to C++, I learned to program in Java first. I'm having trouble getting this to work. I'm writing a text based version of battleship. It was going well until i tried to set the size of the ship. I'm using an int array to check to see …

Software Development c++
Member Avatar for Narue
0
101
Member Avatar for dileepkumars1

Hai Friends, Please Help Me!!!! I am developing a bussiness application.It includes a module which has to send a text file from the head office to the branch. I am able to send the file through internet only if i get the global ip. But Under the router i am …

Software Development vb.net
Member Avatar for dileepkumars1
0
145
Member Avatar for atman

Hello., I'm reading about anonymus structs and have problems understanding what is the privilege to have one. could anyone demonstrate an example of both anonymus and regular struct. I see that anonymus struct has a name after the the } and before semicolon. Any help would be greatly appreciated. Thank …

Software Development c
Member Avatar for Ancient Dragon
0
191
Member Avatar for phillipdaw

I am attempting to read and process a very large .csv (~75 Mb). I have been able to load the file into a string, but when I begin processing the string I run into problems. I am looking for memory management advice on these sorts of operations. String.Split() - OutOfMemoryException, …

Software Development perl
Member Avatar for phillipdaw
0
77
Member Avatar for SanojMathew

DLL crashes with release EXE. I have a client application which tries to load a dll when I bring up it. But it crashes the exe now. With debug exe it loads without any problem. Has anyone faced this kind of issues(release exe crash while dll load)? Anyone has any …

Software Development c++
Member Avatar for SanojMathew
0
99
Member Avatar for pupspark

[CODE]print "INSERT QUIZ INTRO" choices1(); def choices1(): print "The SNES Star Fox games ran off of/was used to advertise what advancement?" print "1: 32 Bit color" print "2: Argonaut's Super FX Chip" print "3: Voice-like sound effects" print "4: Higher Frame rates" 001();[/CODE] There's code past this but I imagine …

Software Development python
Member Avatar for siddhant3s
0
206
Member Avatar for bluebird
Member Avatar for jencas
0
74
Member Avatar for gibbshsu

Dear all, Can anyone kindly let me know how to put codes in my program to check if the network card is currently connects to nowhere (in nortification area, the small computer icon is crossed in red). Many thanks! Best regards, Gibbs

Software Development vb.net
Member Avatar for gibbshsu
0
428
Member Avatar for gujjar19

Hi; > If I have a srt file (lines in similar format given below). 42 00:02:21,085 --> 00:02:22,709 Just tell Cuddy you've got an urgent case. 43 00:02:22,709 --> 00:02:24,680 - You had to leave early. - That would be lying. 44 00:02:24,680 --> 00:02:26,119 And that would be wrong. …

Software Development python
Member Avatar for jlm699
0
113
Member Avatar for nagachaitanya

1. a. Create a parent class "Vehicle" with one method "turnLeft" that prints "Vehicle turning left". b. Create a child class "Bike" which overrides the "turnLeft" method and prints "Bike turning left". c. Create a Vehicle reference referring to a Bike object. Is it legal? What happens when the "turnLeft" …

Software Development java legal
Member Avatar for JamesCherrill
0
115
Member Avatar for cwarn23

Hi, I have been learning some c++ with a friend and saw a [URL="http://www.youtube.com/watch?v=nY8z5Eh-kcg&NR=1"]youtube video[/URL] where there were some features I just couldn't find in my version (express edition). I have to ask in which version of Visual Studio 2008 does the Project type [I]Windows Forms Application[/I] appear in where …

Software Development c++ gui visual-studio
Member Avatar for cwarn23
0
132
Member Avatar for niketan

I am trying to convert my c structures to c# structures. I am facing one problem as character is one byte representation in c and two bytes in c#. How to construct xyz structure with character having one byte??

Software Development c#
Member Avatar for ddanbe
0
3K
Member Avatar for Redserpent

Hi Guys. First let me say that this site is fantastic and the knowledge spread is vast. OK, now I'm somewhat of a noob when it comes to VB.net 2008 and have not long been coding with it. I came across a problem with the cancel button on an "input …

Software Development vb.net
Member Avatar for kvprajapati
0
329

The End.