199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for creekist

I'm writing a game engine, but I've hit a mjor roadblock. You see I'm using GLtools and this allows you to easily move a camera around the 3D world, it also has a function that I believe returns the XYZ coordinates of the camera. Only problem is that my character …

Member Avatar for gusano79
0
109
Member Avatar for paulnamroud

Hello, I would like to know how to: - Save an image into a Session Variables - Get the image from the Session Variable and display it on the web page. Here's the example on how to get the image from the DB: string v_customer_code = "PAUL"; SqlConnection v_connection = …

Member Avatar for lolafuertes
0
251
Member Avatar for r.cromwell

I've made a program of basic bank transaction. I'm having a hard time figuring out how will that cin >> newb; and cin >> currentb; work out...the program works if you remove the formulas..also i'd like to add if (withdraw <=10000) the program will stop the user from withdrawing but …

Member Avatar for r.cromwell
0
363
Member Avatar for sirin_adam

Hello! [CODE]public static void main(String[] args) { System.out.println("Type the operation system (Windows or Linux):"); Scanner oku= new Scanner(System.in); String os=oku.next(); if(os=="Windows") { CreateForWindows(); } if(os=="Linux") { CreateForLinux(); } else { System.out.println("Wrong selection. Program closed."); return; } return;[/CODE] It always show me Wrong selection. Program closed. I can not understand why …

Member Avatar for sirin_adam
0
171
Member Avatar for digitalhead

Hi, I wanted to write a C program which searches for text files in a directory(assuming the directory and files are not write protected),list them and open each one of them(files) write a letter A in them.Can anyone give me a sample code. I believe it can be done with …

Member Avatar for ashok.bandari88
0
220
Member Avatar for bubbafunk1

Hi All, does anyone know of a PHP FORM GENERATOR, that either exists as a downloadable app or an online generator I use a Mac. I don't want to sign up and pay per form generated, i don't mind paying for the app as long as it works. i just …

Member Avatar for mschroeder
0
316
Member Avatar for slaith

k we're working on a billing system Currently I am working on the categories module. Here's the thing: I need a dynamically changing UI. So the user can add categories, delete them and teh UI would accordingly add or remove controls automatically. I used DataGridView, but since the fetching and …

Member Avatar for slaith
0
127
Member Avatar for jabeen111

[B]Give me a easy example of grid insert delete update in php like mysql grid db[/B]

Member Avatar for G&G Designing
0
195
Member Avatar for jt1008

I am trying to rebuild my code for my final project due in 2 hours... I am getting a stray \147 and 148 error, along with various other errors. What am I doing wrong???? I am not very good at this C++ stuff, so any help would be appreciated :) …

Member Avatar for Fbody
0
159
Member Avatar for coroll

Hi all, i want to add data manully to a dataGridView.but i get this exception. ArgumentOutOfRangeException. Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index PLZ help me to solve this. this is my code. [CODE] int clicks=0; private void …

Member Avatar for Mitja Bonca
0
579
Member Avatar for hqt

I have two declare of pointer: [code] Pointer *a,*b,*c; int i=5; *b=i; a=b; c=&b; [/code] at line (a=b) mean a will point to what b point (mean point to int i) at line (c=&b) mean c will have address of b, mean c will be pointer to pointer b. So, …

Member Avatar for keshvari
0
142
Member Avatar for reza.adinata

Hi all, I am a newbie in C, and a bit curious with this "goto" statement. For instance, I create a simple code below [CODE] #include <stdio.h> int main () { int a; a = 1+1; if (a!=2) { goto error; } error: printf("error is here\n"); return 0; } [/CODE] …

Member Avatar for reza.adinata
0
185
Member Avatar for maria_megha

can someone give me the code to display drop down date with default todays date selected...format dd/mm/yyyy i found the code to display month in mon format..what is to be modified in the function to get in mm format here ______________ [CODE] <script> var monthtext=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sept','Oct','Nov','Dec']; function populatedropdown(dayfield, monthfield, yearfield){ var …

