64,152 Solved Topics
Remove Filter ![]() | |
I recently started learning java and am trying to make a simple GUI program that takes in a location of an image and then displays the it. What would be the best way to do this?? | |
I am using cubecart as the shopping cart for my website, I want to change the Order confirmation message from "Thank you, your order was successful and payment has been made! Your goods will be dispached as soon as possible. Please visit again soon." to the following message: [code] Thank … | |
Is it possible to use custom type converter to convert types like that: [CODE=CSharp] class MyTypeConverter: TypeConverter { //... all the 'converting' methods here } [TypeConverter(typeof(MyTypeConverter))] class Type1 {} class Type2 {} Type2 object2; //and here, is this possible? (and how to make it happen) Type1 object1 = object2; //or … | |
Here is the code I have to compare two arrays, one that is already set and one that a user inputs data into, the problem I get is that when I try to run it I get the following error: Error 2 error C2664: 'arrayComp' : cannot convert parameter 2 … | |
hey there this problem stuck me out how to display url like this [CODE]http://www19.domain.com/548ecedd7f87970e986dc19077ef2edd.rar[/CODE] [CODE]preg_match_all('#^(?:http://)www[0-99]([^/]+)#i',$url,$parts); foreach ($parts[1] as $test) { echo 'hehehe '. $test; }[/CODE] and the result is: [CODE] hehehe 9.domain.com[/CODE] it just stuck me out i'm already search the answer at least 5 hours :( i do not … | |
Hi Guys!Good day! Ive notice just this day that the user of the program Ive made can double execute the program. I want the program to behave that when the process(task manager) of the program is already running, and when the user run the program again, the msgbox will show … | |
void x_bzero(s, n) void *s; unsigned int n; { long long *ptr = (long long *) s; unsigned int d; n /= sizeof(long long); d %= sizeof(long long); while (n--) *ptr++ = 0; } Dear programmers, hi I have a question about the function above. I'm calling that function from … | |
Hi, I have managed to get a nested query to work partly, but i need to somehow add another nest, which i cannot get to work. To explain more, i wanted to firstly find records that did not exist in another table, to which i used the following [CODE] SELECT … | |
Play it for three times and we can get the final result. My answer: var number, guess: integer; begin randomize; number:= random(3)+1; writeln('Wellcome to the game of snap.'); readlnln (guess); if guess>number then begin writeln('It''s too big! Please try again.'); end else if guess<number then begin writeln('It''s too small! Please … | |
I am attempting to figure out how to use a datagrid with checkboxes. I found some information for using an item template and the FindControl method. I am using Dreamweaver to program so I'm sure I'm not getting all the bells and whistles that VB.NET has to offer. I'm stumped … | |
here's the link to the script: [URL="http://www.dynamicdrive.com/dynamicindex17/ajaxpaginate/index.htm"]http://www.dynamicdrive.com/dynamicindex17/ajaxpaginate/index.htm[/URL] I got the script working, but I can't manage to move the numbers from the top...to the bottom. I tried nearly every combination I can think of. Here's a screenshot of where the numbers are placed currently: [IMG]http://www.justinmarcusdesign.com/image.jpg[/IMG] [B][COLOR="Red"]Here's the HTML:[/COLOR][/B] [ICODE] <!DOCTYPE … | |
My question is: to create an array of 6 lotto numbers. The numbers should be between 1 and 40 and you are not allowed to put into the array any number that is already in it. Hint: You are using an array of 6 numbers so that’s a loop generate … | |
Hello Gyes! I am very new in Using emu8086 and i need a code about this Program Problem: I have to convert a Hexa input to a Binary Output using emu8086. 1. Hexa number will be placed in AL 2.And output Binary will come in AX+ DX, Memory address will … | |
I was doing a bit of reading, and according to what I read, GUIs can be set up and realized in any thread, but doing more GUI work in a normal thread (non-EDT) after a call to setVisible can be dangerous. The explanation given is as follows: [QUOTE]The example constructs … | |
Hey All, I'm having this weird issue and I'm not sure what to do. In the main function when I put one letter it'll work, once I put a string of letters it doesn't work. I've tried an assortment of stuff and I dunno what to do anymore. This is … | |
I haven't programmed in some time and need some help here plz. First of all how are individual characters of a string are accessed? second do they start at 0 or 1? I'm probably confusing this with arrays please help me out :). This program will read in a line … | |
hi!! I need a help with part of my assignment. My professor asks to write a program that uses switch, and while loop statements.. this is the Exercise [COLOR="Green"] Write a program that uses switch, and while loop statements to present the following menu and perform the operations. Our program … | |
this code was working fine until i changed the way the site loads the content (it now loads the content into a div tag) and since then it will not populate the menu. the page can be viewed at [URL="http://acmeart.co.uk/pip_new"]this site[/URL] you will need to go to the sub links … | |
I need to write a skeletn program for the assignment. It should have a menu system with at least 5 options. The menu keeps repeating after each procedure is called. When one of the procedures is called just return a message to the screen saying what this procedure will do: … | |
i have these two pages of information which are stored on a php page which then feeds the main div tag on the index page. the problem i have here is that a scrollbar shows up on the first page but not the second. so to see the rest of … | |
I have a doubt regarding forwarding declaration. in .h file:[code] class B; class A{ void func(B* tap); } [/code] in .cpp file[code] void A::func(B* tap){ tmpo=tap->par1; } [/code] does the above code snipet correct if not whats the problem. Please be descriptive. | |
hi i have a date in which i want to add the the days .and find the date. | |
Hello guys, I am having a small problem, I want to play a small songs (preferably .wav)when a user clicks on a button. Can someone just guide me please, is there a built in function. I've tried the [code]music.play();[/code] but its not working. Thanks in advance for you answers. | |
Hi, there !... I just found some reference here ([url]http://www.daniweb.com/forums/thread160974.html[/url]) how to used malloc on multidimentional array. I tried it to apply on my case using Microsoft Visual C++. Basically my code is to read an array of numbers in txt file. The rows and cols of array dimension are … | |
Hello, I just started C++ and I have this assignment to write. I started writing it but I can't seem to get this one thing and that is [U]how to create a new contact and store it in a file. [/U] I need to know if I used the structure … | |
[CODE] $expiredate='2009/03/31'; $cdate='2009/03/03'; $dateDiff = $expiredate - $cdate; $fullDays = floor($dateDiff/(60*60*24)); [/CODE] the above method i am using to find the difference between two date.but it is not working.can any one tell me how to find the difference using php. | |
I am working on a fairly large project for my chemistry teacher (NOT homework!). I thought that it would be nice if the program could search a file for a user entered string and display all lines that had that string. I have gotten it as far as I can … | |
I have an assignment to use templates for a linked sorted list. The SortedType.h file is in our book and that is what we have to change. I understand how to do all of that and it compiles and everything. When I create a driver to test it, I just … | |
Hello, I'm pretty new to PHP and MySQL. I was wondering what the most efficient way to access a large database would be. All the tutorials I've seen show something along the lines of: [icode]$database = mysql_query("SELECT * FROM table");[/icode] But it seems to me that if 'table' was a … | |
i'm writing a program that takes a string and list of files and prints all the lines that contain the string. i'm having problems with my findString method. i did some debugging and it turns out when i call strcmp on strings that are the same it returns -1 or … | |
In VB 2005, I want to be able to make a window and then have a program i already created RUN in the window INSIDE VB 2005.. So for example: I want to be able to make a Window inside VB 2005 and be able to run MS Word.. Is … | |
Hey guys, Can anyone tell me why this doesn't work in VS2008? I've commented out the #includes and whatnot so you can paste it into a single .cpp file and run it. Here are my errors: [quote]1>test.obj : error LNK2028: unresolved token (0A000320) "int __cdecl eval(class Tree<struct InfoNode> &)" (?eval@@$$FYAHAAV?$Tree@UInfoNode@@@@@Z) … | |
hi, does anyone have or know were i can get some coding for a fractual curve any curve that is or may be a Dragon Curve. thanks | |
Hi pythonians I am trying to sort a Numpy array by field, but I am having trouble setting up the fields. I think I may have the dtype wrong. I keep getting a TypeError: "expected a readable buffer object". Here is a sample of the infile: 1480 CL 9 2004 … | |
Hello everyone, I have a program that i am working on using more than one Form. The way i am going through forms is by minimizing my first form then showing the other forms. I was wondering if i start the program from a module maybe i can unload forms … | |
[code=c++] #include <wx/wx.h> class Hello : public wxApp { public: virtual bool OnInit(); }; IMPLEMENT_APP(Hello) bool Hello::OnInit() { wxFrame *frame = new wxFrame(NULL, -1, _T("Hello"), wxPoint(60, 70), wxSize(500, 600)); frame -> show(true); SetTopWindow(frame); return true; } [/code] C:\Documents and Settings\Levi\Desktop\C+++\Makefile.win [Build Error] exe: *** [Output/MingW/Project1.exe] Error 1 Why do i … | |
Hello everyone. I have a small problem. I have a Streamwriter writing things to a file. But when i write more than one thing, the previous item gets overwritten. I.E. Write 1111, Write 2222. 1111 gets replaced by 2222. Here is some of my code: [CODE] Dim fileOut As New … | |
Hi, The examples in w3 page don't work. I do copy and paste and create exactly same database but nothing changes. It returns "Error on Page" error. [url]http://www.w3schools.com/php/php_ajax_database.asp[/url] [url]http://www.w3schools.com/php/php_ajax_responsexml.asp[/url] [url]http://www.w3schools.com/php/php_ajax_livesearch.asp[/url] | |
This is the code i am using for displaying data into the DataGrid,bt its not working,plz help Set DataGrid1.DataSource = rs If rs.EOF And rs.BOF Then MsgBox "Invalid Entry", vbOKOnly, "Stop!!" Exit Sub End If Do DataGrid1.Columns(0).Caption = rs!PS_NO DataGrid1.Columns(1).Caption = rs!Name DataGrid1.Columns(2).Caption = rs!DT_PREP DataGrid1.Columns(3).Caption = rs!ADV DataGrid1.Columns(4).Caption = … | |
ok so im creating a program minmax to find the minimum and maximum numbers of an array. heres my code but i get segmentation fault where do you think im going wrong? [code=C] #include <stdio.h> #include <stdlib.h> void minmax( int numberlist[], int n, int *p_min, int *p_max ); int main( … | |
Hi! im trying to create an object in python, but when i try to call the length of that object, it says "Mp3tag instance has no attribute '__len__'" i know i can define a method on the "object"(i dont know if im creating the object in the right way) called … | |
Hello, I am to write a program that is capable of taking an array of doubles from the user, then calculating each numbers square, cube etc. and then displaying it to the screen. The program itself is fine, but one aspect of the program is that if a user enters … | |
Hi Guys It´s my first time here and Of course I have a problem. I have a gridView with a Hyperlink and I´d like to open a Modal Pop Up when I to click in this link. How can i do it? is it possible? Thanks a lot everyone regards | |
Hi Friends, I M Working In Vb.net, I Want that, to which form i m opening that must be top,while i don't close that,i could'nt open any other form,for this i m doing [B]topmost=true[/B](Property of form) ,& It 's working also but that is not showing the messages which i … | |
After user choose ticket type(first class, business, or economy) and desired seat, for example row 2 A, the program will output the form: A B C D E F row 1 * * * * * * row 2 X * * * * * // now user chooses row … | |
I've looked around and it turns out there isn't a C++ version of the java instanceof operator. I've also found out that using instanceof is supposed to be bad, for some reason. So let me tell you why I want to use this instanceof operator so badly. I've got a … | |
Is it possible to use Process.Start to open a file with a program other that the default program? For instance, like [code]Process.Start("C:\file.txt");[/code], but opening it in word instead of notepad | |
I'm having trouble coming up with a solution to this problem. Say you have two byte arrays with numbers stored in them backwards. For example, say you have the numbers num1 = 843234 and num2 = 5430222124 stored in two byte arrays as follows [code=java]byte[] num1 = {4, 3, 2, … | |
Hello, In dreamweaver, i'm trying to do something on [URL="http://www.central-forums.net"]my website[/URL]. Now whenever someone clicks on a link like forums, i want to be [url]www.forums.central-forums.net[/url], but at the moment, that won't work.... how do i do it... This is my current script: [code] <li><strong><a href="www.central-forums.net">Homepage</a></strong></li> <li><strong><a href="forums">Forum</a></strong></li> <li><strong><a href="about">About</a> </strong></li> … | |
hi im new to vb and i have just run into a mind boggleing prob i think i have tried just about everything to get this working but it just wont work my question is when calling a function in my case Charge(nights) i get a litte := after nights … |
The End.