43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for abhisdm

I'm getting an error msg as Type mismatch in redeclaration of 'putw' for the following code... Can anyone suggest the reason for this??? [code]#include<stdio.h> union pw{ short int i; char ch[2]; }; int putw(short int num, FILE *fp); int main() { FILE *fp; fp=fopen("test.tmp","wb+"); putw(1000,fp); fclose(fp); return 0; } int …

Software Development c
Member Avatar for ArkM
0
154
Member Avatar for palavi

hi all, I ve a requirement for standalone travel software dat is not web based which involves rentung vehicles,arraging drivers, generating bill, making a picture of bus seats n which shows seat nos available.. i want to do it on java platform. can i do static html page using dreamweaver …

Software Development java
Member Avatar for palavi
0
99
Member Avatar for FaridMasood

I want to use the printPreviewDialog control to view the print preview of a document. I am using this code Dim oPD As New PrintDocument oPD.DocumentName = TextBox1.Text PrintPreviewDialog1.PrintPreviewControl.Document = oPD PrintPreviewDialog1.ShowDialog() TextBox1 contains the file name to be opened with print preview control. Problem is that it only show …

Software Development vb.net
Member Avatar for FaridMasood
0
146
Member Avatar for farhan386

I want to paste some text in clipboard into Ms Word. I wrote this following code [code] a:=findWIndow(pchar('OpusApp'),nil); b:=FindWindowEx(a,0,pchar('_WwF'),nil); c:=FindWindowEx(b,0,pchar('_WwB'),nil); d:=FindWindowEx(c,0,pchar('_WwG'),nil); SendMessage(d,wm_paste,0,0); [/code] and it didn't work. But i wrote the code below to paste into Wordpad,and it works fine [code] a:=findwindow(pchar('WordPadClass'),nil); b:=FindWindowEx(a,0,pchar('RICHEDIT50W'),nil); SendMessage(b,wm_paste,0,0); [/code] Am I made some mistake …

Software Development pascal
Member Avatar for farhan386
0
407
Member Avatar for NickyU

can more variables have the same value in an enum ? eg. [code] enum boolean { true = 1, false = 0, TRUE = 1, FALSE = 0 }; [/code]

Software Development c++
Member Avatar for Bench
0
120
Member Avatar for mindmesh

I'm using the following tutorial to learn Python: [url=http://openbookproject.net/thinkCSpy/index.xhtml]How to think like a computer scientist[/url] I'm running the following code and I get an error: [CODE]from gasp import * begin_graphics(800, 600, title="Catch", background=color.yellow) set_speed(120) ball_x = 10 ball_y = 300 ball = Circle((ball_x, ball_y), 10, filled=True) dx = 4 dy …

Software Development python
Member Avatar for pyromjm
0
164
Member Avatar for brizwhiz

I have constructed a source code for Java Payroll Part 3: I'm receiving the following error when I try to compile my program: PayrollPart3.java:56: 'else' without 'if' ^else Any advice would be appreciated to why I am getting this error. Thanks! [code=java] // Fig. 1.3: Payroll Part 3 // Program …

Software Development java
Member Avatar for brizwhiz
0
111
Member Avatar for robertmacedonia

Hi, may I ask for a little help ? I don't know how to type a command for selected radio button. I mean - for example - if radio button is selected do this... I know there is a function KeyPress, but do not know how to use it, thanks …

Software Development c++
Member Avatar for John A
0
116
Member Avatar for VernonDozier

O.K. I wrote my own version of the Addiction Solitaire game using a JFrame and it worked. I want to put it on the web, so I'm converting it to a JApplet. I have 52 PNG files, one for each card, that I need to be able to access for …

Member Avatar for VernonDozier
0
228
Member Avatar for Prabakar

I have mentioned this before, I have to use turbo c++ in class. [B]Problem:[/B] I wrote the following code & to my surprise the code passed the compilation without any problem. I was even more surprised with the output. I just don't understand whats happening. This code won't compile in …

Software Development c++
Member Avatar for Prabakar
0
151
Member Avatar for QuantNeeds

