Making A Vending Machine App?

Aug 15, 2009

I just started doing a semester of Visual Basic in college(australian), our first assignment is to make a vending machine app but so far we've only been taught basic coding such as making time converters and forms. I've tried to ask the teacher for help and she refuses to help us, she tells us its unfair. None of my friends in my class know where to start and everyone else is cheating of the internet. I just want to know how to start making the application. The vending machine must have 6 products with 10 of each, the user must put in 10c, 20c, 50c, 1 dollar and 2 dollars. Everytime the user buys something it must deduct 1. The must also be an admin function.

View 6 Replies


ADVERTISEMENT

Vending Machine Repeating Error

Jul 14, 2009

I am currently creating a vending machine program, designed to simulate a vending machine. However I have come across a rather large error, my stock is 50 at the begging. The person can go though the program and the appropiate amount of stock is taken away from the relavent object, however when I finish and want to go back to the start the last selection is still present.Therefore I have tried setting the variable as 0 when the form opens and when the program starts, but the last selection is still present.Does anyone know of a way to which I can reset this calculation without affecting my stock so I can then repeat my program cycle one or two times each time using the previous stock without reseting back to 50

View 10 Replies

Adding Decimals (Vending Machine Account)

Apr 19, 2010

25, .10 and .5... I cant get it to add. All it will do when each button is hit for each ammount is display that amount. Very frustrating. Here is an example of my machine:

[Code]...

View 6 Replies

Logon Vending Machine - Purchases Deducted From Balance

Aug 26, 2010

I am making a Vending machine that requires you to logon and then you can purchase things and the purchases are deducted from your balance. The logon information as well as the balance is stored in an access file. I have the logon working well and understand everything except the things dealing with the balance. How can I make it so that when you logon it takes you to the purchase screen and The person you logged on as name and balance are shown on labels. I also don't know how to deal with balance. So when they log on and purchase the amount is detracted from their particular balance.

View 4 Replies

VS 2008 Vending Machine Using Structures - Calculate The Change From The Structure

Aug 23, 2009

I'm having a little trouble working with structures and using a counter for the same structure. my structure gets its data from a text file which i readoff and assign ok. Here's part of my code

[Code]....

View 9 Replies

[2008] Link 2 Parts Of My The Transaction Part Of Vending Machine?

Jan 12, 2009

I don't know really how to link 2 parts of my the transaction part of my vending machine and the restocking bit. Here is the The Restocking bit is basically adding to values from txtbx27 and 13 in the listbox and then showing the final value in the txb27, which i want to link with Transaction part of my code so that its possible to control machine's stock.

[code]...

View 4 Replies

Designing Software - Making A MPC Sampler - Drum Machine - Making A Sound Directory ?

May 16, 2012

