199,114 Archived Topics
Remove Filter ![]() | |
1)What's the safest way to receive data from a php script and return to an exe? 2)If I have lets say char Hi[4] = "3E2C"; and I wanted to put this into a BYTE Bye[2]; how would I do this so that Bye[0] = 0x3E and Bye[1] = 0x2C? Thanks … | |
I'm currently working on a small bank account register program for myself (just to help me get aclamated to vissual studios) and I was doing ok until I put in the add new database and add new account pages. I wrote code that takes the blank database copies it and … | |
[CODE="CPP"] int BattleSituation::getHPData(int player, int slot) { PokeBattle &p = this->poke(player,slot); return p.lifePoints(); } int callGetDataHP(const BattleSituation&situation, int id, int pokeslot) { return situation.getHPData(id, pokeslot); } QScriptValue ScriptEngine::getBattleData(int id, int pokeslot) { if(!loggedIn(id) || pokeslot < 1 || pokeslot > 6) { return myengine.undefinedValue(); }else{ return callGetDataHP(getHPData, id, pokeslot); } … | |
About a year ago, I built a simple ray tracer in Java, and now I'm trying to port it to c++, but I can't figure out how to get a couple of my classes to work together. It should be fairly strait forward, but its not working. Here is a … | |
hi guys, just want to ask some question. i have two textboxes txt1 and txt2. these two possess jquery autocompletes within.. now, what i want to do is that this two are interconnected. Meaning, the values in autocomplete in txt2 will depend upon the values inputted in txt1. consider this … | |
Hello, I am working on a website where the user can fill out a long form. For simplicity reasons, a part asks them to list features they would like to see. For that I plugged in some javascript to make a "[more]" link to add more form fields. Each form … | |
hi frnds, i completed mca 5th semister. now i want to do a project on java. could any one help me what are the current best projects on java? | |
1. What is the purpose of using a DLL over a .lib or just a single .exe? 2. What exactly (in VC++) does __declspec(dllimport) and __declspec(dllexport) do and where would you use them? 3. What is the correct way of using and linking DLLs? 4. How do you export things … | |
Hi, I have a problem, I doing a project in Java, the program I have already written. But I need to do the GUI,but I do not know how to do it. The program plots the curve. Would not it help someone with it please? I have despaired of it.Thanks | |
8086 Assembler ...I need the code for the following problems to do a few things.....try and include inline comments so i could understand them better... that could help me out.. PLEASE!..Thanks 1. Count the number of bits, in the double word that starts at memory location DS:1234h, that are 1. … | |
Hi there, I need some solutions or hints to my problem. Currently, I am taking over an application that was developed by previous programmer. The application is a desktop based and installed in a network drive. On my pc, which is in domain A, I could run the application flawlessly. … | |
Ok, The only reason I'm asking this is because I want to be absolutely clear on it. In C++, if I write [CODE]int* ipSomePointer;[/CODE] [B]Is this the same thing as:[/B] [CODE]int *ipSomePointer;[/CODE] [B]or[/B] [CODE]int& iSomeRef = ...;[/CODE] [CODE]int &iSomeRef = ...;[/CODE] It does give the same result as each other … | |
I've been spending a long time trying to figure this out but just can't. I've made a complete layout using CSS and XHTML; combining id styles with divs. I can't, for the life of me, figure out how to use the menu I've made to have the content of the … | |
I know the concepts and I think about the advantages and disadvantages of each one over other one. However, I also want to here your ideas about these concepts. What advantages they have over each other? What is the purpose behind using one of the concepts? Thanks... | |
the title it's self explanatory i am using freepascal with the Lazarus IDE and this is quite a challenge for a noob like me so please the code with some explanation | |
I have some code I found that takes screenshots and saves them as a bitmap image. I'm trying to get it to save the screenshots as .jpg and I don't know how to. I don't want to use a large third party library if I don't have to, I would … | |
Hi Guys / Gals I am new to programming and am having some trouble with my code to update my data from a datagridview wich is bound to a datatable. all works fine until the update proccess is started. The programs updates all my rows (x amount) on the datagridview … | |
Hi, i need to create a simple interactive bot in python that response as yes or no for whatever is the user input.Please help. | |
A classic of early text-based interfaces... Any way to do it in Python? I tried getch(), but it doesn't really work (for instance, if you hit Enter to confirm a menu selection, and then it goes to a "press any key" thing with getch(), getch() will pick up the Enter … | |
hey, guys, why does this code keep output ArrayArrayArray instead of Dec 28 for $data[0], , Dec 27 for $data[7] and so on. i would like to output all the date get from that URL, but my code failed. [CODE] <?php $data = array(); require_once("simple_html_dom.php"); $html=file_get_html("http://finance.yahoo.com/q/hp?s=4707.KL+Historical+Prices"); foreach($html->find('td[class=yfnc_tabledata1]') as $e) { … ![]() | |
Hello: I'm trying to insert my form two table in mysql. I have the following but only insert to one table (ajax table query) is successfull. Any ideas what I'm doing wrong. [CODE]<?php //error_reporting(0); //error_reporting(E_ERROR | E_WARNING | E_PARSE); error_reporting(E_ALL); $host = "localhost"; $login_name = "dsdsdt"; $password = "........."; $link=mysql_connect("$host","$login_name","$password"); … | |
Hello, I am trying to figure out the best way to achieve a step-by-step wizard for the creation of a website. I would like for someone that does not know anything about creating websites to be able to go through this wizard and create a website, then at the end … | |
I have about 230 photos in a database, all along I have been putting [url]http://domain.com/path/to/image.jpg[/url]. I am trying to enable a thumbnail script and it will not work with the [url]http://domain.com[/url] on the front of the url. Is there a way I can run a script to go through and … | |
hey...i have a code here[CODE]#include<iostream> #include<fstream> using namespace std; void Avgs(int Array[],int N,int& Ave,int& AveP,int& AveN){ AveP = 0; AveN =0; for(N=0,N<10,N++;;) Ave=Ave+ Array[N]; Ave=Ave/10; for(N=0,N<10,N++;;){ if (Array[N]>= 0) AveP= AveP+Array[N]; else AveN= AveN+Array[N]; } {AveP= AveP/6; AveN= AveN/4; } void Large(int Array[],int N, int& Big);{ int Big = 0; … | |
Hey, please help me, this html file run normally in other browser but Firefox. [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Hello everyone... </title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!-- Redirect webpage <meta http-equiv="refresh" content="2; url=/web/forum/vanilla" /> --> </head> <body> <script language="javascript" type="text/javascript"> function … | |
Heey Guy's, I'm having trouble understanding the Threading within an application. I will try to explain the program: 2 forms 1 parent (Server) 1 child (Client) both screens run on local computer (no network is needed) The server generates a random number once I've pressed a button. The number must … | |
I am reading bytes from a FileStream. When I try to read 0x8000 bytes from the file (which are there) it says: "Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection." … | |
hello everyone my aim is to count different words from text file and write them to output file with the number of occurences.but my code didn't work,I don't know the mistake but I think my read and write functions cause the problem.any help or suggestions? [CODE] #include<iostream> #include<string> #include<fstream> #define … | |
iam try to retrieving data from multiple table and i want that data to be shown on one page. can any one help me out what worng with this coding i cant get that resul which i want. here is the coding [ICODE] <? include("connection.php"); $q="select * from patient_detail,patient_information,patient_guardian_information,patient_discharge_information where … | |
Hello friends, I have a small problem with parsing XML documents... My program works great, but if some element is not exist in the XML then I got an exception error, and now I want to ask "How to check if the element is in the XML" ? Here is … | |
Hi all I am trying ot use Netbeans 6.9.1 to write a basic "hello world" java script, but it keeps giving me the following error; ********************************************************************** debug: Have no file for C:\Program Files\Java\jdk1.6.0_23\jre\lib\modules\jdk.boot.jar java.lang.NoClassDefFoundError: helloworld/Main Caused by: java.lang.ClassNotFoundException: helloworld.Main at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) … | |
Hey Everyone! I need some help with a JTable I'm working on. [CODE] TableColumn column = table.getColumnModel().getColumn(2); ... JComboBox comboBox = new JComboBox(); comboBox.addItem("A"); comboBox.addItem("B"); comboBox.addItem("C"); comboBox.addItem("D"); comboBox.addItem("E"); comboBox.addItem("F"); column.setCellEditor(new DefaultCellEditor(comboBox)); [/CODE] I know that the code above will take the column of the table at index 2 and give … | |
Hi, Can i use realloc to deallocate the memory allocated using new operator. For example: int * i = new int (10); realloc (i, 0); Thanks in advance. | |
I am new to SQL .. [code]SELECT status FROM statuses ORDER BY date;[/code] I know this will order by date but i want to alter the table and rearrange them by datestamp.. Is it possible to alter like that ? | |
Hey guys! I'm planning on a private software, that I wish that have multiple pages, like a installer. It will not be a installer or anything, and I don't want to use tabs on it (it doesn't fit to what I'm thinking.) How can I do it? I've tought on … | |
[CODE] #include <algorithm> #include <iostream> #include <Windows.h> #include <string> #include <cctype> using namespace std; int main(void) { //declare variables char npcname; char actid; //askin the user to input npc name cout << "Please Enter Your NPC Name!"<<endl; cin >> npcname; //askin the user to input action id cout << "Please … | |
Dear guyz, I am creating a file archiver/extractor(like tar), using POSIX API system calls in C. I have done part of the archiving bit. I would like to know if any one could help me with some C source code(using above) to create [B]a file header for a file in … | |
how can i merge the values of the arrays? if i get the values of each array in a file.txt and file2.txt [CODE] void ReadList() { ifstream fin; fin.open ("1.txt"); for(A=0; A<10; A++) fin >> Array[A]; fin.close(); ifstream fin2; fin2.open("2.txt"); for(B=0; B<20; B++) fin2 >> Array[B]; fin2.close(); N=A+B; cout << … | |
[CODE]#include <algorithm> #include <iostream> #include <string> using namespace std; int main(void) { int actid; cin >> actid; if(actid != 1,2,3,4,5,6,7,8,9,0) { cout << "you must enter an integer"; return 0; } }[/CODE] but it's fail :( | |
can you please explain to me why htese errors happen and what is the solutions for this...pleeeaaassee..:)) Problem: Write a C++ program which will read in a list of numbers, find the average of all numbers, the average of thepositive and negative numbers, and the largest element. Your program should … | |
[CODE] #include<iostream> using namespace std; int main() { int* p=new int[2]; p[0]=1; p[1]=2; cout<<p[0]<<" "<<&p[0]<<endl; cout<<p[1]<<" "<<&p[1]<<endl; cout<<endl; cout<<*p<<" "<<p<<endl; p++; cout<<*p<<" "<<p<<endl; delete [] p; } [/CODE] the output of the above program is : 1 0xe502f0 2 0xe502f4 1 0xe502f0 2 0xe502f4 aborted(core dumped) can anyone pls tell … | |
Hi, I have started to study the C language, and as anyone, problems are on. I am having problems with the for comand for; I do apologise if I am not using the CODE and the ICODE correctly. here an example: [code] #include<stdio.h> int main() { int i; int b; … | |
i am having some problem with my PHP form . I have created everything and its posting the details to my mailbox the problem however is that in the message area all it shows is $text , it doesn't show what the visitor typed into that area all it shows … | |
Hi all. I'm trying to add a slight delay to [URL="http://www.kutztown.edu/library/labs/newt.asp"]this page's[/URL] drop-down menu. Though I assume that entails a call to setTimeout() somehow, I've tried all I can think of (which isn't much...) and am clueless. Thank you for any tips! [CODE] <script type="text/javascript"> var timeout = 200; var … | |
hello. i have been studying C++ and i programmed the following. can any one convert this in C language please it is urgent. [code] # include <iostream> # include <iomanip> # include <windows.h> #include <conio.h> using namespace std; void pw (int,int); void swap( double&,double&); void main() { double arr1[10][10],arr2[10][10],arr3[10][10],d,d1,d2,d3,X,Y,Z,x1,x2,x3; int … | |
[CODE] #include <iostream> #include <string> using namespace std; int main(void) { string test; test="this is a test" test.replace(' ','~')// replace the space with ~ cout << test; return 0; } [/CODE] but it's not working can anyone help me? | |
Ok, I am sort of new to C++, and I just came across something that I don't fully understand. [CODE]int main(){ int iX=5; { int iY=30; std::cout<<iY<<std::endl; } std::cout<<iX<<std::endl; return 0; }[/CODE] What does it mean when I make a code block with no if,else etc..? Does it just make … | |
I've been using Visual Studio 2010 Ultimate to learn C++ and have created a project file. Within that project file are 2 .cpp files. I use one to refresh my memory of what I've learned and the other to enhance my knowledge of C++. The problem is that whenever I … | |
Hello to everyone and happy new year... I have 3 JRadioButtons in my JFrame [CODE]private JRadioButton one = new JRadioButton("one "); private JRadioButton two = new JRadioButton("two "); private JRadioButton three = new JRadioButton("three ");[/CODE] And I Have add them to a group [CODE]private ButtonGroup Group = new ButtonGroup();[/CODE] [CODE]Group … | |
A jar or exe file [Java App], may contain images etc files inside one file the file.jar or file.exe? In NetBeans and Eclipse, how do this one file [jar] or an file.exe containing All files of the IDE's wanted Project? |
The End.