199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for saneeha

I am using memcpy()function.. memcpy(&_bpb, bBootSector, 512); where _bpb is the variable of structure, bBootSector is byte array the whole progran works fine but at the exit it generates the following error: "[B]Run-Time Check Failure #2 - Stack around the variable '_bpb' was corrupted[/B]." Can any one please guide me …

Member Avatar for saneeha
0
207
Member Avatar for drum12

I have two arrays. In the first one I have student surnames, in second the student grades. (One surname one line with grades).My task is to find the arithmetic average for each student and print that student name and grade which have the biggest grade in array. I wrote the …

Member Avatar for VernonDozier
0
125
Member Avatar for ousys

Hello , I am new to javascript, and now I found a Strange problem here in my code, I sat in front of computer for many hours trying to solve it , but I still don't know what caused the problem and how to solve it , could anyone here …

Member Avatar for ousys
0
165
Member Avatar for justinmyoung

Thanks to the help of many on this forum I've been able to put together a script that allows me to do some basic CMS functions, like pulling data from the MYSQL database, displaying it in rows/tables, etc. Now I have tried to extend the functionality of my search by …

Member Avatar for mcd
0
306
Member Avatar for nadiasheikh

Hi, How to achieve hashing in C++? Can you explain this giving a small example? rgds

Member Avatar for CrazyDieter
0
106
Member Avatar for ishlux

Hi all, I have two buttons, submit and back......after clicking the submit it will go to the action part, but i have another button back , if i click on the submit it has to go to previous page so how to do. as i think we can only one …

Member Avatar for jsrpatna
0
170
Member Avatar for iansane

Hi, I've been looking around for how to execute another application from a c++ app. I remember in VB I could have my app launch the browser or other app and could even have it launch command line with the commands I wanted the system to run. I have found …

Member Avatar for iansane
0
296
Member Avatar for dajiebuda

I'm learning java. I have one Jframe with 5 jbuttons. I want to click button1 to have a new Jframe come up. How should I define the 2nd Jframe? class? public class?

Member Avatar for VernonDozier
0
141
Member Avatar for Manutebecker

I want integers 1-52 to be drawn only once, so every "card" will be seen and not one picked twice, heres the code [code] #include<iostream> #include<time.h> #include<string> #include<stdlib.h> using namespace std; class Player{ int hand; }; int main() { srand(time(NULL)); int deck=53; int *drawn; int notdraw[52]; for (int n=1;n<53;n++) { …

Member Avatar for JaR
0
116
Member Avatar for mridatrix

i was just doing a simple thing in C#, just trying to put the values feeded in the text boxes in sql database. i am giving the code below the code executed perfectly but when i went to look into the table data there was no data inserted...... pls HELP...!!! …

Member Avatar for peter_budo
0
100
Member Avatar for arun_lisieux

Hey ppl, Im trying to solve some problems for topcoder website for practice purposes. But the compiler shows the following error for the codes i've been compiling. I have no problems compiling these codes with Borland C++. I've posted the errors and code below. Errors: Your code did not compile: …

Member Avatar for arun_lisieux
0
181
Member Avatar for arun_lisieux

Hey ppl, I was browsing thro the topcoder sample problems and came up with this one. Plz suggest some good algorithm for this. Problem Statement Note: Please keep programs under 7000 characters in length. Thank you Class Name: SquareDigits Method Name: smallestResult Parameters: int Returns: int Define the function S(x) …

Member Avatar for arun_lisieux
0
212
Member Avatar for Dell XPS

