132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for san_sarangkar

How can i change the priority of function? I want to run nay other function before execution of main() function.

Software Development c++
Member Avatar for ArkM
0
322
Member Avatar for ART01

i have a prb here, i have been asked to make a procedure which recieve an array of integers,its lenght, and two integers X and Y as parameters. now the procedure needs to find X in the array and put Y ahead of it ( Y is not in the …

Software Development c++
Member Avatar for ART01
0
108
Member Avatar for sganandhsg

Hi I`ll Set Printer preferences orientation is Portrait and Paper Size is A4, But i use data report is lager then this settings. I run my package "Report width is larger then the paper width" This error can be displayed. but i`ll change this settings for Paper size is legal …

Software Development legal printer visual-basic
Member Avatar for dspnhn
0
803
Member Avatar for mruane

I plan to write a detailed rogue like in python. But first, I have a few questions... how do i get started: how to make the screen how to make the maps how to make the main character move when you press a key how to make it saveable if …

Software Development python
Member Avatar for Freaky_Chris
0
209
Member Avatar for ravikiran032

i would like to know what digits of ipaddress define. suppose ipaddress of 192.168.0.59 what these numbers 192 ,168 , 0 ,59 defines. does they have any value??

Software Development java
Member Avatar for peter_budo
0
91
Member Avatar for SonxQ7

Always get warning when using raw type Lists/Sets/Iterators etc. [code] public java.util.List /* <-- Warning here */ getUsersByAge(int minAage) { org.hibernate.Query q = session.createQuery("from User u where u.age >= :minAge"); q.setInteger("minAge", minAage); return q.list(); /* <-- Warning here */ } [/code] I've chaged this by [code] public java.util.List<User> getUsersByAge(int minAage) …

Software Development java session
Member Avatar for vite
0
190
Member Avatar for mailtosridar

[B][COLOR="Green"]IN MY FORM THERE IS TWO DATATIMEPICKER AND ONE BUTTON WHILE CLICKING THE BUTTON MESSAGE SHOULD DISPLAY TIME DIFFERENCE BETWEEN TWO DATETIMEPICKER.............................................. ANY ONE HELP ME BY SENDING CODING[/COLOR][/B]

Software Development vb.net
Member Avatar for timothybard
0
442
Member Avatar for ambarisha.kn

Hi, I am allocating memory for some areas. For DB i need 1024 bytes, for DS 1024*2 bytes and so on, and i initialised address as follows. I initailise devBaseAddr to DB, because DB comes first, and next DC. DB is 1024 bytes , so for DC=DB+1024. This is DC address. …

Software Development c
Member Avatar for ambarisha.kn
0
138
Member Avatar for unk45

So this is the program description as per hw requirements. The following is a procedure for constructing an n x n magic square for any odd integer n. Place 1 in the middle column of the top row. Then after integer k has been placed, move up one row and …

Software Development c++
Member Avatar for Salem
0
693
Member Avatar for gin1026

hello evryone, im new in C++ programing. currently i working on my final year project. at the first place, im study in INFO COMM. ,more specific in network management area but since my project is assigned by my lecturer and the project itself involved some programming skill, i gt to …

Member Avatar for gin1026
0
525
Member Avatar for janustt

Basically, I was wondering how I could read a text file (Transactions.txt) which will have one number per line(ex. 2000 on one line, 25 on another). This number is either a deposit or a withdrawal to a checking account. The program should read the Transactions.txt , then write the deposits …

Software Development file-system java
Member Avatar for masijade
0
168
Member Avatar for califguy

Hey, What I am looking to is this: Receive 32 bytes of data from serial port into an array. ( This I have done already) Now based on say the second byte in the first 32 bytes, i will know the size of the entire packet I need to receive, …

Software Development c
Member Avatar for rpiper138
0
113
Member Avatar for ashkash

I am trying to combine byte values into a long variable. I have four bytes each in an unsigned char: unsigned char a = BC; unsigned char b = 1E; unsigned char c = 04; unsigned char d = 00; I want to have it so I can put the …

Software Development c
Member Avatar for rpiper138
0
2K
Member Avatar for makubexiii

can someone help me? Still confused in linked lists. there's something wrong when I input a record for the 2nd time. it sometimes works but then when I display all records It doesn't display correctly. here's the code... [CODE=c] #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<string.h> typedef struct node *nd; struct node{ int …

Software Development c
Member Avatar for makubexiii
0
140
Member Avatar for Diamonddrake

The title is confusing, I know. What I mean is, I created a note pad (like) program with line sorting functions. I want to be able to associate .txt files in explorer with the program. Currently I modified the Main function to accept command like arguments. and I modified my …

Software Development
Member Avatar for Diamonddrake
0
220
Member Avatar for saulzi

This is my first post and it is a reply to a old one but if its any help to anyone it can be done quite simply include the following if it isnt allready [code=cplusplus] #include <stdio.h> #include <stdarg.h> then create a function simular to the following void formattedtext (char …

Software Development c++
Member Avatar for stilllearning
0
153
Member Avatar for jworld2

Okay, so I've been working on a program that converts ascii values to text. The way that I have the code is functional, yet not convenient. Let me post the code and then explain.- [ICODE]letters=[' enter ','',' ',0,1,2,3,4,5,6,7,8,9,'A','B','C','D','E','F','G','H','I','J','K','L','M','N',\ 'O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e',\ 'f','g','h','i','j','k','l','m','n','o','p','q',\ 'r','s','t','u','v','w','x','y','z'] numbers=[10,13,32,48,49,50,51,52,53,54,55,56,57,65,66,67,\ 68,69,70,71,72,73,74,75,76,77,78,79,80,81,\ 82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,\ 106,107,108,109,110,111,112,113,114,115,116,\ 117,118,119,120,121,122] # Ascii values in …

Software Development python
Member Avatar for jworld2
0
147
Member Avatar for JustLearning

I was trying to figure this out but for some reason it is illuding me Ministack header provided [code=cplusplus] #ifndef MINISTACK_H #define MINISTACK_H const int MINI_STACK_SIZE = 5; // Fixed number of element in stack class MiniStack { private: int num; // Number of values stored in MiniStack char* stackPtr; …

Software Development c++
Member Avatar for Ancient Dragon
0
200
Member Avatar for jlm699

First you'll need to learn how to use code tags. As your code stands, it is unreadable because all indentation has been lost. If you use code tags, your code is not only readable, but forum members can easily copy and paste it into their code editors to tinker with. …

Software Development perl python
Member Avatar for vegaseat
0
119
Member Avatar for aot

I'm having trouble unpickling a file -- it gives me ValueError: insecure string pickle. The trouble is, it is nearly identical to another file that I was able to unpickle just fine. For the life of me I cannot see what is strange or different about the new file -- …

Software Development python
Member Avatar for woooee
0
982
Member Avatar for lytre

ok, when i try and compile my unfinished program at the bottom: it gives me these two errors c:\documents and settings\owner\desktop\programming stuff\programming practice (pascal)\unitconverter.pas:6: warning: missing string capacity - assuming 255 c:\documents and settings\owner\desktop\programming stuff\programming practice (pascal)\unitconverter.pas:7: parse error before `In' and i'm new to programming so i dont know …

Software Development pascal
Member Avatar for suki_boy
0
212
Member Avatar for Tribesman

I need help with this program please. This is a program that will turn your first name into a group of numbers with a being equal to 1 and so on. This program does this but I need to have it total all the numbers in the name. I was …

Software Development python
Member Avatar for jlm699
0
284
Member Avatar for bugmenot

In c++ i want to know how to output the result on dos screen page wise,i.e. when i am displaying something if the page is filled then a prompt should come like "Press any key to continue.." More precisely i want an equivalent of the '/p' command which is used …

Software Development c++
Member Avatar for Frederick2
0
99
Member Avatar for espSquall

The declaration of the type is: [code]type TMediaLibrary = record Title:string[30]; TrackNo:integer; Artist:string[30]; Album:string[30]; Year:string[4]; Genre:string[30]; Comment:String[30]; Directory:string; end; var SongInfo: TMediaLibrary;[/code] and the file implementation of it is here: [code]procedure TForm1.Button1Click(Sender: TObject); var SongFile:string; MediaLibrary: file of TMediaLibrary; <<<Error is here begin . . . . AssignFile(MediaLibrary, 'C:\Program Files\toMedia …

Software Development file-system pascal
Member Avatar for espSquall
0
155
Member Avatar for Frederick2

Been studying COM for some time now and for the life of me I can't find out how some of these standard interfaces such as IID_IConnectionPointContainer, IID_IConnectionPoint, etc., are actually defined. I can pass these IIDs in QueryInterface() calls and successfully retrieve pointers to them, so they must be actually …

Software Development c++
Member Avatar for Frederick2
0
477
Member Avatar for vk10

Hi, I am new to C++.Pls help me out.would really appreciate it. The problem goes like this. There are two files. In file1(say data1.txt)u have got something like this Line1:Hello How Line2:We are fine the work is grab each string and assign it with a binary file and enter it …

Software Development c c# c++
Member Avatar for vk10
0
106
Member Avatar for Sci@phy

I'm a beginner in that area, but would like to learn more. Is there any nice tutorial on the web for Windows OS regarding multithreading?

Software Development c++ multithreading
Member Avatar for Ancient Dragon
0
120
Member Avatar for deepa_vsd

Hi, I have opened Internet Explorer by using Process p = Runtime.getRuntime().exec(browserCommand+" " +url_name); Now I want to know how to close opened internet explorer using java program I used p.destroy() method, but it's not working.

Software Development java
Member Avatar for Ezzaral
0
160
Member Avatar for clueless101

This program is suppose to allow the user to enter a student's name and (4) scores via GUI, instead of Scanner class. The class is to use a String array for 5 names, an array of 5 characters to hold letter grades, and 5 arrays of four doubles for each …

Software Development gui java java-swing
Member Avatar for VernonDozier
0
176
Member Avatar for charusood

You will need to author two classes – Customer and Pensioner. Pensioner should be a subclass of Customer. These classes should be in their own files with separate header files. Details are below. Create a third class called Manager. The manager file can contain the main function. The Manager class …

Software Development c c# c++
Member Avatar for Lerner
0
285
Member Avatar for botter911

I am trying to load the bmp image from my C to the console and it works. The image opens. But the problem now is the console hangs. Is there something wrong in my code? Or what should I change to avoid making the console hang. [CODE] #include <stdio.h> #include …

Software Development c image os-x
Member Avatar for twomers
0
183
Member Avatar for keripix

im having trouble trying to run more than one applications from my program. I thought threading might help (but actually i hav little knowledge bout it). below is some part of the program: [CODE]if 'pdf' in self.ebook: thread.start_new_thread(self.open_pdf()) elif "chm" in self.ebook: thread.start_new_thread(self.open_chm()) def open_pdf(self): os.system('evince '%s''%self.ebook) def open_chm(self): os.system('gnochm …

Software Development pdf python
Member Avatar for woooee
0
97
Member Avatar for koteswarvijay

Hi All, I am connecting to Unix host from Windows and using SFTP connection. I am able to connect and do put & get. But I need to do even more. I want to write a function to which I will pass the command and that commands needs to be …

Software Development perl unix
Member Avatar for KevinADC
0
121
Member Avatar for Sheryl99

What is wrong with this code? All I want to do is display photos for a slide show, with about 5 seconds pause between photos. It will only show the last photo. The photo directory and file names are contained in the ComboBox. (I thought I posted this wrong, so …

Software Development vb.net
Member Avatar for Sheryl99
0
89
Member Avatar for peter_budo

I'm trying to get character "2936" printed out ( it is the arrow on your big Enter of the keyboard) as seen in Unicode charts [URL="http://unicode.org/charts/PDF/U2900.pdf"]Supplemental Arrows B[/URL]. However it does show as question mark. Suggestions? [code=Java] public class PrintCharacters { public static void main(String[] args) { String[] one = …

Software Development java pdf
Member Avatar for di2daer
0
115
Member Avatar for vijaysoft1

Please Help me to Understand the callback functions using this program.Actually i understand the program. But i want to understand it very clear , what is hear happening. So please..... [ICODE] class Button { public: class Notifiable { public: virtual void notify()=0; }; Button (Notifiable *who) : calle (who) { …

Software Development c++
Member Avatar for jencas
0
116
Member Avatar for dapcigar

Am having an assignment on modular programing. the program ( VCD system) must (1) Initialize database, (2) Add a record for VCD (3) delete record for a VCD (4) Print out all VCD (5) save to text file (6) Load from text file. have actually worked on it but i …

Software Development c++
Member Avatar for Ancient Dragon
0
198
Member Avatar for Luckymeera

hi guys im stuck on my project as im new to python. im using tkinter module. i need to create some traffic lights along the stretch of road and the vehicles should me able to stop the when it is red and should go when green lights. also they should …

Software Development python tkinter
Member Avatar for Gribouillis
0
1K
Member Avatar for sriz6teen

Hi All, this is srikanth. i jus want to ChangeOwnerOfFile in vb6 or vbscript. what are the functions need to be used are there any predefined functions regarding changing permissions in vb. can any one fix this issue. its very urgent. thanks Regards, Srikanth Valdas

Software Development vbscript visual-basic
Member Avatar for sriz6teen
0
2K
Member Avatar for c++ prog

Is it posibble to have a count-down timer while I'm doing something else in the console? it's a simple game wherein a specified time is allowed for the player..if possible, how? I created a timer but it waits until it finishes before proceding to the game..tnx in advance

Software Development c++
Member Avatar for c++ prog
0
117
Member Avatar for DemonGal711

Ok, I'm working on this code where I read in two lines from a text document, then store them in an array, write a binary code for each to indicate what words are in what array, and then compare the two arrays in a variety of ways. I got most …

Software Development c++
Member Avatar for grumpier
0
115
Member Avatar for programmergirl

I'm to this whole modularity thing. We were asked to do our own libraries .h and .c files and to call them in main. The main objective of the program is to compare bubble and select sort. So far, I have all the libraries along with their respective .c files. …

Software Development c objective-c
Member Avatar for Sci@phy
0
275
Member Avatar for Jennifer84

I am looking for fast conversions. I found out that converting with atof is much more faster than using the stringstream like the below tests. What I look for now is a fast way to convert from double to char* I have a problem to find this conversion. [COLOR="Green"]char* to …

Software Development c++
Member Avatar for mitrmkar
0
154
Member Avatar for unk45

hw assignment asks 4 the construction of a 2d array with the generation of random numbers 1-10 which has been done. next ask the user 4 which numbers occurence in the array he wants to find and its location. i have come up with this so far but the occurence …

Software Development c++
Member Avatar for unk45
0
142
Member Avatar for Poab9200

First off here is my code: [CODE=csharp] using System; using System.Collections.Generic; using System.Text; namespace example_1 { class Program { static void Main(string[] args) { decimal d = 24; string input; Console.WriteLine("Enter A number"); input = Console.ReadLine(); decimal total = Convert.ToDecimal(input), result = (d * total); Console.WriteLine(result); Console.WriteLine(); Console.WriteLine(); Console.WriteLine("Would you …

Software Development
Member Avatar for Poab9200
0
122
Member Avatar for imnolongerhere

[code=cpp] #include <iostream> using namespace std; struct TNode { int Data; TNode *Next; }; void PrintList (TNode *list); TNode *AddData (TNode *list, int data); void FreeList (TNode *list); /////////////////////////////////////////////////////// void PrintList (TNode *list) { TNode *p; for (p=list; p!=0; p=p->Next) { cout<<p->Data<<endl; } } ////////////////////////////////////////////////////// TNode *AddData (TNode *list, int …

Software Development c++
Member Avatar for imnolongerhere
0
99
Member Avatar for mac1234mac

Hello, I have, before my eyes, source code, but I can't understand certain parts of it: 1. #pragma - what does it mean, is it some directive for precompilator?. for example: what does it mean - #pragma resource "*.dfm;" or or #pragma package (smart_init);?. 2. what does word __fastcall mean …

Software Development c++
Member Avatar for stilllearning
0
168
Member Avatar for Yuruke

Having trouble getting started on an assignment for my c++ class. I understand how stacks/queues work, but what I don't quite understand is how they work as adapters, i've read plenty of sites but none really have given me a good example of how they work when implemented using a …

Software Development algorithm c++
Member Avatar for stilllearning
0
119
Member Avatar for mailtosridar

[I][COLOR="Red"][/COLOR][/I][B]any one help me how to store image in database in vb.net coding[/B]

Software Development image vb.net
Member Avatar for Jx_Man
0
275
Member Avatar for abu taher

what is module and class module. I want to learn about it . anybody help me clearly.

Software Development visual-basic
Member Avatar for Jx_Man
0
158

The End.