Win32 API A Good Approach For Use With USB Communication Between VB2005 And A Microcontroller With USB Capability?

Feb 17, 2011

Is Win32 API a good approach for use with USB communication between VB2005 and a microcontroller with USB capability? If so where can I find these APIs?

View 2 Replies


ADVERTISEMENT

WIN32 EXCEPTION LINE* Keeps Running Into An Error(Win32 Exception Was Unhandled; Access Is Denied)?

Apr 18, 2012

I was scripting a very basic process manager, with a ListView component, and it was working fine for many days, up until now.Here is the code for getting processes:

Dim Process As New Process()
Dim Count As Integer = 0
ListView1.Items.Clear()[code].....

The line of code where I put "*WIN32 EXCEPTION LINE* keeps running into an error(Win32 Exception was unhandled; Access is denied). Here is the full error description:

System.ComponentModel.Win32Exception was unhandled
ErrorCode=-2147467259
Message=Access is denied[code]....

As I said before, this had been working for several days, up until now.

View 1 Replies

How To Use Usb Microcontroller On Vb

Jul 28, 2009

i am talking about this [URL] device

1 what namespace referce do i add ?

2 what imports statement do i use ?

3 how do i make output input commands ?

View 9 Replies

Why There's No Block Comment Capability

Feb 4, 2010

Does anyone know why there's no block comment capability in VB .NET? (Unless there really is

View 4 Replies

Activate Robotic Parts Using A Pic Microcontroller With Vb?

Sep 21, 2009

i want to activate robotic parts using a pic microcontroller with vb.basically i want to use the thechniques shawn in this video :

[URL]

here are my questions :

1 what activex do i add ?

2 are there any references i need to add ?

3 are there any imports statements i need to add ?

4 are there classes i can add ?

5 what commands do i use for output ?

6 what commands do i use for input ?

7 can you recomend a specific microcontroller ?

8 how do i add hardware to the device ?

9 what commands do i need to add so the software doesn't glitch ?

View 37 Replies

C# - Directx Basic Capability Testing?

Apr 6, 2009

I have a managed directx 9.0c application that fails to run on some low spec machines (ones without graphics card).I am wondering if anyone has any suggestions with regards to the minimum directx caps to test for so that I can catch a potential failure before trying to run the application.The directx application only displays a few meshes and a couple of textures and nothing too intensive

View 1 Replies

IDE :: Lost Edit And Continue Capability

May 12, 2012

In the last day or two I've lost the ability to edit code while the program is running (and halted at a breakpoint).I also can't instantiate otherwise unused test variables for purposes of examination - I'm told they don't exist in the current context.Also System. Diagnostics.Debug doesn't work anymore.the error message generated when attempting to edit is :Changes are not allowed in the following cases:

- When the debugger has been attached to an already running process.

- The code being debugged was optimized at build or run time.

- The assembly being debugged is loaded as domain-neutral.

- The assembly being debugged was loaded through reflection.

I suspect that optimizations are being performed that are causing all this but I can't find where they are being set nor why they have changed.tools/options/debug shows that Edit and Continue is enabled although it is grayed out while the progarm is running. Windows 7, X86.

View 2 Replies

JSON Stringify And Parse Capability For VB

Aug 11, 2009

I looked on the JSON.org website but I couldn't find any JSON library for Visual Basic .NET, does one exist?

View 4 Replies

Resume Capability With System.net.webclient

Apr 15, 2011

I want to make a download Manager with resume capability (dont refer me to codeproject examples which use httpwebrequest and webresponse classes) i want to make the use of system.net.webclient class. I know it can provide me with events and stuff but is it possible to resume our downlaods with this class ?

View 6 Replies

Displaying 8-bit Numbers From A Microcontroller In Real Time If Possible?

Apr 26, 2010

I've already wrote a simple program for connecting to a serial port that can send data to the microcontroller, do some basic arithmatic and transmit it back to my Form. This was just to see if I could set up the conection.I have a PIC Microcontroller giving an 8-bit number thats is taken from an external sensor device.What I want to do now is to present this data from the microcontroller in a textbox as a number either in real time (as the sensor output changes) or if not possible, on request (using a button).

View 15 Replies

Serial Port To Read Data From Microcontroller?

Aug 9, 2010

