199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for triumphost

I'm diving into various Image reading and writing methods and writing my own. I decided to tackle TGA/Targa. I got reading working flawlessly. It reads both compressed and decompressed .TGA files. I got writing decompressed .TGA files working. However, I cannot figure out how to write Compressed .TGA files. I …

Member Avatar for triumphost
0
1K
Member Avatar for tieties

Hi So i have a database in sql server 2008 and in 1 table i have information with a picture in it, i can retrieve 1 picture from the DB to display in a picturebox, wat i want to do now is read all the pictures and disply them all …

Member Avatar for tinstaafl
0
802
Member Avatar for filxy

class Program { static void Main() { Console.WriteLine("Roll Nos." + " " + " Names" + " " + "score 1" + " " + "score 2" + " " + "score 3" + " " + "Average\n"); Console.ReadLine(); LinkedList<string> Linked = new LinkedList<string>(); Linked.AddLast("maryam"); Linked.AddLast("ali"); Linked.AddLast("mahum"); Linked.AddLast("aliza"); Linked.AddLast("faizan"); Linked.AddLast("mehreen"); …

Member Avatar for tinstaafl
0
585
Member Avatar for ilanda68

[QUOTE=stackOverflow;164345]Hi, Oops sorry! I had not put double slash in the "path" in initgraph. :o Its working now. Anyway,thanks a lot. And the OS is xp.. but i don't get it.. how does it matter??[/QUOTE] hi, i've the same fucking problem: My PC failed and then I must to move …

Member Avatar for inheaven
0
2K
Member Avatar for triumphost

Why can't I capture the variable Painted and change it? The second that I capture it, it throws a compile time error: > *cannot convert 'Foo()::<lambda(HWND, uint32_t, WPARAM, LPARAM)>' > > to > > 'WNDPROC {aka long long int (*)(HWND__*, unsigned int, long long unsigned int, long long int)}' in …

0
107
Member Avatar for triumphost

Why can't I capture the variable Painted and change it? The second that I capture it, it throws a compile time error: > *cannot convert 'Foo()::<lambda(HWND, uint32_t, WPARAM, LPARAM)>' > > to > > 'WNDPROC {aka long long int (*)(HWND__*, unsigned int, long long unsigned int, long long int)}' in …

0
154
Member Avatar for b.shafabakhsh

I have been editing one html template in Microsoft Expression web 4,and right now I wish to bring all I have done into Visual Studio in order to start coding on it. But when I copy everything into a webpage in Asp.net some parts of my template will change,I could …

Member Avatar for b.shafabakhsh
0
228
Member Avatar for HunainHafeez

Error : SERVER TAG NOT WELL FORMED, why ? <%@ Page Language="C#" AutoEventWireup="true" CodeFile="employerView_ScrutinyMembers.aspx.cs" Inherits="employerView_ScrutinyMembers" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Scrutiny Members</title> </head> <body> <form id="form1" runat="server"> <div> <asp:TextBox ID="txtboxMemberName" runat="server"></asp:TextBox> <asp:Button ID="btnSearch" runat="server" Text="Search" onclick="btnSearch_Click" /> Or <asp:Button ID="btbViewall" runat="server" Text="View …

Member Avatar for JorgeM
0
633
Member Avatar for doha786

I have three arrays & i like to convert it in one multidimensional array. $array1=array('Kathy', 'Adam', 'Jenny'); $array2=array('student','teacher','driver'); $array3=array(2, 5, 8); $mix=array(); $mix['name']=array_values( $array1); $mix['profession']=array_values( $array2); $mix['SL']=array_values( $array3); OUTPUT: Array ( [name] => Array ( [0] => Kathy [1] => Adam [2] => Jenny ) [profession] => Array ( [0] …

Member Avatar for sanket044
0
180
Member Avatar for kishoresai438

Hi friends, I am having small doubt regarding redirection of my webpages. folder structure : **project/admin/** i want to redirect this to **project/admin/adminlogin.php** Please check the below .htaccess code and corect me plz. Below .htaccess file saved in **project/admin/** this path. Options +FollowSymLinks RewriteEngine On DirectoryIndex adminlogin.php

Member Avatar for sanket044
0
95
Member Avatar for artur.sinelnikovs

I'm not really getting the bigger picture with regards to linked lists. What needs to be done to link it? Also, there is an error with strncpy and for some reason on line 35 its not recognising struct trainset anymore and calls it a undefined variable. #include <stdio.h> #include <stdlib.h> …

Member Avatar for sanket044
0
147
Member Avatar for SunnySideUp

Hi, I have this website which I am developing, but it is having display problems. I have a directory called 'includes' which contains 'header.php', 'login.inc.php' and 'login_form.inc.php' 'header.php' - displays the normal doctype, meta tags, styles, etc. 'login.inc.php' - is the actual process of the login form once the form …

Member Avatar for SunnySideUp
0
433
Member Avatar for paine_today

I am importing a library into a script that is being used in a php document, but for the script to run, I need to import a library that is rather large. Is it possible to permanently import the library so I do not need to load it up each …

Member Avatar for paine_today
0
146
Member Avatar for Nandhinidevi

Hi All, I need to trunk a float number with one decimal place. For eg: i have a float number called total=95.20004. my result should be 95.2. I have tried with the DecimalForma, but it is not working out. Kindly help me to resolve this issue.

Member Avatar for tux4life
0
216
Member Avatar for viveksraman

<?php $con = mysql_connect('localhost','root',''); <?php $con = mysql_connect('localhost','root',''); $db = mysql_select_db('myuploads',$con);$un = $_GET['usname']; $ps = $_GET['passwd']; $retr = mysql_query("SELECT uname,password FROM user WHERE uname = '$un' "); while($row = mysql_fetch_assoc($retr)) { if($row['uname'] == $un) { if($row['uname']== $un && $row['password'] == $ps) { echo "Welcome ".strtolower($un); } else echo "Password doesnt …

Member Avatar for cmps
0
201
Member Avatar for you207

I need to write a program that gets content of txt file and display all 4 letter word . Can someone help ?

Member Avatar for deceptikon
0
2K
Member Avatar for anuran

i'm trying to create a splitmenu but haven't found any tutorial, i would like to know after creating a splitmenu button with createwindow function, how to populate the menu and what will be the change in switch case of callback function?

Member Avatar for Ancient Dragon
0
351
Member Avatar for revelator

Friends, i have to submit a project on Car Rental System which is to be made in C. i have made half of the work like giving out the menus using Switch, but the prof told me that i have to now input the details of the customer and then …

Member Avatar for Miorfs
0
4K
Member Avatar for Skate Bart

When the button is clicked, I want the file (it's a XPS document) to be opened in windows. The file will be in the same directory as the visual basic project. Therefore, I need the code to open the file using "app.Path". Any solutions?

Member Avatar for rishif2
0
946
Member Avatar for Skate Bart

When the button is clicked, I want the file to be opened. The file will be in the same directory as the visual basic project. Therefore, I need the code to open the file using "app.Path". Any solutions?

Member Avatar for AndreRet
0
4K
Member Avatar for varma51

hii this my code.the problem is i'm changing the background color for an header using on click function in javascript.but wen i did page refreshing the default background color is appearing.i want to dislay the changed background color of that header wen once on click function is done. please help …

Member Avatar for diafol
0
289
Member Avatar for OsaMasw

Hello buddies and merry christmas I have a string which is a file name with multi parts (my file.part001) I need to remove the (.part001) form the string so only the (my file) still. I've tried function removeFromEnd($string, $Remove) { $RemoveLen = strlen($Remove); $stringLen = strlen($string); $pos = $stringLen - …

Member Avatar for OsaMasw
0
134
Member Avatar for vizz

I want to **fade out** logo and **fade in** after **fade out** is completed $(".navlist li a").click(function() { $("#logo").fadeOut("slow").delay(850).fadeIn("slow"); }); This code is not working well. **fadeIn** occurs fastly I used values instead **"slow"** but it fade out correctly and fade in fastly

Member Avatar for vizz
0
123
Member Avatar for vizz

I have links like, #**#/Home**, **#/About** how to remove **#/** using .htaccess I have other RewriteRules and they all work fine URL's are displayed like **localhost/site/#/Home**

Member Avatar for vizz
0
181
Member Avatar for redserpent7

I am in the process of developing a cloud backup software. The application is a desktop application developed using C#. I need to add an option to stop/pause the backup if the computer was connected to a 3G network to save cost for the user. I cannot seem to be …

Member Avatar for tinstaafl
0
264
Member Avatar for Blank808

for example: 8 - 9 = -1 i want it to be : 8 - 9 = 1 i want to subtract a lower number from a higher number and the result will be a positive number and it will display on a Label.

Member Avatar for Sammy Valdez
0
636
Member Avatar for wooshman

Hi all Normally a php type of person I am a noob / bodge when it comes to c#. Using Visual Studio 2010 I have had help in creating a memory / process reader. This looks like a cheat program which it could be if used in the wrong hands, …

Member Avatar for tinstaafl
0
145
Member Avatar for cucolino

Hi. So, just switched to RAD XE3 to use Metropolis UI feature, and therefore started to completely rearrange and redesign my app to make it a little nicer, only this time I've chosen FireMonkey Metropolis App, since it has some good components, such as TSwitch (slide switch). Everything seems to …

Member Avatar for cucolino
0
472
Member Avatar for jay nadeem

hi, i want to check a specific date using if condition. i want only date, not month and year. like code checks only date 20 of every month when i clicked a button. please help me....

Member Avatar for jay nadeem
0
108
Member Avatar for freakyboard

I need to encode the sending messages/data(not MD5)and then they will be decoded on the other side. Codes have to be in android libraries not in java. Is there any code or information that may help me around internet? Thx all for your help.

Member Avatar for peter_budo
0
327
Member Avatar for SamD34

Hi, I want to declare a float[] in .h and initialize in .m as explained below: .h file ` @interface A: NSObject { float data[10]; } @end ` .m file @implementation A -(void) loadData{ data={1,2,3,4,5,6,7,8,9,10};//Does not work } @end I could have intialized in the following manner, but Could it …

Member Avatar for great_learner
0
344
Member Avatar for love1969

Design and implement the class Day that implements the day of the week in a program The class day should store the day, such as Sun for Sunday. The program should be able to perform the following operations on an object of type Day: A. Set the day B. Print …

Member Avatar for jwenting
0
104
Member Avatar for trishtren

Hello, Im looking for a way to construct a scale-able 2d list or something of the sort. What i have so far is an array int [][] mydata = new int[6][4]; The problem is in my editor i wont know how long to make the array as people are going …

Member Avatar for jwenting
0
129
Member Avatar for plbo

Hi,I'm trying to do a parental control software project in C#. I made blocking and unblocking specific websites by using hosts file but the other part of my project is blocking the internet access. When I click a button, the internet access will be blocked and when another button is …

Member Avatar for james6754
0
845
Member Avatar for vikuseth

double & val = 66.6; //illegal const double & val = 66.6; //legal I was just doing some demo programs and came through the above concept but not able to identify what exactly the need of the above concept . what magic exactly const is doing in the second case …

Member Avatar for Gonbe
0
232
Member Avatar for sirlink99

I am attempting to write a very simple chat program to test out ServerSockets and Sockets, the code should work, but when the client make a connection to the server it does not move past the accept method. I know they connected because as soon as I close the client …

Member Avatar for JamesCherrill
0
474
Member Avatar for daudiam

Both DataOutputStream and PrintStream do basically the same thing - convert primitive types and Strings to bytes before writing them (writeUTF() is an exception). Why different classes ?

Member Avatar for JamesCherrill
0
1K
Member Avatar for GraficRegret

so the page protection code I finally got to work is working properly in all the browsers however with safari after I log out i can click the back button and get into the protected pages and change things, however once the submit button is hit or the page is …

Member Avatar for GraficRegret
0
127
Member Avatar for myk45

Hello All, I was doing some multi-threaded programming using the new C++11. This thought came across my mind: Is there any problem if some shared data is accessed by multiple cores on a CPU? Even if it is just a read. Does this lead to some problem? Could anyone please …

Member Avatar for mike_2000_17
0
232
Member Avatar for Sneaky Pete

Hello everyone, With the help of some of you guys, i managed to make my first program! To share it with some people, but to prevent that everybody can use it, i would like to build a licence in it. Therefore I want to make a program, so I can …

Member Avatar for adam_k
0
160
Member Avatar for amt_muk

Hello, Can you please suggest me some 3rd party C++ libraries like RogueWave SourcePro C++. Thanks in advance, Amit M.

Member Avatar for mike_2000_17
0
266
Member Avatar for paine_today

Hello Daniweb Univere, I am looking for a good program to use to store several dozen text documents, make them searchable, and ideally, allow me to link to specific lines of the document. I imagine there are programs like this, I have just been unable to find them. Any suggestions …

Member Avatar for diafol
0
239
Member Avatar for Zaina jee

I have to write a program that will input a text paragraph from the user. The maximum size of the string will be 500.I have to write a program in which if user select 'R' or 'r' then user is asked to enter a word he wants to replace and …

Member Avatar for Zaina jee
0
2K
Member Avatar for secretply

I have a problem with retrieving a value from a query. I know what the problem is but not sure how to solve it. Pretend I have this code: $sql = mysql_query("SELECT * FROM sometable WHERE thisvalue = '$_SESSION["value"]'"); // This will always return one result. $result = mysql_fetch_row($sql); echo …

Member Avatar for secretply
0
137
Member Avatar for mumaga

Hi, I want to creat a record of user journey thought the game I'm coding, that would record a script of the user inputs to a separate log file, I am thinking of creating a userrecord class and the user input will be stored into a text file using filewriter …

Member Avatar for mumaga
0
152
Member Avatar for GraficRegret

I need to allow my customer to upload a picture and then display the image source tag for the picture so they can copy it and paste it where they want to in the text area I am providing for them. i.e. how facebook notes works

Member Avatar for GraficRegret
0
179
Member Avatar for adam.adamski.96155

Hello :D I am using the twitter API to perform a search for a certain author, and storing the results in a database so that I can perfrom an action on each entry. However, there are many duplicate results that have small differences at the beginning of the string or …

Member Avatar for adam.adamski.96155
0
4K
Member Avatar for tapananand

I Just wanna know what happens if we try to do the following in C++: `"abc"+'d'` i.e what happens if we concatenate a character to a C-string.

Member Avatar for deceptikon
0
777
Member Avatar for Rachna0309

I have 3 comboboxcolumn in datagridview.I want to display its value in grid if its value in database table is not null.Eg one column is caste.if this is null in my databse table then combobox column should be added to grid else caste value shold be seen in combobox when …

Member Avatar for adam_k
0
536
Member Avatar for Eyeteeorg

I'm just cutting my teeth on a few play projects in order to get better at javascript coding. Kindly have a glance at the following and comment on my general coding practices, as I want to get into the best habits right off the bat and break any bad habits …

Member Avatar for Eyeteeorg
0
194

The End.