I'm a huge music person (got my own lil record thing going) but I'm wanting to design a program that would make music in my way. I have a decent amount of background knowlege of Visual Basic and Java I'm just wondering how could I execute this whole project. The Project is making a MPC Sampler. MPC is a drum machine; a machine with buttons that once you press it that it will play a sound from a drum (ex: snare, kick, tom, ect.) . So I would want to make some pads on my program that each have their own sound. Total of 16 pads. Which the design wouldn't be hard to make nor would the functionality of it having the play back sound (in my opinoin it wouldn't be hard atleast). But the thing is I wanna map out these pads to number keys on the number pad or keyboard. I'm not so sure how to do that. But that's all the easy stuff...

Also finding information is making a sound directory. What I mean by this is that I want to make a User Interface that will open up a file directory of sounds and the user can select what "kick" or "snare" sound he may want for the kick or snare pad. I don't know how to do that or even know what to search; neverless I don't know if this whole project idea is a good idea for Visual Basic or another programing language.

Also LATER ON I am wanting to add a record and export function that alows users to..well...record and export their beat or instrumental ha. That doesn't seem too too complex (mainly due to the fact that all it needs to do is record the users key strokes and then show them and play the sounds, but obviously it would get more complex than that.)

Here is an image of one of many MPCs but one with a directory - [URL]

View 5 Replies

Cannot Access The Database From Server Machine To Client Machine Using .net 3.5?

Dec 9, 2010

I develop an application using vb.net.application will run on client server architecture.when we try to execute the program in client side then it will give me an error which is related to sqlclientexception.how can i handle this situation.i used vb.net 3.5 as front end and sql server 2000 as back end.i have done total coding with system.data.sqlclient namespace.

View 6 Replies

.Net Software Behaves Differently From Machine To Machine?

Dec 21, 2010

I've inherited a lot of custom made software for an office, and, while managing it, I've found it performs differently from machine to machine.I mean, some controls get painted in weird ways in some machines but well in another, or just work differently, like in some machines clicking something selects it, and in the next machine clicking the same thing makes it editable.I suspect, o course, of the myriad of DLL the software loads

View 2 Replies

Blocking A Particular Machine From Accessing A Machine On LAN?

Jan 21, 2008

I want to block a perticular machine from accessing my machine..Both the machines are in LAN..I dont want a perticular machine to access my computer How can i achieve this...I want to do this using VB.NetAny idea....

View 9 Replies

Get Time On Another Machine?

Feb 20, 2009

i must get time on another machine and put it inside my windows application with vb.nethow can I

View 9 Replies

How To Use A COM Dll On A WIndows 7 64 Bit Machine

May 1, 2012

I have built a DLL for changing the default printer to a new value and then setting it back to the original. This DLL will be called from a VBA addon to an ERP product. I think the version of the VBA is 6.3.

I have built a Visual Basic 2008 Dll using a COM component. This generates a DLL and TLB file. Using Regasm.exe from the .net frameworkv2.0.50727 folder to successfully register these components on Windows XP and Window 7 32 bit.

However, when I try to do this on a Windows 7 64 bit system, it fails. After some fiddling around, I was able to get a successful registration using the Regasm.exe in framework64v2.0.50727. But after the successful registration, the VBA project still cannot use the DLL.

When I try to Reference the .tlb file in the VBA project, it is not visible even though the dialog filter is set to dll, tlb.If I try to use late binding by using the getobject and/or createObject method, it fails.

There are two ways to answer this request.1. How do I register my 32 bit COM dll on a Windows 7 64 bit machine?

2. How do I write a COM DLL component from scratch for a WIndows 7 64 bit machine using Visual Basic 2008 ( or 2010. I will upgrade if necessary)?

View 5 Replies

How To Use VB DLL Across All Users On Machine

Jul 17, 2009

How do I register a vb program dll for all the users of a machine? I have admin rights and have tried to register the dll using regsvr32 . Its get registered and is functioning only for my user id. If some one without admin rights come and login then it is not working.

View 1 Replies

Run 32 Bit Java Dll On 64 Bit Machine?

Mar 11, 2010

I have a 32-bit java dll which i need to call from a asp.net application on a 64-bit machine.

View 1 Replies

Will App Compiled On 64 Bit Run On 32 Bit Machine

Nov 20, 2010

I'm buying a new computer this week and the one I want has Windows 7 Home Edition 64 bit. I program in VB.NET using VS2008. If I write a program and compile on this 64 bit windows, will it run in 32 bit? I did some reading and from what I understand is if it is not using any specific 64 bit drivers I should be good. I'm not doing anything fancy that I know of as far as drivers. I just wanted to see what everyone's past experience has been.

View 3 Replies

.net - Get MAC Address Of Client Machine In C#?

Jan 7, 2010

How to get MAC address of client machine in c# and vb.net

View 3 Replies

.net - Using VB DLL In TWO Windows Project At The Same Machine?

Apr 4, 2011

I Have old vb windows application, we develop new .Net Application that uses the old VB DLL functions, for testing purposes I have to install the two application in one client machine,

BUT The Problem: When I install the new .Net and register the DLL , it works fine,,

-- But the old VB application Stops...

If i register the DLL again and run the VB application , it works fine...

-- But the new .Net Application not works,,

After Registering the DLL, the first Application I run works fine , the other NOT

View 1 Replies

2010 Deployment To 32 Bit Machine

Jul 20, 2011

If I develop a VB2010 Windows Forms application on a 64 bit machine, can I deploy it to a 32 bit machine?The 32 bit machine has .NET Framework 4 Extended on it.Or can I tell the 64 bit compiler to go 32 bit? I have VS Pro on the 64 bit machine.I don't want to leave any development package on the 32 bit machine, which will be transferred to a client.jeyoung

View 5 Replies

Add Cookies To The User's Machine?

Jan 17, 2011

I know HOW to use cookies, but how to do so in a Windows Forms Application? What reference would I need to add in order to add cookies to the user's machine?

View 1 Replies

API, Kernel32 On 64bit Machine?

Nov 7, 2010

coming from VB6 I've been using the windows API for many years. Now I'd lke to do the same on .NetMy question is, what would happen if I build for 'AnyCPU' and the application calls Kernel32 while running on a 64bit machine ?

View 1 Replies

Application Will Not Run On Same Machine It Was Written On

May 18, 2010

I have written a program and it seems to work fine when i am running it in the environment.When I create a program to distrubute to another computer it will not run.I thought it might be a problem with the other computer but I tried to install it on the same computer I designed it on and it will not run there either.When I run it a message box pops up saying "Application cannot be started. Contact to application vendor."[code]

View 5 Replies

Availability - Check If A Machine Is Available

Aug 8, 2009

USing c#, how can I check if a machine is available (i.e. switched on or exists) on the network?

View 2 Replies

Can Only Run Application On Build Machine

Jun 5, 2010

I've compiled my application and started testing it on other machines.

It crashes instantly on every machine except the build machine - I'm fairly new to programing so any pointers as to where I would start would be great.

If I install VS2008 on the test machines it runs fine...

I'm using VS2008 on Windows 7 (x64)

Application is set to compile x86

An entry is made in the event log:

EventType clr20r3, P1 5xhruzlemrj2jn2wizvzp1qaljyuxwtl, P2 1.0.0.0, P3 4c0abff3,
P4 ssmc program,

P5 1.0.0.0, P6 4c0abff3, P7 12, P8 e9, P9 system.invalidoperationexception, P10 NIL.

[URL]

View 3 Replies

Can't Seem To Copy 3 X CR9 Dll's To VSE Machine To Get Rid Of Errors

Sep 18, 2010

I'm converting an existing VB6 command line app to VB.net as need a bug or 2 fixed. It uses 3 x Crystal Reports 9 libraries. The only errors I have now are related to CR9 (dll) code, but don't have CR9 on the VSE machine, & dont have VSE on the CR9 machine. We also have a CR11 version of this. The fellow who created them has left & we dont have VB6, he used his own.I can't seem to copy the 3 x CR9 dll's to the VSE machine to get rid of the errors, says the dll access is denied, source file may be in use.I can't install VSE on the CR9 machine so have to create/build it on the VSE machine & copy exe to the CR9 machine. [code]

View 4 Replies

Capture When A Machine Is Idle?

Jan 21, 2009

Is it possible to capture when a machine is idle? I realize that a machine is never really idle, but screen savers work and power management schemes work... So, there must be a way to create an application to capture the same thing, correct?

Has any tried this or has any success capturing when a machine is idling?

View 6 Replies

Closing Machine After Program Has Run

Feb 3, 2010

is there "rules" as to how to close programs writting in vb.net(2008)? I've migrated to dot net from vb6 and have rewritten some of my programs in the new language, but I've discovered a problem, since using the new programs if you try and close the machine down (Windows XP) the pc just hangs until I use the task manager and kill my programs.

View 1 Replies

Compiling To Machine Code?

Apr 23, 2011

After reading a couple of tutorials, it seems that basically NET works quite like java. All the IDE's produce an intermediate code that I have to distribute, and which NET compiles at runtime to machine code and then executes it. Leaving aside the question why so when NET works only on Windows platforms, I have some other more practical questions:Is it possible to directly compile to machine code targeted at specific platform like XP 32-bit or Win7 64-bit?

View 2 Replies

Deployment Fails On XP Machine?

Apr 7, 2012

I have just finished my application using VB in Visual Studio 2005 and it works fine on my Win 7 development machine. But when I install and run it on an XP machine it fails with an unhandled exception:System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {E8D851FA-9967-4ADF-9644-0183B9B1EA68} failed due to the following error: 80040154.

I've googled the error message and the solutions seem to be 1) compile as x86 (was doing that anyway), and 2) register the dll on the machine But firstly I'm not sure which dll I need to register, and secondly I don't want to be going around registering dlls - the whole point of the installation programs is that it should just install and configure everything automatically..

View 10 Replies

Exception When Running App In New Machine

Aug 25, 2009

I just finished coding a small app which access the Outlook 2007 Inbox. On my dev machine, it works OK. I created a new machine in VMWare using WinXP, Dot.Net 3.5 and Office 2007 installed and Outlook configured to my GMail account.I copied the BIN folder of my project to the new machine and ran the app and it runs OK until it scans all emails in the Inbox. This is where I get the exception:[code]When JIT debugging is enabled, any unhandled exceptionwill be sent to the JIT debugger registered on the computerrather than be handled by this dialog box.Can anyone suggest why my code can not see the Outlook 12 assembly? Do I have to create an installer file for my app before copying it to the test machine?

View 1 Replies

Finding Each User On XP Machine

Jan 10, 2011

Is there a method in the .NET framework for finding each user on a machine? I want to copy a shortcut to each users desktop, but first I need a list of each user on the particular machine.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved