43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for MasterGberry

Not sure why I am getting it, I got this one other time and forgot how i fixed it.... Getting it when i am calling my functions in the main file (3rd) Three files to this code: [CODE]namespace SALES { const int QUARTERS = 4; struct Sales { double sales[QUARTERS]; …

Software Development c++
Member Avatar for MasterGberry
0
155
Member Avatar for lelejau

I have this function in the main form: [code=c] public void Check() { UpBox myClass = new UpBox(); myClass.UpdateBox(listBox1,"Hello"); } public void Initial() { Thread thread = new Thread(new ThreadStart(Check)); thread.Start(); } class UpBox { private delegate void Box(ListBox list, string text); public void Box2(ListBox list,string text) { list.Items.Add(text); } …

Software Development
Member Avatar for Mitja Bonca
0
184
Member Avatar for ram619

Hiiiiiiiiiiii!!!!!!!!!........... The program written below runs perfectly upto some extent but the output varies............because the compiler prints the "{Enter the value}" line twice and itself adds a positive number in the counter.................. [code=c] #include<stdio.h> #include<conio.h> int main() { int sum1=0,sum2=0,sum3=0; char value,alpha; while(alpha!='D') { printf("\n Enter the value"); scanf("%c",&alpha); if(alpha==0) …

Software Development c
Member Avatar for Kamatari
0
137
Member Avatar for fussballer

Hi, This is probably, a really novice question, but I have some code that is using the malloc() function to declare an array, the problem is that I am using a special compiler to compile code for hardware which gives me a lot of errors because of the stdlib.h header …

Software Development c
Member Avatar for mitrmkar
0
244
Member Avatar for jlego

i work with a guy who constantly complains and posts on stackoverflow that i am a sloppy coder (he is a web developer, i am a .net developer, he has never actually looked at my programming). but curiously, i researched. The only thing that I do not follow with best …

Software Development vb.net
Member Avatar for jlego
0
171
Member Avatar for davibq

Hi, im trying to print a "$". I tried using: msj db "Hola", 36 msj db "Hola \$", '$' msj db "Hola \\$", '$' But none of them worked.. Help please

Software Development assembly
Member Avatar for mathematician
0
165
Member Avatar for alaa sam

hi can you tell me what type of data i should use to store a very large number like 500! (factorial of 500) thanks

Software Development c++
Member Avatar for alaa sam
0
87
Member Avatar for Melow

i'm trying to populate a JList, and i saw that this is how it supose to work [code] JTable tabel = new JTable(); tabel = new JTable(row, cols); while (it.hasNext() && it1.hasNext() && it2.hasNext() && it3.hasNext() && it4.hasNext()) { Object ob[][] = { { it.next(), it1.next(), it2.next(), it3.next(), it4.next() }} …

Software Development java
Member Avatar for Melow
0
175
Member Avatar for kezkez

So I've printed the first node in the linkedset. What I'm trying to do now is to figure out how to print the entire linkedSet1, in this case, since only one node has been added, it should only print the first node, but once more nodes are added it will …

Software Development java
Member Avatar for kezkez
0
112
Member Avatar for Stefano Mtangoo

I know many will start with ODBC, but slow down ;) I have searched for ODBC and all I find is UnixODBC. Is this the same as ODBC? Also how stable it is? I will be happy to know some apps/companies behind it! I need support for MySQL, PostGreSQL, DB2, …

Software Development c c# c++ oracle postgresql
Member Avatar for Stefano Mtangoo
0
149
Member Avatar for hoover_red_one

Please help! Im behind in my homework and dont really even understand it anyways. I cluelessly added the `addCoin("...");`, which i believe is correct. but I dont know what to add to the return statement for `public String toString( )` If you are willing to help, plz provide steps as …

Software Development java
Member Avatar for joehms22
0
633
Member Avatar for arithehun

Okay, you know when on like an alert window, or a form, one of the buttons automatically gets executed when you press enter, such as shown. [I]See Picture #1[/I] [i]So I was wondering[/i] how I could do this in Java for a both a JFrame and a JOptionPane. Thanks. arithehun …

Software Development java
Member Avatar for arithehun
0
128
Member Avatar for newbee3

Hello, I need help on writing a C++ program that allow the user to input two values: a username and a password. Below is what I have so far to test the password and it is not working. #include <iostream> #include <string> #include <vector> using namespace std; int main () …

Software Development c++
Member Avatar for chiwawa10
0
110
Member Avatar for palavi

I need to write a code in which i want to create each file for every iteration of a loop add data into the file. also the filename should change every time. for example: familyname1_parts.txt for 1 iteration for second familyname2.parts.txt for 2 iteration and so on.. [CODE]try { out …

Software Development file-system java
Member Avatar for Linez
0
1K
Member Avatar for tawes01

I'm using Dev-c++ to make a dialog-based app. I had it working, but now I am getting an error: An Access Violation (Segmentation Fault) raised in your program. I have narrowed it down to the winmain function: [CODE]int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLine, int iCmdShow) { if (iCmdShow …

Software Development c++ windows-api
Member Avatar for tawes01
0
291
Member Avatar for hi102

Can someone please help fix this program? I'm pretty new in Python. Every time I run this program it says : Traceback (most recent call last): File "E:/Python/delin.py", line 38, in <module> discounted_total = regular_total - full_discount TypeError: unsupported operand type(s) for -: 'float' and 'NoneType' def find_discount(total): if total …

Software Development python
Member Avatar for hi102
0
11K
Member Avatar for Rogue Hermit

Hello, I am working on a program that requires the splitting of a string (the string in question is "BSHDDBDSBSHHSBH") so that it can count the occurrences of each separate letter. The code I currently have is: [CODE] public static void countPercent(Scanner input) { String nucl = input.next(); int[] count …

Software Development java
Member Avatar for joehms22
0
106
Member Avatar for Shlesh

hi!!!!! any body tell me what is command line argument with example. Thank's in advance.

Software Development
Member Avatar for ashishkumar008
0
206
Member Avatar for Medalgod

I am designing an instant messanger and I am using tabs to allow for multiple chats to be taking place in the same windows form. When a new chat is opened, a new tab is added, using a User Control to make the new tab contain all of the required …

Software Development
Member Avatar for nick.crane
0
1K
Member Avatar for arthurr.ie

I got a simple priority queue of <node> objects. [CODE] Priority Queue<node> queue = new Priority Queue<node>(n,compare);[/CODE] the node object has a few fields, one of them an int field called LB(lower bound) I've build a compare class so the queue would use my compare to sort itself. The problem …

Software Development java queue
Member Avatar for jon.kiparsky
-1
145
Member Avatar for ace8957

Hi all, So I have reached a kind of impasse on my current project. I'm trying to make a program that can function like a phone book, loading information from a file into a binary search tree and performing operations on said information. The issue I'm having appears to be …

Software Development c++ data-structure file-system
Member Avatar for ace8957
1
7K
Member Avatar for Hayzam_#include

Hi i wanted to make a software that can "Off" and "On" a computer fan connected with a usb can i make it in c++?? i have 1 year experience doing C++ Thanks,

Software Development c c# c++
Member Avatar for Hayzam_#include
0
141
Member Avatar for SkyVValker

[ICODE]CR.Reset CR.ReportFileName = "StudentInformation.rpt" CR.SelectionFormula = "{SPINF.GRNO}=" & Me.txtGRNo.Text & "" And "{SPINF.CMBCAT}=" & Me.cmbCat.Text & "" CR.Action = 1[/ICODE] [I]m trying to passing two parameter for cr..! bt it always shows the error type mis match.! plz help me[/I]

Software Development visual-basic
Member Avatar for AndreRet
0
219
Member Avatar for d5e5

I know next to nothing about statistics so tried Statistics::Basic because it seemed easy to use. Then I tried Statistics::Descriptive because it has functions that Statistics::Basic lacks. What I did not expect was to get a different result when calculating Standard Deviation using Statistics::Descriptive than when using the other module …

Software Development mathematics perl
Member Avatar for d5e5
0
410
Member Avatar for minskypooh

The problem is to create a console-based program that prompts the user for name, student number, course, and grade (50-100 whole number only). After the input, a message should be displayed depending on the grade. The program should display an error message and terminate immediately if there is an invalid …

Software Development c++
Member Avatar for minskypooh
0
199
Member Avatar for Mike Bishop

Morning all, Hope you can help. I normally use VB6 for my projects but thought i would look at Visual studio 2010. I have a windows form with a connection to my sql database which is working fine. i want to be to select data and input that data into …

Software Development open-source sql vb.net visual-studio
Member Avatar for Mike Bishop
0
2K
Member Avatar for nssltd

Hey, During my development of web browser i have encountered a problem. The problem is that on my bookmarks panel if a user adds a bookmark that's already on the panel, the application gets an error and has to quit. I tried surrounding the code with a try catch statement …

Software Development web-browser
Member Avatar for Mitja Bonca
0
140
Member Avatar for Hayzam_#include

Hi i am new to qt but i have programing experience in c++ in dev - c++ after i moved to qt i thought i could start like this if i press a button it should output hello world it is just showing me 1 error system was not declared …

Software Development c++ qt
Member Avatar for Hayzam_#include
0
100
Member Avatar for Wattsits

is there an event where when the listview box is updated/changed i can call a function where i can do some calculations on the changed data. the listview is updated from textboxes and a button and the calculated result is shown in a text box thanks steve

Software Development listview
Member Avatar for Mitja Bonca
0
173
Member Avatar for Wattsits

Hi ppl. Im a bit of a newbee when it comes to coding but having a problem adding a text file to a listview box. My code sort of works as far as putting data in the first collum goes. [CODE]// Set variables int collum = 0; int arraySize = …

Software Development listview
Member Avatar for Wattsits
0
121
Member Avatar for ajst

Hi there I'm writing to a file so that it creates a back log of the data and time i did something. I've got the program so it writes the data that is needed and also the date and time. the problem is if you use the program more then …

Software Development java
Member Avatar for ajst
0
189
Member Avatar for fussballer

Hi, I am developing some code to run on hardware and I am using the sin() and cos() functions inside the standard math.h many times, which slows the program down dramatically. I was wondering if there is a way to "approximate" the sine and cosine of a value (angle is …

Software Development c mathematics
Member Avatar for Adak
0
238
Member Avatar for jemz

hello can you help me please where can i get the crystal report and how can i use this...thank you in advance hoping for your positive responds.

Software Development visual-basic
Member Avatar for AndreRet
0
95
Member Avatar for abelingaw

Ok, im having a long time creating reports for my program. I would like to ask if it is possible to connect my program to an existing msword file. E.g: If i click a button on my form, lets say cmdLeaveReport, an msword file named leavereport.doc will open (of course …

Software Development visual-basic
Member Avatar for AndreRet
0
248
Member Avatar for dimasalang

hey, i'm new here..need help is it possible to save your work from other applications (e.g. word, excel, photoshop etc.) using vb6?? thanks.. this is for our thesis.. ASAP

Software Development visual-basic
Member Avatar for AndreRet
0
524
Member Avatar for baby_c

please anyone help me to catch this.i tried to return an array from function and access it within main function.i just got a warning [CODE]"function returns address of local variable "[/CODE] and when i execute the program it gives garbage values as array elements..cam you help me pls... [CODE]#include<stdio.h> int …

Software Development c
Member Avatar for baby_c
0
148
Member Avatar for atticusMom

I'm not including code yet as to the fact I've restarted several times. I think if I can determine how to start I can make some headway. Here are my beginning instructions. High-level specifications Your project manager has assigned you the task of developing a subsystem that tracks the populations …

Software Development java
Member Avatar for quuba
0
340
Member Avatar for Katana24

Hi - I'm making a program to calculate PI to n number of decimal places, the calculations are all going fine and now I want to combine values from two arrays into one 2D array for quick reference. I'm a-little confused on how to do this. It should go like …

Software Development java
Member Avatar for Katana24
0
2K
Member Avatar for Alex86fire

Hey guys, I have a problem, I have to take a text and depending if a boolean - split_words is true or false I have to parse the text on some lines splitting the words or leaving them whole. for example, text is: This is the text I have to …

Software Development java
Member Avatar for Alex86fire
0
165
Member Avatar for vbx_wx

I`m getting the following error in my code(line 65): [code] error: expected constructor, destructor, or type conversion before ‘*’ token [/code] [code] namespace SocketSpace { class Error { public: Error(const std::string& msg = 0) throw(); const char* what() throw(); ~Error() throw(); private: std::string message_m; }; class Socket { public: void …

Software Development c++
Member Avatar for vbx_wx
0
144
Member Avatar for gpjacks

So, I am in the mid part of my C++ class and am having trouble with a vector project at the end of the chapter. I don't expect the answer, but if someone would point me in the right direction I would greatly appreciate it :) #1). Write a loop …

Software Development c++
Member Avatar for gpjacks
0
266
Member Avatar for jlivvers

Hi, I have a windows form that adds new entries to a dataset via a datagrid using the updateAll method. Im passing in an id from another form and id like to specify this in the sata thats being written to the dataset. So by default the id would already …

Software Development dataset
Member Avatar for Mitja Bonca
0
173
Member Avatar for vanalex

Hello everybody! I want to ask something that crossed my mind today about strcpy..I wrote the following piece of code and although i didn't expect it to work..it worked! [CODE] #include <iostream> using namespace std; int main() { char name[20], *dname; cout << "what's your name?: "; cin.getline(name, 20); strcpy(dname, …

Software Development c++
Member Avatar for WaltP
0
67
Member Avatar for Wattsits

so. i downloaded a dll of the net and im trying parse data through it. this bit of code i pretty much ported from VB so i expect a reason its not working for me is the syntax is incorrect. iv tried to make it as c# as i know …

Software Development
Member Avatar for Wattsits
0
122
Member Avatar for darkbreaker

I wrote a function in C that receives a pointer to a character array as argument and switch all accented letters with their corresponding character, the code is as follows: [CODE]void removeacc(char *texto){ char a[]="\x83\x84\x85\x86\xa0\xc6",A[]="\x8e\x8f\xb5\xb6\xb7\xc7"; char e[]="\x88\x89\x8a\x82",E[]="\x90\xd2\xd3\xd4"; char i[]="\x8b\x8c\x8d\xa1",I[]="\xd6\xd7\xd8\xde"; char o[]="\x93\x94\x95\xa2\xe4",O[]="\x99\xe0\xe2\xe3\xe5"; char u[]="\x81\x96\x97\xa3",U[]="\x9a\xe9\xea\xeb"; char n[]="\xa4",N[]="\xa5"; char c[]="\x87",C[]="\x80"; char y[]="\x98\xec",Y[]="\xed"; int …

Software Development c
Member Avatar for darkbreaker
0
138
Member Avatar for hiddepolen

Hi Daniweb! I couldnt find my problem anywhere else on this forum, so I decided to make my own thread... My problem: I'm trying to make a function to decide how many decimals a 'double' has. My code (slightly edited, here's the base of it): [CODE] // int m = …

Software Development c++
Member Avatar for MattyRobot
0
185
Member Avatar for blacknred

Hi I just started with python, and trying to implement some system admin tasks and running into some rough. Basically I need to do some task on whichever share exists on their corresponding server. eg Server A has shares 1,2 and 3 Server B has share 1 and so on. …

Software Development python
Member Avatar for blacknred
0
90
Member Avatar for claudiordgz

Hi guys, I am trying to load a Haptik.hpp to control a Novint Falcon. I receive error C2144 syntax error and C4430 in the next line [CODE] //---FUNCTION // Desc: C-based entrypoint to retrieve IHaptikLibrary interfaces //-------------------------------------------------------------------------------------------------------------> extern "C" HAPTIK_DLL_IMPORT_EXPORT PVOID GetHaptikLibraryInterface(IN UINT32 interfaceId = HAPTIK_IHAPTIKLIBRARY); [/CODE] So I pasted …

Software Development c++
Member Avatar for Ancient Dragon
0
553
Member Avatar for Thropian

ok well I'm working on making a dungeon explorer and I can't get images to work...so far I have this[CODE] from Tkinter import * class App: def __init__(self, master): frame = Frame(master) frame.pack() canvas = Canvas(frame, width = 225, height = 225) canvas.pack() gif1 = PhotoImage(file = 'Fhall.gif') canvas.create_image(0, 0, …

Software Development python tkinter
Member Avatar for Thropian
0
145
Member Avatar for kezkez

Currently trying to understand why this intersection method doesn't work properly, I think the problem is the if statement line but not sure if the problem solely lies there. I've included the necessary files to make my question clearer. The setIntersection method is part of the ArraySet class. The main …

Software Development java
Member Avatar for kezkez
0
182

The End.