64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for sbrohee

Hi all, I have a more philosophical question which I think might help me to better understand the interest of pointers in C++. Indeed, my background is mainly Perl and a bit of Java. I am currently implementing (as an exercise and because I work in this field) a class …

Member Avatar for sbrohee
0
122
Member Avatar for gahhon

Hmm... can we use the continue statement in [COLOR="red"]if-else statement[/COLOR]? as i know the continue statement only can use [B][COLOR="Red"]under for loop[/COLOR][/B] right? and also is there any idea how to write [B][COLOR="Green"]pseudocode[/COLOR][/B] of for loop ? give some sample examples. thanks alot. :)

Member Avatar for ciint
0
119
Member Avatar for GAME

I am trying to remove all listbox items that contain all spaces(11).I am stuck. This code doesnt remove the items [code] for (int i = 0; i < tree.Items.Count; i++) { if (tree.Items[i].ToString().Contains(" ")) { tree.Items.RemoveAt(i); } } [/code]

Member Avatar for Geekitygeek
0
137
Member Avatar for elsiekins

I am trying to write a named semaphore, can anyone point me in the right direction. I have tried googling it. I come from a java background so i understand the theory. Is a named semaphore created in the same way an semaphore is ?

Member Avatar for elsiekins
0
113
Member Avatar for Nexgr

Hello, I made a form into Visual Studio (Window forms) and i used a webbrowser from toolbox. I want to open into the webbrowser a web page from local drive. In properties, into the URL box if I write the absolute path (ex. c:\xy.htm) it works, but how i can …

Member Avatar for Nexgr
0
2K
Member Avatar for sbrohee

Hi everyone, I am quite new to C++ (coming from perl). As an exercise, I am currently trying to create a class to play with graphs. I have a class Node in which I overload the == operator (to test the equality between two nodes). At the moment, I consider …

Member Avatar for sbrohee
0
271
Member Avatar for malashukla

How to get .swf file's Height and Width in C# or VB.net Program.Because I want to Load dynamicly a .swf file in my program with Flash File current size.

Member Avatar for kmrameshkumar
0
194
Member Avatar for nocookies92

I have 3 separate questions. I'm trying to develop a program that displays several vocabulary lists and has a row of buttons at the top for selecting the lists. These buttons don't appear until I re-size the window. Does anyone know why this occurs? Second, I've extended the JPanel class …

Member Avatar for new_programmer
0
2K
Member Avatar for Rockyboy53

How would you split an existing string where a chararacter occurs into an array of strings, and store that character in a char? For example, inputting 123a5 would return {123,5} in an array and 'a' in a char. I've confused myself with this. I will greatly appreciate any help.

Member Avatar for Rockyboy53
0
85
Member Avatar for wwefriend

im juz learn C++ from C++ how to program , but i not really understanding in this section ,can someone explain and describe?..thx...

Member Avatar for wwefriend
0
135
Member Avatar for fussballer

Hi, I don't know if this is the right place to post this question but here is my problem, I would like to take an audio wave file and convert it to a data file, (.csv, .txt etc). I would like to do some signal analysis on the file but …

Member Avatar for griswolf
0
191
Member Avatar for jackabascal

Say I wanted to open test.html in Firefox on the click of a button. How would i do that assuming Firefox is not my default browser?

Member Avatar for saravind84
0
154
Member Avatar for Suzie999

Hi everybody. I would like to know if its possible do dynamically manipulate the scrolling of a webpage in a WebBrowser control in my Form. Either by a page loaded event or some other event. Also if that is possible, can it be done without the control having scrollbars. I …

Member Avatar for Suzie999
0
167
Member Avatar for ticktock

Hey all, I am currently trying (desperately trying if I might add) learning how to use GLUT for school. Our professor gave us an assignment to make a 2d tube of some sort, but I only managed to make a circle. The tube will be only displayed on its front …

Member Avatar for ticktock
0
315
Member Avatar for PixelExchange

