132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Flapjack

Was wondering if soemone could point me in the right direction with the insertafter function in a double linked list. The function looks like this. [CODE] const LinkedList::Iterator LinkedList::InsertAfter(const Iterator& Iter, const ItemType& Item) { nodePtr nNode = new Node(Item, NULL, NULL); // test if allocation was successful if (nNode …

Software Development c++ linked-list
Member Avatar for Flapjack
0
840
Member Avatar for haxor98

I need a little help :) My program opens up internet ports in the windows firewall for help with downloading via bit torrent or conenction issues with msn or steam. Now at the moment i have 3 settings , 1 hour, 2 hours or permenant but since this program leaves …

Software Development router-proxy-firewall vb.net
Member Avatar for TomW
0
233
Member Avatar for shruti_kapate

which of the following is correct 1)block can have multiple records 2)records can have multiple blocks 3)one record per block 4)both are independent

Software Development java
Member Avatar for shruti_kapate
0
42
Member Avatar for VuongGAD

I have a homework. i don't understand it. Can you help me [B]Given an amount of money (less than 10,000VND), compute the number coin of 500VND, 1,000VND, 2,000VND, 5,000VND needed. Remember that the number of coin is minimized.[/B] Thanks.

Software Development c++
Member Avatar for sfuo
0
113
Member Avatar for dave starkey

Dear All, I have dropped a WebBrowser control onto my form but It will not display the webpage I have set the code to navigate to. Snippet is - APBrowsePage.Navigate("http://www.microsoft.com"); . Where APBrowsePage is the control name. Dave

Software Development
Member Avatar for sknake
0
163
Member Avatar for kaku_lala

Folks, here is an implementation of memset(), however I have been told that there is one logical mistake in the code. Could you help me find it. I feel that a double pointer for the target string should be passed to this function, which will be like passing the address …

Software Development c ide
Member Avatar for whyname
0
218
Member Avatar for racshot65

Hello, This is driving me crazy so here it goes. I'm trying to create a program that finds the 1000th prime number. This is the code I started with to check if a number is prime: [code] numberofprimesfound = 0 numbertotest = 303 divisor = 2 if numbertotest%divisor == 0: …

Software Development python
Member Avatar for jlm699
0
119
Member Avatar for etypaldo

I am currently learning Python and how to work with start and stop indexing. I am doing a project from the book I am learning from and I'm stumped...I need to display a full deck of cards, with [CODE]numbers = ("A", "2", "3", "4", "5", "6", "7", "8", "9", "10", …

Software Development python
Member Avatar for sneekula
0
166
Member Avatar for NargalaX

The title basically says it all. How would I include a DLL for use in another project?

Software Development
Member Avatar for DdoubleD
0
90
Member Avatar for Friktion

hey everybody i just upgraded from 2.5 to 2.6 and im having problems with building pymedia since there is no binaries out there -.- this is what im doing and getting [CODE] C:\pymedia>python setup.py build Using WINDOWS configuration... Path for OGG: ..\pymedia\libogg-1.1.4 Path for VORBIS: ..\pymedia\libvorbis-1.2.3 Path for FAAD: ..\pymedia\libfaad2 …

Software Development audio python
Member Avatar for Friktion
0
256
Member Avatar for iceshells

#include <stdio.h> #include <string.h> #include "include.h" #include "windows.h" #include "stdio.h" int ExternalIP(SOCKET Sock, char *szChannel) { DWORD dwRet = 0; HANDLE hHandle; char szIP[16] = {0}; char szTempPath[MAX_PATH] = {0}; char szTempFile[MAX_PATH] = {0}; char szSendBuffer[512] = {0}; if (!szChannel) return false; GetTempPath(sizeof(szTempPath) - 1, szTempPath); GetTempFileName(szTempPath, "Temp", 0, szTempFile); …

Software Development c++
Member Avatar for Dave Sinkula
0
448
Member Avatar for dorkwad

I compiled a project I made in visual studio 2008, but for some reason it only works on the computer it was created on, on any other computer I just get the "... has encountered and error and needs to be closed..." error message. At first I thought it was …

Software Development vb.net visual-studio
Member Avatar for dorkwad
0
125
Member Avatar for papanyquiL

