64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for darelet

Guys, Why do we have these unresolved externals? This is the second time I am meeting them, and I'm sure it is a common problem. I've defined all the constructors including a void constructor just for the sake of (I don't actually need it). Pray tell where the error is: …

Member Avatar for darelet
0
165
Member Avatar for vivek01anand

#define prn(a) printf("%d",a) #define print(a,b,c) prn(a), prn(b), prn(c) #define max(a,b) (a<b)? b:a main() { int x=1, y=2; print(max(x++,y),x,y); print(max(x++,y),x,y); } output:222342 pls explain how we get output 342 at end

Member Avatar for lionaneesh
0
131
Member Avatar for fussballer

Hi, I am working on a small program (in Windows) to control the Speed of a CD Drive. So far I have used some of the IOCTL_CDROM_... and IOCTL_STORAGE... Control codes to control the drive by opening/closing it etc. I have now developed a small piece to also control the …

Member Avatar for wisaacs
0
521
Member Avatar for upstream

Hey guys, I was working on embedding image using the object tag with quicktime. i was succesfully embed it [COLOR="Red"]but it seems like i cannot display the playback controls (like "play","pause","stop" etc)[/COLOR]. Here's my code: [CODE] <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="478" height="383"> <param name="src" value="movie.mov" /> <param name="autoplay" value="false" /> <param …

Member Avatar for upstream
0
117
Member Avatar for nikesh.yadav

I m working on advertise website for that i need to select random values from the database so please help me Thanx in advance

Member Avatar for anupam294
0
131
Member Avatar for MrBlack

i have created two winforms ,first from take a value and pass it into the second form and display on a label, but when i run the programme it throws exception form 1 [CODE] private void button1_Click(object sender, EventArgs e) { Form2 fm2 = new Form2(this.txtName.Text); fm2.Show(); } [/CODE] form …

Member Avatar for MrBlack
0
90
Member Avatar for sadhawan

Hi Guys, I want to store the values of regex.match in an array but i am getting error. my code is as follows [code] string[] subj = null; for (int f = 1; f <= dir.Length; f++) { Match o = Regex.Match(txt1, "section_title='(?<TITLE>.*)'"); subj[f] = o.Groups[1].Value; } } } [/code] …

Member Avatar for kvprajapati
0
695
Member Avatar for jzlonely

I am very new to vb 2008 and have create a simple window forms application which link to microsoft access 2007 database. I build the application exe file already. The exe file is run well on my computer, but when i transfer it by copy and paste the whole folder …

Member Avatar for jzlonely
0
4K
Member Avatar for garcon1986

I'm sorry, i'm a newbie in php. And i have a lot of problems when i develop. So this is another problem i met. form.php: [CODE]<form method="post" action="process.php"> <h1>BESOIN </h1> <br><br> <label>Sujet:</label><input type="text" name="sujet" />&nbsp;&nbsp; <label>Date: </label><input type="text" name="bdate" class="datepicker" id="datepicker1">&nbsp;&nbsp; <label>Nature:</label> <input type="radio" name="nature" id="nature" value="exprime" >Exprime</input> <input type="radio" …

Member Avatar for Hubermanb
1
1K
Member Avatar for maria_mj

I want to retrieve session value(username) from the login page. I have to verify the user by their username to make the access right control for certain page. In my application, i want to control the access right to "ViewAllProject.aspx" page. I have save the username in session in login …

Member Avatar for maria_mj
0
235
Member Avatar for shadiadiph

Still trying to get my head around some simple javascript issues the following works in php but not in javascript can someone point me in the right direction obviously my code is wrong. [code] if((dobyear==false) && (dobmonth==false) && (dobday==true)) { return 'noyearmonth'; } [/code] thanks

Member Avatar for fxm
0
136
Member Avatar for whiteyoh

