199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for alex910TN

Hey guys, I am trying to implement the following but the compiler is not liking it. What can I do to fix this? Thanks for any help. typedef struct { int ordinalSum; int LexemeCode; Line Info; Node *next; <-- ??? }Node; error # 1 syntax error before "Node"

Member Avatar for cproger
0
253
Member Avatar for mercury113

how can i put an if statement in a OkCancel Msgbox .. for example when i choose OK .. it will perform the code .. and if I Cancel it will not perform the code?

Member Avatar for avtaars
0
222
Member Avatar for triumphost

I wrote a large project dealing with images, files, and WINAPI functions. I decided to add RichTextEdit to it and used the msfedit.dll.. Turns out that it only supports UNICODE style strings and chars and my entire project is std::strings and LPCSTR's, etc.. None of the WINAPI functions are unicode …

Member Avatar for Ancient Dragon
0
214
Member Avatar for anumash

#include<stdio.h> int main(){ char inputs[33]; int i; for(i;i<33;i++) inputs[i]=' '; int ch; for(i=0;(ch=getchar())!=EOF&&i<32&&ch!='\n';i++) {printf("%c",ch); inputs[i]=ch; } inputs[i]='\0'; printf("%s",inputs); return 0; } I am writing a program where the user enters a character and the program stops asking the user for a character when the user enters the Enter key. Enter …

Member Avatar for anumash
0
131
Member Avatar for ShamSundar

People pls help me i am getting a compiler error - Loop Without Do This is my Code Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn = New ADODB.Connection cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Shyam\Documents\Database1.mdb;Persist Security Info=False" cn.Open() rs = New ADODB.Recordset rs.Open("select* from STUDENTSWITHHOA", cn, adOpenKeyset, adLockOptimistic) Do …

Member Avatar for Reverend Jim
0
325
Member Avatar for Papa_Don

Group, I'm stuggling to get values from an sql database table into several textboxes. I'm not getting an error, but I'm also not getting anything to show up in these textboxes. Can you offer some thoughts as to what I need to do to fix this? Private Sub btnUpdateOrder_Click(ByVal sender …

Member Avatar for Reverend Jim
0
178
Member Avatar for WDrago

All, How do I convert a DataTable double from a row object to a normal double? I'm creating the DataTable like this (note that Temp and Hum are doubles): private void readDummyData(DataTable dt) { string fileName = "dummydata.csv"; string[] lineCSV = new string[5]; StreamReader myReader = new StreamReader(fileName); // Define …

Member Avatar for WDrago
0
3K
Member Avatar for 4evrmrepylrning

I'm trying to extract some metadata from a m4v file. I'm looking for the duration, height, width, etc. I do all my programming on a Raspberry Pi and was looking at gexiv2 but could not get it going. I got exiftool working though. My script looks like this: import exiftool …

Member Avatar for 4evrmrepylrning
0
3K
Member Avatar for vinnitro

I am making a Webpage in asp.net which is having three dropdown lists One for Country, Second for State & Third for City. Here's the code for dropdown list: <tr> <td class="td1">&nbsp;&nbsp; Country: </td> <td> <asp:DropDownList ID="ddCountry" runat="server" Width="250px" onselectedindexchanged="ddCountry_SelectedIndexChanged"> <asp:ListItem>India</asp:ListItem> <asp:ListItem>UK</asp:ListItem> <asp:ListItem>USA</asp:ListItem> </asp:DropDownList><br /> <asp:Label ID="Label1" runat="server" Text="Label" Visible="False"></asp:Label> …

Member Avatar for vinnitro
0
183
Member Avatar for kyberno

