199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tomtetlaw

I'm using VC++ 2010 Ultimate and I'm running a Windows 7 x64 machine. I have a function declared to be a dll export ([icode]__declspec(dllexport)[/icode]) and it builds without error or warning, but when I try to load that function with [ICODE]GetProcAddress[/ICODE] it returns NULL. I've looked inside the .exp file …

Member Avatar for tomtetlaw
0
163
Member Avatar for yatin.baraiya

Hy all i want to display data in table format... as like below result. column1 column2 column3 1 2 sdg 3 4 dfg 4 6 gfdsg 6 7 ffdsg the following snap of my code is take the column title dynamically [CODE] <c:forEach items="${emplistlist}" var="demos"> <TD><c:out value="${demos.columnam1}" /></TD> </c:forEach> [/CODE] …

Member Avatar for anand01
0
2K
Member Avatar for anand01

hi all, I am quite new to J2EE . I want to connect mysql database which one will be best jsp or servlet.... the thing is we need to establish connection each time. Insted of that just one Java class will do that and the other classes call the method …

Member Avatar for anand01
0
129
Member Avatar for pseudorandom21

The worst thing about C++ in my opinion is trying to use a library (with VS2010 at least). It always causes me great pain, and usually I am not met with success. So, I'm trying to use the Magick++ library, which is a part of the ImageMagick program, and I …

Member Avatar for Celtrix
0
258
Member Avatar for gbatemper

I was making a basic nooby java tribe game, and I needed a way to return to main menu. Can anyone tell me of any methods? This is my current code (incomplete) I want it to return to main menu if a certain number is entered after the stats are …

Member Avatar for NormR1
0
5K
Member Avatar for mgt

I'm trying to create a simple members only section. With the following code, I'm able to log in and get redirected to a page (that simply says: "hello") if the login is correct. If I then copy the URL from the page to which I was redirected, open up IE, …

Member Avatar for Stefano Mtangoo
0
563
Member Avatar for Java John needs

I can ot get my output to reflect accurate info, does anyone have a possible solution? /////////////////////////////////////////////////////////// import java.util.Scanner; public class Count { public static void main (String[] args) { String phrase; // a string of characters int countBlank; // the number of blanks (spaces) in the phrase int length; …

Member Avatar for NormR1
0
279
Member Avatar for roXy101208

Hi, I just want to know if it is possible to have a fading notification using asp.net?? like in outlook and facebook if there is incoming message or notifications for you. Thanks

Member Avatar for roXy101208
0
115
Member Avatar for Krokcy

Oka. So i have this rather simple program, basically i want it to be able to count the number of hours it has been open. My problem is that i am trying to use [CODE]import java.util.date; Calendar calendar = Calendar.getInstance();[/CODE] And apperently this does not update after the program has …

Member Avatar for Krokcy
0
190
Member Avatar for god_1896

hi all; can anyone tell me where can i find a good example for this; i have this whole code [CODE]<?php $name = $_POST['name']; $sender = $_POST['e_mail']; $phone = $_POST['phone']; $subject = $_POST['subject']; $message = $_POST['message']; $email = $_POST['email']; // Insert data into hotelinfo table $sql="INSERT INTO mailRecord(name, sender, phone, …

Member Avatar for instantcarma
0
2K
Member Avatar for jovillanuev

Hi Guys, I encounter error when i converting the string into datetime. My datetime field is shipdate and returndate. also there is a Null value both of this field. btw, here is my code. can you please modify my code any idea that you can share with me to fixed …

Member Avatar for jovillanuev
0
412
Member Avatar for sagngh8

Hi Everyone, I am using the java applet to take screenshot of the web browser using the java's robot class. Robot objRobot = new Robot (); BufferedImage objBufferedImage = objRobot.createScreenCapture(objRectArea); The thing work good in windows system taking screenshot but in case of mac osx i get the blank image.When …

Member Avatar for Ezzaral
0
456
Member Avatar for yli

hi have the next code[CODE] <?php $search="ala salsa portocala nueve vacas"; $where="texto ala salsa nueve texto portocala verde nueve"; $search = explode(" ",$search); $old_kw = array($search['0'], $search['1'], $search['2'], $search['3']); $new_kw = array('<b>'.$search['0'].'</b>', '<b>'.$search['1'].'</b>', '<b>'.$search['2'].'</b>', '<b>'.$search['3'].'</b>'); $where = str_replace($old_kw, $new_kw, $where); echo $where; ?> [/CODE] because i just started to learn …

