199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for daviddoria

I have a feeling that I can come up with a much better title for this thread once I know the answer to this question :). Say I have a function template template <typename T> void MyFunction(). Now I want to specialize MyFunction for a templated type. That is, say …

Member Avatar for daviddoria
0
171
Member Avatar for JohnPool

Can somebody give me advice on how to create a recursive version of GetEnumerator()? The well-known Towers of Hanoi problem (see e.g. [url]http://en.wikipedia.org/wiki/Tower_of_Hanoi[/url]) may serve as an example that is comparable to the actual problem I have. A simple algorithm to show all moves for a stacjk of disks of …

Member Avatar for darkagn
0
260
Member Avatar for agniputra

Hi can u pls tel me how to tackle a problem like this: 1234567890123456 is the number to be loaded in db... i need to convert it to double without using atof()... if i use atof() function the number is rounded off to 1234567890123460... ??? can anyone suggest for a …

Member Avatar for dannyniu
0
755
Member Avatar for Mr.BunyRabit

Im reaaly starting to hate netbeans... its like it changes my code for me!!! I use java mail to send emails. Now i got it to work a few days ago. already imported the api, and what have you (images attached). And i was able to send emails, and today …

Member Avatar for Mr.BunyRabit
0
1K
Member Avatar for roottybrian

Am trying to restore a MySQL database using the 'mysql -u root db < my_db' command. In vb's process.start. it gives me the default output you get when you type MySQL - help. Can someone tell me what's up. I guess it cannot see the < symbol. Regards.

Member Avatar for roottybrian
0
116
Member Avatar for Morley93

Hi again all. Having continued with my project I have managed to finish my [I]Board()[/I] which is where my main game occurs. I have also created a main menu which is instantiated from my [I]main()[/I] method and appears as soon as the program is run. My current problem is invoking …

Member Avatar for Morley93
0
113
Member Avatar for stereomatching

I don't know should I post this article at here or not, if you think this should belongs to other area, please move it to there. I need to design some domain specific language to generate some C++ source codes. I have considered about using xml directly instead of designing …

Member Avatar for stereomatching
0
148
Member Avatar for oldezwe

There are x number of users. Every time a user clicks a button, they give another random user a high-five. They get rewarded for giving the other user a high 5, and there is then an increase in the potential for them to receive a high five from others. Each …

Member Avatar for Philippe.Lahaie
0
158
Member Avatar for ALFA-FOXTROT

I'm having the biggest headache with this code.... Im trying to show the data correctly but it's not showing as i want... Hope you can help me out.... I have the HTML: [code] <table border="0" cellpadding="4" cellspacing="0" class="display" id="results"> <thead> <tr> <th width="10%">Id</th> <th width="10%">Time</th> <th width="10%">User</th> <th width="10%">Name</th> <th …

Member Avatar for ALFA-FOXTROT
0
464
Member Avatar for PoovenM

Greetings! I have a C# dll generated from a .resx file (I believe it's called a satellite dll). This stores simple key to string mappings (used for language localization). I was wondering if it's possible and feasible to access the information stored in the C# dll from a C++ unmanaged …

Member Avatar for PoovenM
0
952
Member Avatar for PoovenM

Hi there, I'm trying to access a resource only dll (compiled with the [i]/NOENTRY[/i] linker option) within C#. The dll file was created using a rc file that contains a [b]STRINGTABLE[/b]. I used [b]CComBSTR[/b] to load the string resource from the dll in C++; I'm not sure how to do …

Member Avatar for thines01
0
190
Member Avatar for ahoysailor

Hi all, I've been trying to find part of a string in a vector. The problem being that I can only get it to work if I enter the entire string, but I need it so that I only search for the first part of the string in the vector. …

Member Avatar for Clinton Portis
0
181
Member Avatar for srinivas88

I am trying to implement process pairs redundancy (process level redundancy) in c/c++. basically there is a active core process 1 running on one system and its standby copy, process 2, is running on other system. When ever the active one goes down the standby becomes active and executes the …

Member Avatar for L7Sqr
0
671
Member Avatar for aiwasen

well,the title says it all. What are the disadvantages and advantages? Is it better to compile java in ms-dos or in IDE such as eclipse(which is popular as they say). Which do you prefer?

Member Avatar for stultuske
0
254
Member Avatar for surferxo3

Let me be specific: I have the following components in my project: 1) Form 2) Textbox 3) Button 4) DataGridView 5) A class named Database - It has all the code stuff to interact with the database means it can insert,update,delete etc I type the desired name in the textbox …

Member Avatar for surferxo3
0
3K
Member Avatar for hapag

Hello! I am currently working on a text adventure in C++ and could use some help. What I'm trying to do is let the user input a command like the following: 'go kitchen' 'open door with key' and make the game react accordingly. I have a text parser which splits …

Member Avatar for L7Sqr
0
312
Member Avatar for rcbandit

Hi, Is it possible to call OSGI service implemented in external bundle from EAR package? Is there a tutorial how this is implemented? Regards

Member Avatar for StephNicolaou
0
163
Member Avatar for xecure

