43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for sikky_deep

Hi Friends, I was developing a function for making entries to log files in c++ My function looks like this: [code] void makeLog(int log_level,char *arg,...) { char temp_str[512]={0,}; va_list ap; va_start(ap,arg); vsprintf(temp_str,arg,ap); .. .. } [/code] this function works well most of the time, but some time it generates a …

Software Development c++
Member Avatar for sikky_deep
0
487
Member Avatar for sikky_deep

Hi friends, I m experiencing a problem in a pro*c module. Its a function in a pro*c file which is opening a cursor, and the equivalent of this pro*c code is a block in parse.cpp file line number : 1255 which is sqlcxt(&ctx1, &sqlctx, &sqlstm, &sqlfpn); the module got down …

Software Development c++ oracle
Member Avatar for sikky_deep
0
2K
Member Avatar for ruhi

Hi everyone, How to use session value during fetching values from database of that particular session value? [code] SqlDataAdapter adapterprice = new SqlDataAdapter("SELECT product.productid, product.productname, product.price, product.description FROM product where product.productid= Session["productid"] ", myconnection); [/code] During writing code in such a way it is showing error.. Can any one help …

Software Development session
Member Avatar for ruhi
0
125
Member Avatar for x102077@hotmail

This is my second c# program and the database stuff is [U]quite [/U]different than vb 6.0, I am obviously missing a line or otherwise have malformed code -- Help! Program is supposed to read in FCC Amateur Radio DB (flat file) and insert data into an Access Database. DB has …

Software Development dataset microsoft-access open-source
Member Avatar for x102077@hotmail
0
301
Member Avatar for Ninjikiran

Hmm,I understand by using repne scasb, pointing DI to the base64 string is supposed to search the string for the character that is in the input but not much of how to use it for decoding purposes. Anyway I been looking at the idea that, using the same example Man …

Software Development assembly
Member Avatar for Ninjikiran
0
163
Member Avatar for snipercat

I'm starting a project at work where I will be creating multile threads, within a C++ program. I have been out of the C++ community for a while, spending my time the last few years using Java. Given this, I am trying to learn what the standard interface is for …

Software Development c++
Member Avatar for WolfPack
0
189
Member Avatar for squidd

I have a new program I am working on and I would like to repeat a portion of code to redo the same thing again, and again. When the program starts, it will give me a number from my NIC card (I think). Ok so I have it going to …

Software Development pascal
Member Avatar for squidd
0
153
Member Avatar for Ensabahnur

Hey, guys. I'm working on a program that's supposed to take a phrase that the user inputs, then display the frequency of all letters appearing within that phrase, from most frequent to least frequent. So far, I've managed to get it to display the frequency of the letters in alphabetical …

Software Development c++
Member Avatar for Ensabahnur
0
219
Member Avatar for majestic0110

HI all, been messing around with this game for a while now. last thing I need to do is get the score(bals dodged) to display in the main menu.Now I have had some helpful advice regarding this issue but I have notbeen able to implement it myself. Nevertheless I am …

Software Development java java-swing user-interface
Member Avatar for majestic0110
0
115
Member Avatar for johnroach1985

Hi. I am working on this project and I am little stuck. Trying to update my gridview after i had added data to the .mdb database but it just won't update. You can find the whole project at [URL="http://johnroach.info/FilmKira.rar"]http://johnroach.info/FilmKira.rar[/URL]The button I have problem with is the "Urun Ekle" button. When …

Software Development
Member Avatar for johnroach1985
0
150
Member Avatar for tgnelson85

Hello, C question here (running on Linux, though there should be no platform specific code). After reading through a few examples, and following one in a book, for linked lists i thought i would try my own small program. The problem is, I seem to be having trouble with memory, …

Software Development c data-structure linked-list
Member Avatar for Salem
0
183
Member Avatar for emilio