I have made a program that you can add your contacts but i need to get a way to edit the persons details.... The details are kept in a txt file(because i don't know how to make this using a db) I have a list box showing the name and …

Member Avatar for varghaimani
0
167
Member Avatar for rajeshkhanna_in

Hi all I have created an application which automates the Preparation of Question Papers for Various Exams. This software uses a DSN connection to a ACCESS database. While I was developing software I created this connection manually but while I distribute my application this connection will have to be created …

Member Avatar for rajeshkhanna_in
0
206
Member Avatar for olagh

Hi everybody, I want to declare a class having an object of another class as its member data. but I recevie compiler error: "No appropriate default constrctor available" my code samlpe is as follows: [code] class bigInt { bigInt(unsigned); bigInt(const bigInt &); unsigned *value } class RSA { RSA(unsigned); bigInt …

Member Avatar for olagh
0
154
Member Avatar for MSmith78

Good day everyone. I'm completely new to scripting. I'm trying to practice in it. I'm using Bash on a SuseLinux 10.3 box. I want to practice by sort of creating my own simple IP Monitoring app that will notify me when somethings down. That said, here's my first simple but …

Member Avatar for eggi
0
109
Member Avatar for AliHurworth

Hi, I'm creating a small application with a "mood generator" on it. Basically, the user chooses a colour and a saturation, and this data is queried against a database to produce a sentence. For example, choosing a deep red in a very pale shade might show "I'm really angry, but …

Member Avatar for AliHurworth
0
143
Member Avatar for lllllIllIlllI

Hi What i want to do for this is to have my program run in the background simulate pressing a button such as ENTER every 10 seconds or so. I have trauled the net and found solutions for VB and C++ but none for python. Is this possible in python …

Member Avatar for lllllIllIlllI
0
389
Member Avatar for Y_Game

Ive been trying to create a number guessing program were the program guesses your number instead of the user guessing the programs number heres what i have so far: [code=c] #include <stdio.h> int main(void) { int guess = 50; printf("Pick an integer from 1 to 100. I will try to …

Member Avatar for Aia
0
133
Member Avatar for ramseswar

i have made the form action a variable..ie code echo the 1.php if registration values have been set by the user accordingly....and register.php if user have entered some improper values. then i save these values in session variables and call these variables on 1.php to enter in the database. my …

Member Avatar for ramseswar
0
109
Member Avatar for danishbacker

[code=php]<? //inbox.php $data = mysql_query("SELECT * FROM mailbox WHERE `index` <= $index_end and `index` > $index_start") or die(mysql_error()); $info = mysql_fetch_array( $data ); if($info['read'] == 0) { echo "<span class=\"tableStyle\">"; $tabColor = "tableStyleNew"; } else { $tabColor = "tableStyleOld"; } //print table start echo "<table class=\"$tabColor\" bordercolor=\"#FFFFFF\" border=\"1\" cellpadding=\"0\" cellspacing=\"1\" …

Member Avatar for danishbacker
0
113
Member Avatar for JackDurden

I keep getting an error "cannot convert parameter 1 from 'char (*)[15]' to 'Student_Type *" in the swap call. gradclass is a struct and Student_Type is the name of the struct. Im trying to sort names with this. Anyone know how to fix this? [CODE=cplusplus]void SortNames(Student_Type* gradclass, int i) { …

Member Avatar for ArkM
0
166
Member Avatar for HolyEnd

I need a little bit of help with a program I am making. I have most of the program made except for this part: [CODE]procedure Button1Click (Sender: TObject); begin Button1.Click := public int getPixel(int x, int y); if (R=R+10) or (G=G+10) or (B=B+10) then // Simulate a key press keybd_event(VK_NUMPAD4,0xcb,0 …

Member Avatar for HolyEnd
0
133
Member Avatar for Psykocyber

Hi I'm trying to use a vector to store function pointers, but when implemented in a class there method ceases to work. Class header: [CODE]std::vector<void (*)()> fns[/CODE] Class .cpp file: [CODE] fns.push_back(Search); fns.push_back(Print);[/CODE] Search() and Print() are (public) members of a class named Movie. This code is currently placed in …

Member Avatar for Psykocyber
0
5K
Member Avatar for leegeorg07

hi my brother has created a program called 'guess my number' (see it here: [url]http://www.naughtyottselprograms.tk/[/url]) and i know the coding that i need but i dont know if there is a module that includes numbers does anyone know the name for that module if it exists?

Member Avatar for friendklay
0
236
Member Avatar for linu

Hello Please help me with the following: i am trying to open a file with a specific application using java. I am working on a desktop application. The following code using java.awt.Desktop works for known extension types,but when trying to open a file with an unknown extension it throws an …

Member Avatar for linu
0
217
Member Avatar for denbecker

I'm a student working on STL containers which were not formally taught in class. The website I typically follow hasn't helped, and neither have my textbooks. I'm getting an assertion error with this "while" loop. Probably something obvious to someone who works with C++ STL... There's an explanation for all …

Member Avatar for Salem
0
118
Member Avatar for karthik_cud

Hi, i"m creating an application involving multiple forms i"ve successfully linked the forms but the problem is when a new form(form2) is linked by a button control form1 is also running,so i placed the following code in the load event of form2 "form1.close()" this segment of code terminates the entire …

Member Avatar for @bhi
0
100
Member Avatar for queenc

hi i have a longtext field in mysql.i want to write the data which is in longtext to a .doc file.so tat when the user clicks download all the data will get downloaded in a doc file thanks in advance

Member Avatar for langsor
0
85
Member Avatar for JaR

Hello again. I am currently using a base class for a certain type of object, which looks like this: [CODE=C++]#include <vector> template <class T> class CObject { public: inline virtual ~CObject () { } virtual std::vector<T> *Output (std::vector<int> *Input) = 0; };[/CODE] The problem, that arises from this contraption is, …

Member Avatar for JaR
0
2K
Member Avatar for R3B3L
Member Avatar for Scooby08

Is there way to tell if a radio button is checked by not using the value at all?? And by not using any javascript either.. Here is what Im using: [code] <input type="radio" name="item_id" value="1" /> <input type="radio" name="item_id" value="1" /> [/code] Now I need the name and value to …

Member Avatar for mackone
0
115
Member Avatar for phillipeharris

I have the code runnig and it is all right. but within my loop I have it set from 0- 100 but my cout << only shows 59 - 100. I have tested the code with other numbers such as 20 -50 and 0 -38 .... and I see that …

Member Avatar for phillipeharris
0
286
Member Avatar for Earl_CG

Hello Got a problem which has had me scratching my head for an age now, and has defeated both my Computing Teacher & my ultra techie friend. The following code is working perfectly till the last cell of the table it produces: [code]set rs=conn.execute("SELECT Predictions.[Match ID], Users.Username, Predictions.Week, Predictions.HPred, Predictions.APred, …

Member Avatar for j03d4d4
0
1K
Member Avatar for Black Magic

Hey, I'm just wanting to know how i can make some code so no random numbers are the same, I've got this so far to get the random numbers and display them but tried this and that and couldn't get it to work. [CODE=C++]#include <iostream> using namespace std; int main() …

Member Avatar for ArkM
0
385
Member Avatar for hyperoctave

Hello.. I musy apoligize in advance for this, since this thread will be pretty much dedicated to my website, but hopefully if anyone has any tips or solutions on how to debug HTML, Javascript and CSS, others will find useful information here. My problem is simple. My website does not …

Member Avatar for gertrude
0
174
Member Avatar for Ole Raptor

hello, i am having some problems retrieving email from gmail. im not sure if its because its pop or what. unfortunatly my host doesnt have the pop module. but here is the code. [code=php] $imap = imap_open("{pop.gmail.com:995}INBOX", "username", "password"); $messages = imap_sort($imap, SORTFROM, 1); foreach ($messages as $message) { $header …

Member Avatar for Ole Raptor
0
293
Member Avatar for neknek

I compiled the code just fine. But It doesn't show on the webpage. The error message is: load: class C:\kenken\Xample1.class not found. java.lang.ClassNotFoundException: C:.kenken.Xample1.class at sun.applet.AppletClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadCode(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown …

Member Avatar for neknek
0
119
Member Avatar for Agni

Hi Guys, i just wrote a program to print a sentence backwards using recursion. But i'm not too happy about it, if someone can give me a more optimized solution i'll be glad. You have to use std::string class. input: where the streets have no name output: name no have …

Member Avatar for Agni
0
348
Member Avatar for Scooby08

Would anybody happen to know which of these ways is the better way to run your queries?? Would it be better to have all your SELECT queries before the actual <html> code starts, or would it be just fine throughout the page in the <body> tags?? Is one slower than …

Member Avatar for Shanti C
0
116
Member Avatar for mrcniceguy

CAn any one show me code or explain how i can display data from mysql database in drop down menu. I will appreciate your Help))))

Member Avatar for mrcniceguy
0
87
Member Avatar for willy taufik
Member Avatar for peter_budo
0
230
Member Avatar for Naween
Member Avatar for Naween
0
77
Member Avatar for F4r4Zm0In

Hi all, I need directions on "Text Alignment" I have used this code to greet user: [code=JavaScript]<script type="text/javascript"> var d = new Date(); var time = d.getHours(); if (time > 17) { document.write("<b>Good Evening, Thanks For Visiting Us!</b>"); } else if (time <17 && time >12) { document.write("<b>Good Afternoon, Thanks …

Member Avatar for langsor
0
110
Member Avatar for linux0id

Hello everyone! I am new to C++, and still haven't got to grips with objects, inheritance etc. etc. Anyway, here's the question - [CODE]class mainFrame : public Gtk::Window { private: library *m_library; player *m_player; }[/CODE] How can member m_player, when finished playing a track, access m_library to select the next …

Member Avatar for linux0id
0
98
Member Avatar for lllllIllIlllI

Hi I have been trying to do one of the projects in the projects for beginners section that asks you to get your computer to log off after a certain amount of time has passed without any mouse or keyboard movement. I am not yet up to that bit, in …

Member Avatar for Gribouillis
0
1K
Member Avatar for dharam_05

i want to insert new row in second table and this table connected to first table. How can i do that?

Member Avatar for AllieK
0
144
Member Avatar for loken

Greetings! I would just like to ask you guys something. I am planning to create my mini 3d game...Do you guys know any good steps to start with....I have programming knowledge in C, C++, Java, Javascript, Perl, Php and Openlaszlo... I am also studying LindenScript and OpenGL.... Can anyone provide …

Member Avatar for suszen
0
198
Member Avatar for sarithak

Hey.. here i am going to do root map ..its working fine..but i have some extra features.. it includes (WHEN WE CHOOSE A COUNTRY ,THEN AUTOMATICALLY DISPLAY STATES IN THE OTHER SELECT BOX...THEN THE LOCATION WILL GOES TO SELECTED STATE..] PLZ DO SOME HELP AEAP............ its very urgent... here is …

Member Avatar for langsor
0
257
Member Avatar for breezyy

Hey there, I'm still a newbie to VB and here's my question. I have say 3 check boxes and each of them is assigned a message. If I click on one of them, it displays its message (say Hello) in a text box. Now if i press on the 2nd …

Member Avatar for breezyy
0
122

The End.