43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for dreamuser

I get a "Debug Assertion Failed" when I go to run my program. More specifically it says "Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)". I assume this is because I'm using pointers incorrectly. Here is some information about the assignment: [quote]A file contains text representing a prioritized collection of messages. The messages were received one …

Software Development c++
0
72
Member Avatar for darklich13

I've got a small little program that I'm trying to write that converts a base10 number to a base2. For some reason my instructor wants us to use stack on this. I've got most of it done but I'm having trouble trying to get the stack converted to an int …

Software Development java java-swing
Member Avatar for darklich13
0
132
Member Avatar for Software guy

Hi, i am little confused in usage of strtok() syntax. Basically , i extracted the source code of a webpage using Java and now i have to remove all the extra tags inside the html page so i can have clear text. For example a simple HTML page is like …

Software Development c
Member Avatar for Software guy
0
222
Member Avatar for Nemoticchigga

I have a program with a bunch of threads running. I kill them all at the end of the program. I have stepped through and seen them all abort. Is there a way to see (since I cant when stepping through) which thread it is? I can see the process …

Software Development c++
Member Avatar for Alex Edwards
0
85
Member Avatar for Utter_iMADNESS

Hello, I'm trying to make a code that acts as a simple menu for a number of programs. What I was wondering was how do I include the .ccp files and run them in the menu program. Here's what I have so far: [code] #include <stdio.h> #include <stdlib.h> #include "1.cpp" …

Software Development c
Member Avatar for Utter_iMADNESS
0
97
Member Avatar for Thew

Hello, I need help to solve the problem in my app that uses structs. I have for example this struct: [CODE] struct SimpleStruct { SimpleStruct(): hasVars(false){} ~SimpleStruct(); AnotherStruct SimpleVariable; bool hasVars; }; [/CODE] and in the code, initializing this struct goes ok, but when the class, that has this struct …

Software Development c++
Member Avatar for Thew
0
149
Member Avatar for ravikiran032

i am not able to execute applets. i have written the following program. [I][B]import java.awt.*; import java.applet.*; /* <applet code="sampleapplet" width=200 height=60> </applet> */ public class sampleapplet extends Applet { public void paint(Graphics g) { g.drawString("simple applet",30,30); } } [/B][/I]:?: javac sampleapplet.java appletviewer sampleapplet [B][U]The following error is displayed:[/U][/B] [COLOR="#ff0000"] …

Software Development java
Member Avatar for kumarprabu
0
3K
Member Avatar for QuantNeeds

Hello I am trying to write a program that prompts the user for 3 test scores, averages the 3 test scores, and keeps repeating until the user enters "N". My problem is that I am creating the average and exam scores as data type double but in order to check …

Software Development c++
Member Avatar for QuantNeeds
0
132
Member Avatar for jacobi

Except for this one problem I have created a board game in VB6. There are four red pieces and one blue, with the board as per chequers, only the white squares in use. The sqaures are in an indexed control array (0 to 63) with only the white squares enabled. …

Software Development visual-basic
Member Avatar for jacobi
0
191
Member Avatar for Ravenous Wolf

hi. can anyone tell me the connectionstring for connecting to an ms access database over a network? only the second part, where you specify the location of the database, is needed. i know how to specify the jet engin. let me give an example. to connect to a local dbs …

Software Development
Member Avatar for miskeen
0
468
Member Avatar for Nemoticchigga