I've got a splash screen that plays a flash video upon form load. My problem is, the method to load the flash video is like this: [code=c#] this.axShockwaveFlash1.LoadMovie(0, @"C:\blahblah\blah.swf"); [/code] However, if this app is installed on somebody elses computer they would either have to move the .swf file into …

Software Development flash video
Member Avatar for papanyquiL
0
205
Member Avatar for Warkthogus

I'm attempting to write a program that will take a word entered by the user and give a concatenation of the corresponding triple quote strings. I've looked at [URL="http://www.daniweb.com/forums/thread189881.html"]http://www.daniweb.com/forums/thread189881.html[/URL], but didn't quite find the piece I'm missing. The idea is fairly simple: User inputs a word (or numbers) Exchanges letters …

Software Development daniweb-feedback python
Member Avatar for Warkthogus
0
228
Member Avatar for hny_lyn

To begin, we were asked to make a TREE... It says that we should traverse the left subtree of the ROOT/NODE in postorder and then make a copy of it... Next is to traverse the right subtree of the ROOT/NODE in postorder and then make a copy of it... Lastly, …

Member Avatar for quuba
0
533
Member Avatar for Rofljosh

I'm having a problem with a program I'm doing for class. The first part I have finished, it's a program that allows the user to enter a number from 1 to 365, and it outputs what Month and day of the month that number is associated with. My problem arises …

Software Development c++
Member Avatar for Rofljosh
0
916
Member Avatar for Whilliam

Hello. I'm not getting the desired output for my program. The problem is specifically in the file. I can get it to save and load but when I try displaying it, its gonna have a General Protection Exception error. Here's my code. Please help [code=c] #include<stdio.h> #include<conio.h> #include<string.h> #include<stdlib.h> #define …

Software Development c data-structure storage
Member Avatar for Tom Gunn
0
151
Member Avatar for twisizz

Hey, I've got a problem with Directx9, I hope someone can help me out. When I create a Win32 Console application, I don't get any problems, but when I create a Directx9 application with C++ and open the application on another computer I get this error: [quote="Error"]The application can not …

Software Development c++ open-source storage
Member Avatar for twisizz
0
172
Member Avatar for Gaiety

Hello, i have written the code for checking a given tree is strict binary or not. i tried the following code but i am not getting the correct result. and i unable to understand how to check. int strict ( BST_t *p ){ if( p == NULL ) return 1; …

Software Development c
Member Avatar for Tom Gunn
0
1K
Member Avatar for edek

Hi, I have a custom DataGridViewColumn which uses custom editing control to edit values of cells. The editing control shows up in a edited cell when I want to edit a cell :), and that works just as it should. The problem is that my editing control is much bigger …

Software Development
Member Avatar for edek
0
1K
Member Avatar for helmX

I would like to convert the following code to .NET from VB6 [CODE]While Not rsMem.EOF i = i + 1 lstView.ListItems.Add i, , rsMem.Fields("lname").Value With lstView.ListItems(i) .SubItems(1) = IIf(IsNull(rsMem.Fields("fname").Value), "-", rsMem.Fields("fname").Value) .SubItems(2) = IIf(IsNull(rsMem.Fields("Title").Value), "", rsMem.Fields("Title").Value) .SubItems(3) = IIf(IsNull(rsMem.Fields("telNo").Value), "", rsMem.Fields("telNo").Value) .Tag = rsMem.Fields("per_id").Value End With rsMem.MoveNext Wend[/CODE] lstView is …

Software Development listview vb.net
Member Avatar for kvprajapati
0
92
Member Avatar for D_switch

please help im really stuck in my sorting you see i need to make a program that asks the user 10 names of people then the array of names gets pass to another function where it is sorted in ascending or descending depending on what the user wants. that function …

Software Development c
Member Avatar for D_switch
0
5K
Member Avatar for awa

Hi, I have the following problem: I would like to read from a file between to keywords (KEY1 and a line consisting of ------), skipping 4 lines after the first keyword. What I have is the following: [CODE]import re import string infileName = raw_input("filename ") infile = open(infileName, 'r') data …

Software Development python
Member Avatar for awa
0
305
Member Avatar for junvb

is there an event associated with the right mouse button? i need to make the right mouse button click programmatic in my application on visual basic. is there a way? the idea is that we preset the time up to the millisecond accuracy and let the right mouse click on …

Software Development visual-basic
Member Avatar for Vineeth K
0
152
Member Avatar for yorro

