581 Posted Topics

Member Avatar for hwoarang69

Check out what the actual error.. Print out `mysql_error()`. And secondly, in the mysql_query(); You seem to be missing the "$" for **user_id_db** & **image_des**.

Member Avatar for pritaeas
0
129
Member Avatar for weblover

Convert your float values into a String using the `str()` function and then try to write it. This is because the write() only takes string arguments.

Member Avatar for Sky Diploma
0
352
Member Avatar for shankhs

Hello, Sorry to disturb, But i am not able to understand the process in which the string will be reversed i mean. sky reversed : yks But how do we obtain that with the upper code. Could anyone explain me why cout<< str[n-1] is used and what n is?

Member Avatar for venugopal.somu
0
504
Member Avatar for TIM_M_91

Print the stacktrace of the Exception. That might help you out on why it is unable to go ahead with the delete or drop statements. Secondly I believe that that 2,3 in your list of possibilities cause Syntax Errors [code]String writeString3 ="DELETE FROM"+t+"where NAME="+t ; [/code] [code] String writeString3 ="DELETE …

Member Avatar for TIM_M_91
0
140
Member Avatar for mitrious

In the second constructor, you seem to be initializing 'parentNode' to point to the parent of the Node* p ie: p->parentNode, however in the first constuctor, you directly set the parentNode(p). I am unsure about the whole architecture of the implementation, But I was wondering if the following would do …

Member Avatar for mitrious
0
213
Member Avatar for mohamed moamen

Your Graphics variable is set to null. Therefore a null object is passed to the paintComponents(); [code] Graphics g=null; [/code] I guess you need to create a new Graphics object like below. [code] Graphics g= new Graphics(); [/code]

Member Avatar for mohamed moamen
0
1K
Member Avatar for naz1234

Hi, I am unable to actually understand the desired output that you wish to receive from the above program. I would just like to point it out to you that your [icode]while[/icode] loop doesn't enclose the switch statement as well. Thereby your code would just take input and print nothing …

Member Avatar for naz1234
0
154
Member Avatar for guccimane

Hi, >> So then I comment out the "delete" in these 2 methods, and all of a sudden the code works just fine Firstly I would like to point out that your code is not complete right now. I think it would work for this test-case in main(). However try …

Member Avatar for subith86
0
1K
Member Avatar for unk45

Well If You dont have an exact limitation to a particular dataset i prefer that you use a vector for storing all the numbers, And May be a vector array of vectors. And filling i guess you can do it by taking them from a filestream or you can fill …

Member Avatar for Rabia_Akhlaq
0
303
Member Avatar for mrrko
Member Avatar for davesmith437

[code] $raceid = $_POST['raceid']; [/code] For multiple selects, this might actually return an array. so you could do something like this . I think... [code] <? if (isset($_POST['submit']));{ $raceid = $_POST['raceid']; $steerer = $_POST['helm']; $swimmer = $_POST['crew']; $boatywoaty = $_POST['boat']; $knowtheboat = $_POST['sailnumber']; $todaysteam = $_POST['racecrewid']; foreach($r_id in $raceid) { …

Member Avatar for davesmith437
0
239
Member Avatar for johnnyboyslim

I dont seem to understand what exactly do you need help with. As far as I know. If you managed to write out all the above code. Changing it into the movie thingy wouldn't be much of a problem.

Member Avatar for metronomu
0
477
Member Avatar for Stefano Mtangoo

If pause and resume is the case. I think I have an explanation for it. The first time the download manager makes the HTTP request to the server. The server then formulates another HTTP response with the total size of the file and some data. Once you pause it, maybe …

Member Avatar for Stefano Mtangoo
0
239
Member Avatar for gunjannigam

Running a seperate thread doesn't gaurentee that the images would be loaded by the time [icode] repaint(); [/icode] is called. My speculation is that the JRE is putting on some kind of locking mechanism to the ArrayList until the [icode] il (ImageLoader) [/icode] thread completes its job. thereby paint() of …

Member Avatar for mKorbel
0
862
Member Avatar for Jared1337

I see that you pretty much nailed the first 1 :). Now lets look at the next one. Doesn't it seem to be the exact reverse of the first 1 ? So if its the reverse, the starting values and the conditions in the loop also would be reversed right? …

Member Avatar for Jared1337
0
148
Member Avatar for nathanbe

Welcome to Daniweb. Firstly, this post was 3 years old. You should have created your own Thread when posting your question. [quote]I had added mysql-connector-java-5.1.17.zip by right clicking the libraries of my project [/quote] I think you need to add the .jar file , not the .zip

Member Avatar for peter_budo
0
108
Member Avatar for robdb

[code] int index_k[key.length()]; [/code] You cant statically allocate a dynamic array.

Member Avatar for robdb
0
378
Member Avatar for Harley_Quinn

Firstly, I do not understand what exactly are you wanting to do with [code] if (howMany > Vec[j]) success = false; [/code] You should try to focus on what exactly needs to happen, and how the code would get you there. Secondly, Check out line 23 in your first post. …

Member Avatar for Fbody
0
192
Member Avatar for Kyren5058

Hey Kyren Your problem statement is quite simple. Just look at it in this way. 1, You need to count from 1 to a number 'n' and then count back from 'n' to one. This can be simply by 2 loops. 2, For a given number 'i', You need to …

Member Avatar for cherrymae.calma
0
282
Member Avatar for Jiggle

The Base Class pointer allows you to do many different things that can surely be used in different ways. 1) As Admiral Pimms suggested, you could change the state of the objects by keeping the whole function same. 2) You could have a [icode] std::vector<Base_Class*> [/icode] and then store Derieved …