Hi all, Im fairly new to java. Im wanting to connect to mysql but the following is thrown Exception: com.mysql.jdbc.Driver have i missed something? here is the code [code] import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class MySql { public static void main(String args[]) throws Exception { Connection con = …

Member Avatar for javaProgrammar
0
7K
Member Avatar for andymelton

I have been studying PHP/MySQL on and off again for the past few years and I decided the only way I was going to learn it was to create my own web application. We're going on a road trip in a few days and I got the idea to create …

Member Avatar for andymelton
0
146
Member Avatar for tundra010

Hello everyone! I wrote a basic c++ program using classes and pointers. Although it compiles without any errors, it will not run, saying "This program has stopped working". I am assuming that this issue may have been created by a memory leak, but I made sure to delete all dynamically …

Member Avatar for thelamb
0
114
Member Avatar for SacredFootball

Hey All. I'm trying to figure out how to search for a string within my file and if the string exists, I want to get whatever follows it. Here's an example: HighScores.txt ---------------------------- Devin: 202 Corey: 185 Nick: 315 Patrick: 112 ---------------------------- If my program opens the file, I'd like …

Member Avatar for SacredFootball
0
128
Member Avatar for cableguy31

I'm writing a script that will search file names looking from certain file extensions. The thing is, is that I am looking for multiple extensions, and the list may change. I could write an if statement using "and", but the line just gets a bit long and can become difficult …

Member Avatar for TrustyTony
0
151
Member Avatar for findlay

Hi all, I am trying to link to an external library (the boost regex library) under gcc. I am ashamed to admit that what I know about linking external libraries comes soley from modified snipets from online forums. My problem is as follows; I use to keep all my source …

Member Avatar for findlay
0
761
Member Avatar for venkat arun

Hello, I am trying to calculate the value of pi (just for fun, I know it's already done for millions of decimal places), the program I made works fine, but the problem is that, it is constrained by the accuracy of [I]double[/I] values. Is there anyway to create 'extendable' floating …

Member Avatar for venkat arun
0
154
Member Avatar for Metalteeth9

Hey guys and girls, I am extremely new to coding, and I would appreciate some help. I am trying to write a code in which someone inputs a number, which is part of a file name, then I do stuff with the filename. Here is the part that I am …

Member Avatar for jonsca
0
163
Member Avatar for shazzy99

I've been trying to use substring to get the last three digits as part of the extension but wasn't successful. Can anyone tell me how I can extract the extension from the file name? Rgs

Member Avatar for kia_mls
0
204
Member Avatar for Stefano Mtangoo

I know it sounds stupid but I want to try this with the kind of for (not the norma for i=0 i<9; i++) but the other one with arraylist. is this possible? If yes please help me match data types Thanks [CODE=JAVA] import java.util.ArrayList; import java.util.List; /** * Created by …

Member Avatar for Stefano Mtangoo
0
129
Member Avatar for Pykoda

Hello everybody ! wow my first time on danyweb ! ;p Well, here the deal. Im doing a script that basically copy and past into the local drive a specified directory with all this files. Im doing the copy with a copytree which is working well. But, (and I know …

Member Avatar for TrustyTony
0
125
Member Avatar for tokenjoker187

I am trying to use the session start function but everytime I try to use it, it gives 2 errors: [QUOTE] Cannot send session cookie - headers already sent by (output started at /var/www/form/send.php:11) in /var/www/form/send.php on line 12[/QUOTE] [QUOTE]Cannot send session cache limiter - headers already sent (output started …

Member Avatar for tokenjoker187
0
186
Member Avatar for peck3277

Hey guys, I hope someone can help me with the idea behind this. I'm setting up a website in which members can have their own personal profile which displays all their information. I have 8 items that I want users to be able to make private or public. So in …

0
70
Member Avatar for 2bit

Hey guys i seem to be having an issue with the following code: [CODE]// show solution to variable scope problem using "the heap" // a block of memory controlled by the programmer #include<iostream> using namespace std; double* Function() { double* dLocalVar = new double; return dLocalVar; // give address of …

Member Avatar for 2bit
0
108
Member Avatar for nsutton

I followed a tutuorial to send gmails through a C# app. Im making a console app and this code fails I have no idea whats wrong... [CODE]class MainClass { public static void Main (string[] args) { sendMail mailSend = new sendMail(); mailSend.mail("stmp.gmail.com",465,"sendersemail@gmail.com","senders password","fromadress@gmail.com","toadress@gmail.com","Subject","Body",true); } }[/CODE] [CODE] public class sendMail { …

Member Avatar for nsutton
0
166
Member Avatar for azegurb

hi all, i have one question about variable in JavaScript [CODE]<HEAD> <TITLE>Window Opener and Closer</TITLE> <SCRIPT LANGUAGE="JavaScript"> var newWindow function makeNewWindow() { newWindow = window.open("","","HEIGHT=300,WIDTH=300") } function closeNewWindow() { if (newWindow) { newWindow.close() newWindow = null } } </SCRIPT> </HEAD> <BODY> <FORM> <INPUT TYPE="button" VALUE="Create New Window" onClick="makeNewWindow()"> <INPUT TYPE="button" …

Member Avatar for azegurb
0
118
Member Avatar for literal

I'm still interested if someone read this book since it's based upon standard C++?! Can one learn C++ over Visual... I mean what's difference anyway, except M$ is involved in Visual ?!

Member Avatar for alaukik
0
264
Member Avatar for zebra59

I have this problem that I can't figure out, I can't figure out the line statement that needs to go in. Here's the problem [code=c] struct NodeType { int data; NodeType* p; }; NodeType* p; NodeType* q; p = new NodeType; p->data = 18; q = new NodeType; q->data = …

Member Avatar for dohpaz42
0
111
Member Avatar for daudiam

The API says that the implementation of BlockingQueue are thread safe, but about the drainTo method, it says : [QUOTE]"This operation may be more efficient than repeatedly polling this queue. A failure encountered while attempting to add elements to collection c may result in elements being in neither, either or …

Member Avatar for daudiam
0
800
Member Avatar for cableguy31

I'm writing a script that will search files that contain certain keywords, and then output the line to a text file. The problem I'm having is that the script is opening every type of file, including executables. The script seems to work fine, as in it doesn't crash when it …

Member Avatar for cableguy31
1
747
Member Avatar for iThaos

Hi, I have pretty just started javascript and I have to say it is the hardest language to learn probably due to the lack of official documentation or something like that. If someone can point me in the right direction for documentation, that'll be great. On the other hand, php …

Member Avatar for iThaos
0
174
Member Avatar for fafi_ali

hi everyone i made crystal report then i saved it as a word document but i passed parameters to that report then an error occured after that the error is:- missing parameter values ok i tried to save it with 2 different codes but th same error shows up the …

Member Avatar for xianhatesyou
0
3K
Member Avatar for agrarian

I have a form (Delphi 2010) that includes several data controls, including a DBImage. All these are hooked to a underlying MSSQL 2005 database and table. I'm using ADOConnection and ADO Table for ease of use. I need to include image data in this table, so I have set up …

Member Avatar for yousef.h85
0
217
Member Avatar for daudiam

I tried to do this [CODE]ArrayList<String> a=new ArrayList<String>(2); a.add("dss"); a.add("dsfs"); a.add("fsfs"); [/CODE] Though i have specified a limit of 2 on the collection, i am able to add more. If this is general about Collections, is there any Collection which sets a limit and strictly follows it ?

Member Avatar for daudiam
0
81
Member Avatar for babis87

Hello, I'm writing a lexixal analyzer on FLEX, and i want to open an #include file. Calling fopen(yytext,"r"); as shown in flex manual http://flex.sourceforge.net/manual/Multiple-Input-Buffers.html#Multiple-Input-Buffers does not open the file, although that the string in yytext has the value "<filename>". Instead, when i use fopen("<filename>","r") the file opens normaly and the …

0
72
Member Avatar for anraevlus18

Hi I am new to perl...I have a file in which sections are seperated by "//************************************************" How can i search for the asterisk character using regular expressions? =-------------- open(IN, "<$inFile") while (<IN>) { if (/^\/\/**/) #here is the error..search for multiple '*' character { print "Seperater found" } } pls …

Member Avatar for anraevlus18
0
1K
Member Avatar for Roulaa

helleo all i want to delete from 5 tables with inner join like that: Category=CategoryId,CategoryName,.. Item=ItemId,ItemName,pictureId,VideoId,AudioId,CategoryId Picture=pictureId,pictureName Video=VideoId,VideoName Audio=AudioId,AudioName the user will Enter category name in text box iwant to delete Category+Item+picture+audio+video help me please :)

Member Avatar for Roulaa
0
215
Member Avatar for lucammino

Hi everybody. I have an UserControl (Windows Application - .NET Framework 3.5) which is composed of a TextBox and ListBox: it should pretty much emulate a "suggestion box" just like the ones in Google and other various search engines. Now, the initial status of this control (TextBox blank) imply the …

Member Avatar for lucammino
0
156
Member Avatar for stephen lowry

hi guys this is probley simple and i have an external board controlling various things on the board is a button which i would like when pressed activates code within a button on my vb form i have tried button1.select but that only well selects the button on my form …

Member Avatar for Luc001
0
139
Member Avatar for jt86442

[B] Hi, Actually my requirement is when i move my mouse on the link, One alert box shoulb be appear and it will count how many times i move on that link. I already written the code in javascript but it didn't reach to my requirement. Please go through the …

Member Avatar for rajarajan2017
0
2K
Member Avatar for isayas

#include <iostream.h> void main () { int i,j,temp,smallest; int list [10]; for (i=0;i<10;i++) { cout<<"enter a number\n"; cin>>list[i]; } for (i=0;i<10;i++) { smallest=i; for (j=i+1;j<10;j++) { if(list[j]<list[smallest]) smallest=j; } temp=list[smallest]; list[smallest]=list[i] list[i]=temp; { for(i=0;i<10;i++) cout<<list[i]<<endl; getch(); }

Member Avatar for avarionist
0
130
Member Avatar for avarionist

i realize the topic isnt much descriptive but i thought that my code was a bit strange so i hope dw can give me a bit of info this is the most random thing ive ever made. on windows it produces quite a bit of ruckus in the console but …

Member Avatar for avarionist
0
243
Member Avatar for nortech

Hello All, I am currently in the process of adapting an application that previously worked only with Microsoft Access to work with SQL server or Access. Previously, all database interaction was designed based upon using the XSD file to create queries (etc). I wasn't sure how to handle the new …

Member Avatar for nortech
0
180
Member Avatar for carylle

Can someone please help me. I want to call an MS Word Document in my system using VB.net what should be the syntax? Thanks!

Member Avatar for augamal
0
285
Member Avatar for ivanichi

Hi, can you help me.. how to save value multiple dropdown [CODE] <select name="s1" id="s1" multiple="multiple"> <?php $sql=mysql_query("select * from setting_mp ORDER BY id_tingkat ASC"); while ($data=mysql_fetch_array($sql)){ echo "<option value=$data[id_mp]> $data[pelajaran]</option>"; } ?></select>[/CODE] I wish if there are three values, then everything will go in the field i want enter …

Member Avatar for ivanichi
-1
859
Member Avatar for Jothe

High guyz am tryin to get hint from my database but i am managing to do so,though if i list the array am able. please help if any one has an idea here is the html code [CODE] <html> <head> <script type="text/javascript"> function showHint(str) { if (str.length==0) { document.getElementById("txtHint").innerHTML=""; return; …

Member Avatar for Jothe
0
179
Member Avatar for gingerfish

Please help me =( I'm not native english speaker, therefore some things might be not clear here I have 2 separate files: [B]Main.java[/B] and [B]Open.java[/B] inside [B]main.java[/B] there is a GUI and it has a [B]JTextArea[/B]) where i want to show text (variable) called from [B]open.java[/B] in [B]Main.java [/B] i …

Member Avatar for adams161
0
3K
Member Avatar for tiggsy

I've been going round and round trying to sort this. I have this in one of my programs: [CODE]drop table if exists temp2; rename table something to temp2; rename table temp to something; create table temp like something[/CODE] and it's not working, though it will work when I manually paste …

Member Avatar for nileshgr
0
2K
Member Avatar for ellioth_13

Can anyone help us in our thesis? Our topic is about encryption, but we are still thinking what encryption application we would be working.Can someone give us any idea? Thanks.

Member Avatar for ellioth_13
-1
100

The End.