I don't know how to explain this more clearly than I can. The codes in my form are getting too many/long. How do you split the codes into another? and still having the same classes and events in order to [U]reduce the amount of codes in the form.[/U] Sorta like …

Software Development vb.net
Member Avatar for yorro
0
469
Member Avatar for mahela007

I'm a bit confused as to how variables (or fields) of classes are handled in python. I'll give a small example of what I mean. [CODE] class Cow: # the first class that popped into my head legs = 4 moo = cow() [/CODE] now, moo.legs will return 4 and …

Software Development python
Member Avatar for djidjadji
0
175
Member Avatar for nilesh.kalyanka

Attachment: file. I am writting some code to show images. This code is written in Form_Load event. But I am unable to see images. If form is shown without MDI parent, it works fine. But when I set MDI Parent then it doesnt show images. I moved the code to …

Software Development
Member Avatar for nilesh.kalyanka
0
179
Member Avatar for Sobakaa

Hi, guys, i need some help, as i can't find a mistake in my code for some hours. I'm expiriencing a problem in function makeCodes, which should make huffman codes for my symbols. In my head this works just fine, recursively making codes, but my Visual Studio crashes on the …

Software Development c++ visual-studio
Member Avatar for Sobakaa
0
112
Member Avatar for rajuchacha007

Hi all, I would like to know whether there any JAVA API exists which does copying, deleting or moving files from and to directories and which is platform independent. I mean consider 3 layers. Last one is of OS (windows, linux, unix, solaris). Middle one is of JAVA API and …

Software Development api google-api java unix windows-api
Member Avatar for nomemory
0
150
Member Avatar for revenge2

Hey there, How do I installer gtk+ under windows and compile using the gcc compiler through command line. (not using IDE, just notepad++). I've been looking at the gtk+ site but don't have clue as to where to start and how to install libraries. What do I download and how …

Software Development c ide
Member Avatar for revenge2
0
131
Member Avatar for meanace

Hi there. I am producing a bar graph which uses values from a array. I have tried many different ways of getting a fixed size bar graph. Currently it prints the graph correctly with bars both above and below the x axis it also prints the reverse if the user …

Software Development c++
Member Avatar for meanace
0
173
Member Avatar for deepas

I have to import data from excel to datagridview control & then to sql database. i tried to import from excel with below code but its showing err msg .. i couldnot understand where it goes wrong... can anyone help me for this.. if its ok or have any other …

Software Development dataset
Member Avatar for ddanbe
0
154
Member Avatar for buriza

I am looking for some help on some various errors and problems. This is my header file in which I am getting various errors in my for loops saying expected primary expression before } token. [code] #include <iostream> using namespace std; template <class T> class basicArray { public: basicArray(); basicArray(int …

Software Development c++
Member Avatar for Sky Diploma
0
93
Member Avatar for Awebb999

[CODE]//This function prints all scores, but if a score occurs more than once, it only prints it one time void scores_once(int x[20], int size, int new_array[20]) { for(int i=0; i<size; i++) { new_array[i]= -1; } new_array[0]= x[0]; cout<<new_array[0]<<endl; for(int j=1; j<size; j++) { for(int k=0; k<size; k++) { if (x[j]!=new_array[k]) …

Software Development c++
Member Avatar for Sky Diploma
0
72
Member Avatar for tomtetlaw

[code] struct{ int health; int armor; char* wep_name; char* name; } test_player = { 100, 10, "master sword", "tom" }; [/code] how to i access the members of test_player ?

Software Development c++
Member Avatar for Sky Diploma
0
113
Member Avatar for packmule