Member Avatar for diafol
0
131
Member Avatar for bhagawatshinde

Hi I am creating an store procedure in sql server 2005. i want to pass table name as parameter dynamically in sp. here is my sp but it give me an error [CODE]ALTER PROCEDURE dbo.ImportToTable ( @TableName nvarchar(100), @que_id int , @sub_code int, @chap_no int, @que nvarchar(max), @opt1 nvarchar(max), @opt2 …

Member Avatar for alc6379
0
3K
Member Avatar for udigold1

Hi, I'm trying to parse a csv fiel using a code i've found on line: [CODE] private DataTable ParseCSV(string path) { if (!File.Exists(path)) return null; string full = Path.GetFullPath(path); string file = Path.GetFileName(full); string dir = Path.GetDirectoryName(full); //create the "database" connection string string connString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=\"" + …

Member Avatar for alc6379
0
203
Member Avatar for zhiyongwoo

Hi Recently I have written my C# program to do some files checking (like house keeping). When the program is start, it will create another threat to run at the background to check files' modified date on every 30 mins. Most of the time the threat will go into sleep …

Member Avatar for alc6379
0
328
Member Avatar for sheennave

Hi all , I have collected php shell scripts on various sites on web. However the only script which works is this : $ php helloWorld.php [CODE] <?php $var = "honey"; print "hello $var"; echo "world"; ?> [/CODE] Any other script which has different commands doesn't work on the system …

Member Avatar for sheennave
0
120
Member Avatar for bob on whidbey

Some simple php code; [code=php] $dir = '../images/'; $file = $_GET['name']; // Last, First M. "nickname" $f = $dir.$file; list($width, $height, $type, $attr) = getimagesize($f); echo $f."<br />"; echo "width ".$width."<br />"; echo "<img src='$f' $attr title='getimagesize example' />"; [/code] while the last echo line displays the image correctly (and …

Member Avatar for diafol
0
3K
Member Avatar for manish250

hello all i am doing a copy operation from a file to another file.in source file i have 13 digit no but in destination file there is only 12 digit copied.code is as follows. [CODE]public void createOriganalFile() { try { File ObjInputFile1 = new File(strFilepath + "_dummy.txt"); File ObjOutputFile1 = …

Member Avatar for hfx642
0
201
Member Avatar for bhob

hey guys, i have a query wherein one table has the same id as the other using inner join.. SELECT c.cat_name, g.maxscore, g.description FROM grp_performance INNER JOIN category ON g.cat_id = c.cat_id Is it possible to use inner join when deleting a row? like.. DELETE FROM grp_performance INNER JOIN category …

Member Avatar for hfx642
0
286
Member Avatar for ana_1234

Hey, I have a file that I am working with that I have pass into my program through command line arguments. I don't want to touch the file, just want to store a temp of the file then after fixing the temp place it back in the original. After running …

Member Avatar for WaltP
0
354
Member Avatar for gogs85
Member Avatar for machine91

How do you write a python code that looks at a specific cell in a csv file? I have the following data in a csv file 1 0 100 2 11 150 3 0 189 4 0 195 5 21 245 I need to write a program in python that …

Member Avatar for JeoSaurus
0
3K
Member Avatar for apanimesh061

[CODE] #include <conio.h> #include <iostream> #include <cstring> #include <ctype.h> using namespace System; using namespace System::String; enum CardType{ MasterCard, BankCard, Visa, AmericanExpress, Discover, DinersClub, JCB }; bool Validate(CardType cardType, String cardNumber){ int number[16], len=0; for(int i=0; i<strlen(cardNumber); ++i){ cardNumber[i] = atoi(cardNumber[i]); if(isdigit(cardNumber[i])){ if(len == 16) return false; number[len++] = cardNumber[i]; } …

Member Avatar for teo236
0
1K
Member Avatar for bandrei2408

Hello ! I need your help to calculate the complexity of a program. I need this for my exam and i can't understand how it is calculated. I've tried searching for solutions on google and reading about it but i still can't get it. Maybe if someone can calculate it …

Member Avatar for bandrei2408
0
146
Member Avatar for CodeAerial

I am making a program the enqueues a number at index 0. I also made a function for it, as written below: [CODE] //main #include <stdio.h> #include <stdlib.h> #include "functions.h" main(){ int *queue = NULL; int size, choice, aNumber, numberOfQueues; do{ printf("Enter Array size: "); size = input(); allocateMemory(&queue, size); …

Member Avatar for nezachem
0
165
Member Avatar for MagnetoM

I have added data from the database to the textbox but can't add a null value. I'd like to enter certain text if the field (not sure if thats what it's called) in the database is null. [CODE] if( (reader["Grey3"].ToString()) == DBNull.Value)[/CODE] I've search online and read through a number …

Member Avatar for Mitja Bonca
0
88
Member Avatar for jacksantho

Hi, Anyone please help out. By using select query i am getting this following output. [B] itemname idno name price A B01 sa1 10 B B01 sa1 40 C B01 sa1 50 D B01 sa1 100 [/B] But i don't want this(as above one) type of display in my browser. …

Member Avatar for Pampas
0
172
Member Avatar for Joshua Kidd

How would you be able to Capture the Value of a Cell when the User Selects a Row?

Member Avatar for adam_k
0
325
Member Avatar for saurav4ever

Hello everybody, I am Saurav Saha from India. I am not aware of python but just because i am working on a tool that is on python i got struck. I have many directories in which two files are kept 1. *.txt and 2. *.pdbqt I wanted a program that …

Member Avatar for Gribouillis
0
333
Member Avatar for attism

I want to create a dropdown menu in my main menu. It should look like this: [URL="http://www.freeimagehosting.net/uploads/73ebcb47c3.jpg"]LINK to the photo[/URL] But I don't know how to get it work, that it should count the links (categories) inside the menu. If its more than 6, than it should put the 7th, …

Member Avatar for attism
0
233
Member Avatar for sid78669

I am currently working on a site that requires periodic download of data from other sites. For this I have been trying to find some way to make the server automatically download the data every few hours. Any suggestions on how I might get started? Right now we have to …

Member Avatar for sid78669
0
164
Member Avatar for vergil1983

Hi, i new here.... I'm making a program which can calculate the below expansion of Ln)(1 + x) = x/1 - x^2/2 + x^3/3 - x^4/4 + x^5/5 - x^6/6 Below is my syntax [CODE] #include <iostream.h> int main() { float num1; cout<<"Enter a number: "; cin>>num1; num1 = num1/1 …

Member Avatar for deliezer
0
3K
Member Avatar for deliezer

Hello, I have a difficult memory error to find. I have narrowed it down to a small piece of code, tiny in fact, but the symptoms are baffling to me. I tried to find it with electric fence, but electric fence found nothing. The problem is complicated by my liberal …

Member Avatar for deliezer
0
91
Member Avatar for sjgriffiths

Hello I want to sort a file and then uniq it, but ignoring the first field so i have REF | FOR | SUR TLT090991|STEPHEN|GRIFFITHS TLT090992|STEPHEN|GRIFFITHS So i want to uniq but ignore the REF field I had this but it doesnt work cat $FILE | sort -t '|' -k2,3 …

Member Avatar for JeoSaurus
0
303
Member Avatar for rsandp

Sir/ma'am , please help me how can I convert an integer to a string in java without using a convertSimple(); convertInteger(); convertFormat():

Member Avatar for NormR1
0
92
Member Avatar for learningcpp

Hi All, I am facing issue again and would be great if you help me to understand this code: [CODE] #include <iostream> #include <ostream> using namespace std; class A{ int a; public: A(int a):a(a){ } A operator+(A &other){ A aaa(a+other.a); return aaa; } friend ostream& operator<<(ostream &stream, A &aa){ stream …

Member Avatar for learningcpp
0
163
Member Avatar for feedz87

Hi, I have a site with a login form for users and administrators to enter their details. Anyone can show me simple code how to separate between admin login and user login because i'm new in php.I uses PHP object oriented.Anyone can show me simple tutorial and easy to understand …

Member Avatar for mgt
0
2K
Member Avatar for yancouto

Hey guys, I'm working on a game, and I was trying to mirror the gif images inside the program so I wouldn't have to do it manually (And also so it wouldn't use twice as much space to store the mirrored gifs). Anyway, I Google'd it and found [URL="http://stackoverflow.com/questions/1708011/create-a-imageicon-that-is-the-mirror-of-another-one/1708909#1708909"]this answer[/URL], …

Member Avatar for Ezzaral
0
543
Member Avatar for leo88

Hi, I have problems with passing parameters in a object to string, take a look to my codes: [CODE] DataTable dt = new DataTable(); string SQLStr = ""; // sql query dt = AccessDb_Cmd.RetrieveData(SQLStr, Access_Db).Tables[0]; string c1,c2,c3,c4,c5,c6; int i; foreach (DataRow row in dt.Rows) { i = 0; object array …

Member Avatar for leo88
0
138
Member Avatar for Cyberoxy

Hey there! I need your help. Just small fixing. Im brand-new to C#. I got the email from gmail account - look at the data (bold): Name: xxxx Surname: xxxx Email: xxxx Description:Card A6 [B]Order:true[/B] [B] // no data --- It should be : Order: Images/order_names/faithcard.jpg[/B] [B]Code behind (C#):[/B] [CODE] …

Member Avatar for stbuchok
0
241
Member Avatar for utthu

I am having a problem with the execution of this particular php page. I'm using a wamp 2 server on windows7. The output is always "Unable to Open Database", no matter what changes I make to the code. Please help! I am a newbie in php! The php code is …

Member Avatar for utthu
0
155
Member Avatar for flebber

Is there a way to do nested list comprehension? for example I can square a range of numbers, even only. [CODE][x*x for x in range(1,20) if x % 2==0][/CODE] but what if I want to square the even and times the odd by 3. [CODE][x*x for x in range(1,20) if …

Member Avatar for richieking
0
156
Member Avatar for by_stander

Hey all, I'm having some issues using ArrayList. Here's the code.. [CODE] ArrayList<Double> var = new ArrayList<Double>(); var.add(15.0); var.add(0.0); [/CODE] I could just use [CODE] double[] var = {15.0 , 0.0}; [/CODE] for this.. but I'm trying to teach myself Java and need to understand the use of ArrayList. Any …

Member Avatar for by_stander
0
7K
Member Avatar for t@sos

Hello to everyone, I am new to this forum as I am new to Java. I would like to know if anyone has come up with a method that helps in learning the huge collection of classes of the Java API. I know that question is not easy to answer. …

Member Avatar for gyno
0
2K
Member Avatar for Joe34

I think I must be blind ;) [CODE]$Title = $_POST['title']; $Category = $_POST['category']; $Content = $_POST['article']; $Tags = $_POST['tags']; $Description = $_POST['description']; //error below... $Title = addslashes($Title); //error above... $Category = addslashes($Category); $Content = addslashes($Content); $Tags = addslashes($Tags); $Description = addslashes($Description);[/CODE] I declared title the first time... $Title = $_POST['title']; …

Member Avatar for karthik_ppts
0
224
Member Avatar for AjithAnnadurai

hi friends , i found a code for tamil language comment box in blogger and also its executed successfully but one problem i cant post a comment . only box alone coming in this code . please check it and give me a proper code . [CODE] <script src="https://www.google.com/jsapi" type="text/javascript"> …

Member Avatar for AjithAnnadurai
0
341
Member Avatar for MagnetoM

How can I set the stack order for controls of an mdi form and new child forms that appear within my mdi form. The mdi controls appear on top of the child forms after they are opened. I googled this but couldn't find anything relevant to controls and mdi forms.

Member Avatar for MagnetoM
0
119
Member Avatar for Paradox 99

Hi all, My first time here. I'm quite the newbie when it comes to ASP after coding in VB6. Frankly I'm stumped by something I'm sure should have a simple solution. Here's a very basic snippet of what I'm trying to do, so the problem (and hopefully the solution) is …

Member Avatar for Paradox 99
0
135
Member Avatar for hutzy

Can someone help me i try c++ text with color and it is blinking now i want the text is moving whatever right to left, left to right. I have no idea plsss i begging someone plss help me exmple plss or teach me!!

Member Avatar for Narue
0
459

The End.