I want to read each line of text file and store each line into a giant buffer so I can look at all the contents. How would I do this? [CODE]int _tmain(int argc, _TCHAR* argv[]) { ifstream indata; // indata is like cin indata.open("example.txt"); // opens the file if(!indata) { …

Software Development c++ file-system
Member Avatar for Lerner
0
114
Member Avatar for asciiman

Hi all, [code] class: FileCheck(object): def checkFiles(install_vers=None, uninstall_vers=None): if uninstall_vers != None or install_vers != None: if uninstall_vers != None: for ver in uninstall_vers: print "checking %s" % ver if install_vers != None: for ver in install_vers: pass print "done" if __name__ == "__main__": check = FileCheck() check.checkFiles(uninstall_vers=["1.0","1.3"]) [/code] I'm …

Software Development python
Member Avatar for asciiman
0
2K
Member Avatar for ninjaimp

HI I have an application that contains certain editable fields (textboxs) and what i want to do is know when someone has changed or entered new text. What i done was in the 'TextChanged' part of a text box was this: Private Sub txtCNotes_TextChanged(ByVal sender As System.Object, ByVal e As …

Software Development vb.net
Member Avatar for waynespangler
0
118
Member Avatar for tuse

Ok, I had posted this- [url]http://www.daniweb.com/forums/thread128689.html[/url] and got this piece of code from a link ([url]http://vb.net-informations.com/crystal-report/dynamic_crystal_report_from_sql_query_string.htm[/url]) [code=VB.NET] Imports System.Data.SqlClient Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Imports System.Data Public Class Form1 Dim objRpt As New CrystalReport1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim cnn As SqlConnection Dim …

Software Development api daniweb-api open-source vb.net
Member Avatar for tuse
0
108
Member Avatar for mafaisal

Hello All I am Using sql2005 My Doubt is How To Format Numbers in Sql Query Like Format(NOS,"0000") in vb ie I have Table Tbl1 Fields Nos1 Datatype int values 1,2,3,4,................1000 When Simple Query Select * From Tbl1 We got Following o/p 1,2,3,4 But I want Out Put Like below …

Software Development sql visual-basic
Member Avatar for mafaisal
0
155
Member Avatar for tzushky

Hello, I've been swimming with Python for a while, but there are remote field of it which I don't find easy. For example I have made an API from some XML files, and there will be many versions of it. The API is actually several modules either with functions or …

Software Development api python xml
Member Avatar for tzushky
0
180
Member Avatar for rogdawg

I am using MS Visual C++ to do a "quick" little project to create a tiny dll that I need. I hope this is the correct forum for this question. I have a fairly simple project that compiles with no errors but, when I try to build it, I am …

Software Development c++
Member Avatar for rogdawg
0
273
Member Avatar for Ole Raptor

hello, I am having a problem getting all of my items to display correctly. I have a form that has a combobox. When this combobox changes I need to display different items on the form. This is the code to do this but for some strange reason not all items …

Software Development vb.net
Member Avatar for Ole Raptor
0
157
Member Avatar for &rea

Hello, I want to save the image binaryImage in a file (bmp) so that I can open binaryImage.bmp and this way working with it in another programme. I have tried different ways (see below) but I don't find a solution. I have no idea how to use this method.Could anyone …

Software Development c++ image
Member Avatar for &rea
0
95
Member Avatar for Ancient Dragon

I've downloaded and compiled wxWindows using VC++ 2008 Express. Also am able to compile/link the Calculator example program (haven't tried the others yet). Now I want to begin writing my own program. So I searched google for tutorials to help get starte. None of them contain main(), and neither does …

Software Development c++
Member Avatar for Nick Evan
0
163
Member Avatar for ahmbil

please can somebody help me to load a records from a textfile(random acces file)and display it into te lisview.

Software Development listview visual-basic
Member Avatar for eanastacio20
0
114
Member Avatar for ymf

Hi, I'm going over this topic in unix and i'd be glad if someone could explain this bit of script: [ICODE]sed 's/\(abc\)*/xyz/'[/ICODE] so the input would be [ICODE]abcabcabc[/ICODE] which results in [ICODE]xyz[/ICODE] Also how come 'xyz' doesnt repeat 3 times because the input is 'abc' x 3 ? Thanks in …

Software Development shell-scripting unix
Member Avatar for ymf
0
86
Member Avatar for Kob0724

I can not understand why I am getting this memory leak. First, here is the ouput from valgrind. [code] ==27078== 24 bytes in 1 blocks are definitely lost in loss record 45 of 827 ==27078== at 0x4A061A5: operator new(unsigned long) (vg_replace_malloc.c:167) ==27078== by 0x434B8F: ETArray::ETArray(QString const&, QWidget*) (etutils.cpp:343) ==27078== by …

Software Development c++ qt
Member Avatar for Ancient Dragon
0
192
Member Avatar for Alex Edwards

I'm getting a really odd error in my program. The lvl value retains its initial value if it's left alone, but when the program runs after you've assigned it a value it get's a ridiculous number... then the previous number after another assignment... and the process continues. Here's the code. …

Software Development c++ session
0
98
Member Avatar for nemom

Hello everybody,, this is a simple java method that calls itself,, [code=java]class ex{ public static void main(String [] args){ simpleMeth(5); } static void simpleMeth(int i){ if(i != 0){ rec(--i); System.out.println(i); } } } [/code] If you follow the the codes you will find after sending number (5) to the method …

Software Development java
Member Avatar for nemom
0
172
Member Avatar for joshmo

I am trying to do a simple queue using linked list. I am failing to perform dequeue because I cant get the logic straight. If there is anyone who could explain to me about the simple logic of this then it would help alot. Thanks. I have also posted the …

Software Development c++ linked-list queue
Member Avatar for Lerner
0
156
Member Avatar for Yuichi

Hi guys,i am new to both c++ and this forum...I got a problem with a question i m supposed to do.I am supposed to create a queue system but i am stuck at a point where i can't add numbers to the queue system.This is the question... You have been …

Software Development c++ queue
Member Avatar for Yuichi
0
208
Member Avatar for s7plc

Ok, I am fairly new in using Python, but have a pretty good understanding of it. But I'm up against something that I just can't figure out. I have an archived file that I am trying to take apart into individual files. It isn't a zip file, but an ascii …

Software Development file-system python
Member Avatar for s7plc
0
255
Member Avatar for phalaris_trip

[b]This is a long post with no specific questions as such. I'm just looking for any advice from people with real-life experience in the software development arena.[/b] ---------- Intro: I've just taken up a summer job, and I was really enthusiastic about this. It will be 12 weeks of C++, …

Member Avatar for TacklesMcCaw
0
395
Member Avatar for Shilpa Jain

Hi All, I am novice in VB 6.0. I have to search data from access table using Employee no field which is unique and populate it on the form. But, I am encountering an error whenever I try to run the source code. I am getting runtime error as "No …

Member Avatar for Shilpa Jain
0
160
Member Avatar for Shilpa Jain

Hi All, I am making a tool in VB using MS access database. When I run the query in access it returns me the data but in VB it shows 0 recordcount. Any idea what could be the reason for this? One nore thing to ask. As multiple people can …

Member Avatar for Shilpa Jain
0
162
Member Avatar for anakastakis

Hello, I'm trying to make a web bot that fills out a login form from this at&t site [url]http://www.viewmymessage.com/en/legacy/login.jsp[/url] I cannot seem to get it to work though here is my code: import urllib import urllib2 url = 'http://www.viewmymessage.com/en/legacy/login.jsp' user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)' values = {'messageId' …

Software Development python
Member Avatar for preyan
0
639
Member Avatar for Shilpa Jain

Hi All, I am inserting data in access database using Vb6. Data is getting inserted but when I try to fetch it again, it returns an empty row.I have an idea that I have to use update/refresh statement but not getting where to use it. Please help!!! Below is the …

Member Avatar for Shilpa Jain
0
94
Member Avatar for Alex_

Hey, i'm trying to sort direct in a file. The problem is that when i read the first time an int from it,it works! doh. but when it reads for the second time, it doesn't. ( Neither the swap works. No signs of errors from the compiler. [code=language] FILE *fp=fopen("element.txt","rw+"); …

Software Development c
Member Avatar for Alex_
0
918
Member Avatar for Kadence

The vector class provides access and altering uses brackets, e.g. v[5]. How can I make a class that can do the same? e.g. given Class Test object t, t[5]=...

Software Development c++
Member Avatar for Kadence
0
92
Member Avatar for shadwickman

Hi, I was wondering how to get around a problem I was having with eval(). I have a list of strings and each one is the name of a python file found in the same directory as the current script. I was it to import these modules to use in …

Software Development python
Member Avatar for shadwickman
0
223
Member Avatar for QuantNeeds

Help – for both of my for header components, error reads the following, but I do not understand how to fix this because I am not sure what is wrong about it. Please help. warning C4552: '>' : operator has no effect; expected operator with side-effect [code] void inputGrades (int …

Software Development c++
Member Avatar for QuantNeeds
0
795
Member Avatar for QuantNeeds

Help - why is there an issue with the power function? the error states: : error C2668: 'pow' : ambiguous call to overloaded function [code] void compute(int integer) { cout << integer; int value = 9; while(value > 0) { cout << ++ integer; int square = pow(integer,2); cout << …

Software Development c++
Member Avatar for QuantNeeds
0
635
Member Avatar for Alex Edwards

I don't understand... I thought that it would be functional based on the logic, and I was fairly careful with my syntax but it's still not working. Sometimes values will compare to as being "equal" even though they're not. I'm using troolean compareTo method (an int, returns -1, 0 or …

Software Development c++
Member Avatar for Alex Edwards
0
115
Member Avatar for Alex Edwards

I was working with my own "Vector"-like class and thought about something. If I use the [] operator and return a reference, is there any way to mark that indice when a value is assigned to it? For example.. if I want to make a trim function that removes the …

Software Development c++
Member Avatar for Radical Edward
0
214
Member Avatar for Alex Edwards

Whenever I try to declare a "Regular Expression" while including symbols like "+", "-", "*", the match is done based on how those operators work. Now, when I try to use the regex API via combining those operators with backslash or \Q and \E I get the error message-- "...Illegal …

Software Development api java regex
Member Avatar for Alex Edwards
0
121
Member Avatar for tuse

Is there any way in which a crystal report be generated by giving the table name at runtime? ie. the user chooses the table whose report is needed and the .rpt files do not exist beforehand.

Software Development vb.net
Member Avatar for sheril85
0
313
Member Avatar for aksikan

1. GIVEN THE DATA BELOW, DESIGN IA-32 INSTRUCTIONS TO CONVERT THE BINARY STRING IN X TO AN UNSIGNED INTEGER AND SAVE IT IN Y. X BYTE "10110011" Y DWORD ? 2. GIVEN THE DATA BELOW, DESIGN IA-32 INSTRUCTIONS TO COUNT THE NUMBER OF 1'S IN X AND SAVE IT IN …

Software Development assembly
Member Avatar for Ancient Dragon
0
158
Member Avatar for lllllIllIlllI

Hi i have been fiddling around with the wxPython GUI toolkit for a bit and i wanted one of my programs to start with the window expanded. I googled it but couldn't find an answer there so any help here would be greatly appreciated.

Software Development gui python
Member Avatar for lllllIllIlllI
0
68
Member Avatar for inkcoder

I'm currently trying to make an address book that can store data in a .txt file. [CODE] print "Virtual Address Book" print "Austin Jackson; Project 4 : Jun 14, 2008" print " " print "1. Add New Contact Information" print "2. View Adress Book" choice = input(">") if choice == …

Software Development python
Member Avatar for inkcoder
0
102
Member Avatar for prasu

If i have a table with say x columns and y rows how do i get the contents of the 'i'th column into a arraylist

Software Development vb.net
Member Avatar for tuse
0
122
Member Avatar for Alex Edwards

I don't understand what is happening to my program... I have a feeling that private members are marked private for a reason, because I'm having a serious error with accessing base-class data types via inheritance and declaring friends within classes... If you run the test program after attaching the header …

Software Development c++
Member Avatar for Alex Edwards
0
163
Member Avatar for emilio

my form contains user contrors in a matrix spreading like this: [CODE=syntax]Main_Board = new Virtual_Vertex[9,7]; for (int i = 0; i < 9; i++) for (int j = 0; j < 7; j++) { Main_Board[i, j] = new Virtual_Vertex(); Main_Board[i, j].Location = new Point(8+(i*dist), 30+(j*dist)); Main_Board[i, j].VirtualVertexClicked += new VirtualVertexClickedHandler(CreateNewVertex); …

Software Development
Member Avatar for emilio
0
120
Member Avatar for Linda1

I am practically done with this project but got stumped in one area I am trying to use operator overloading and multiplying 2 to the complex number. Since I used operator* already, how do I call the operator with 2* complex no? How do I write the code for it? …

Software Development c++
Member Avatar for Linda1
0
153
Member Avatar for Kadence

I'm trying the following code to combine ints, and then get the original ints back: [CODE]#include <iostream> using namespace std; int getleft(int n){ return (n >> 24); } int getright(int n){ return ((n << 8) >> 8); } int main(){ int i = 15; int j = 28515; int combined …

Software Development c++
Member Avatar for dougy83
0
193

The End.