64,152 Solved Topics
Remove Filter ![]() | |
Is there any real different between using an union between two types and a reinterpret_cast between two types, for example-- [code=c++] #include <iostream> int main(){ union{ unsigned short *a; float *b; }; float value = 0.6f; b = &value; std::cout << *a << std::endl; unsigned short *s; float *f; f … | |
hi, iam using the following javascript a page opener.location.reload( true ); but every time the page reloads iam a getting alert message. How can i reload a page with out a alert message | |
I'm new in c++ programming. I have to do a program to save data from classes (Student, Teacher and Statistics). What may i use to save that values? (File, sql...) and how to use. If some one show me a litle program....:icon_smile: | |
Hello guys. I am having trouble with QTabWidget: I can't add multiple widgets with addTab nor insertTab. even when I try something like: [code=python] self.widget1 = QListWidget() self.widget2 = QPushButton("Foo") self.widget3 = QLabel("Bar") self.tabs = QTabWidget() layout = QVBoxLayout() layout.addWidget(self.widget1) layout.addWidget(self.widget2) layout.addWidget(self.widget3) self.tabs.addTab(layout, "Foobar")[/code] It will raise an error that … | |
Hello once again everyone, my previous [URL="http://www.daniweb.com/forums/thread141733.html"]problem [/URL] appears to be resolved right now thanks for everyone who has helped. I have to make the following derived class [quote] Your LField class is derived from your Field class and represents a line field. Upon instantiation, an LField object receives between … | |
hi all,can anybody point out wats wrong in my database design, guide me right database ,i ve 4 tables i type all its attributes its for hospital database patient table pid, pfname, plname, pcontactno, page, pplace ,pdocname, pprob ,ptype(this is for out patient,inpatient), pbill. doctor table docid ,docname, docplace ,doccontactno … | |
Hey I host a website for a sports team, theres a nominations page where each member, when logged in, can cast a vote to whoever in the team they want to be captain for a tournament. The Problem is when someone votes i store the id, name and there vote … | |
hi, i ve hospitaldb created in MYSQl, i have connectivity problem like[CODE] String connectionURL = "jdbc:mysql://eall:3306/hospitaldb"; // declare a connection by using Connection interface Connection connection = null; // declare object of Statement interface that uses for executing sql statements. PreparedStatement pstatement = null; // Load JBBC driver "com.mysql.jdbc.Driver" Class.forName("com.mysql.jdbc.hospitaldb").newInstance();[/CODE] … | |
Hey all, I have 2 .aspx pages. I want to have a connection between these 2 pages through a button click event..From one of the ASP.Net books I came to know about this link buttons,whose main job is to connect 2 web pages..Well that worked fine.. Now my question is, … | |
[code=language] #include <iostream> using namespace std ;char (name)[20]; int helps; void (checkOutVillage) (void); int main(void){ { std==cout << "Please Enter Your Name!" << std==endl; cin >> name; std==cout << "You Are On A Great Quest" << name; << std==endl; std==cout << "There Is A Small Village In Trouble. Should We … | |
Hello everyone I have to create a class that has the following: [quote] Your Field class is the base class from which you will derive all other Field classes. Your Field class has the following public member functions, all of which are virtual: * void display() - does nothing here, … | |
I made a script and it keeps saying error C2144 and fatal error C1004 [CODE] #include <iostream> using namespace std ;char name[20]; int helps void checkOutVillage (void); int main(void); { std::cout <<"Please Enter Your Name!" <<std::end1; cin >> name; std::cout << "You Are On A Great Quest" << name std::end1; … | |
I have an application that i want to run a batch file from it all i get is the flashing CMD windows but is not running. at one time I get it to run but dont know what happen start modyfying other things and stop working. what i really want … | |
Overview I have a form that the user fills in. A event to my C# codebehind page fires on the save button click. The btnSave_Click method load up the 3 LINQ Entities with the correct values. I call the LINQ method "InsertProject" to insert the data into the SQL tables. … | |
i have trouble installing PHP load module by using apache version 2.0. i'm using windows. pls help before i go insane. | |
Hi ! I need a javascript code which sends variable to PHP. I have a drop down menu (<select>) in the select there are diffrent cities and i have an array of neighborhoods and when one city is selected, a part of that array shows up, e.g. from 13 to … | |
Hi I have a stored procedure that returns the unique ID for a particular Name/string passed in. On my windows form I have a ListBox control filled with a list of names (returned from another stored procedure) I want to be able to let the user click the list box … | |
Hi, I have three dropdownlist: country, state and city. Based on the selection of country the data of state will be filtered and similarly depending on the selection of state , the items of the city will be filtered. That is working fine. Now there is one gridview which contains … | |
help me make a code please... i need a code when you pick one of the menu then the menu you pick will show up... then when you press anything it will go back to menu again.... can someone show me the code please???.... Thanks...... | |
Dear all, I have a problem. I want to subtract two dates use JavaScript. First date source is from SQL database, I format it use ASP.Net code to "yyyy-MM-dd" without time and save it into TxtDate. The second date is from current date. I want subtract those two dates without … | |
Hello Guys, I have problem with Bindinging Event to menu. Every time I run this on IDLE (F5). I get always Attribute error that self have no attribute OnPrint. What's wrong with the Code???? [CODE] # SMD Inc since 2003.py import wx ID_ABOUT = 100 ID_PRINT = 101 ID_EXIT =102 … | |
oh no! i double posted the thread! how do i delete one? sorry | |
In my installer project i added few project outputs. When compiling the code, i am getting the warnings as Warning 11 Two or more objects have the same target location ('[targetdir]\2.4.7.0814\bccrypto-net-1.0.dll') To remove the warning, rightclick the dll and select the properties windows. In that set Exclude property value to … | |
I have a Folder in that i have sub folders like excel_files, excel_files_backup , images etc and files like excel2.php , get_mail.php etc . In excel_files folder having excel files and excel_files_backup is an empty folder . iam uploading excel files in excel_files folder to database after inserting iam unlinking … | |
Hi, I am learning about how to write OOP PHP code but I keep coming across lines such as [code=php] $this -> $sender = $sender [/code] I'd really appreciate it if anyone here could clue me in on this as I can't get any info on the web about it. … | |
Hi i am trying to write a program in vb.net that will display text sequentially one word at a time in the centre of the screen. I have managed to split file into words but i am just stuck here lacking knowledge how to program the rest. I would appreciate … | |
Ok so I am going to be switching to an ubuntu linux machine soon to do all of my coding and I was wondering if anyone has a reference to the function calls you can use with it because I am used to windows programming so now in my code … | |
[code] <id column="PERSONID" name="personId"> <generator class="increment"/> </id> [/code] What is this animal? is it setting a primary key? like wise [code] <set cascade="all-delete-orphan" inverse="true" lazy="true" name="trips" table="TRIP"> <key column="PERSONID"/> <one-to-many class="travel.Trip"/> </set> [/code] is this setting up like a file or list or something that uses like attributes? taking the … | |
Hi I was wondering how to create a window to run my programs in. It talks about it in many posts but I couldn't find anything on how to actually make one. I have no idea where to start so you will need to tell me pretty much everything (e.g. … | |
Hi ppl, im back here, but now with an array problem.. this time im doin a simple program to compare the numbers in an array n then say how are they ordered.. user must type those numbers.. [code=plusplus] #include "stdafx.h" #include <iostream> using namespace std; void comparison (int number[]); void … | |
private void buildPersonOptions(){ List<Person> personList= null; } I put this code in and it asked to import the class Person. as far as I know there is a null list(personList) of the type List. so why is the List have this thing? <Person> is what? -Steve | |
Hi, I have created a web page with javascript, its successfully working in firefox but not in internet explorer version 6 and 7. I am not good in scripting and I have done this page with the help of my friend. I have uploaded the zip file. It contain two … | |
Hi, Well to start od i decided to learn how to create jsp pages and finally finish my project. So i used the netbeans tutorial for making jsp pages. The sample worked fine, but when i wanted ti retrieve information from my own database it do not work like it … | |
OK, first of all, thank you for coming trying to help. anyways, i need help on making a program that counts how many words you have typed. REstriction: Must use Strings... Please help me, thx in advance.;) | |
Hi, I wanted to know if there is a way to read multiple csv files from a folder, process them one by one and write the output to corresponding output files. Also it is necessary that the if the name of the input file is foobar.csv then the name of … | |
Hey all, I know this is probably easy but I'm going cross eyed looking at my code. When I used [code] List<string> SOID; //SOID is the database name for the filepath List<string> filesInDatabase = GetDatabaseFileName(out SOIDs); List<string> filesOnServer = GetServerFileNames(); foreach ( string fileName in filesOnServer ){ string fileWpath = … | |
Hello guys, I'm new to python I want to use wxPython for Gui programming The main problem to me is how to start wxpython have good looking but then no documentation regards steve | |
hi! i'm doing a university project in asm using the assembler found in tanenbaum's book "[i]structured computer organization[/i]"([URL="ftp://ftp.cs.vu.nl/pub/evert/"]ftp here[/URL]), which produces code to be run on a [B]8088[/B] emulator (s88) so, what i wanted to ask is: say i want to call a subroutine that needs some variables. the most … | |
[code] Query q =session.createQuery("from Person"); [/code] ? so there is a Query q named "from Person") I don't understand how the actual query reads(via SQL). Can someone explain this code: because clearly there is a personList and a personOptions of the type Option[] the size of personList.size() and the 4 … | |
haii.. [B]do anyone know any garbage collection command for java.... did we have to did that command for all object or will be done collectively?? [/B] thank u..... | |
Hi, I'm new in Visual Basic. Here's a few questions: 1. What is the difference between VB and VB.net 2. Any good ebook you guys recommend for VB and VB.net?? (I've learned Perl, C++ and Java) 3. If I want to learn VB.net do i need to learn ASP.net first? … | |
vector<string> div; div.pushback("a"); div.pushback("b"); div.pushback("c"); for(int i= 0; i < div.size(); i++) { cout << "Letters: " << div[i] << endl; } cin.get(); Output: Letters: a Letters: a, b Letters: a, b, c I would like the output like this: Letters: a Letters: b Letters: c Thanks for your help … ![]() | |
Hi all I am currently sitting with a problem where I have created dynami controls in a seperate "htmlDesigner" calls I have created. Once I return the html to the calling page, I insert the Dynamically created HTML controls within the Page_Init section, which sets the controls onto the controlling … | |
Hi I am trying to remove a session attribute from my app, currently i use the jstl tag remove to remove the attribute, this works in firefox when the browser is refreshed, but not in IE, so i then decided to use the session.removeAttribute method in a servlet that gets … | |
hi frds, I have created a user control with the Imagebox control, label and a checkedlistbox control. then I want to access checkedlistbox control from my application form. But unable to find any properties or event who manage directly to checkedlistbox control. Plz provide way how to access that control … | |
Hello there! I'm currently doing some VC++ programming. I'm using MFC programming and DLL which is explicitly linked. I have placed my initialization and the usage of GetProcAdress inside my "buttonClicked" function. When a button is clicked, the function in the DLL should be called. [CODE] void CSample::buttonClicked(){ if(hLib){ pSampleFunc … | |
Hello guys! How are you doing all I again need help:?: Can anyone help me to get SPE IDE run as executable using py2exe? I have tried using code below what I get is exe file but when I run it I get message .....needs higher version of wxpython... error, … | |
Hello dears, I have problem with setting up a PHP bible ( [url]http://phpbible.org/[/url] ) to use in my page. Any help please! I really appreciate single jot to this problem, Steve | |
Hi everyone, I am facing a problem in my project .I am sure you'll will find a way out.I am working on a project leave management .now i am really confused as to how to go ahead.I am working with jsp and ms-access .Here the scenario is i have two … | |
Hello there. I'm a bit new to creating DLL's. I've been learning a bit and I have created my own (finally). Well, my goal is to load my DLL to an application in VC++ and VB. I have successfully loaded my DLL in VB but having some trouble in VC++. … |
The End.