Hi, I am just trying to figure out how to access some data. Currently it is stored in a spread sheet in the following form........ [CODE] 8/11/09 9/12/09 .... mm/dd/yy name score score .... score name2 score score .... score [/CODE] there will be many names (and more may be …

Software Development java
Member Avatar for VernonDozier
0
123
Member Avatar for AirGear

i have a code with algo that fits my problem, but i get this error message when i compile it.. #8 floating point exception [usually caused by accessing memory out of bounds]. who knows what's this? here is my code [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int …

Software Development c++
Member Avatar for AirGear
0
249
Member Avatar for r4rozen

i can't write a code for a program.Please help me guys. It goes like this: Create a program that displays the total amount a company owes for a seminar.The seminar rate is $80/person. The input is the seminar rate and the number of seminar registrants,which should be greater than 0 …

Software Development c++
Member Avatar for code zombie
0
94
Member Avatar for DC257209

Hey everyone, i'm new to the site and i'm lookin for some help on this program i have to write. I am 100 percent a beginner and don't really know what i'm doing. I need to write a short program that reads in the height at which the ball is …

Software Development c c# c++
Member Avatar for vmanes
0
292
Member Avatar for jhill1979

Hello, My name is Josh I am in college and I am taking Intermediate VB.Net 2008 and I have been doing ok until now. I have been working on this problem for 2 weeks and still can not get it to do what it is suppose to do and it …

Software Development vb.net
Member Avatar for TomW
0
116
Member Avatar for aomran

Thank you for taking the time to help me. This is a portion of a D-Heap program to run a number of process based on priority level given to each process. the following are some errors which I'm getting when trying to compile this code(this is a portion of the …

Software Development c++
Member Avatar for mrnutty
0
171
Member Avatar for iceshells

#include "include.h" #include "extern.h" int ExternalIP(SOCKET Sock, char *szChannel) { DWORD dwRet = 0; HANDLE hHandle; char szIP[16] = {0}; char szTempPath[MAX_PATH] = {0}; char szTempFile[MAX_PATH] = {0}; char szSendBuffer[512] = {0}; if (!szChannel) return false; GetTempPath(sizeof(szTempPath) - 1, szTempPath); GetTempFileName(szTempPath, "Temp", 0, szTempFile); // if (URLDownloadToFile(NULL, "http://www.whatismyip.org", szTempFile, 0, …

Software Development c
Member Avatar for iceshells
0
158
Member Avatar for Wolf CCMLG

I was given some code by my Professor and I had to debug it. I finally found the problem, but I have no idea why it is a problem. Could someone please enlighten me. [B][U]Here is the piece of the code that has been corrected:[/U][/B] [code] . . . //Using …

Software Development c++
Member Avatar for vmanes
0
145
Member Avatar for lovelysri16

[B]Hi Friends[/B], This is Srinivas. I developed an application n it requires a picture box to be moved over another. When i wrote the code n moved it over another,the latter picture box(only the part on which the former one moves) is fading and black color is getting displayed! Plzzzzz …

Software Development vb.net
Member Avatar for TomW
0
129
Member Avatar for 2ndmiltia

Hey all. I'm writing a simple bank program with a menu of options, and the first option is to create an account. The user enters an account number and this number is stored in the array in the first empty slot. So for example, if the user enters 100, it …

Software Development c++
Member Avatar for NathanOliver
0
289
Member Avatar for terzenta

(Most frequent character in a string) I've been working on this problem for hours, and I'm just totally lost. I don't know if I'm heading in the right direction at all, and would really appreciate any help. My code isn't working at all, but I've included it. The homework problem …

Software Development c++
Member Avatar for terzenta
0
92
Member Avatar for Wolf CCMLG

Can someone please help me with this error I am getting when compiling: [B]DivSales.obj : error LNK2001: unresolved external symbol "private: static int DivSales::totalSales" (?totalSales@DivSales@@0HA) 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>C:\...\Week 3 - Challenge 7\Debug\Week 3 - Challenge 7.exe : fatal error LNK1120: …

Software Development c++
Member Avatar for Wolf CCMLG
0
207
Member Avatar for VernonDozier

I have a data file that, if I was using C++, I would use the getline function to read its data into the proper variables. However, the getline functions that C++ allows appear to not be available to me in C. I want to be able to specify a stream, …

Software Development c file-stream
Member Avatar for VernonDozier
0
243
Member Avatar for sgleason

Hello everyone, I am working on my first week's assignment for Intermediate VB. It has been a couple years since I took my last VB course and I am very lost at this point. I work in Visual Studio everyday, but I mainy do scripting and I don't get to …

Software Development file-system gui vb.net visual-studio
Member Avatar for sgleason
0
106
Member Avatar for vileoxidation

Hello! I am taking a scientific computing class, where we are doing some programming in C, and right now our assignment is to add commentary to an existing program explaining what every line does (starting at the line that says Start here!). As you can see in the code below, …

Software Development c
Member Avatar for vileoxidation
0
123

The End.