<!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0; mso-font-charset:2; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:0 268435456 0 0 -2147483648 0;} @font-face {font-family:"Cambria
Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-

[code]....

View 9 Replies

VS 2008 - Program In Vb To Serial In Data From My Microcontroller

May 18, 2010

I have written a program in vb to serial in data from my microcontroller and it is working good except for one thing. When I try to send the number 26 to vb it just reads a blank I dont know what is going on? The data that I am reading is being converted to int16, and I am using Encoding 28591 and have also tried Encoding 1252. I have also tried a new microcontroller with no success. I dont know if this is a VB problem or a microcontroller program problem.

Dim ReceiveBuffer As String
Dim portname1 As String = "Com5" ' Serial in through this port
Dim portspeed1 As Integer = 19200
Dim WithEvents COMPort As New System.IO.Ports.SerialPort

[CODE]...

View 13 Replies

Count Down Timer With Resume Capability Even The PC Is Shutdown

Oct 20, 2011

i want to create a program that has a countdown timer for a specific time month/day/hours with resume capability...

[Code]...

View 1 Replies

Intelligent Combo Box With Type Ahead Capability?

Mar 29, 2012

I am writing a windows application in VB.Net.

My client wants an intelligent combo box with type ahead capability. For example let's I have a list of companies. I want to find my company "MetaPro". With the Microsoft combo box if you type in the first letter of the name it will bring up first one starting with that letter. For example I type in "M" it will bring up "Mass. Dept. of Ed.", I then type in "E" I get the first one starting with "E" maybe "E, G & G" where I want the first one starting with "ME".

Perhaps there is an open source solution to this or I could create a custom control. But I don't know how.

View 1 Replies

Communications :: RS232-USB Converter - Send Data To Microcontroller

Mar 13, 2009

I have a problem regarding rs232-usb converter... I'm using toshiba laptop. The problem i faced is i can receive data from my microcontroller to VB but i cant send data to microcontroller... However, when i use the same VB code and same converter, i try at my friend laptop (other brand), it works... May i konw is there any other setting i need to set for my laptop??

View 3 Replies

Downloading Application Code Throught CANUSB Into Microcontroller?

Dec 12, 2011

Hi, I'm trying to develop a VB GUI that allows the user to download assemler code (Hex file) into microcontroller via a LAWICEL CANUSB.

I can now send signle message(8 Bytes.: example t1F0200081122334455667788, with ID:0x1F02000, DLC: 8 Bytes and Data:1122334455667788)

[Code]...

View 11 Replies

DB/Reporting :: Add Data-entry Capability To My App Using Password-protection User-access

Mar 8, 2009

I'm presently creating an application which uses Access2007 as the database. No problem there. But Since most use Excel for data-entry, i've created two tables in access linked to excel source file. Any change in excel will reflect in Access database and subsequently in my Application . Until now my application only reads the database and displays records in DataGridView. These records, i then export to excel along with other formatting for direct printing as a report as I have no idea how to make report. Now i want to add data-entry capability to my app using password-protection user-access. So i can directly add new record to source file. Also need to know if There's any way of eliminating Access from the picture entirely....

View 1 Replies

File I/O And Registry :: Use The Bitmasking Capability Of The FileAttributes Enumeration To Indicate Which Attributes Changed?

Nov 18, 2009

I've got an issue with an Access97 replicated database that I'm writing a small monitoring app for. I've got FSW's to track changes to the necessary files, but am having some issue in enumerating exactly what has changed in some instances, specifically when attributes may have changed. I'm using a similar strategy to track this as I did for changes in size. I've got a Private class variable for the size of each file and a local method variable and compare the two, when different, update the class variable for the next comparison.

[Code]...

View 2 Replies

Write An Application For Receiving Data (ascii Characters) From Microcontroller Through The Serial Port In Three Separate Parts

Jul 18, 2009

I need to write an application for receiving data (ascii characters) from microcontroller through the serial port in three separate parts. I've created three RichTextBoxes, but I do not know which commands I need to type. In first textbox I need to receive one byte... next six bytes need to be placed in second text box, and finally last seven bytes need to be placed in third textbox.

View 11 Replies

RS232 End Transmission Character - Put The Word "END" In The Microcontroller Code?

Oct 30, 2011

Like the title says, i have a code written in vb.net that receives data from a PIC microcontroller via rs232, but i need a way to know when te trasmission ends. I have put the word "END" in the microcontroller code so that after he sends all the data , will send the word "END" ..so i need to implement this in my vb.net code and when "END" is received to display "finish" popup message.

Imports System
Imports System.ComponentModel
Imports System.Threading[code].......

View 2 Replies

How To Approach A Timing

Dec 15, 2011

OK, I have this loop I want to perform which involves the serial port. Not to get too specific I'm actually sending data to an external device within a loop The loop involves a Start number, increments by a Step and ends when it gets to Stop This repeats until I click a STOP button.

View 15 Replies

Best Approach For Data Manipulation?

Jul 28, 2009

I understand that there are several ways of Inserting, Updating and Deleting records in a database such as DataAdapters, DataSets, TableAdapters, SqlCommandBuilders, Parameterized SqlCommands, StoredProcedures, etc, etc,etc. According to David Sceppa Sprocs are the most preferred. Ok, I go with him on this one (who am I to challenge him anyway?).

My question is, apart from Sprocs, which of these options is the BEST for a large commercial database application and why, taking performance into account? What are the benefits and drawbacks of each option?

View 4 Replies

Best Approach To Update A Database?

Jul 18, 2009

I am writing a program to assist Paramedic students in learning the Drugs that they have to know in order to pass their classes. I have created an Access database to hold all the information on these drugs, but not every student that will use this program will need to learn all the drugs contained within this database.

Right now I have 43 drugs in the database and still growing.

What I want to do is to present to the student the drugs and have them say "Y" or "N" as to whether its on their required list to learn. That way they only work on the ones that they need to.

View 3 Replies

BGW With Similar Coding But Different Approach?

May 18, 2012

I've two BGW with similar coding but different approach, My second BGW shows me "NOT RESPONDING" whenever i try move/click/focus to form while the BGW is running.

VB
RichTextBox2.AppendText("Some Text")
process2.ReportProgress(inc)
My.Computer.Network.DownloadFile(andpic, "pics/" & spliti(0) & nnum & ".png")
My.Computer.Network.UploadFile("pics/" & spliti(0) & nnum & ".png", "ftp://ftp.mywebsite.com/domains/mywebsite/public_html/Pics/" & spliti(0) & nnum & ".png", "users", "password")
WebBrowser1.Navigate("Mywebsite")

I've taken out number of things that i think is causing this error Are they the cause of "NOT RESPONDING" ?

View 4 Replies

C# :: Which Of These Is The Better Architecture/design Approach

Nov 12, 2010

To write a effecient Active Directory library to ease the work of technicals who are responsible to create access models into the domain controller's Active Directory. This library must allow the following:Basic operations: Add, Modify, Delete, List entries;An entry may either be an organizational unit, group or user (no further need required as of now);I thought about having a class which would represent the domain with which we want to work with.

public class Domain {
public Domain(string root) {
Root = root;

[code].....

View 1 Replies

DataGridView And Two Tables - Best Approach?

Aug 26, 2009

I have a database with three tables:
stock
orders
order_details

Stock and Orders are self explanatory. Order_details is a lookup table, holding basically just the orderID, stockID and quantity for each item in the order. That's not very friendly for the user however, so what I want to show is a DataGridView with some elements from order_details, and some from stock, i.e.:
Part_Code, Item_Name, Description, Quantity, Price

I can create a database view for this easily enough, and bind it to a datagridview. It shows existing items in the order fine, but the problem is the view doesn't update when I add new elements to order_details in the dataset. It appears that it's bound to the main database, and so won't update until I save the record. That also has the problem that it's now much harder to update the database. A simple datagridview bound to order_details would make it easy for the user to enter quantities and for me to save the record, this one now needs a custom update statement.

In summary:
- I want to show data from two tables
- I want the datagridview editable (well, the quantity column anyway)
- I want the datagridview to update when I add entries in the dataset
What is the best/easiest way to do this? Is my current approach of a view in the database and custom update statements sensible? How can I get the datagridview to refresh whenever there's a change to the local dataset?

View 8 Replies

How To Approach Refactoring A Class

Jul 24, 2009

I recently started a project and needed to do some integration with LDAP via DirectoryServices. I've done this in other apps so I went into one of them to see how I did it -- why reinvent the wheel right? Well, while this wheel works, it was developed years ago and kinda smells (it's wooden, firmly attached to the previous vehicle, hard to repair and produces a potentially bumpy ride).So I thought to myself, this is the perfect time to refactor this puppy and make it more portable, reusable, reliable, easier to configure etc. Now that's fine and dandy, but then I started feeling a tad overwhelmed regarding to where to start. Should it be a separate library? How should it be configured? Should it use IoC? DI?

So my [admittedly subjective] question is this -- given a relatively small, but quite useful class like the one below, what is a good approach to refactoring it? What questions do you ask and how do you decide what to implement or not implement? Where do you draw the line regarding configuration flexibility? [Note: Please don't bash this code too much okay? It was written a long time ago and has functioned perfectly well baked into an in house application.]

Public Shared Function AuthenticateUser(ByVal id As String, ByVal password As String) As Boolean
Dim path As String = GetUserPath(id)

[code]......

View 5 Replies

How To Approach Scenario / Approve Changes

Apr 11, 2010

I'm working on a system where there can be 2 level of users "Admin" or "Researcher".We have the requirement to allow the researcher to change fields for a record a record, but they want the original values to stay in the record and have an admin "accept" or "approve" the changes before the real record gets updated.Has anyone run into this scenario before? I'm trying to think of the best way to do this.

View 3 Replies

Implement A Recordset Approach?

Oct 15, 2009

Trying to implement a recordset approach in VB.NET and have gotten to the point where things almost run. :)

Code:

Dim strSQL As String
Dim rsMaster As New ADODB.Recordset
strSQL = "select * " & "from tblDQ " & "order by xid, xcode, xDOS"

[Code].....

View 4 Replies

VS 2010 Best Way To Approach Reports?

Mar 25, 2012

I'm currently working on a system that requires monthly, quarterly and annual reports. I have no problem in generating/retrieving the data, my problem is the presentation. What is the best way to do it? I need the report to be:

View 3 Replies







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