I have a database full of user. This is roughly how the database looks: [CODE]| username | sex | birthdate | zip_code | |----------+-----+------------+----------| | coolUser | M | 02-14-1987 | 90210 | | blueUser | F | 06-16-1982 | 10011 | | . | . | . | . …

Member Avatar for Sogo7
0
396
Member Avatar for Lillylionhert

I am working on a Priority Based Scheduler which reads the process in from a file. I have it reading from file and printing to the screen. I'm trying to use strtok to tokenize a line from the process test file and store it in three different arrays. The layout …

Member Avatar for Lillylionhert
0
5K
Member Avatar for mcwebalizer

I make an image administrator with PHP / MYSQL / AJAX. I try upload image - success! After uploading image I refresh page. uploaded image has added to list. I press delete button - image removes from list. But why it doesn`t remove from mysql list??? File can be downloaded …

Member Avatar for swapy
0
129
Member Avatar for gourav1

hey!tell me that what is difference between info contained in cookies and session(made in web container) ? let i have opened a website and done something in it and then i opened another site and do something on it. then tell me what is the info cookie is containing and …

Member Avatar for gourav1
0
159
Member Avatar for davy_yg

Hi, I am having problem in receiving e-mail through contact form. contact_us.php [CODE] <h2>Contact Us</h2> <br /><br /> <form action="send_email1.php" method="POST"> <table border="0" cellpadding="2"> <tr> <td>Nama Lengkap: </td> <td><input name="nama" type="text" value="" size="30" /></td> </tr> <tr> <td>E-mail: </td> <td><input name="email" type="text" value="" size="20" /></td> </tr> <tr> <td>Nomor Telepon: </td> <td><input …

Member Avatar for simplypixie
0
117
Member Avatar for jeraldmuthu

Hi, i need to retrieve the combo box value to the string parameter in the same page parameter for checking condition is it possible in JSP ? [CODE] <%@ page import="java.io.*"%> <%@ page import="java.sql.*"%> <%@ page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page language="java" session="true"%> …

Member Avatar for peter_budo
0
239
Member Avatar for kyriacos1986

I am trying to create a countdown timer using the javax.swing.Timer class. In order to display it I am only allowed to use javax.swing.JFrame and javax.swing.TextField classes. Well my Timer works as I expected. But I have trouble when I am trying to display it in the JFrame. It appears …

Member Avatar for JamesCherrill
0
839
Member Avatar for khadotra

How we can develop page like "abc.php=id=" how we can get access data? Please tell some tutorial so i can learn

Member Avatar for sakarora
0
100
Member Avatar for xecure

I have a database full of user. This is roughly how the database looks: [CODE]| username | sex | birthdate | zip_code | |----------+-----+------------+----------| | coolUser | M | 02-14-1987 | 90210 | | blueUser | F | 06-16-1982 | 10011 | | . | . | . | . …

Member Avatar for smantscheff
0
185
Member Avatar for devilking

i use vb.net i trying to do a file upload, i want to image to save to image folder, however, the image don't know appear in the directory that i indicate if i click on "show all file", the image appear, but the image icon is blank or white like …

Member Avatar for devilking
0
317
Member Avatar for mk.hashmie

I have just started learning C language. I am finding problems in nested loops and arrays. how can i learn them?? i am really getting problem

Member Avatar for mk.hashmie
0
78
Member Avatar for autorunman22

hello guys, ive been searching for ages on how to disconnect a client whether the request is from client or server but i cant find one. I thought the Naming.unbind() would do the trick but its not. anyway, this is my server code since I want to have my server …

Member Avatar for autorunman22
0
1K
Member Avatar for mardTanha

hi i have a listview that keep time(Second) and text. i want when player time was equal to my listview item times label1 show its text(RealTime). it is very similar to subtitle. i tried this: [code=c] private void axWindowsMediaPlayer1_PlayStateChange(object sender, AxWMPLib._WMPOCXEvents_PlayStateChangeEvent e) { while (axWindowsMediaPlayer1.playState == WMPLib.WMPPlayState.wmppsPlaying) foreach (ListViewItem item …

Member Avatar for mardTanha
0
93
Member Avatar for Mr.BunyRabit

This must be the Most Irritating Bug or what ever it is, EVER!!!! Im using Netbeans 6.9.1 and i have a main form, with a JMenuBar (dropdown bar) in that form. Now i have allot of items in that bar. But netbeans chooses some random time to remove 1 to …

Member Avatar for Mr.BunyRabit
0
135
Member Avatar for aminit

Hello ALL: In my form there is a textbox and label ,I want when I input a text when I'm inputting the first letter in the label value must be 1 if I input 2 letters in the label value it must be 2 ...etc... Any idea????

Member Avatar for niru21
0
222
Member Avatar for MarkWalker84

Hi, got a quick quickie... Im trying to send commands to a micrcontroller via a USB->serial converter. Im writing with wxPython on an XP machine it thats important. I have been using the win32 module along with USPP and so far so good, apart from one thing. As far as …

Member Avatar for mr_snarf
0
2K
Member Avatar for fahimcse2k9
Member Avatar for Shillz

I have been trying to send mail through my c# website, but kinda stuck up somewhere and not able to figure out the problem. :-/ M getting SmtpException saying "Failure sending mail". Please help.:icon_confused: [CODE] MailAddress fromAddress = new MailAddress("abc@gmail.com", "n1"); MailAddress toAddress = new MailAddress("xyz@yahoo.co.in", "n2"); const string fromPassword …

Member Avatar for Shillz
0
208
Member Avatar for abhit_kumar

Dear All, following is the code at button event which copy data from one DGV (dgvAccesList) to another DGV (dgvProbReport) and its working properly. Its paste data to 3rd and 4th column of destination DGV. But the problem is that, if at source DGV first column and second column have …

Member Avatar for abhit_kumar
0
81
Member Avatar for pwolf

i have been working on this course work i got my hands on to learn python, and i have just been working on an exercise, i was wondering if i perhaps cheated though? The exercise says the following; write a function that takes a list of real numbers and returns …

Member Avatar for pwolf
0
293
Member Avatar for kamilacbe

Hi .. i have a login page which performs some operation and finally when i log-out that page it has close all the session and navigate to the home page , but then when i click back button in IE it should not post back the page again.. thanks in …

Member Avatar for websoftcreation
0
173
Member Avatar for LegoBeast

Dear All I have made a successful html form with mail.php "thing" my only problem is I want to be able to redirect to 2 different thank you pages based on a value entered in the html form. Value field is "Type1" and people can enter either burger, farm or …

Member Avatar for urtrivedi
0
250
Member Avatar for srm2010

I am working with an MDI application. I have three forms where in Form1 is MDIParent form.From this MDIParent form another form FOrm2 is getting open which remains within the bounds if mdiparent window.Form2 has a button, when clicked opens Form3 which I want it to get open as child …

Member Avatar for bhagawatshinde
0
120
Member Avatar for communism

I recently have been working on a GLUT project in Code:Blocks. Everything in the code compiles correctly, yet every build seems to return the same result. I narrowed it down to an OpenGL, non-GLUT function : glFrustum. I change the parameters yet the runs are all the same. It could …

Member Avatar for communism
0
297
Member Avatar for bilal_fazlani

I saw the adobe pdf viewer control in vs2010 toolbox somewhere. and I thought it can be very useful. So I tried to add it. [url]http://img155.imageshack.us/img155/3349/choosetoolboxitems.jpg[/url] as I expected things are never simple for me, when I try to drag it to the form. there'a an error. [url]http://img214.imageshack.us/img214/8042/errorrp.jpg[/url] any idea …

Member Avatar for bilal_fazlani
0
2K
Member Avatar for divsok

why this code shows <b> tags? ---------------------------- <html > <head> <title>My Editor</title> <script type="text/javascript"> var displayText=""; function boldText(){ oForm = document.forms[0]; oTextarea = oForm.elements["txtArea"]; textarea_val = oTextarea.value; oTextarea.value = textarea_val.bold(); } </script> </head>

Member Avatar for divsok
0
318
Member Avatar for kikic

Matrix given in memory; the objective is to print the spiral in opposite direction from clockwise (left column down the right lower range, right up column, a series of upper left, etc. until you get to the environment). This works just for dimension 3x3. It should works for MxN dimension, …

Member Avatar for zeroliken
0
313
Member Avatar for prashanth18

Hello All, I have this situation. 1. I have one Text box (say first) and add button. 2. If i click add, one text box should be added + one delete button. 3. if i click add again, second text box should be added + one delete button. and so …

Member Avatar for kunalkrishneel
0
6K
Member Avatar for stupidenator

Hey Everyone, I just have a quick question... does anyone know how to test 2 integers (int a, int b) to see if int a is evenly divisible by int b? I tried it like this but it doesn't really seem to work: [CODE]public boolean isDivisible(int a, int b) { …

Member Avatar for zeroliken
0
203
Member Avatar for Blahthing

I was making an item for a game im modding, but it cant seem to read the variable and perform its function. Yeah, it recompiles fine, but dosent work ingame The functions that dont work ingame, are -Printing A Chat Message To An Entity -Setting Variable Timesshot to 0 -Damaging …

Member Avatar for Blahthing
0
147
Member Avatar for coxxie

having issues with my program running propperly. I think i have it right but i need a more skilled eye to take a look at it for me and set me in right direction. the code will complie, but everything i enter comes up invalid when some of it should …

Member Avatar for coxxie
0
457
Member Avatar for ng5

I'm writing a program in visual basic 2010 express and i have a combo box. in that combo box there are 3 selections 20 25 and 30. at first i had a percent sign in front of each but i wanted to take it out... so i took out the …

Member Avatar for ng5
0
347
Member Avatar for 03hasnam

please consider the following file of given staff. [CODE]Bob 100100653 5860 London H3ll0 1[/CODE] How do i extract the 6th line for multiple files and generate a report in java for each files under same directory? the above is just one file data. i want to read multiple files and …

Member Avatar for NormR1
0
381

The End.