hello i have this code int main () { char * arrP1 [ ] = { "father", "mother", NULL}, * arrP2 [ ] = { "sister", "brother", "grandfather", NULL }, * arrP3 [ ] = { "grandmother", NULL}, * arrP4 [ ] = { "uncle", "aunt", NULL }; char ** …

Software Development c
Member Avatar for emilio
0
83
Member Avatar for guest11

hi all, which datatype we use for storing UInt64 type of value? I want to cast integer value into UInt64 type. How we can do that in vb.net ? Plz can anybody tell me . thanks in advance Regards Guest11

Software Development vb.net
Member Avatar for emurf
0
130
Member Avatar for guest11

hi all, My project is build successfully but when i run my program i get an error as "A Project with an ouput type of Class Library cannot be started directly. In order to debug this project, go to the Debugging tab under Configuration Settings in Project Properties, and set …

Software Development
Member Avatar for guest11
0
102
Member Avatar for tomoconnell

I am getting very strange results from the following: def list(self) import shelve db = shelve.open(testfile) list = [] cnt = 0 for id in db.keys(): print db[id].info() the testfile was written with an class defined object; What i am finding, is if I write 50 objects, the above code …

Software Development python
Member Avatar for vegaseat
0
502
Member Avatar for maxmaxwell

I have an assignment where I'm supposed to place a knight on a chess board, and using a random number generator, make it move. It cannot visit a space more than once. I've tried this several ways, and started over from the beginning more than once. this is how I …

Software Development c++ legal
Member Avatar for maxmaxwell
0
208
Member Avatar for balla4eva33

I'm trying to create a simple little program that will accept arguments of files (i.e. file1 and file2), and look for occurrences of the "match" string in the included arg files. Then I want to print out the whole line where the match is found preceded by the number of …

Software Development c c# c++
Member Avatar for balla4eva33
0
223
Member Avatar for tb808kid

Hello! I'm trying to find out how to validate input from a textbox, I want to make sure it is an integer within a certain range and that the destination variable is big enough for it. Sorry if this is stupid question, I just can't find anything and it's starting …

Software Development vb.net
Member Avatar for tb808kid
0
161
Member Avatar for EuMesmo

So I need help to do a work for school which consists of doing an algorithm that allows you to draw a pyramid of letters. The algorithm should ask the user to input one letter and then drew the pyramid. Example: If the letter that the user input is 'd' …

Software Development algorithm c++
Member Avatar for EuMesmo
0
202
Member Avatar for majestic0110

hi all. I was wondering if anybody out there knew how to implement a high score system for this game(saucer). SaucerMenu is a gui class where i want the high scores to appear (up to 5 highest). saucer is the class where the game resides. many thanks in advance. [CODE]/* …

Software Development gui java java-swing user-interface
Member Avatar for majestic0110
0
143
Member Avatar for fishsqzr

When the user clicks the Delete button on a BindingNavigator, the delete occurs immediately. I can arrange for the user to cancel the delete later, but that assumes the user realizes that a record was deleted in the first place, so I prefer to warn them when the button is …

Software Development
Member Avatar for fishsqzr
0
2K
Member Avatar for cbalu

Java specification tells that we cannot have static methods in interface.Can anyone explain me Why? :-O

Software Development java
Member Avatar for darkagn
0
105
Member Avatar for makubexiii

im a 1st year comsci student and we are given an assignment that will display in words the number that is entered using logical operators and what we've learned so far(printf, scanf,etc.) I only have problems in displaying the numbers from 11-19 (when I input 12 is displays two twelve), …

Software Development c display
Member Avatar for Nick Evan
0
2K
Member Avatar for slayer10

ok, what i have is a parent class, eployee, with 5 child classes, Doctor Surgeon Nurse Janitor and Receptionist. on my form i have a buttongroup for when the user selects one of those 5 jobs. when the user selects one i want to create an instance of that object, …

Software Development java
Member Avatar for javaAddict
0
110
Member Avatar for Jishnu

What is the difference between the back() and end() functions defined for list containers in STL? It is specified in my book that back() gives reference to the last element while end() gives reference to the end of the list. I'm unable to understand how the two functions differ.

Software Development c++
Member Avatar for Jishnu
0
120
Member Avatar for dblbac

i have my whole program written but when it prompts the user if they want to play again(y/n) there is a 1 after it and i cammot figure out why. any help would greatly appreciated here is my program: [CODE=c++]#include <iostream> #include <cstdlib> #include <ctime> #include <conio.h> using namespace std; …

Software Development c++
Member Avatar for dblbac
0
118
Member Avatar for jaepi

Hello there, I'm currently at the peak of my coding when I suddenly experienced this really really weird behavior. My compiler (gcc) tells me that one of my functions are not declared in the class (which resides in my .h file). I used the same global variable object to the …

Software Development c++
Member Avatar for jaepi
0
890
Member Avatar for im_desperate

Hey i have to write a program that will prompt the user to write sentences and those sentences will be written until the user type "stop". i though of doing such a thing but its not doing what i want because i want each input to be on a new …

Software Development file-system java
Member Avatar for im_desperate
0
139
Member Avatar for eleonora

Hey i have to create a 2D array of rows and columns which will takes a row and a columns as a paremeter and enters a string into that positions. I managed [i think so] to create the array but i cant find a way of getting from the user …

Software Development java
Member Avatar for eleonora
0
393
Member Avatar for jaux

Yesterday I saw a question that was asking to prevent creating objects on heap. After some thoughts, I came out the following: [code] class Foo { public: Foo(const Foo& f) {} static Foo getAnInstance() { return Foo(); } private: Foo() {} }; [/code] But this can only guarantee the first …

Software Development c++
Member Avatar for jaux
0
120
Member Avatar for orcboyx

I cannot get the bullseye to replicate itself 5 times even though I've already set the count to 5... any suggestions? import java.awt.*; public class Bullseye { /** Creates a new instance of Main */ public Bullseye() { DrawingPanel Target = new DrawingPanel(300,400); Graphics g = Target.getGraphics(); bullseye(g,100,100,50,5); } public …

Software Development java
Member Avatar for orcboyx
0
750
Member Avatar for majestic0110

HI all, this app is a simple game where the objective is to avoid incoming balls (adversaries) however at present I can only figure out how to get one ball on screen at a time. What I'd really like is, when a player hits 100 points, a second ball is …

Software Development java java-swing objective-c
Member Avatar for majestic0110
0
118
Member Avatar for ConfusedMuchMor

sorry didnt attach the file so here we go!! Hi Everyone I'm using a timer to shink a form, i've got it working now, but I don't understand why it didn't work is the first place, or why my change made it work!!???!!! in line 38 of my code (Toggle …

Software Development
Member Avatar for scru
0
86
Member Avatar for sbenware

I'm getting the following errors at compile time in Cygwin using gcc, but I'm not sure what they mean. My program runs without problems. Do I need to change the names of these operations? I'm afraid to tweak anything since it's working. 42: Warning: translating to `fmulp' 53: Warning: translating …

Software Development assembly
Member Avatar for sbenware
0
216
Member Avatar for ConfusedMuchMor

Hi Everyone I'm using a timer to shink a form, i've got it working now, but I don't understand why it didn't work is the first place, or why my change made it work!!???!!! in line 38 of my code [code] this.Width -= 30;[/code] the 30 was originally 10, the …

Software Development
Member Avatar for scru
0
120
Member Avatar for Qpido

I've been searching a lot, but couldn't find anything about what I would imagine to be pretty easy. I'm trying to get a number out of a List, that is getting information out of an Excel file. But I don't think that matters. I then want to give it a …

Software Development visual-basic
Member Avatar for Qpido
0
158
Member Avatar for eleonora

does anyone knows how can i create an array that will get parameters from the user row and column and with a method to fill with strings the rows and columns and after that to print it out. i tried several things BUT nothing works :( if anyone knows how …

Software Development java
Member Avatar for masijade
0
87
Member Avatar for Ninjikiran

Hey, im trying to make an assembly program which encodes a file using base64. Anyway I have a program that works in converting the word "Man" to TWFu. Problem is it does not convert anything else but a few 3 letter words like Tan and Ban probally because of its …

Software Development assembly
Member Avatar for Ninjikiran
0
157
Member Avatar for new_2_java

Hi all, I am new to java. I am writing a program and I would like to read some inputs from user, when the program is run. Can someone give me some hints on how can do this... Thanks.

Software Development java
Member Avatar for new_2_java
0
94
Member Avatar for sbenware

I have a binary tree program that is trying to retrieve a name. I've already inserted names into the tree correctly and can see this at output. Now I'm trying to check for a name in the tree and calling that input "key". My program wants to take that key …

Software Development algorithm c++
Member Avatar for sbenware
0
155
Member Avatar for squidd

I know this must be painfully simple to do, but I cant seem to find any text that makes sense to me regarding how to actually do it. Basically I have program "X". Program X has the TTrayIcon component added to the MainForm. From what I have read, the need …

Software Development pascal
Member Avatar for squidd
0
109
Member Avatar for majestic0110

Hi there, I am experimenting with game design and have met an obstacle. I am trying to paint the background of this simple game I have coded but cannot seem to find out how! any help would be much appreciated!

Software Development java
Member Avatar for majestic0110
0
92
Member Avatar for ConfusedMuchMor

1.Can you display your code line number in the IDE? 2.How do you mark your threads as solved?

Software Development ide
Member Avatar for ConfusedMuchMor
0
119
Member Avatar for talk2tisa

I am attempting to complete a homework assignment. The progam basically requires input from the keyboard into an array and then to perform some calculations on the input information. I believe I can do the calculations, but I cannot figure out how to get the input into the array. The …

Software Development c++
Member Avatar for talk2tisa
0
111
Member Avatar for maye13

here's the program i'm trying to run, but everytime i press ctrl+f9.. i get the error in that picture below.. [code]#include<stdio.h> #include<graphics.h> #include<dos.h> #include<conio.h> #include<stdlib.h> main() { int choice; clrscr(); printf("Please choose a version you like: "); printf("\n<1> Random lang\n"); printf("<2> Moribund...\n"); scanf("%d", &choice); switch (choice){ case 1:{ ran(); break; …

Software Development c
Member Avatar for maye13
0
118
Member Avatar for nanaman

Hi again, new assignment is to creat a spynetwork (where does he get his ideas?) anyway the program is supposed to take a code (i.e. caesars code) as a list of 2 lists, store the code (i've used a table for mine) then use it to decode and encode messages..... …

Software Development
Member Avatar for nanaman
0
134
Member Avatar for parthiban

Hi all , I had created a Document using jTextPane which I will use as a Template to create customize ones . For eg : I will create something like this in a Document using jTextPane Hi [B][I][U]<name>[/U][/I][/B] and I will open this Document in another jTextPane to replace <name> …

Software Development java
Member Avatar for parthiban
0
149
Member Avatar for youmak

Hello to everyone :) I'm new here :) I have some problems with MIPS, I would like to aks for help or advise, how to copy/move content of the normal register of CPU unit (register like $t0,$t1 and so on) to FPU cooprocesor (register $fp0,$fp1) I have in register $t0 …

Software Development assembly
Member Avatar for youmak
0
389
Member Avatar for PoovenM

Hey guys, I was wondering, in Java the following is allowed: [code=java] Class[] classList = new Class[10]; classList[0] = System.class; [/code] Can this be done in C#? Thanks! :icon_smile:

Software Development
Member Avatar for PoovenM
0
113
Member Avatar for henpecked1

I've just started a C++ class so I am a total beginner at this. I am having a problem figuring out how to pass by reference, and pass by value using the enum data type. The data types are as follows: enum suits {hearts, spades, diamonds, clubs} enum cardValues{two=2, three, …

Software Development c++
Member Avatar for henpecked1
0
128

The End.