Gaming, IT, Multimedia & Music Please use this forum to discuss Gaming, IT, Multimedia & Music. |
|
|
25th November 2007, 03:17
|
#21
|
Saxperience Post Whore
Join Date: Dec 2005
Location: MaDchester
Posts: 8,432
Car(s): Vts
|
Quote:
Originally Posted by Ben_Saxo
I had to use this in computing at college. Got bored so spent the whole year making awesome pointless crap and sending it around. Like a thingy that opens and closes the disk try every three seconds you cant turn off. Good times
|
haha i did the exact same thing, and i found code that hidden it from CTL ALT DEL too
|
|
|
25th November 2007, 09:25
|
#22
|
Central South
Join Date: Jun 2006
Location: East Sussex
Posts: 3,105
Car(s): VTS :)
|
Quote:
Originally Posted by b0t13
haha i did the exact same thing, and i found code that hidden it from CTL ALT DEL too
|
I remember those days "RegisterServiceProcess"
__________________
Can I be your car fwrend??
|
|
|
25th November 2007, 12:24
|
#23
|
L-plater
Join Date: Sep 2007
Posts: 87
|
i failed my programming unit due to a hatred for VB.. ..and the dumass tutor..
|
|
|
25th November 2007, 14:21
|
#24
|
Saxperience Post Whore
Join Date: Dec 2005
Location: MaDchester
Posts: 8,432
Car(s): Vts
|
l337 uber programming skills FTW!
|
|
|
25th November 2007, 14:41
|
#25
|
Regular Poster
Join Date: Nov 2005
Location: Birmingham United Kingdom (England)
Posts: 336
Car(s): Civic TypeR
|
Quote:
Originally Posted by Paul_CGM
Done a quick 5 minute job here, dont know if it will help.
Dim labelnumber As Currency
Dim textonenumber As Currency
Dim texttwonumber As Currency
Dim answer As Currency
Private Sub Text1_Change()
Let textonenumber = Text1.Text
Let texttwonumber = Text2.Text
Let labelnumber = Label1
Let answer = labelnumber - (textonenumber + texttwonumber)
Let Text3.Text = answer
End Sub
Private Sub Text2_Change()
Let textonenumber = Text1.Text
Let texttwonumber = Text2.Text
Let labelnumber = Label1
Let answer = labelnumber - (textonenumber + texttwonumber)
Let Text3.Text = answer
End Sub
Private Sub Text3_Change()
Let textonenumber = Text1.Text
Let texttwonumber = Text2.Text
Let labelnumber = Label1
Let answer = labelnumber - (textonenumber + texttwonumber)
Let Text3.Text = answer
End Sub
Put the data format for the textboxs to number also. (properties)
edit:
in the screenshot i've forgot to delete the command button.
|
put all that in to VB but still doesnt work
__________________
MK1 VTR, Magnex 3 inch Full System De-Catted, K&N Air Filter, VTS Alloys, Lowered, ICE (15" JBL x2, 1200Watt Amp, Pioneer 6x9\'s, 4 Tweeters, Pioneer H/U)
|
|
|
28th November 2007, 13:01
|
#26
|
Saxperience Forum Bum
Join Date: Jul 2006
Location: UK, England, Hampshire
Posts: 4,081
Car(s): No car
|
I suggest using a better naming scheme for your variables for a start. You will be marked on naming schemes IIRC.
|
|
|
28th November 2007, 13:03
|
#27
|
Saxperience Hardcore!
Join Date: May 2006
Location: Bristol
Posts: 16,575
Car(s): JP4urio, 306 DTurbo SportShed
|
Quote:
Originally Posted by Paul_CGM
*cough* cntrl alt delete *cough*
|
Didnt work lol, that was blocked on the system
|
|
|
28th November 2007, 13:13
|
#28
|
Central South
Join Date: Jun 2006
Location: East Sussex
Posts: 3,105
Car(s): VTS :)
|
It's not as easy as just copy pasting, you have to have the correct controls on the form and set the events to the functions.
__________________
Can I be your car fwrend??
|
|
|
28th November 2007, 13:14
|
#29
|
Saxperience Addict
Join Date: Jan 2007
Location: Benfleet, Essex
Posts: 10,834
Car(s): Megane 225 Cup
|
Quote:
Originally Posted by Alex
It's not as easy as just copy pasting, you have to have the correct controls on the form and set the events to the functions.
|
Yup, I copied a program before and it would not work, some characters can be different so have a check through.
|
|
|
28th November 2007, 13:34
|
#30
|
Central South
Join Date: Jun 2006
Location: East Sussex
Posts: 3,105
Car(s): VTS :)
|
Quote:
Originally Posted by Manutd1808
Yup, I copied a program before and it would not work, some characters can be different so have a check through.
|
You ripper
If you do copy'n'paste remember to set the control events otherwise the code will not be called.
__________________
Can I be your car fwrend??
|
|
|
28th November 2007, 13:57
|
#31
|
Saxperience Addict
Join Date: Jan 2007
Location: Benfleet, Essex
Posts: 10,834
Car(s): Megane 225 Cup
|
Quote:
Originally Posted by Alex
You ripper
If you do copy'n'paste remember to set the control events otherwise the code will not be called.
|
Don't normally do it but when you have to call a function from an array, I needed some help lol.
|
|
|
28th November 2007, 21:08
|
#32
|
Saxperience Addict
Join Date: Jan 2007
Location: Benfleet, Essex
Posts: 10,834
Car(s): Megane 225 Cup
|
This is my MP3 Player program that I have to do for my assignment.
Got it to play a song so far, now sorting out the library which is the fun part.
Function 1is the code for playing the file. Have a use if you want.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
FILE *fp;
#define ARRAYSIZE 100
#define SONGNAME 25
#define SONGARTIST 25
#define SONGLENGTH 25
void func1(void);
void func2(void);
void func3 (void);
void func4 (void);
typedef struct Mp3rec
{
char name[SONGNAME];
char artist[SONGARTIST];
char length[SONGLENGTH];
};
int main (void)
{
int menuchoice=0;
//fp= fopen("mp3_list.txt", "r" "W" "a"); either to add or read a text file.
do
{
printf ("********************************************\n") ;
printf ("****************Steven C********************\n");
printf ("*********** Ruskin Pod MP3 Player **********\n");
printf ("********************************************" );
printf("\n1: Play File");
printf("\n2: Show Library");
printf("\n3: Delete File");
printf("\n4: Add Record");
printf("\n5: Quit");
printf("\n\nEnter Choice: ");
scanf("%d", &menuchoice);
switch (menuchoice)
{
case 1:
func1();
break;
case 2:
func2();
break;
case 3:
func3();
break;
case 4:
func4();
break;
case 5:
break;
default:
printf("\nInvalid Choice: 1-4 Only Please");
}
}while(menuchoice!=4);
system("pause");
}
void func1(void)
{
printf("\n\n Play File\n\n");
printf ("********************************************\n") ;
printf ("****************Steven C********************\n");
printf ("*********** Ruskin Pod MP3 Player **********\n");
printf ("********************************************" );
{
char commandarray[ARRAYSIZE];
char mp3filename[ARRAYSIZE] ="C:\\mplayer\\Robin S - Show me Love.mp3";
sprintf(commandarray, "C:\\mplayer\\mplayer.exe \"%s\"", mp3filename);
printf("\nAttempting to Run Command \"%s\"...\n\n", commandarray);
system(commandarray);
int menuchoice=0;
switch (menuchoice)
printf("\n1: Back To Menu");
printf("\n5: Quit");
printf("\nDone.\n\n");
system("pause");
}
}
void func2(void)
{
printf("\n\n Show Library\n\n");
}
void func3(void)
{
printf("\n\n Delete File\n\n");
}
void func4(void)
{
fp= fopen("ListofSongs.txt","r");
printf("\n\n Add Record\n\n");
}
|
|
|
28th November 2007, 23:19
|
#33
|
Central South
Join Date: Jun 2006
Location: East Sussex
Posts: 3,105
Car(s): VTS :)
|
Interesting doing it in console.
__________________
Can I be your car fwrend??
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 09:35.
|