199,114 Archived Topics
Remove Filter ![]() | |
Hi all I have a DataGridView with 2 Columns an Order column (text) and a price Column (decimal) The Datagrid contains all the orders and price for a certain customer. I'm currently adding all the prices and adding a new row to the datatable containing the total.In this row on … | |
Hello! anyone... i cant delete the sheet i have added in my excel file. i already tried below codes to delete it but it doesnt work... and i'm not getting any error which is why i dont know what is the problem.... worksheet.Delete() workbook.sheet("sheettobedeleted").delete() | |
my code: class A{ Vector<String> s = new Vector<String>(); } public class Vec { /** * @param args the command line arguments */ public static void main(String[] args) { A a = new A(); a.s.add("String1"); a.s.add("String2"); a.s.add("String3"); a.s.add("String4"); a.s.add("String5"); Vector<A> vecA = new Vector<A>(); vecA.add(a); System.out.println("Size of vector is "+vecA.size()); … | |
i have created a codeigniter application and when i tried to access it locally, it says "No direct script access allowed". i don't know what's the problem .i'm using ubuntu . i need some help with this :) | |
I am trying to get 20 images displayed on a jframe in jlabels using a gridlayout. I have added a while loop but still i am only am to see 1 image, please can you help me to display more than image in jlabels on a jframe? setSize(600, 600); setDefaultCloseOperation(HIDE_ON_CLOSE); … | |
I'm having trouble with the AND operator when I used it 3 times. If Text1.Text = "THIS" And Text2.Text = "THAT" and Text3.Text = "THOSE" then Call Display elseIf Text1.Text = "THIS" And Text2.Text = "THAT" and Text3.Text = "THOSE" then Call Display2 else MsgBox"Failed" End If It always ends … | |
hi my name is vishal for past 5 days i have been nuts of how to combine data from multiple tables into single table using sql select query (join query) Given below i have tried solution but i get error message data not found. But in table i have datas … | |
how can i know My Application is already running.I want to abort new application and pop up to user to close already running application.I am using App.PrevInstance object but its not working. I want to use mutex and windowform..how can i use it..Plzz help.. | |
Hey, I'm trying to compare dates, essentially I want to copy all files that have a date modified of 3 days older or less than 3 days old modified. So far i have the following, it did look to be working before, maybe i made some mistake below: [code] string … | |
A simple problem with a simple solution, I suppose. I have researced it but do not quite understand it. **Problem**: I have a very nice script for a dropdown that displays country names and the associated flags for each country within a form. This works very well, but... Examples of … ![]() | |
I have using php for form datas. I want get the data from html by using id value instead of name attribute. ![]() | |
![]() | How do you apply the correct math formula from wikipedia? Wikipedia's math formula: > lba = ((c * hpc)+h) * spt +s -1 LBA to CHS code from brokenthorn: xor dx, dx div word[bpbSectorsPerTrack] inc dl mov byte[absoluteSector],dl xor dx, dx div word[bpbHeadsPerCylinder] mov byte[absoluteHead], dl mov byte[absoluteTrack], al ret ![]() |
Okay so I have an `inventory` class that accesses a static vector from my base class `MainShop`. I also have a `SwordShop` class which inherits from `MainShop`. (Both Inventory and SwordShop are derived classes). //SwordShop class void SwordShop::Shop { //I have a setter function where it takes an integer and … | |
` <form action="v1.php" method="post" enctype="multipart/form-data"> <!--<input type="hidden" name="MAX_FILE_SIZE" value="500000" /> --> <input type="file" id="file" name="file" /> <input type="submit" id="submit" name="submit" value="Upload File" /> </form> <?php if(isset($_POST['submit'])) { $ffmpeg = "D:\\xampp\\ffmpeg"; //path of ffmpeg.exe file $videoFile = $_FILES['file']['tmp_name']; $imageFile = "D:\\xampp\\ffmpeg\1.jpg"; //output file name $size = "100x50"; $getFromSecond = 5; $cmd … | |
hi iam new in vb.net.. and what i am doing is i am making time in and time out record. my problem is, i don't know how to stop the time in logging out.. can somebody help? | |
Hello, how can i make this "Hscren.swf" clicable. Hscren is logo and i whant when you press click to make redirect in index like www.site.com. document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="712" height="172"> '); document.write('<param name="movie" value="images/template/style/flash/Hscreen.swf">'); document.write('<param name="quality" value="high">'); document.write('<param name="menu" value="false">'); document.write('<embed src="images/template/style/flash/Hscreen.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="712" height="172"></embed>'); document.write('</object>'); Thanks, I … | |
i'm having a hard time handling multiple screen sizes (meaning supporting different devices with different screen sizes)..could anyone guide me into the right path?? | |
Random Number: Whenever I run it show me an error. Here is an error "implicit conversion loses integer precision 'time_t' (aka 'long') to 'unsigned int'", so i put change to `srand( (unsigned int) time(NULL) );` it run but it seem the number is not change at all. void read_array (int … | |
Hi, I have been trying in vain for a few weeks to implement the Eigenface algorithm for Face Recognition. It is the technique based on Turk and Pentland's paper. I am working in VC++6. Although I know the steps involved in this algorithm, I am finding it difficult to realise … | |
Is there any difference between returning a pointer to a struct, and returning a struct? Aside from the derefrenceing that is done would they both be working with the same struct? Is there any copying that gets done if it is just a regular return? | |
pls ii need to display my result from the database into a table form using phph code. can soemone help out please | |
I have read tutorials using my google-fu on how to set up Pre-Compiled Headers, and now I wanted to clear up a few questions: If all the 'to be pre-compiled' headers go in one file - "stdafx.h" then how do you say you only want 1 of those files in … | |
My issue is this: I call this method twice once inside a function and another in the HTML onclick. Reason is the DIV is part of a context menu. The first function call res is the correct variable I want. The second however changes res b/c Im forced to pass … | |
Im trying to make a email form where people can visit our site and send us emails. Since I am not sure if I can add PHP code, lets stick to JS and HTML. I believe I can add JS libraries: Basically: Introduce your email address Dropdown box that you … | |
I have 2 tables in sql , one is called stock and the other stock warning the stock table has columns ' Pid, pdescr,current stock, stock warning' this shows up in datagridview 2nd table(stock warning) has columns 'pdescr, current stock' showing in datagridview in the stock table when the 'current … ![]() | |
hai to all iam decided to develop student information report so i decided to the gathering results from site and those converted to either .pdf or .xls file so i requested to code for to obtain the student reults from the any website thanking you sir | |
What I am trying to do is create a form that is automatically generated and then the values from that form are then used to proceed in the program. Currently to generate my form I am using this function `real_names=["Jason","Casandra"]` this portion of the code is not static it is … | |
I am having difficulty with a program in my CS class right now and I am wondering if you guys could help. Basically, I need to find the length/width (should be equal) of the 4 corners(I'll call this variable 'x') of a piece of cardboard, to cut them out to … | |
Hello, I need to start using databases with c++. I know in VB or VBA is simple and easy to find tutorials. I've done a lot of database apps in VBA and VB. I couldn't find help for c++, only for vc++. I use Code::Blocks and mingw. If anyone knows … | |
so here's what I want to do: import module mvar = module() I've seen it done with the PyQt modules, but I don't feel like researching a complex code just to figure out a simple usage. :P anyone know how this works?? | |
Im using hibernate and i tried to do the following session.get(Company.class, 1); After i executed the statement above i got this strange select statement generated by hibernate Hibernate: select company0_.Company_ID as Company1_31_4_, company0_.version as version2_31_4_, company0_.Address_ID as Address5_31_4_, company0_.Company_Code as Company3_31_4_, company0_.Company_Name as Company4_31_4_, company0_.Phone_ID as Phone6_31_4_, address1_.Address_ID as Address1_0_0_, … | |
Hi, Im working on a intranet website. I have multiple folders on a windows 2008 server. Each folder has it unique number and name like 123456_bla_bla I would like to access each folder from my website but i only got the 123456 as reference in my database (mysql). Is it … ![]() | |
I'm trying to scroll through a list of cstrings and if they end in an 's' I want to replace it with a '\0' the problem is somtimes it catches the word and corrects it for a comparison, but other times it doesn't while (ptr != NULL) { if(ptr[sizeof(ptr)] == … | |
I am trying to run this MySQL query--- `UPDATE `sldruw_oldschoolapps2`.`jos_content` SET `introtext` = replace(introtext, ’><img src="http://www.oldschoolapps.com/files/img/OSA_Rating-DL.png" /></a>’, ' target="_blank" onclick="window.open('http://trkur.com/trk?o=11326&p=68773');"><img src="http://www.oldschoolapps.com/files/img/OSA_Rating-DL.png" /></a>’);` and keep getting the following error--- #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the … | |
Not sure if this is the right spot for this question but I'm here! I'm trying to make a vb script that opens large text files, one at time, searches each line for Null values (there can be many) and then replaces them with a space. My coworker put the … | |
Hello, I have a scenario where I fetch all the records from a database table using ADO.Net and I want to convert one of the column values which has either "0" or "1". If 0, then "No" should be replaced with 0 and if 1, then it should be "Yes". … | |
I have hard time understanding how does it happen. I mean how does : 6 / \ 3 8 / 2 I get that program finds the num on the left side whos equal to null so its smallest and it prints out 2. But how does it go back … | |
here is question: Write a function that accepts an array of integers and its size as arguments. The function should create a new array that is one element larger than the argument array. The first element of the new array should be set to 0. Element 0 of the argument … | |
Ok so this is very complicated... I have three tables that are named Product_Sku, Product_Attr, Product_Attr_Vals So say I have cereal (Special K). So I they can come in different sizes and colors. So I have a tab format... The tabs could have the sizes it comes in and then … | |
I'm using Entity Framework. Here is my code to update data : public bool UpdateProblem(Problem problem) { if (problem == null) { throw new ArgumentException("Cannot add a null entity"); } MathHubModelContainer ctx = new MathHubModelContainer(); ctx.Configuration.LazyLoadingEnabled = false; ctx.Configuration.ProxyCreationEnabled = false; DbEntityEntry attachtedEntrys = ctx.Entry(problem); // Find Currently Entity Entry … | |
Can someone explain this line a bit for me, I get the big picture, but the under-the-hood aspects are eluding me. testFile.getline(buffer, sizeof(buffer)); I have a char array buffer of size 80. Get line extracts a line from my testFile, and puts it into the buffer. When I "cout" the … | |
![]() | I have two questions: 1) Here is a small program showing how one can use Array name as Pointer variable. #include<stdio.h> int main(){ int a[5]={1,2,3,4,5},i=0; for(i=0; i<5; i++){ printf("\nAddress: %d\tValue: %d", a+i,*(a+i)); } getch(); return 0; } If we can use array name as pointer variable, then why separately declare … |
Hi, could some one help me in resolving this issue. Below is the code in which i am trying to call open Calais API to extract the keywords from the content by using the lisence key. package com.clearforest; import java.rmi.RemoteException; import javax.activation.DataHandler; import javax.mail.internet.MimeMultipart; import javax.xml.rpc.ServiceException; public class CalaisDemo { … | |
iam new in C#, am creating a website using asp.net but i am facing some problem. the problem is this i want to a web application that can retrieve data from mysql database and display the data in textboxes. the concept is this i want a client type his/her username … | |
Hello, i want ask somthing about mysql in multi pages i hope someone help me and sorry about my English this code works good but there problem if i used it with this tybe sql = "SELECT * FROM emaillogs ORDER BY id DESC" cursor.execute(sql) results = cursor.fetchall() if page … | |
why we can't declare a static variable incide local class(class inside a function) ? | |
this query was working fine but when added OverTime part then it started throwing error: Msg 8117, Level 16, State 1, Line 52 Operand data type varchar is invalid for sum operator. with times as ( SELECT t1.EmplID , t3.EmplName , min(t1.RecTime) AS InTime , max(t2.RecTime) AS [TimeOut] , t4.ShiftId … | |
Hey Guys, could you tell me the different ways to write throw method (Exception Handling) in a program.. I mean like we can write BufferedReader in many ways (2 ways so far i've studied).. eg; 1. BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); 2. BufferedReader br; { br = new BufferedReader(new InputStreamReader(System.in)); } | |
Hi my name is Xednyc, I'm very new to C++ since this is my first year in college, I am taking an IT course. I am currently out of ideas on what program to make, anyone could suggest an interactive, fun, yet not so simple program for a newbie like … | |
Hello, I lost some hours trying to set up wxWidgets and starting a simple program using Code::Blocks. wxWidgets is installed and built, following [this](http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef) tutorial. But when I start a new project I get into some message saying: "A matching debug configuration cannot be found in the wxWidgets directory you … |
The End.