Member Avatar for Sky Diploma
0
131
Member Avatar for Leppie

[B]>>My variable, int hours, is a global variable but is not used by main, however when I move this variable into my function, void dayNight (),(making it a local variable here) my function then fails to increment? Could someone please explain why this is? [/B] This is a question about …

Member Avatar for Sky Diploma
0
158
Member Avatar for bunteezone

Next time please use code tags [code=C++] #include <iostream> #include <fstream> using namespace std; main () { int filename; cout << "Enter file name"; cin >> filename; ofstream myfile; myfile.open ("filename.txt"); myfile << "Writing this to a file.\n"; myfile << "000" << filename; myfile.close(); return 0; } [/code] There are …

Member Avatar for santanu@code
0
30K
Member Avatar for nora-s

Your solution does have a logical error. Here's what you can think of as an algorithm. 1. set pointer to start of array. 2. use strstr( ) to find the first instance of the word. 3. When the word is found, increment the counter and then the pointer should be …

Member Avatar for NathanOliver
0
232
Member Avatar for Sky Diploma

Hey all, I have a program(using wxWidgets & MySql++ on MINGW) that has to have some Bluetooth Interaction with an Android App. The problem is that I am having trouble finding a framework(API) that would help me send,recieve data over Bluetooth with other applications. I searched and searched all over …

Member Avatar for mike_2000_17
0
1K
Member Avatar for lexusdominus

1) If you want the program to work from anywhere on the system. And the file is surely found at the same path. you should prefer writing down the whole path. 2) If the file is in a subdirectory of your program directory. Consider progdir->subdir->abc.txt And you want to copy …

Member Avatar for WaltP
0
147
Member Avatar for Smartflight

Maybe you can use a static member variable and increment it by 1, everytime an object is created. (ie: Everytime the constructor is called ;) )

Member Avatar for mike_2000_17
0
118
Member Avatar for Sonia11

Your code is currently [code] template<class elemType>void revElement<elemType>::display() { elemType std::vector<elemType>::iterator i = intList.begin(); for(;i!=i.end();++i) cout<<*i<<endl; cout<<endl; } [/code] THE variable i, is an iterator of the vector. therefore your compiler says that i(iterator) doesn't have any member function named end() therefore the [icode] i.end() [/icode] should be something else.

Member Avatar for mrnutty
0
310
Member Avatar for SQLpower

Hi, Welcome to DANIWEB It would be better if you would tell us which parts are confusing you. Then MAYBE you will get faster replies

Member Avatar for Sky Diploma
0
206
Member Avatar for programing
Member Avatar for sheennave

Hello, Firstly a post is the correct option in which you should be asking for help. Code Snippets are rather ways to show your already working* code. Second of all, I would assume that the Jtable is being repeatedly added to the JPanel which are rather being accumilated on the …

Member Avatar for sheennave
0
2K
Member Avatar for Feriscool

If you have never used return in your code before, Here's a tip; Go through the code that you have written. Then imagine the steps being executed in your mind 1 by 1.. Slowly you will come down to a point where the USER made SOO many wrong predictions that …

Member Avatar for NormR1
0
498
Member Avatar for gcardonav
Member Avatar for Sky Diploma
0
268
Member Avatar for VernonDozier

the function [icode] seekg() [/icode] is to move the get-pointer from position to position, On the other hand [icode] seekp() [/icode] moves the put-pointer. I assume that the put-pointer is used for writing into a stream where as the get-pointer is rather to just read through. [URL="http://www.cplusplus.com/reference/iostream/ostream/seekp/"]Seekp[/URL] This would clear …

