43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jeevsmyd

I have been doing TC++ programing for the last 2 years.. This evening all of a sudden I made the switch to vc++.. here is the code.. my first ever Visual C++ programme.. it is compiling without errors but the console window poped and disappeared quickly.. what is wrong? something …

Software Development c++
Member Avatar for WaltP
0
89
Member Avatar for letlet_pogs

Hello. I am trying to return an array and print the values. [code] public class Sample { public static void main(String args[]){ for (int i = 0 ; i<getNames().length;i++){ String a[] = new String[getNames().length]; System.out.println(a[0]); } } public static String[] getNames() { String names[] = {"bob", "jim"}; return names; } …

Software Development java
Member Avatar for balajimarisetti
0
2K
Member Avatar for beforetheyknew

Hi guys i've written a hash table as a collection for a program the key is a string, show below: [CODE]private Hashtable<String, Planes> planesFlying = new Hashtable<String, Planes>();[/CODE] How can i write a comparator to sort this into alphabetical order? i've tried a lot. Do you need to overide equals …

Software Development java
Member Avatar for gangsta1903
0
428
Member Avatar for emilo35

So, a while ago I wrote a SerializableImage class in order to easily bundle several images together into a single file. The class worked fine, both serializing, file I/O and drawing. In another project I'm working on I successfully used a copy of this SerializableImage class, until recently. I had …

Software Development java
Member Avatar for emilo35
0
185
Member Avatar for johnnybgoode

Is it possible to convert a python script into a compileble langguage. ?????

Software Development c++ delphi python
Member Avatar for vegaseat
0
767
Member Avatar for eddan

Yeah I was stupid and pressed (X) on all of the bars to the left you know the "Solution Explorer" I think and alot of more, how do I re-enable them?

Software Development vb.net visual-basic
Member Avatar for mitrmkar
0
92
Member Avatar for eddan

Hello!! I have started learning c++ and it has been a real sucess until now. My codes that worked before and those that im trying to use now, doesn't work.. I get a compiler error... Here is the code and the error: // tutorialearning.cpp : Defines the entry point for …

Software Development c++
Member Avatar for gangsta1903
0
900
Member Avatar for drakkar

hello everyone... i`m totally new to vb actually.now using vb express 2008.i`m currently trying to create log in function.basically, i`m already create database (database in vb 2008 itself) for login,which the login table contain 3 columns, Username, Password and Designation.example : [B][U]Username[/U][/B] -- [B][U]Password[/U][/B] -- [B][U]Designation[/U][/B] jack -- 123abc -- …

Software Development database-design vb.net
Member Avatar for drakkar
0
94
Member Avatar for rena0514

[CODE]//PizzaPanel.java Author: Carien Anderson import java.awt.*; import javax.swing.*; import javax.swing.border.*; import javax.swing.JOptionPane; import java.awt.event.*; public class PizzaPanel extends JPanel { public PizzaPanel() { setLayout(new BorderLayout()); setBackground (Color.white); setPreferredSize (new Dimension(700,280)); //North panel JPanel ppan1 = new JPanel(); JLabel l1 = new JLabel("Lets Eat!"); ppan1.add(l1); ppan1.setBackground(Color.green); add(ppan1, BorderLayout.NORTH); //West panel JPanel …

Software Development java java-swing
Member Avatar for stultuske
0
138
Member Avatar for yorro

Can anyone tell my why the code... [CODE=vb] Form1.Controls.Remove(myCustomControl) [/CODE] ...does not remove the control. Because whenever I remove a control and add it again, it does not Load but rather just changes its visibility from false to true and all the variables are not reloaded. I tried to use …

Software Development vb.net
Member Avatar for yorro
0
277
Member Avatar for Stefano Mtangoo

Hi guys, I have two bushes to clear up. I have doe SQL fro some time now but I have never done blob. I think the next project will require it. So here are my Question: 1. How blob differ from any other type like text? 2. How to create …

Software Development c++
Member Avatar for Stefano Mtangoo
0
122
Member Avatar for PDB1982

I have created an error for letting the user know when they have missed putting input into a text box. When I go to use my clear button, I can't get past the message that says I (the user) need to input information. Is there a way to ignore a …

Software Development vb.net
Member Avatar for kvprajapati
0
73
Member Avatar for pato wlmc

Well, i'm developing a program, ( API ) and i'd like to use a [url=http://www.snap2objects.com/wp-content/uploads/2009/10/6.jpg]non standar font,[/url] for some section of my program. My question is, how can i do this, i mean, i supose i have to install the font on the user pc, but how do i do …

Software Development api c++ windows-api
Member Avatar for pato wlmc
0
207
Member Avatar for ybkumar77

Hi, I am writing a simple program, trying to learn the usage of map. Following is the data, I will be storing in a map and I get a core dump when line No: 54 is being executed. Please let me know if something is wrong in my code. I …

Software Development c++
Member Avatar for ybkumar77
0
1K
Member Avatar for Leigh Reed

I am a uni student just starting out with java and getting more confused by the day. Can someone tell me what I have done wrong? It should input all of the strings and place them in the appropriate place in the bottom sentence. [code]import java.util.Scanner; // Needed for the …

Software Development java
Member Avatar for sealxlion
0
148
Member Avatar for ceyesuma

Could someone tell me what has to be changed to get the element name and text of my targetElement? I just get internal frame openFrameCount= 1 start obj() type= guide cmaj name: null value: null name: null value: null name: null value: null cmaj name: null value: null name: null …

Software Development xml
Member Avatar for ceyesuma
0
94
Member Avatar for jBat

Hi, I'm trying to convert a void pointer to a struct pointer.. that's seems very easy but my compiler give me error. Thanks. /home/subi/Personal/Projects/LinkedListUserInfo/main.cpp||In function ‘error_t parse_opt(int, char*, argp_state*)’:| /home/subi/Personal/Projects/LinkedListUserInfo/main.cpp|50|error: expected primary-expression before ‘)’ token| /home/subi/Personal/Projects/LinkedListUserInfo/main.cpp|50|error: expected ‘;’ before ‘null_pointer’| /home/subi/Personal/Projects/LinkedListUserInfo/main.cpp|48|warning: unused variable ‘null_pointer’| ||=== Build finished: 2 errors, 1 …

Software Development c++
Member Avatar for jBat
0
135
Member Avatar for jabbadabba

Here is my code atm [CODE]room_num = raw_input("Enter your room number: ") text_file = open("c:/roombookings.txt", "r") whole_thing = text_file.readline() if room_num in whole_thing: print "Room number found here is the information:" else : print "Room number not found." single_line = whole_thing.split('\n') for single_line in text_file.readlines(): if room_num in single_line: print …

Software Development python
Member Avatar for rueth
0
835
Member Avatar for ashkash

I have a 2d array with x and y coordinates. I need to figure out the north most, south most, east most, and west most points and print them out. I figure the best way to do this is to find the minimum x value and the corresponding point will …

Software Development java
0
69
Member Avatar for BrianK123

I have a series of of JOptionPanes pop up to get info from the user. However, if the user presses cancel, the machine gets an error (which is prevented). I'm trying to catch this and force the user to make a choice and press OK. MY code doesn't seem do …

Software Development java
Member Avatar for stultuske
0
2K
Member Avatar for nats01282

I am after making my program wait before responding to the users input, what code do i use for this and how do i implement it? [CODE]#include <iostream> using namespace std; int main() { char instuctions = 0; int A = 0; // user input 1 int B = 0; …

Software Development c++
Member Avatar for Stefano Mtangoo
0
168
Member Avatar for tkud

Hey everyone, I want to start learning socket programming. Ay references and advices will be greatly appreciated!!

Software Development c++ socket-programming
Member Avatar for Stefano Mtangoo
0
150
Member Avatar for Sawamura

hi masters.. anyone know what it shell? and how to do it? any code more helps... thx.. Best Regards

Software Development vb.net
Member Avatar for kvprajapati
0
488
Member Avatar for jmguerriero

This is my first post in the Dani community. I am brand new to java, 5 weeks into an intro to computer programming course. My assignment is to create 10 random numbers between 50 and 100. Then I am supposed to sort them from lowest to highest, find the average …

Software Development java
Member Avatar for jmguerriero
0
554
Member Avatar for lloydi12345

hello,i think this is just a simple question but im not really familiar with the basics of VB6.0 so i am asking it, can i ask how can i set integer value on text1.text without making the value visible on the textbox when i run the program? thanks like text1.text …

Software Development visual-basic
Member Avatar for student02
0
254
Member Avatar for spesseh

Hi all. This is probably quite a newbish question, but i have a input for a number. From the entered number, i want to extract the first digit in the number. So if the typed in number is 43, i want to extract the 4, but not the 3. In …

Software Development python
Member Avatar for spesseh
0
9K
Member Avatar for Stefano Mtangoo

What are rules to observer when writting More than one class in single Java file. Let say three classes on the same file Thansk

Software Development java
Member Avatar for kvprajapati
0
139
Member Avatar for wolfkrug

Can anyone tell me how to execute a program like this, it is written, it compiles, my input and output word documents are both up and running and saved. What do I need to do to get my output document to show results from my program? Thanks.

Software Development c++
Member Avatar for jonsca
0
149
Member Avatar for Sealunar

No matter what I do, I always get the numeric value from the ASCII chart. In this case I get 104, even though I denote Name[2] as a character. [CODE] string Name= "John"; cout << tolower ( char ( Name[2]) ) << endl; [/CODE]

Software Development c++
Member Avatar for mrnutty
0
77
Member Avatar for eva yang

Hi, I don't know the difference between class variables and instance variables. Can anybody give me an example? Thank you so much:)

Software Development python
Member Avatar for eva yang
0
146
Member Avatar for qk00002

I am new in VB.NET. Can any tell me how a[U] richtextbox [/U]query MySQL table. i.e select * from table test where name= 'Bowser' then the richtextbox will display the results. Thank you!

Software Development mysql vb.net
Member Avatar for kvprajapati
0
145
Member Avatar for noey699

if I wanted to do for example this [CODE]class MyClass{ float x,y; void SomeFunction() }; void MyClass::SomeFunction(){ MyClass A = this;//???? } [/CODE] How would I do that? I have virtually no experience with pointers so please help me out. I basically want to make the new class I am …

Software Development c++
Member Avatar for noey699
0
98
Member Avatar for Leigh Reed

Just started my first unit in Java and my lecturer has set some code with logical errors in it. I think I have found them all bar one. the problem that I am having is that when I run this script it should calculate the Tax for the dollar amount …

Software Development java
Member Avatar for Leigh Reed
-1
134
Member Avatar for Salem

[I]<<thread split>>[/I] Who exactly? The OP left the forum 4 YEARS ago. And there the thread lay, nice and quiet until a day ago.

Software Development c++
Member Avatar for Ancient Dragon
0
110
Member Avatar for Carrots

Hi there, I'm trying to return base class pointers from the two classes 'base' and 'child', but I keep on getting a build error of "1 unresolved externals". I think it may be because I am linking all the files together incorrectly. When I comment out the problem line in …

Software Development c++ visual-studio
Member Avatar for Ancient Dragon
0
240
Member Avatar for turbomen

Dear All, Could you tell me what is / are wrong of the coding? Cheers,

Software Development pascal
Member Avatar for finalist
0
156
Member Avatar for lecotti

Hello all, long time since i've posted anything here. Working on a small project and nearing the end; however i am having some trouble regarding pointers to 'multidimensional' arrays, hopefully somebody can help me out. :) I have what i think is an array of 2D arrays of which I …

Software Development c
Member Avatar for lecotti
0
134
Member Avatar for sexyzebra19

I've followed an example from a website on how to use diff time, however its telling me that it took 0 seconds which obviously isn't right...can anyone please explain what I'm doing wrong? Thanks in advance! [code=php]int main() { time_t t1, t2; double dif; Matrix A(2); Matrix B(2); A.SetElement(1,1,1); A.SetElement(1,2,2); …

Software Development c++
Member Avatar for Salem
0
421
Member Avatar for katwalatapan

Hello, I have observed a data access misaligned error in my code. I am trying to isolate the issue and find reason for its occurrence. [code=c] float *mul; int main(void) { int i; mul=(float *)malloc(36000); *mul=0; for(i=1; i<9000; i++) { *(mul+i)=*(mul+(i-1))+(1/(float)(72000/2)); printf("%f\t", *(mul+i)); } free(mul); return 0; } [/code] Please …

Software Development c
Member Avatar for katwalatapan
0
339
Member Avatar for drewpee

Ok so i have a couple of [B]Strings[/B] and [B]Dates[/B] I'd like to use in making my reports. I can't seem to make it work. any help? This was my latest failure. [CODE]SELECTCCIF_No, Date_Recieved, FROM serviceRS WHERE Date_Recieved >= '" & DateFrom & "' AND Date_Recieved <= '" & DateTo …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
114
Member Avatar for Mridula J

Hi All, What all the difference between Macros and Inline functions. Why do they prefer inline functions? When Do macros come in use? What are the disadvantages of Macros and inline functions? thanks in advance

Software Development c++
Member Avatar for mattjbond
0
132
Member Avatar for halluc1nati0n

I was trying out a 2-dimensional integer array on a UNIX box. I hit up a 'Segmentation Fault' on trying to run it. [CODE]#include <iostream> #include <cstdlib> using namespace std; int main() { int matrix[2000][2000]; int i, j; srand ( 1 ); for (i=0; i<2000; i++) { for (j=0; j<2000; …

Software Development c++ unix
Member Avatar for halluc1nati0n
0
209
Member Avatar for turbomen

Dear All, Could you tell me what is wrong or missing for my coding? Cheers, [CODE] unit Example3; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Edit1: TEdit; Edit2: TEdit; Edit3: TEdit; Edit4: TEdit; Edit5: TEdit; Button1: TButton; Button2: TButton; Edit6: TEdit; …

Software Development pascal
Member Avatar for finalist
0
185
Member Avatar for kedarm

Hi! I'm trying to build a Python extension with C/C++. I'm following the steps given in the documentation [URL="http://docs.python.org/extending/extending.html"]here[/URL]. I've followed the steps mentioned and written my first code. However, I have no clue on how to compile the project! I do not know how to create the .pyd file …

Software Development c++ file-system python
Member Avatar for kedarm
0
5K
Member Avatar for shubhamshah

Hey Guys, Im not so good at VB.NET , and ive been learning for about 3 months. I would really appreciate it if you guys would help me tackle this problem down. Well , im helping a school run a Spelling Bee aimed at children in year 7. And to …

Software Development vb.net
Member Avatar for kvprajapati
0
267
Member Avatar for jose385

Hello, I've been working with C trying to get factorials which I've successfully accomplished but my code needs to output an error message when inputting negative numbers, unfortunately my code outputs an error when using 1 and 0. This is what my code looks like (keep in mind I'm a …

Software Development c
Member Avatar for jose385
0
114
Member Avatar for manal

Salam... I need to get value that has been selected from combobox .. the values in combobox is taken from column's contents of one of tabel in database..so once i write if x=combobox.selectedvalue..i got error that i Additional information: Operator is not valid for type 'DataRowView' and string

Software Development vb.net
Member Avatar for kvprajapati
0
8K
Member Avatar for Ryman

Hello, I have been trying to use the ID3tool to organize a list of MP3 files in a windows bat file. I have completed it in bash and I'm trying to convert to batch right now. Anyway, here is my problem: I'm trying to get the album name for the …

Software Development shell-scripting
Member Avatar for Salem
0
230
Member Avatar for Broseph

Hey guys. I hate to have to ask for help but I've run out of ideas. The program I'm trying to write is supposed to write a random list of numbers 0 - 4 and then count the occurrences of each number. The only thing I can't get to work …

Software Development c++ linked-list
Member Avatar for Broseph
0
86
Member Avatar for student02

Hi guys, I just want to ask if its possible to print some desired fields or data that is within database or vb used on MS word.. like this one example: First Name: (Field_FirstName on db) Last Nane: (Field_Lastname on db) scan by: (Text1.Text on vb) is it possible? if …

Software Development visual-basic
Member Avatar for student02
0
118

The End.