Member Avatar for hielo
0
2K
Member Avatar for raviaaaa

scenario: While clicking EDIT hyper link in java script it will open one new window, in this window i have values in the left table i need to select the value from left TABLE to right TABLE after selecting i clicked <OK> button, child window will be closed Now if …

Member Avatar for raviaaaa
0
103
Member Avatar for keshvari

Hello I write program that can solve linear equations with LUP decomposition method.I know that my algorithm is true and every part of my program do what I want. when I call function lupDecomposition() inside the lupSolve() the program crash.This is my related code: [CODE] int makeUpperDiagonal(Matrix * src){ int …

Member Avatar for keshvari
0
131
Member Avatar for adem87

i use the access and find product but if there is many same product name how can ı list these please write for access database in c# my normaly codes are below [code] baglan.Open(); // Sorgu içinde urun isimli bir deÄŸiÅŸken kullanmışsın ancak deÄŸiÅŸkene deÄŸer atamamışsın. Sorguya null olarak giriyor. …

Member Avatar for adem87
0
202
Member Avatar for hooray

I am trying to make a form, with a textbox next to a select box. When the user selects an option in the select I would like the textbox to display some text to explain what each select option means. I have this so far: (I have left out anything …

Member Avatar for gudiya_413
0
1K
Member Avatar for lttleastig

anyone know how to change network settings like default gateway and DNS? my first idea was to do it from the registry but i read somewhere that it is not good and if OS specific any ideas? thanks

Member Avatar for Ketsuekiame
0
93
Member Avatar for aplee

Hello Everyone, I know this is going to be easy to all of you, this is my first time performing an if else statement in SQL, after performing this query: Collapse | Copy Code IIf(IsNull(EventSummary.[Event Information - Event Status]),"ACTIVE",EventSummary.[Event Information - Event Status]) AS [Event Status], I get this error …

Member Avatar for aplee
0
667
Member Avatar for Jazerix

Hey there This might be a stupid question, but I don't get why i cant do this [CODE] string SteamPath; XmlDocument LoadDoc = new XmlDocument(); LoadDoc.Load("Config.xml"); XmlElement rootless = LoadDoc.DocumentElement; if (rootless.Attributes["SteamPath"].Value == "") { } else { SteamPath = rootless.Attributes["SteamPath"].Value; } return SteamPath; [/CODE] It gives me the error …

Member Avatar for Jazerix
0
221
Member Avatar for ksm092

This doesnt work as it should... [CODE]void renameMonths(string month) { if (month == "jan") { month = "january"; } } int main() { string month; month = "jan"; renameMonths(month); cout << month << endl; }[/CODE] the output is just jan, when it should be january. Thanks in advance.

Member Avatar for Narue
0
252
Member Avatar for hqt

I have something that I don't know how to use the Pointer, this is my code: [CODE] struct node{ int data; struct node* next; } struct node* BuildWithLocalRef() { //give a list with: 1 2 3 4 5 //and your work is import this list in to Linked List with …

Member Avatar for Narue
0
165
Member Avatar for vijaybrar

Hi I need help its actually working fine but i don't know how to put a control structure in knowing whether the input is wrong, example when i instruct user to input number it must be less than 100 if not error will show up that is only the last …

Member Avatar for vijaybrar
0
511
Member Avatar for theguitarist

Hello I am very confused with how negative numbers are represented in binary form. They say it is done in 2s complement form. Now won't this 2s complement of a negative number clash with an actual +ve number having the same binary representation? And negation of a +ve number..... We …

Member Avatar for Narue
0
164
Member Avatar for ksm092

This is my code: [CODE] void removeAppointments() { vector <string> newfile; string line; int i; int n; ifstream Appointments; ofstream newAppointments; Appointments.open(DATAFILE); newAppointments.open(newDATAFILE); if (Appointments.is_open() && newAppointments.is_open()) { // Read the file until it's finished, displaying lines as we go. while (!Appointments.eof()) { getline(Appointments, line, '\n'); // getline reads a …

Member Avatar for ksm092
0
195
Member Avatar for dhfg

I am using SQL Server 2008. I have data from SQL like this. [CODE] ID ID2 PartNo -- ---- ---- 75 23921 DENT 75 26145 PLGD 75 26145 PRRP 75 26145 SIST 75 57290 PRMD 75 57290 abc 75 57290 def 75 57290 ghi 75 57290 jkl [/CODE] I need …

Member Avatar for Netcode
0
117
Member Avatar for Simplicity.

Dear All, When I call the function "G()" which returns two values: p_T and q_T twice but using the same style, that's, P_T, neg = G(); U, Ign = G() and print sums of P_T and U, I get two different answers! Another thing is that both answers are incorrect! …

Member Avatar for TrustyTony
0
135
Member Avatar for mozy1691

am a student developing a programe for a lib but am failing to create new JFrames when buttons are clicked i need help handing in with 3 days

Member Avatar for masijade
0
87
Member Avatar for Neilzepan

[CODE] Powering the DeLorean You're the proud new owner of a DeLorean sports car. DeLoreans are best known for being able to travel through time. You can't wait to try it out, you've already started listing all the different times you are going to visit. You have written down the …

Member Avatar for TrustyTony
0
122
Member Avatar for rahulvramesh

[CODE]#include<iostream.h> #include<conio.h> class test { public: int data1; char data2; test() { cout<<"contrsuctor"; data1=1; data2='a'; } ~test() { cout<<"destrucor"; } void show() { cout<<"data1"<<data1; cout<<"data2"<<data2; } }; void main() { test *ptr; test object1; ptr = &object1; cout<<"\npointer\n"; ptr->show(); delete ptr; getch(); }[/CODE]

Member Avatar for Cross213
0
120
Member Avatar for rotten69

G'day everybuddy, I just have a question about how to update a service on the server after changes are made to the code. Cheers,

Member Avatar for rotten69
0
142
Member Avatar for khentz

Hello, How to reset the properties of the form as well as all of the control properties values when i click a button. Thanks in advanced..

Member Avatar for khentz
0
1K
Member Avatar for davy_yg

Hi, I have this codes: (index.html) [CODE] <body> <div id="wrapper"> <?php include('includes/header.php'); ?> <div id="nav"> <a href="#">Home</a> <a href="#">About</a> <a href="#">Portfolio</a> <a href="#">Contact</a> </div> <!-- end #nav --> [/CODE] I wonder why <?php include('includes/header.php'); ?> does not works. In other words, the codes that I have place in header.php does …

Member Avatar for azeem786
0
2K
Member Avatar for ksm092

I am making a program (new to c++) which lets you save contacts and then allow you to list them and remove them. I am lost to how I would number each contact, for example: 1. Sam 21340223 2. Jessica 21020303

Member Avatar for jinhao
0
128
Member Avatar for sravanthi89

I have to create a list with a menu options for 1. Add, 2. Remove, 3. Check if element exists, 4.Display list, 5. would you like to Continue? 6. Exit I could write the code so far. Pls help me complete it. (ASAP) [CODE]fruits = ['Apple', 'Banana', 'Grapes', 'Peach'] #while …

Member Avatar for sravanthi89
0
78
Member Avatar for wachichornia

Hello Everyone, I am trying to delete some rows from a given table using mysql and php. No errors come up, the page doesn't die, however the records are not deleted! Here's the code [CODE] $delete_temp_query=("DELETE FROM temporary where contactemail='".$emailcheck."'"); $delete_temp=($delete_temp_query) or die(mysql_error()); [/CODE] The value of $emailcheck is [CODE] …

Member Avatar for wachichornia
0
225
Member Avatar for FriXionX

I have a switch statement set up, with 2 cases (a or v). I could have just done an OR, but decided to practice with switch statements. So far i'm using it to select what letter they type in, then launch the next part of the program depending on the …

Member Avatar for jonsca
0
164
Member Avatar for Simplicity.

Hi All, I want to make the output "u = u + alpha*d_k" at the very end of this code an input, i.e., as an argument of the function "f(u)" at the beginning of the code, in every iteration. Note that I have posted only part of the code which …

Member Avatar for Simplicity.
0
161
Member Avatar for Efficience

I have written this C code in which I'm declaring a variable inside switch body with initialializing it to 10.But when I'm running this code it is printing some garbage value. [CODE]#include <stdio.h> int main() { switch(2) { int x=10; case 1: printf("Case 1: %d\n",x); break; case 2: printf("Case 2: …

Member Avatar for Efficience
0
459
Member Avatar for klenne

Hi, Actually I don't know if my question belongs in this topic or in the VB.net topic. But I'm making a VB.net application with a mysql database and i have to make a trigger but I don't know where I have to use or implement it in my application. I …

Member Avatar for pritaeas
0
248
Member Avatar for FutureDev86

I have to make this program track how much fuel I have used. I have tried and tried, but I can't get it to work... I'm not at all looking for a solution... I just need a nudge/hint into the right direction. [CODE] def main(): choice = 0 ammo = …

Member Avatar for TrustyTony
0
323
Member Avatar for mingis

Hi there, I am a complete newbie to JSP so apologies if this is a blindingly obvious question - I have researched on Google, but can't get this working. I have a simple switch statement as below: [CODE] <% for (int a=0; a<10; a++) { if ( null != countryID[a] …

Member Avatar for masijade
0
143
Member Avatar for zoraster01
Member Avatar for igotdreams

Would you like to know when the Google spider or any other spider comes by your site? Well now you can with this handy snippet. It will send you an email for everypage it visits.

Member Avatar for jsmall26
0
162
Member Avatar for dottomm

Thank you in advance to anyone who can help this coldfusion noob. What I am trying to do seems easy enough but clearly I am having very serious problems. ;D I am trying to populate a pdf with data from a database. //Here is the page that lists all the …

Member Avatar for jsmall26
0
402
Member Avatar for LloydFarrell

Hi, I have been going round in circles for the past few hours and I need some help please with the following header location. [code]header("location: http://www.websitename/members/securecode/index.php");[/code] I have a login script that works great until i get to line 81 ?? the above header location. here is my script - …

Member Avatar for Kadafiz
0
541
Member Avatar for gunlock777

Hello all, Im currently doing a project which is a system that adds booking records to it it loads the database from a module [CODE]Set Db = OpenDatabase(App.Path & "\cihansol.mdb") Set RS_Staff = Db.OpenRecordset("EPHS_Staff") Set RS_Customers = Db.OpenRecordset("EPHS_Customers")[/CODE] im very new to visual basic so i dont know much anyway …

Member Avatar for shivya jain
0
169
Member Avatar for PinoyDev

Hi! Good day! I am having problem regarding closing the fancy box with an iframe type after succesfull login..I have this code but the redirect parameter seems not executed after fancy box close event...Anybody help me?Thanks! [code=php] echo "<script>parent.jQuery.fancybox.close();</script>"; header("Location: " . $MM_redirectLoginSuccess ); [/code] Thank you!

Member Avatar for PinoyDev
0
430
Member Avatar for Diwakar Gana

Dear All, Can any one tell me how to convert the IP address from dec to hex decimal. For Ex: 255.102.25.02/32 should look like FF661902 since its 32 bit 255.102.25.02/31 should derive two values FF661902, FF661903 since its 31 bit

Member Avatar for sumithps
0
585
Member Avatar for ksm092

When I want to access a part of the vector (appointment) it won't allow it, for example simply adding: [CODE]cout << appointment[1];[/CODE] will not work. I also want this vector to be saved to my class (Appointment), so I can later remove elements of the vector. Would I be able …

Member Avatar for VernonDozier
0
250

The End.