Member Avatar for Sky Diploma
1
233
Member Avatar for sanjay11

Considering the pitches in India,Bangla,Lanka are all kinda non-Bouncy. we can sure assure that 'spin' is the way to go. I WOULD like to give majority of the chance to the HOME-TEAM (India) and I would completely agree that South-Africa and Austrailia would pose major competitors for the cup this …

Member Avatar for jingda
0
1K
Member Avatar for winecoding

Post in your code on what you're attempts were in solving the problem. There are lots and lots of IF's and BUT's when we take this question into consideration. Firstly I would like to ask you if the arrays being passed are of Constant Size, if so, the solution might …

Member Avatar for Arbus
0
684
Member Avatar for margeaux54

[url]http://www.daniweb.com/software-development/cpp/threads/70096[/url] The topmost thread of The C++ Forum (sticky thread). It contains several users contributing suggestions the books that they think is good for starting their advent into C++ You could pick some of them up I assume.

Member Avatar for jackmaverick1
0
96
Member Avatar for kirenemook12

I haven't done much of Win32 Programming. But am a bit familiar with it. I assume that the [b]text[/b] member-variable in the TextBox element stores the text. [code] System::Sting val=text_box->text; [/code] Now val holds the value of the textbox, but not in the std::string but instead, System::String. Now to convert …

Member Avatar for kirenemook12
0
815
Member Avatar for thekitoper

This might not work. set_default_size() mainly sets the size which can be ignored if the windows size request is larger than the dimensions, assuming that the size is larger than that of window size that you have assigned with set_default_size(); just wont work. I may be wrong as I have …

Member Avatar for Sky Diploma
0
177
Member Avatar for subith86

In FriendClass.h, dont include MyClass.h. Instead specify that an object of MyClass exists [code] class MyClass; [/code] The compiler gives you errors because it is unsure whether FriendClass has the Function in it. Now as your main file is including both headers in the right order. It must work

Member Avatar for jonsca
0
2K
Member Avatar for Yuri_0129
Member Avatar for ekailan

>>Get Out of Memory? I didn't understand what that actually means. If you are trying to read a Wide Character formatted file. You might want to consider the wstring and wifstream classes in the Standard C++ Library.

Member Avatar for Sky Diploma
0
165
Member Avatar for Sky Diploma

Hey Guys, I am developing an APP using WxWidgets and some other cross platform frameworks. Then there is a new need into the project to use Bluetooth as a transmitter of Data between 2 devices. I have been using the Mingw compiler all along for developing my app and suddenly …

Member Avatar for jonsca
0
766
Member Avatar for VasquezPL

'Value' is of type [COLOR="Red"]System::DateTime[/COLOR]the IsDaylightSavingTime() is available in the TimeZone Class. Hence you recieve an error.

Member Avatar for VasquezPL
0
378
Member Avatar for Abdel_eid
Member Avatar for mKorbel
0
71
Member Avatar for virendra_sharma

This firstly seems like JAVA code to me. However there are several optimizations that you can do in order to decrease the number of iterations that are taking place. One of them would be to decrease [code] i < num [/code] to [code] i < num/2 [/code] There are other …

Member Avatar for Adak
-1
136
Member Avatar for van21

[QUOTE=van21;1480919]Please, help me with my assignment. Please, anyone with a big kind heart : write a c++ program to give the 30 students final grade in a course with the ff. grading scheme: there are five quizzes worth 20 pts. each, a laboratory worth 100 pts., and exam worth 100 …

Member Avatar for van21
0
96
Member Avatar for KazenoZ

[QUOTE=gerard4143;1478298]Can you do it? Yes, its just a matter of building a string or strings containing the the compiler name and proper switches plus the files in question and then calling system(created_string).[/QUOTE] Following on the grounds of gerard. If u already have a batch file that does all the work …

Member Avatar for KazenoZ
0
147
Member Avatar for Craftknight
Member Avatar for jshoot

Well if you intend to use wxWidgets . [URL="http://docs.wxwidgets.org/stable/wx_wxfiledialog.html#wxfiledialog"]wxFileDialog[/URL] will help you get the path for the file you intend to open up. A simple text box can be used in order to hold the number , or there are other implementations such as [URL="http://docs.wxwidgets.org/stable/wx_wxspinctrl.html"]wxSpinCtrl[/URL] can be used. Then a …

Member Avatar for Stefano Mtangoo
0
451
Member Avatar for iammirko

Makefiles are ways to effectively reduce the user burden by just executing one script which will perform the compilation for you. In order to run a makefile you will need to do the following 1) Make Sure that your MinGw compiler directory is in the windows global Environment variables. If …

Member Avatar for iammirko
0
218

The End.