64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Hockeyfreak889

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??

Member Avatar for Hockeyfreak889
0
100
Member Avatar for arvindikchari

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 …

Member Avatar for arvindikchari
0
136
Member Avatar for edek

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 …

Member Avatar for edek
0
187
Member Avatar for JainishP

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 …

Member Avatar for JainishP
0
133
Member Avatar for murray_ramadhan

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 …

Member Avatar for murray_ramadhan
0
62
Member Avatar for PinoyDev

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 …

Member Avatar for PinoyDev
0
116
Member Avatar for markfisher

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 …

Member Avatar for markfisher
0
119
Member Avatar for pezza

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 …

Member Avatar for pezza
0
111
Member Avatar for turbomen

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 …

Member Avatar for FlamingClaw
0
291
Member Avatar for WinginSue

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 …

Member Avatar for CornerAnalyst
0
107
Member Avatar for justinmyoung

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 …

Member Avatar for justinmyoung
0
193
Member Avatar for turbomen

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 …

Member Avatar for IVR_Developer
0
277
Member Avatar for mahafuz_eee

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 …

Member Avatar for mahafuz_eee
0
96
Member Avatar for BestJewSinceJC

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 …

Member Avatar for BestJewSinceJC
0
103
Member Avatar for Drifter666

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 …

Member Avatar for Drifter666
0
3K
Member Avatar for jimbob90

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 …

Member Avatar for jimbob90
0
124
Member Avatar for MoOou

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 …

Member Avatar for MoOou
0
243
Member Avatar for kevin wood

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 …

Member Avatar for kevin wood
0
134
Member Avatar for turbomen

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: …

Member Avatar for FlamingClaw
0
160
Member Avatar for kevin wood

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 …

Member Avatar for nav33n
0
149
Member Avatar for majesticmanish

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.

Member Avatar for majesticmanish
0
115
Member Avatar for queenc

hi i have a date in which i want to add the the days .and find the date.

Member Avatar for queenc
0
124
Member Avatar for neutralfox

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.

Member Avatar for neutralfox
0
141
Member Avatar for headacheinC

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 …

Member Avatar for headacheinC
0
98
Member Avatar for pscha3

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 …

Member Avatar for adam1122
0
393
Member Avatar for queenc

[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.

Member Avatar for queenc
0
77
Member Avatar for waldchr

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 …

Member Avatar for waldchr
0
79
Member Avatar for sfrider0

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 …

Member Avatar for sfrider0
0
482
Member Avatar for dmanw100

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 …

Member Avatar for theighost
0
128
Member Avatar for jmeson79

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 …

Member Avatar for IVR_Developer
0
100
Member Avatar for Pacman21

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 …

Member Avatar for Pacman21
0
109
Member Avatar for Duki

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) …

Member Avatar for Duki
0
411
Member Avatar for srk619

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

Member Avatar for srk619
0
98
Member Avatar for drew7py

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 …

Member Avatar for drew7py
0
2K
Member Avatar for jhonnyboy

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 …

Member Avatar for jhonnyboy
0
164
Member Avatar for clutchkiller

[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 …

Member Avatar for clutchkiller
0
86
Member Avatar for jhonnyboy

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 …

Member Avatar for jhonnyboy
0
118
Member Avatar for veledrom

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]

Member Avatar for nav33n
0
166
Member Avatar for dev_kc

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 = …

Member Avatar for KSS
0
108
Member Avatar for Dewey1040

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( …

Member Avatar for Dewey1040
0
201
Member Avatar for SDS20

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 …

Member Avatar for SDS20
0
129
Member Avatar for AirmanTheGreat

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 …

Member Avatar for AirmanTheGreat
0
82
Member Avatar for SID.SIL

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

Member Avatar for SID.SIL
0
931
Member Avatar for manoj_582033

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 …

0
108
Member Avatar for YingKang

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 …

Member Avatar for YingKang
0
3K
Member Avatar for AnGuRuSO

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 …

Member Avatar for AnGuRuSO
0
885
Member Avatar for scrypt3r

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

Member Avatar for scrypt3r
0
85
Member Avatar for leverin4

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, …

Member Avatar for JamesCherrill
0
167
Member Avatar for cohen

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> …

Member Avatar for cohen
0
314
Member Avatar for chriswellings

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 …

Member Avatar for chriswellings
0
96

The End.