Greetings...! I have this admob code in a class file: package { import flash.events.MouseEvent; import flash.display.MovieClip; import flash.system.System; import flash.system.Capabilities; import flash.display.Sprite; import flash.events.Event; import flash.desktop.NativeApplication; import flash.utils.setTimeout; import com.hdi.nativeExtensions.NativeAds; import com.hdi.nativeExtensions.NativeAdsEvent; public class Main extends MovieClip { public var na : NativeApplication; private var admobId:String = 'a1514b5ef85e336'; public function …

0
139
Member Avatar for dij_0983

I'm trying to develop my own simple uptime command (used to show how long the system has been running) like program where I'm gonna use it for our university's OS, (consider the OS already has all the necessary C libraries needed to make system utilities) Could someone give me a …

Member Avatar for dij_0983
0
248
Member Avatar for game06

i trying to my background move left if user hit right key. and background right if user hit left key. that way it will look like my player is moving. the problem is that when ever i hold right key, the background waits 1 sec than moves to left. i …

Member Avatar for game06
0
330
Member Avatar for OsaMasw

I don't know whats wrong but my code not working properly here is my html code <input type="text" name="username" id="username"> <div id="check_usr"></div> AJAX call <script> $(document).ready(function() { //user name $('#username').on("keypress", function(e) { startTypingTimer($(e.target)); }); }); var typingTimeout; function startTypingTimer(input_field) { if (typingTimeout != undefined) clearTimeout(typingTimeout); typingTimeout = setTimeout( function() { …

Member Avatar for OsaMasw
0
392
Member Avatar for lauraroxi

Hello. I have a project for queues simulation to do and I have to follow the MVC pattern. My classes until now are: Client, Queue which represent the Model, Controller, GUI which is the View, and the Main class. If I have those 2 classes representing the Model, how should …

Member Avatar for lauraroxi
0
129
Member Avatar for shopnobhumi

Hi, i want to convert a .jsp file to .java file. I read various forums and they said to use tomcat to convert .jsp to .java.I have ran tomcat but it is not doing anything(i cannot write anything). Through command prompt i ran it and it just opens a new …

Member Avatar for stultuske
0
4K
Member Avatar for aisha.edris1

i have problem my login it's not running plzzz help me <?php session_start(); require("dbc.php"); if(isset($_POST['submit'])) { $username =mysql_real_escape_string( $_POST['username']); $password =mysql_real_escape_string($_POST['password']); if ($username && $password) { $connect=mysql_connect("127.0.0.1","root","") or die("couldnt connect to database"); mysql_select_db("login") or die("couldnt find database"); $query = mysql_query("SELECT * FROM `users` WHERE `username` ='$username'"); $numrows = mysql_num_rows($qurey); if($numrows …

Member Avatar for aisha.edris1
0
205
Member Avatar for analys

I try to export my tables to excel in multiple sheets but i'm having an error state that object variable or with block variable not set. Hope anyone can help me. Here's my code. Private Sub exportexcel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles exportexcel.Click Dim del_cmd As New …

Member Avatar for QVeen72
0
2K
Member Avatar for dellat

**I have download a setup.exe for GNU database library GDBM. It's going to be installed in C:\Program Files\GnuWin32 (lib, include, etc.). My mingw is in C: (C:\MinGW). Could you please tell me what is the right path for GDBM on windows. I used GDBM on Linux and compiled and linked …

Member Avatar for dellat
0
705
Member Avatar for katabullet

i have created two forms and two controls, form1 has a button, form two has label. now i wanted the caption of my label to change after clicking on my button, but i just can not call in the control "label" into my button click event because there are from …

Member Avatar for rishif2
0
185
Member Avatar for minimee120

Hi all, I've been trying to implement the onblur function for a database, but i'm having trouble getting it to work. It's suppoed to be used for my 2nd password field to check it. Would anyone be able to help me implement into the following code I have?: script type="text/javascript"> …

Member Avatar for LastMitch
0
176
Member Avatar for Papa_Don

Group, I've got part of my code started to populate the DataGridView with the data I need to return. When testing it, I have this long pause and no returned data. I finally have to kill it via <Control><Alt><Delete>. I've tried reading through mulitple websites to find some information to …

Member Avatar for Papa_Don
0
430
Member Avatar for Wailintun

HI everyone, I have a problem with post I want to do this in multi step and echo all data that I selected from drop down. here my one page full code, then multi step page code. full code <?php include('config.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> …

Member Avatar for Wailintun
0
198
Member Avatar for hanan-kh

hi Ineed your help to solve this problem... I have a special folder in my manager and control panel, but when I need to get back to the main page without logging out of the director but was not able to even though I try this code but also does …

Member Avatar for hanan-kh
0
127
Member Avatar for ulasoc

i added file extesions to associate with my program from Puplish/Option/File Association But i dont know how to execute related codes when users open the file associated with my program? how can it perform a specific code associate file type and determine which file type it is after program loaded?

Member Avatar for TnTinMN
0
207
Member Avatar for HadoukenGr

Hi, i am trying to make a server client application using sockets in C. Server and client compile just fine but they dont seem to connect with each other and i don't understand why (i just started learning about sockets). My OS is SunOs 5.10. This is my server code …

Member Avatar for Mouche
0
260
Member Avatar for jcomputing

Hi, am wanting to add a pause and play button on my slideshow but don't know what code I need to get this working. Below is the code I have. It will automatically pause on hover but would like a seperate play and pause button aswell. <link rel="stylesheet" href="css/global.css"> <script …

Member Avatar for LastMitch
0
220
Member Avatar for game06

error: The method paint(Graphics, main) in the type player is not applicable for the arguments (Graphics, main.Display) on line: player_class.paint(g) main.java public class main extends JApplet { Timer timer; Display display_class; Player player_class; /*** init method ***/ public void init() { setSize(800, 400); display_class = new Display(); setContentPane(display_class); }/*** end …

Member Avatar for game06
0
259
Member Avatar for guilherme.carvalho.9250

Hello to everyone, im having trouble getting the value of a combobox in HTML to php! Frist I import data from a mysql collum into the combobox, being this the value of the combobox! I want to be able to get the selected value when I submit my form. I …

Member Avatar for broj1
0
9K
Member Avatar for Shodow

how to execute two queries if isset like this but this code wont work if (isset($_POST['Add'])){ $tror=$_POST['tror']; $name=$_POST['name']; $product=$_POST['product']; $price=$_POST['price']; $deliver=$_POST['deliver']; $return=$_POST['return']; $custody=$_POST['custody']; $cash=$_POST['cash']; $charge=$_POST['charge']; $date=$_POST['date']; mysql_query("insert into delivery (TrOr,Customers_Name,Product,Price,Deliver,xReturn,Custody,Cash,Charge,Date) values('$tror','$name','$product','$price','$deliver','$return','$custody','$cash','$charge','$date') ; UPDATE inventory set Quantity='$_POST[cquantity]' WHERE Product='$_POST[product]'"); }

Member Avatar for cereal
0
146
Member Avatar for Fiorentino01^

Hi I am running phpMyAdmin 5.6. I have created a table as described in a tutorial. This table is supposed to have a null value in a text field, I cannot do it, I tried everything.The examples on the web refer to older versions and I keep getting error.I even …

Member Avatar for Fiorentino01^
0
292
Member Avatar for heena92

I am working on a search based or rather data retrival based project i would like to retrive same data for diffrent Keywords usibg texbox contol at front end i am currently able to retrive data using one key coloumn the command i am using is "select * from maintable …

Member Avatar for geniusvishal
0
173
Member Avatar for hashim5003

Can any one help me writing code which can only creat three digit random number not two digit or one digit number? Following code creates 3 digti but also creats two and one digit number.. public class random { public static void main (String [] args) { double n = …

Member Avatar for hashim5003
0
7K
Member Avatar for Shodow

how to trim a text and get the data after the colon(:) and eliminate space example: 5 Gallon Qty: 10 adn then on dropbox selected the the value of quantity textbox will be the trim part **10**

Member Avatar for urtrivedi
0
122
Member Avatar for ConfusedLearner

I am writing a program for class but stuck. I need my program to pick adult, child, student or senior, if I enter any of them. #include<iostream> #include<iomanip> #include<string.h> #include<fstream> using namespace std; int main() { int choice; int months; int Adult, Child, Student, Senior; cout<<"Enter the number of months …

Member Avatar for deceptikon
0
163
Member Avatar for vizz

How to null and/or alter the value of **referring URL?** I'm using **Google Analytics** and other some **Analytics** services. I found they are tracking **Referral URL.** So I want to hide **Referral URL** from **Traffic Analysis Tools** (e.g.:- modify **$_SERVER["HTTP_REFERER"];** value to facebook.com on localhost) **index.php** <a href="get_referer.php"> Click Here</a> …

Member Avatar for vizz
0
2K
Member Avatar for srivardhanms

What is the difference between Definition and Declaration of a variable? Am not talking about function, but variable. When I googled, I found these two answers which are quite contradictory! While one says "definition occures once through the program( memory is allocated once ), but the declaration can occur many …

Member Avatar for srivardhanms
0
1K
Member Avatar for owenransen

I have to update a road tunnel lighting program I wrote for a company. They now want a new standard to be applied, but with the option of switching between standards real time. And there will be other standards in the future. Currently the single object which calculates the lighting …

Member Avatar for owenransen
0
199
Member Avatar for pooh1234qwerty

$ awk -F ":" 'NR!=1 {print $1}' test1.txt what does this mean?? especially ":"??

Member Avatar for Watael
0
114
Member Avatar for jspence29

What I am trying to do is make a program that reads a txt file and converts the number into a double array. import java.io.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class rocket { public static void main(String[] args) throws IOException, FileNotFoundException { System.out.println(readLines("/Users/Jeremy/Documents/workspace/altitude.txt")); } public static Double[] readLines(String …

Member Avatar for jspence29
0
400
Member Avatar for Don_k

Hi I am currently developing a QR-barcode independant scanner application. Everything in the Eclipse IDE seems to compile fine, however when I go to click the 'Scan barcode' button, I am faced with the following error: ( In the Eclipse IDE logcat window) 03-10 02:59:52.837: E/AndroidRuntime(407): FATAL EXCEPTION: Thread-11 03-10 …

Member Avatar for Don_k
0
330
Member Avatar for daniel.ngugi.980

please help me to write a code which includes a function for calculating the squareroot of a number without using the predefined functions in the function header............

Member Avatar for gregha04756
0
123
Member Avatar for showman13

OK, I'm lost... don't know if this is easy and I'm missing it, or it can't be done, but this is my favorite place to ask... I have a table data cell that I would like to have as the submit value (link) in a form in a php script. …

Member Avatar for showman13
0
201
Member Avatar for AmrMohammed

Greetings While reading I encountered a statement I did not understand what does it mean "Cout is a predefiend object in C++ **to correspond to the *standard output stream*** 1- What is that exactly mean? 2- what is the *standard output stream* & *standard input stream*?

Member Avatar for deceptikon
0
187
Member Avatar for tizzqman

I am trying to make a simple cryptography program using a simple subsitution method. If any one could help that would be nice. I need to be able to encode it as well as decode it. but im just a little confused on how to go about doing that. here …

Member Avatar for Lucaci Andrew
0
182
Member Avatar for game06

i have a sprite sheet(image) and i want to draw on screen. image = sprite sheet image x = player x postion y = player y postion width = player width height = player heigh public class main extends japplet { ... public void paint(Graphics g) { g.drawImage(image, x, y, …

Member Avatar for mKorbel
0
2K
Member Avatar for alidabiri

hi, i have 2 tables: CUST and ORDERS CUST contains cust_num, cust_name, cust_phone ORDERS contains cust_num, order_date, order_amt i want to list all the cust_names and their last order date and amount how would i code this? thanks.

Member Avatar for QVeen72
0
10K
Member Avatar for rayidi

Dear All, I'm developed an application that can read incoming messages. Upto now all its fine, Now my app crashing sometimes and return `NullPointerException`. Please find my error log below. java.lang.RuntimeException: Unable to start receiver me.radhakrishna.buddyreader.TextMessageReceiver: java.lang.NullPointerException at android.app.ActivityThread.handleReceiver(ActivityThread.java:2146) at android.app.ActivityThread.access$1500(ActivityThread.java:127) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1208) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4441) at …

Member Avatar for peter_budo
0
924
Member Avatar for ScarWars9

Hello, I have been making an employee timeclock and have run into a bump in the road. Here's what my setup is like when an employee (who is not an Admin) loggs on they get a simple screen telling them the current time current date and two button that allow …

Member Avatar for ScarWars9
0
942
Member Avatar for victoria.lim.773124

The function called skipped over when i run the program. What's the problem? #include <iostream> using namespace std; void searchId(int id[], int& idNum); int main() { int idNum; int count; int *id; int Numid; cout << "Please input the number of id numbers to be read "<<endl; // cin >> …

Member Avatar for Labdabeta
0
687
Member Avatar for Markancia

I am a beginner in j2ee, I met a problem when retrieving an image already stored in the database. I am using Hibernate and JSP, the code I used is as follows: / / java code: s.setAttribute ("photo", l.getPhoto ()); StringTokenizer st = new StringTokenizer (s.getAttribute ("photo"). ToString (), "/"); …

Member Avatar for LastMitch
0
360

The End.