I am having some issues. I was trying to use my setToolName function to copy the string into the array – this would check if the string was too long. But then it does not capture 2 words, say if the string is “lawn mower”. So I started to use …

Software Development c++ ios
Member Avatar for QuantNeeds
0
141
Member Avatar for darkivader

Hello, im new to working with windows controls and im trying to create a simple listbox inside a main window. It compiles fine, but when i run it, the listbox is all screwed up and im fairly sure that my error message is trying to pop up (but for some …

Software Development c++
Member Avatar for mitrmkar
0
168
Member Avatar for mayoub

Dear DaniWebbers, If you would all be so kind to help me, I have a problem here and I am trying to know why this happens... In a large application I am working on, I need to have a struct of some sort with a sub struct-array and the sub …

Software Development c++
Member Avatar for mayoub
0
145
Member Avatar for FaridMasood

Please some one help to build my concept that what are com components.

Software Development
Member Avatar for Ramy Mahrous
0
89
Member Avatar for sciwizeh

Hypothetically, say i want to know how may times anyone has clicked a button in an applet. NOTE: this is not what i actually want to do but it is a good example. more specifically i have a text file in a jar, along with classes, called clicks.txt. every time …

Software Development java
Member Avatar for sciwizeh
0
113
Member Avatar for PaulNickel

Hello everybody, I have been working on this code segment for about three days and cannot figure out what is causing this error. I am trying to get a specific value out of an arraylist of sorted objects. Here is the code: [code=java] public RateEstimator getMinRate() { // return null …

Software Development java
Member Avatar for PaulNickel
0
116
Member Avatar for sameer123

i want to create a file exactly like pickled file using C program in Qt without using python. this file will be read by python (unpickled ) to initialize some properties. Or Is there any way one can know the exact syntax of pickled file n then write it using …

Software Development python qt
Member Avatar for sameer123
0
299
Member Avatar for breakbone

Hi, I'm writing a simple echo/chat GUI server using wxPython. I made a separate thread for the server. The only problem I have is that when I try to close the server it hangs in socket.recv() thus hanging the whole thread. How can stop the socket from receiving from the …

Software Development client-server gui python
Member Avatar for breakbone
0
163
Member Avatar for ChrisP_Buffalo

How do I test a byte string in Python? I want to manually convert (no libraries or functions) a UTF-8 string into UTF-16. My basic solution is to reading from the stream some number of UTF-8 bytes, convert them into codepoints, then convert those codepoints into UTF-16 bytes. I want …

Software Development python
Member Avatar for ChrisP_Buffalo
0
152
Member Avatar for Das246

I have a script with a wx.Python GUI that monitors game files for changes and then makes a .tar.gz backup of each turn. If I run the test script (.py extension) the program works well and I can play the game without noticing the python script running in the background. …

Software Development gui python
Member Avatar for vegaseat
0
288
Member Avatar for vegaseat

I keep hearing that Python is about as slow as Java. Does anybody have experience with speeding things up?

Software Development python
Member Avatar for Gribouillis
0
493
Member Avatar for Lukezzz

I have declared a vector with 3 Dimensions with the first code below. Then I have managed to push_back all the 3 dimensions so my vector is filled up like this: vector1[2][2][2] [code] typedef std::vector<string> String1D; typedef std::vector<String1D> String2D; typedef std::vector<String2D> String3D; String3D vector1; [/code] What I now need to …

Software Development c++
Member Avatar for ArkM
0
2K
Member Avatar for tzushky

Hello, long time no see... I've been getting along fine with Python lately and I just need to ask you a question: Is it possible to just write to, NOT OVER , an Excel file, in a certain area, using a certain python module?. This way results from an application …

Software Development python
Member Avatar for Gribouillis
0
2K
Member Avatar for selvaganapathy

Can any one tell about the difference between the Abstract Class and Interface? Can abstract class replaces Interface? If all things can be done in Abstract class Why we need Interface?

Software Development java
Member Avatar for selvaganapathy
0
88
Member Avatar for JackDurden

I think I have a memory problem since this code keeps outputting large negative numbers. The file that it reads includes- lastname, firstname, identification number, then 5 decimal numbers. ZDoes anyone know what the problem is? [CODE]#include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; const int rows …

Software Development c++
Member Avatar for JackDurden
0
82
Member Avatar for JyotiC

Hi, I have an xml file, corresponding to an xsd. If there some tool, which would take this xml and xsd and give me an object. And also take the object and xsd and give me xml. I read about couple of tools like JAXB, xstrem and xmlBeans. The issue …

Software Development java xml
Member Avatar for sciwizeh
0
121
Member Avatar for hny_lyn

hello sir!!! i need the answer as soon as possible!! can you change this code and execute it using the JOptionPane... Please help me!!! You may send your answers to this address... <snip email> Thanks a lot!!! import java.io.*; [code=juva] public class ToyoradaII { public static void main(String []lyn) throws …

Software Development java
Member Avatar for javaAddict
0
186
Member Avatar for samuel_1991

Hi everyone, I am trying figure out is there a "more proper" way to show the multiple lowest values in an array. My array has 2 of the values that are lowest among the 8 values. I would like to know is there a way to show both of them …

Software Development java
Member Avatar for samuel_1991
0
136
Member Avatar for yanie

[ATTACH]6798[/ATTACH] i hv an interface sumthing like this. i/m using VB6 and i wanna find record in MS Access using find command button. firstly user will key in an employee number as a key to find that user record in MS Access. after that, the data will appear in the …

Software Development user-interface visual-basic
Member Avatar for vprakash
0
194
Member Avatar for esy928

Good Day! I'm working on my homework for the past 5 hrs now, i really need some help. I need to create a program that will generate a random point on the Panel. the problem is i cant seem to make the point appear on my panel. any help is …

Software Development java java-swing
Member Avatar for esy928
0
80
Member Avatar for CoolGamer48

I'm writing a program for a contest (it's a demo, not the actual thing - so I'm not cheating by asking for help - and my question isn't directly related to the algorithm they want anyway). To submit a program, you send them the .cpp file, and they execute it …

Software Development algorithm c++
Member Avatar for CoolGamer48
1
135
Member Avatar for fmwyso

This is just for my information and I don't really have much need for it... But, I would like to know anyway :D. #1. Is a for or while statement faster than one another? As in, if someone put a for would it be faster (application-wise, not when their typing …

Software Development c++
Member Avatar for fmwyso
0
108
Member Avatar for Jennifer84

I have a general question. I am trying to read a file named: 1.0.0.txt but this seems not to be possible. The MessageBox shows emty. If I trying to read a file ex named: File1.txt it works. So I wonder why it is not possible to read this file named …

Software Development c++
Member Avatar for Jennifer84
0
158
Member Avatar for QuantNeeds

Help the error states: .cpp(31) : error C2337: 'count' : attribute not found referring to new[count] = value; as the problem. My code is the following: [code] int main() { int size = 20; new double[size]; for(int count = 0; count <= size; count++) { int value; cout << "Enter …

Software Development c++
Member Avatar for QuantNeeds
0
477
Member Avatar for kux

This is cited from Stroustrup third edition [CODE] void f () throw (x2 , x3 ) { // stuff } is equivalent to: void f () try { // stuff } catch (x2) {throw; } / / rethrow catch (x3) {throw; } / / rethrow catch (...) { std: :unexpected() …

Software Development c++
Member Avatar for kux
0
107
Member Avatar for krebstar

Hi, I'm just starting out with programming in C++, and would like some clarification on something.. What is the meaning of the '&' in this line: [code=c++]void Stack::push(const StackElement & value);[/code] I would assume that it takes a reference as a parameter, however, why is it that it works when …

Software Development c++
Member Avatar for sarehu
0
149
Member Avatar for Pgmer

Hai all, I want to get to know about the file summary like last saved by, last printed on, authour etc... How can get it using file info function. Thanks in advance.

Software Development file-system vb.net
Member Avatar for Pgmer
0
97
Member Avatar for abu taher

i using acsess 2003 or xp. but when i click in record source property to show the table a massage was shown. but when i use office 97 then there was no problem

Software Development visual-basic
Member Avatar for debasisdas
0
248
Member Avatar for rockhauler

Hello ya'll, I stumbled over here looking for some help with Bash shell scripts.. See, the problem was I needed to copy a data DVD into (onto?) the system file space. Since this is a virtual machine, copying a DVD takes a very long time, the drive gets hot, starts …

Software Development data-structure shell-scripting
Member Avatar for rockhauler
0
170
Member Avatar for HLA91

Hi All Im working on an exercise from a book im learning java with. It is a console app, i have to make a menu 1-4 and then evaluate what number the user entered, carry out the command and then return to the menu. My problem is that i tried …

Software Development java
Member Avatar for HLA91
0
155
Member Avatar for findlay

Hi all, I have encountered a peculiar problem when performing some simple arithmetic in a program I am developing. As the function of the program is pretty specific to my field I have included a smaller program which illustrates the same problem without the technicalities. Given a function (in the …

Software Development c++
Member Avatar for Salem
0
149
Member Avatar for TheBeast32

Hi, I'm reading Programming Windows Fifth Edition by Charles Petzold. In the part I'm reading, it talks about GDI functions. I'm trying to get the pixels that are 1 to 100 + the mouse x coordinate and the y coorinate, then draw them on my window. It's hard to explain. …

Software Development c++ data-structure queue
Member Avatar for TheBeast32
0
144
Member Avatar for sidatra79

Hallo everybody. I am a student trying to extend my knowledge in cPP while using UML and system modelling. I created a "vector template class" using the rhapsody system modeling tool for storing different data types. I used the template to store int and float data types successfully using either …

Software Development c++ legal
Member Avatar for sidatra79
0
211
Member Avatar for JackDurden

When I run this program I can only access the first row of data. Can any one help so that I can access all the lines? I am trying to store numbers into a 2-dimensional array. [icode]#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; int main () …

Software Development c++
Member Avatar for joshmo
0
304
Member Avatar for ymf

Hi I have a simple code snippet here that writes to a file called Student.txt : [CODE="java"] import java.io.*; import java.util.*; public class Streams { public static void main(String[] args) { String studentFirstName = "Bob "; String studentLastName = " Smith "; String finalGrade = "A"; try { PrintWriter out …

Software Development java
Member Avatar for ymf
0
123
Member Avatar for Shanti C

I am newbie to java implementation... can any one tel me the oops concepts with real time examples.... thanks in advance...

Software Development java
Member Avatar for Shanti C
0
89
Member Avatar for robertmacedonia

Hi, I would like to ask you for help in converting this code from C to C++. It's my little friend 's homework, but I can't help him 'cause I know nothing about C :( In fact, I just can't figure the "scanf" part out, I think the other part …

Software Development c c# c++
Member Avatar for Tilir
0
177
Member Avatar for bulger2503

Hello. Currently i am creating a small application that works around packets. The packets are sent every 600ms. Now my quesition is this: Currently i have this (An example) [code="syntax"] public class Example { private int exampleInt = 0; public void setExample(int i) { exampleInt = i; } public void …

Software Development java
Member Avatar for bulger2503
0
144
Member Avatar for bloody_ninja

I am trying to create a program that generates random passwords using the characters A-Z and the numbers 0-9. It will also have an input of what you want the length of the password to be. What I don't know how to do is to create a method to choose …

Software Development java
Member Avatar for Alex Edwards
0
641
Member Avatar for CoolGamer48

I'm having problems creating an array with a dynamic size using new. Here is the relevant code: [CODE] enum LandCondition { Bad, Good }; //... int IMG_WIDTH, IMG_HEIGHT; LandCondition* land; //... land = new LandCondition[IMG_WIDTH][IMG_HEIGHT];//causes errors [/CODE] The errors VC++ gives me are: error C2540: non-constant expression as array bound …

Software Development c++
Member Avatar for CoolGamer48
0
110

The End.