43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Natique

Hi, I wrote a program where I get a debug assertion failure. I've made it so that if I press ignore, execution continues correctly. The only thing is I don't want to keep pressing ignore, is there a way to make it ignore automatically? Without the message box appearing? I …

Software Development c++
Member Avatar for Narue
0
1K
Member Avatar for MWillis09

I am learning vb and one of my projects is to make a price schedule using full day and half day rates as well as adding a deposit, etc. I don't want you to tell me what to do just please what I am missing. I haven't been able to …

Software Development vb.net
Member Avatar for MWillis09
0
160
Member Avatar for confusedndazed

Hello all, I have my assignment topic and I know what information I would like to include in my assignment. Can anyone tell me how to put my data into top-down format? Here is what I have thus far: I'm trying to design a program that will input ages of …

Software Development c++
Member Avatar for confusedndazed
0
121
Member Avatar for zobadof

MattyRobot as you may know him, gave me the code to make a new window, but it opens up cmd window too. I would like it so the window opens only. If anyone knows the code, I would be more than happy to find out

Software Development c++
Member Avatar for zobadof
0
124
Member Avatar for Frederick2

[CODE=C++] /* I'm stuck! Here is what I consider to be a perfectly running program that uses an array ( TArray ) template to hold arrays of objects. Its just about your classic text book example. Its pretty well stripped down to nothing to illustrate my problem. I simply don't …

Software Development c++
Member Avatar for Frederick2
0
199
Member Avatar for ejazmusavi

Hi everyone! I have a windows base application in c#(vs 2005). In which i have a crystal report(version: came with visual studio 2005). I want add an image in the report doc which may change dynamically at the runtime. The image path is stored in database(MS Access) as string. How …

Software Development c# image visual-studio
Member Avatar for DdoubleD
0
1K
Member Avatar for pankaj.garg

hi, i want to communicate with a slave device (temperature controller) using ModBus with RS 485 using VB6, but dont have knowledge of the same. Can you help me by guiding how to move forward..plz suggest some tutorial..or provide some sample program where data from a remote device has been …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
131
Member Avatar for kobalt

I'm hoping someone here can help me. I am very new to C# and programming in general and am stuck on the following after researching and trying different solutions for the past 2 weeks! I'm trying to read from an XML file into datagridview. I also want to add extra …

Software Development dataset xml
Member Avatar for sknake
0
977
Member Avatar for TimeWalker

Here's the code that increases x value by 0.01 increment and outputs: x, placeholder for initial x+t and how many loop cycles it took to find a solution to the equation in function f1() in intervals for temp (0.5 ; 1.0)U(1.0 ; 1.5). [code] #include <iostream> #include <cstdlib> #include <cmath> …

Software Development c++
1
60
Member Avatar for lotrsimp12345

Is my understanding of a vector list correct. vector<list<int>>. The vector holds a list of data type int? [CODE] class my_ht_chain { public: //constructor which creates a table of a certain size my_ht_chain(int size); //destructor ~my_ht_chain(); //insert a value based on key void insert(int key); //search for a value based …

Software Development c++
Member Avatar for lotrsimp12345
0
96
Member Avatar for halluc1nati0n

I have trouble understanding the compilers. The following code does work in UNIX under g++, but under VC++ it would not even compile. Anyone can provide valid reasons why? [B]Code:[/B] [CODE]#include <stdio.h> #include <iostream> #include <string.h> using namespace std; int main() { string tmp_nw_msg, crc_chksum, buffer; cout << "Enter the …

Software Development c++ unix visual-studio
Member Avatar for Nick Evan
0
260
Member Avatar for hackabusa

Hi, I'm having some issues with a maze solver that I'm coding for an assignment. Here's what I have so far: [CODE] def main(): maze = open(raw_input("Please enter the filename of the maze:"),'r') x=0 y=0 with maze as maze_file: maze = [list(line.strip()) for line in maze_file] for i in maze: …

Software Development python
Member Avatar for hackabusa
0
144
Member Avatar for ujjval dave

[B]i am able to print all file line in to rich text box but i have a problem to find a specific word from the rich text box.please help me to solve this trouble. here is my code for taking input from file and print into rich text box [/B] …

Software Development vb.net
Member Avatar for G_Waddell
-1
204
Member Avatar for grib

Just got back to my interrupted attempt to pick up C++, and I'm already shipwrecked again. Anyway... I'm trying to build another bitty app from my text, but nothing seems to be coming together properly. The program should ask for an array length, send that to an input-handling function, then …

Software Development c++
Member Avatar for grib
0
402
Member Avatar for adams161

I"ve thought i have noticed some strange behavior after compiling. most of the time i compile the class files update with my changes. Now and then i feel i need to delete my class files in the folder and do essentially a rebuild all to make the program start working …

Software Development java
Member Avatar for masijade
0
108
Member Avatar for SoulMazer

Okay, well I'm having trouble getting a variable from one place to the other. I have two scripts: for now, let's call them MainScript.py and ChildScript.py. [code=python]#!/usr/bin/python # MainScript.py import ChildScript from Tkinter import * class GetVariable: def __init__(self): master = Tk() master.withdraw() ChildScript.VariableDialog(master) # From right here, I would …

Software Development python tkinter
Member Avatar for SoulMazer
0
144
Member Avatar for lotrsimp12345

Do I need a copy constructor? [CODE] #ifndef MY_MIN_PQ_H #define MY_MIN_PQ_H #include <iostream> #include <vector> using namespace std; class my_min_pq { public: //default constructor my_min_pq(); //destructor ~my_min_pq(); //insert element at end of sequence, and rearrange so minimum data at the front of array void enqueue(int data ,int priority); //removes data …

Software Development c++ data-structure
Member Avatar for lotrsimp12345
0
125
Member Avatar for Workingwmyhands

I need help with an online tutorial (this is not homework) [url]http://www.upriss.org.uk/python/session3.html[/url] It is something very simple, but I am a beginner so I don't understand yet. Write a script that asks someone to input their first name, last name and phone number. If the user does not type at …

Software Development python
Member Avatar for SoulMazer
0
163
Member Avatar for guccitan88

I have to write a function to populate a 50 element integer array with random numbers: 100 <= # <= 1000. I have everything I need in the code except the "between 100 and 1000." The things I'm trying are not working. Thanks! [CODE] #include <iostream> #include <cstdlib> #include <ctime> …

Software Development c++
Member Avatar for guccitan88
0
118
Member Avatar for ncwolfe

I'm using Visual Studio 2005. I tried to adapt the existing class for the binary search tree (from my book) to a template and mostly it works, but I'm getting errors related to the insertNode and deleteSubTree functions when I try to build it. The header file: [CODE] // Specification …

Software Development c++ visual-studio
Member Avatar for ncwolfe
0
224
Member Avatar for cwarn23

Hi and I have just downloaded the Irrlicht gaming engine and although I have had a briefing about it from a friend I can't seem make it do what I want. I got the demo which is nearly what my result will look like but then I tried switching from …

Software Development c++ gaming
Member Avatar for cwarn23
0
185
Member Avatar for lotrsimp12345

we are supposed to implement using STL vector and base it on priority and have have a data value So every time i enqueue i insert an in item into the end of the vector and if no space i modify. So do i reorder the list to place the …

Software Development c++ queue
0
67
Member Avatar for ItecKid

Hello all, I am trying to write a clustering algorithm where, given location of certain points (I.e, latitude and longitude) I need to choose 50 of these to be cluster centers such that the diameter of each cluster is minimized. To that end, I believe that the program should choose …

Software Development algorithm c++
Member Avatar for ItecKid
0
113
Member Avatar for need help!

This is some code I wrote for a music program... Any way on making it neater/more pythonic? [CODE] from Tkinter import * import pygame playlist=[] pygame.init() pygame.mixer.init() camera=pygame.mixer.Sound("E:\\Peter\\Python_stuff\\data\\Music\\camera1.wav") one=pygame.mixer.Sound("E:\\Peter\\Python_stuff\\data\\Music\\one.wav") wrong=pygame.mixer.Sound("E:\\Peter\\Python_stuff\\data\\Music\\wrong.wav") root=Tk() root.title("DJ Pro") def sound_play(event=None): playlist.append(wrong) wrong.play() def sound_play1(event=None): playlist.append(one) one.play() def sound_play2(event=None): playlist.append(camera) camera.play() def play_all(event=None): for ii in …

Software Development audio python tkinter
Member Avatar for need help!
0
144
Member Avatar for Phloxicon

I have an alarmingly strange situation. I fill my map with const char * and int values. When I try to "find" the one I want, it says it's not there. Here's the short version: [code=c] // tempText = "socialize" for( actionIter =actionMap.begin(); actionIter !=actionMap.end(); ++actionIter ) { if ( …

Software Development c++
Member Avatar for Phloxicon
0
120
Member Avatar for Happypants

Heya folks. I'm trying to write a BMI calculator, but I'm missing something. Splint tells me I have a parse error before the scanf, but I'm not seeing it. Also, I'm struggling to get the BMI to print (I'm pretty sure the two are related). It worked (before I put …

Software Development c
Member Avatar for Happypants
0
174
Member Avatar for adams161

Hi, I'm doing a bouncing ball game. i'm using y=mx + b I want to know when y hits certain numbers. that means it had a collision. the numbers are whole numbers like 539 etc. I increment Y slowly because i also want to not let x move much. when …

Software Development java
Member Avatar for adams161
0
91
Member Avatar for Archenemie

Ive been told that i can make Iphone Apps using java, but what IDE/File Extension/Code Structure do i use? can i simply use a converter program to swap my current java code into an iphone App or would i need to code from scratch? Any and all advice is greatly …

Software Development ide iphone java
Member Avatar for jbennet
0
120
Member Avatar for Dragennd

I'm having a problem with loading my MS Access Database. I can get it to load but it won't load in a row. My friend told me to try this but it puts all the information in a column instead of putting all the information spread out accross the row. …

Software Development dataset microsoft-access vb.net
Member Avatar for Dragennd
0
135
Member Avatar for jlego

Sorry if there is a topic on this somewhere - i have been searching for awhile now no dice. I'm upgrading a VB6 application to a vb.net 2008 application. problem that's driving me nuts: I fill a listview with a list of customer first & last names + number from …

Software Development listview vb.net
Member Avatar for jlego
0
350
Member Avatar for jcax

I'm trying to move one big C++ string (with separators) like one below [CODE] & 12345 & 12345 & 23423 & 90323 & [/CODE] into 3x5 array like one below with the first group of numbers excluded char array[3][5]; [CODE] { '1' , '2' , '3' , '4' , '5'} …

Software Development c c# c++
Member Avatar for jcax
0
291
Member Avatar for paolo_romeo13

Hi hoping for some help with what is wrong with my code. Basically i have 2 sets of arrays that need to be compared. I'm creating a computer shop so there is a set of arrays giving descriptions of the computer like CPU speed etc and there is another set …

Software Development java
0
56
Member Avatar for zobadof

I have been getting tutorialed by somebody who also learns C++ and gave me the code to make a new window, but the CMD also opens with that. The fact that cmd opens with that is not the problem, the problem is I dont think I was ready to move …

Software Development c++
Member Avatar for zobadof
0
91
Member Avatar for matmeister

The problem: Palindromes are words or phrases that read the same backwards as forwards. Write a C++ program that indicates whether each line on an input file, called sentences.txt and given on my homepage, contains a palidrome. Those lines of sentences.txt that are palidromes should be written to an output …

Software Development c++
Member Avatar for zobadof
1
334
Member Avatar for Devi

First let me say I know absolutely nothing about Python. All I know for sure is that I own the PC game Vampire Bloodlines and I am getting a runtime error. I have researched online and have read that if you have an older version of Python the game will …

Software Development python
Member Avatar for Nick Evan
0
365
Member Avatar for dennis.d.elston

I new to the C# world. I'm currently taking a class and am having trouble with the following program. "Write a program for an automated teller machine that dispenses money. The user should enter the amount desired (a multiple of 10 dollars) and the machine dispenses this amount using the …

Software Development
Member Avatar for towerrounder
0
592
Member Avatar for digital_ice7

[CODE]#include <iostream> using namespace std; void pop(int s, int n) { for (int l = 0; l < n; l++) { for (int i = 0; i < n; i++) { cout << s[l][i] << "\t"; } cout << endl; } } int main() { int n, num; cout << …

Software Development c++
Member Avatar for mrnutty
0
94
Member Avatar for Antenka

Hello, everybody. I had a problem while connecting to Oracle. Got messages: [QUOTE=Error]ORA-00604: error occurred at recursive SQL level 1 ORA-12705: Cannot access NLS data files or invalid environment specified[/QUOTE] And found solution for this - setting the default locale in java code: [code=java] Locale.setDefault(Locale.US); [/code] This works just fine …

Software Development java oracle
Member Avatar for Antenka
0
146
Member Avatar for ihatestarch

Studying for the final and can't remember the details behind the copy constructor. I know what it does, just don't know the "why" behind some stuff. Here is an example of a copy constructor I have. [CODE] Person::Person(const Person& aPerson) //m_variable=private variables { m_name = aPerson.get_name(); m_pBirthDate = new Date; …

Software Development c++
Member Avatar for ihatestarch
0
79
Member Avatar for meeny

We have several legacy "Windows" applications built in Visual Basic 6 that until Windows Vista displayed normally. Now we have random textboxes that display with a black background, even before any records are brought into the form (and after as well). Some forms in one application have one or two …

Software Development display visual-basic windows-vista
Member Avatar for meeny
0
91
Member Avatar for kirennian

Hi there. I'm currently attempting to create a vector of structs whereby the struct itself contains a vector. The problem I am having is upon creation of the struct itself, throwing the following error. error:C2075: 'Target of operator new()' : array initialization needs curly braces. [code=c] struct DISPLAY_DEVICE_CAPABILITIES{ vector<int[3]> resolutions; …

Software Development c++
Member Avatar for kirennian
0
211
Member Avatar for karthik.c

hi, im getting recv:bad address error in the server code when im receiving the data from the client.i tried passing the structure and an integer alone ,but for both i got the same error. for structures: client: [code=c++] struct Data { char data1[255]; char data2[255]; int val1; }; struct Data …

Software Development c client-server data-structure
Member Avatar for programmersbook
0
3K
Member Avatar for tchiloh

I will if i press down that the focus go to the next textfield. i will not do every time [CODE] if (focus() = controlname) controlname.focus() else if (focus() = controlname) controlname.focus() [/CODE] what can i do?

Software Development
Member Avatar for tchiloh
0
159
Member Avatar for ujjval dave

hi guys please help me.i have confusion for file handling. i am developing a application that uses one txt file. now i want to find a particular word from file and replace it as space. i don't how to do this. please help me

Software Development vb.net
Member Avatar for kvprajapati
0
105
Member Avatar for DawnOfIkaros

Don't know if this is the right place to post this but... I just started with SDL, and get the error: expected constructor, destructor, or type conversion before '*' token With this code: [CODE]#pragma comment(lib, "SDL.lib") #pragma comment(lib, "SDLmain.lib") #include "C:\Documents and Settings\Mikael\Mina dokument\SDL\SDL-1.2.14\include\SDL\SDL.h" #include <cstdlib> #include <iostream> #include <string> …

Software Development c++
Member Avatar for DawnOfIkaros
0
119
Member Avatar for C++ Beginner

The program calls for: Here is what the program calls for: Write a program that lets a maker of chips and salsa keep track of their sales for 5 different types of salsa they produce: mild, medium, sweet, hot, and zesty. It should use two parallel 5-element arrays: an array …

Software Development c++
Member Avatar for valtikz
0
445
Member Avatar for Lida_pink

How can I SWITCH the contents of 2 textboxes by clicking on a command button? I tried to solve it this way : [CODE]Private Sub Command1_Click() Text1.Text = Text2.Text Text2.Text = Text1.Text End Sub [/CODE] But it didn't work out and it only changes the content of text1 Thanks in …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
146
Member Avatar for wingers1290

Hi, thanks for all the help with my code so far, I just have one more nagging chink in the chain. This is my code for saving my file which works as expected. [code] Person Bob = new Person(); Bob.CallSign = textBox1.Text; Bob.Freq = textBox2.Text; Bob.Time = textBox3.Text; Bob.fName = …

Software Development c c# c++ file-stream
Member Avatar for wingers1290
0
1K
Member Avatar for nccsbim071

Hi Please tell vb.net equivalent of following method: [CODE=C#] private void LookForUpdates() { System.Threading.ThreadStart timerThreadStart = new System.Threading.ThreadStart(delegate() { sua = new ShowUpdatAvailable(); DelGetUpdateArgs delGetUpdateArgs = new DelGetUpdateArgs(this.GetUpdateArgs); sua.GetUpdateArgs = delGetUpdateArgs; sua.StartLookingForUpdate(); }); timerThread = new System.Threading.Thread(timerThreadStart); timerThread.Start(); } [/CODE] I tried using C# to VB.NET code converter which gave …

Software Development c# vb.net visual-studio
Member Avatar for nccsbim071
0
947
Member Avatar for new_2_java

Hi all, I have a program, which is invoked from a shell script. I need to return back to the shell script a status, whether the program succeeded or failed, so the shell script determines whether to continue with its normal course of actions or to stop upon faileur. So, …

Software Development java
Member Avatar for pbHINF
0
832

The End.