Hello everyone.. When working with Visual Studio 2010, the "MessageBox" function displays chinese characters, instead of english ones. Example: I attempted to prompt a message to myself using the messagebox function, saying "Success!" However, the message box pops up a message in chinese, and not in english. I am able …

Member Avatar for PixelExchange
0
175
Member Avatar for gonzigg

Hello, I just finished my "Who wants to be a millionaire Game", (very basic coding), but I got some issues when I click somewhere out of the Boxes range(try it), and I'd like to add some sort of points to each question, and as they go further make the question …

Member Avatar for tbone2sk
0
343
Member Avatar for dadam88

I just started to get a grasp of classes. I can't find my answer anywhere, and I hope someone on here can answer it. I am trying to simlate a battle [B]USING CLASSES[/B] Everywhere I look on the net people in C++ don't use classes to simulate battles. You could …

Member Avatar for dadam88
0
109
Member Avatar for Bugaya

I'm using VS2005 & SQL Server 2005 which is installed with VS2005. Platform is XP SP2. I've an app that connects to the DB & get some data from it . The app & DB are on the same machine . Suddenly When I run the app. , I've that …

Member Avatar for khansa74
0
177
Member Avatar for DaSpirit

Hey guys, I'm new here. I just started learning c++ and I'm having a few problems. I have looked for one online but I found none that really worked for me so I tried to make my own. I'm trying to make a constant frame rate at 30 frames per …

Member Avatar for DaSpirit
0
289
Member Avatar for Musing888

When I run my code the program adds the following before the start of my program: >>> Warning (from warnings module): File "C:/Users/Steven/Documents/CA/CA python/CAMain.py", line 142 def maxgen(fname, worksheet=1,encoding='cp1251'): SyntaxWarning: import * only allowed at module level >>> [I]The first prompt of my program would be here[/I] The code it …

Member Avatar for Musing888
0
1K
Member Avatar for gaurav_13191

Hi,I am new to daniweb and would like to know the error in this code [CODE] void initpoly(struct poly *p) { int i; p->noofterms=0; for(i=0;i<MAX;i++) { p->t[i].coeff=0; p->t[i].exp=0; } }[/CODE] I am not posting the entire program because it is lengthy.I am getting the error"Expected primary expression before token ;" …

Member Avatar for gaurav_13191
0
242
Member Avatar for anraevlus18

Hi, My script has 3 options which recieve integers. If any of those options are having a value which is less than zero i want to make them to 100. eg: if opt2 = 32 and opt3 = 24 i want to make them to 100. <code=perl> our $opt1,$opt2,$opt3; our …

Member Avatar for d5e5
0
118
Member Avatar for mavs123

oh my please help me..i;m making a simple code in c++ using dev c because i am exploring this language for my second year. i do not know why it will not display the output..i don't know how to use cin..[CODE]#include <iostream> using namespace std; int main() { cout << …

Member Avatar for harris21
0
113
Member Avatar for xZombeast

Ok, well I am new to VB, but have a general idea of it, and im trying to make a program that does the following (and it fairly simple) button 1 = Open button 2 = search and replace textbox = text to search for replace = a given, non …

Member Avatar for Oxiegen
0
123
Member Avatar for Tommy.b

Hey using the following sql [code] SELECT DB_SALGSPRIS from pris_interval WHERE DB_INTERVAL_START < '11.78' AND DB_INTERVAL_END >= '11.78' SELECT DB_CUSTOMER from pris_interval WHERE AND DB_INTERVAL_START < '7.19'AND DB_INTERVAL_END >= '7.19' [/code] I get multiple results, 3 from first, and 2 from the second to be precise, what I am wondering …

Member Avatar for Tommy.b
0
141
Member Avatar for Nandu Das

I am a computer science student and i want to know how to create a c++ program to ping an ip address and check whether it is online or not?

Member Avatar for vijayan121
0
70
Member Avatar for Jollyyy100

Hi, i'm developing a project on employees. I have added a list box and now i need help to display the data about my employees in the list box. How am i supposed to do that, do we have to put in codes or need to use that small arrow …

Member Avatar for Naushad Malik
-1
146
Member Avatar for ftl25

I have an array of strings as follows: [CODE]char *sCmdInt[8];[/CODE] I need to use elements from the array to pass to another dll. The function takes two LPSTRs as parameters. What I need to do is copy two elements from the array into ints/longs, and then create two LPSTRs from …

Member Avatar for Ancient Dragon
0
108
Member Avatar for jamesyrawr

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\registration\login.php on line 19 is the error i get when i run the below code i cant figure out what is wrong with it. :( [CODE]<?php $username = $_POST ['username']; $password = $_POST ['password']; if ($username&&$password){ $connect = mysql_connect("localhost","root","") …

Member Avatar for mazeroth
0
206
Member Avatar for terrymold

Hi again I'm still having problems with PHP/MySQL Warning messages, even when using mysql_real_escape_string(). The offending string is: [CODE][25:64] And the true servants of the Gracious God are those who walk on the earth humbly and when the ignorant address them, they avoid them gracefully by saying, 'Peace!'[/CODE] If I …

Member Avatar for terrymold
0
228
Member Avatar for foco

I can get variables from an html page into my perl cgi script just fine, but I want to process these variables (also works), and pass them to another cgi script. I'm not sure how though. I've tried to set up a new <form> inside of my perl script to …

Member Avatar for PaulieWauly
0
184
Member Avatar for ALFA-FOXTROT

Hi guys need some help here. I don't know why but it doesn't read the value. This is to be runned by Property. [CODE] function calculate_form_opap(op_id,oca_id,ocp_id) { var propertiesintotal=0; var total=0; var completo=''; var completo_count = op_id+'_'+oca_id; propertiesintotal = Number(document.getElementById('propertiesintotal_'+op_id+'_'+oca_id).value); propertiesintotal=propertiesintotal-1; for (y=0; y<=propertiesintotal; y++){ completo=op_id+'_'+oca_id+'_'+ocp_id+'_'+y; alert(completo); //valor = document.getElementById('property_total_'+completo).value; …

Member Avatar for ALFA-FOXTROT
0
171
Member Avatar for thilangane

I'm trying to merge two trees. This is the recursive function: [CODE] void Merge(node *primary,node *secondary) { if(secondary != NULL && primary != NULL) { Merge(primary->left,secondary->left); Merge(primary->right,secondary->right); } else if(secondary != NULL && primary == NULL) { primary = new node; primary->action = secondary->action; primary->left = NULL; primary->right = NULL; …

Member Avatar for thilangane
0
91
Member Avatar for Archenemie

While doing a project i decided to do a mechanism in a panal of its own class, so i could manage the sizers and layout better, then i wanted to take the end result of that panel and display it in my window. Although when i run this code as …

Member Avatar for vegaseat
0
114
Member Avatar for Jsplinter

Simply put I wish for text entered in one edit box to then appear in another edit box. I have created a MFC dialog and read many tutorials, but I'm still stuck. Here is my current DDX function: void Ctextentry23Dlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); DDX_Text(pDX, IDC_EDIT1, name); DDV_MaxChars(pDX, name, 20); DDX_Text(pDX, …

Member Avatar for Jsplinter
0
539
Member Avatar for nbaztec

To avoid double postings kindly refer the thread here, since I couldn't make up, which forum was best suited. [URL="http://www.daniweb.com/forums/post1297528.html#post1297528"]http://www.daniweb.com/forums/post1297528.html#post1297528[/URL] Please do take part in the discussion. Regards, Nisheeth Barthwal

0
80
Member Avatar for JimBoCol

Hi all. I am, using Java for drop down menus, code follows. What I have not yet been able to figure out is how to make java display the page I select in a different frame. This is what is in the <HEAD> of one of my Pages. [CODE] <SCRIPT …

Member Avatar for JimBoCol
0
141
Member Avatar for muralibobby2015

hello.. i have to do substraction of two php variables which is having datatype varchar. i am trying like this.[CODE] $a=5; $b=3; $c=$a-$b; [/CODE] but for float values [CODE] $a=3000.90; $b=2000; $c=$a-$b; [/CODE] out put is $1000.9. ok even i echo $a i am getting 3000.9 how to get two …

Member Avatar for muralibobby2015
0
88
Member Avatar for niths

hi all, i had a php page.i am using ajax for displaying a table. When i select a date images uploaded on that date gets displayed in a table.This is working fine.But i need another button for edit.so when i click on edit those images present in table should become …

Member Avatar for niths
0
119
Member Avatar for lmbdx

Hi, I've developed a console app and a win32 api GUI. The GUI is only used to get input file path and output file path specified by the user, as simple as that. I now want to pass those file path and call the functions in my console app to …

Member Avatar for lmbdx
0
596
Member Avatar for cptspock

I have the strangest problem. First let me state that I am by no means an expert on either Web Applications or SQL. I have however, been delegated this project and have made some progress. First, all the servers for a small office I work in were upgraded to 64 …

Member Avatar for cptspock
0
186
Member Avatar for Anyzen

Hello.. Supposing that i have this code..i want it to end after a character is pressed..but i dont know what to add...i can end it if input is negative or zero..but not char..i tried some experiments but it will end up debug assertion fail..help would be great.. [CODE] // adds …

Member Avatar for Anyzen
0
104
Member Avatar for G_Waddell

Hi all, I'm writing an application that imports and tidy up address data into a cleaned, deduped excel workbook ordered in rows with each column as an address field. One of the issues I've ran into is that we sometimes get a workbook where the multiple address fields are held …

Member Avatar for Baldur Levesque
0
255
Member Avatar for athan20

Hi, Please help me, this is my activity the Rock, Paper and Scissors Game, I need codes for this game. Like the game the program should determine the winner. In my output (please see attached), the Player1 and Player 2 should choose each a hand gestures in commands buttons: rock, …

Member Avatar for athan20
0
371
Member Avatar for Drakarus

Problem 1: I was wondering if it's possible to add for example the struct below into a binary tree: [CODE=c] struct Appoint { string place; string title; int hour, minute; int durationHr, durationMin; }; [/CODE] I want the above struct to be sorted in the binary tree by hour and …

Member Avatar for Drakarus
0
283
Member Avatar for jonniebl

I am writing a program that sends an email with attachments. I need to send it as HTML but I can not find any reference as to how to do this. My code follows: [ Private Sub sendMail(ByRef Message) Dim Attach As Attachment Attach = New Attachment("c:\Project\Articles1\Article.txt") 'create the mail …

Member Avatar for jonniebl
0
187
Member Avatar for okwy

Can some one please help me on this issue as I have spent time going around it without making any headway. I have data in an array of size say 3O. 1. I want to take the first five elements of the array, find their mean value. Store the value …

Member Avatar for abhimanipal
0
9K
Member Avatar for rahul8590

I have various list being generated by a mapper function in this format >>> mapper("b.txt" , i["b.txt"]) [('thats', 1), ('one', 1), ('small', 1), ('step', 1), ('for', 1), ('a', 1), ('man', 1), ('one', 1), ('giant', 1), ('leap', 1), ('for', 1), ('mankind', 1)] >>> mapper("c.txt" , i["b.txt"]) [('thats', 1), ('one', 1), ('small', …

Member Avatar for ultimatebuster
0
262
Member Avatar for prodigenius

numpy.vectorize takes a function f:a->b and turns it into g:a[]->b[]. This works fine when a and b are scalars, but I can't think of a reason why it wouldn't work with b as an ndarray or list. For example: [CODE=python] import numpy as np def f(x): return np.array([1,1,1,1,1], dtype=np.float32) * …

Member Avatar for TrustyTony
0
398
Member Avatar for VBNick

If I am using overlapped sockets with i/o completion ports, is it ok to use WSASend on a socket to send data [B]after [/B]posting the initial WSARecv on that same socket, but [B]before [/B]having received any data? Will the socket still receive data and trigger the completion port if I …

Member Avatar for VBNick
0
95

The End.