Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Accessing USB?


how do i send /receive data from a USB port
i need the basics
and if possible with codes
help!!!
saju




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Vb Or Vb.net Accessing Xml
Hi all,
I am pretty new to this. I have good knowledge in XML and VB6. I want to use VB OR VB.NET to access the XML or shall I say parse the XML FILE. Do you guys know any good tutorial or website that mite help in getting to know more about VB and XML interaction.

Thanks in advance.

Accessing...
hi i was wondering how i can access a microsoft access database through vb? i need to know how to manipulate and save data? any help would be well appreciated thks

Accessing
im a newbie to visual basic
problem: im trying to change the properties of a command buttons on one form from a different from. how do i change it? i think it has something to do with "global" but i dont know how to use it.

VB Accessing C++ Api
Hello!

I am writing an application that uses an C++ API. Everything works just fine. The C++ API is connection to a Corba source and returns data to my VB app.

The problem is that when I try to run the applikation in Break mode VB always crashes when I push the stop button.

I can step through the code without problem, the problem is when I try to stop, to return to design mode.

Does anyone know a problem like this??

Thanks in advance

//Nroblex

Accessing A CD Via MCI
Hi,
I've been trying to retrieve the identity of a CD currently in a CD-ROM drive, using:-

mciSendString "info cdaudio identity wait", strReturn, 64, 0

However, the problem is, I have 3 CD-ROM "devices", the first being a virtual one (which simply allows me to browse through CD image files), and 2 other CD-ROMs.

It appears that currently MCI is attempting to access the virtual drive (which has no file loaded) and returning an error. I can play CD audio from the other drives fine, however, so is there a way of telling MCI which drive I want it to access?

Accessing A Particular Row By ADO
Hi,

I set up an ADO connection in the standard way:


Code:
Option Explicit

Dim db As New ADODB.Connection
Dim rst As New ADODB.Recordset

Private Sub Form_Load()
db.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=App.pathmydatabase.mdb;Persist Security Info=False"
db.Open

rst.Open "table1", db, adOpenStatic, adLockOptimistic


Now what code do I add to directly access ,say ,Row5 of table1?

Thanks.

Accessing FTP
I get this runtime error randomly when accessing an FTP account via VB... for awhile i had on error resume next. and once the error occured once i would never connect to the FTP account again until I restarted the program.


Code:

Call UploadFile(Form1.Inet1, "xxx.xxx.xxx.xx", "xxxxxx", "xxxxxx", "curInfo.txt", "/web_users/ccbailey/" & playerName & ".txt")

Public Function UploadFile(Inet As Inet, ByVal HostName As String, ByVal UserName As String, ByVal password As String, ByVal LocalFileName As String, ByVal RemoteFileName As String) As Boolean
Inet.Protocol = icFTP
Inet.RemoteHost = HostName$
Inet.UserName = UserName$
Inet.password = password$
Inet.Execute Inet.URL, "Put " + LocalFileName$ + " " + RemoteFileName$
Do While Inet.StillExecuting
DoEvents
Loop
UploadFile = (Inet.ResponseCode = 0)

End Function




Run-time error '-2147417848 (80010108)':
Automation error
The object invoked has disconnected from its clients.

Accessing The Web
Hello, before i install VB6, i need to know if it can do the following.


Access websites
Use MySQL database data for login (online)
Draw data from the web
Install like anyother programe (if so, how)
have, IRC chat


Thats all for now, might get updated, and sorry if its in the wrong place, and i been away for 1 year, welcome me back people

Accessing VB....
Can anyone tell me how to access the VB program? I've never used it before, but need to right now =( Thanks

Accessing The Dll In Vb
it is possible to access the dll via vb? but we don't have documentations to look..

Accessing WMP
Hello I am trying to create a music database program and I thought that a neat idea for the user would be that if they are connected to the internet they can retrieve the CD info.

I was pondering for the longest time how to do this to save the user from having to enter so much information about the disc and the number of songs. We all know that everyone pretty well has Windows Media Player and I thought if there was some way to access the dll so when the user has a CD in the drive it can scan that, find the CD info off the internet and add that to the GUI.

Any other idea's that I should think of or concepts to think about? I have no problem with the database part it's just trying to get the artist name, disc name and song list without the user entering that all in.

Thanks

Accessing DLL
Ok i have a big problem:

I'm trying to access a dll with VB. I've got a description of the dll and a Headerfile from C++. I just can't get it to work... The different C datatypes seem not to fit with the VBdatatypes.

Any help would be appreciated:

C Header file:


VB Code:
/************************************************************************//*  Include file for RAMADB16.DLL and RAMADB32.DLL            *//************************************************************************/ #ifndef _RAMADB_H #ifdef __cplusplusextern "C" {#endif /*__cplusplus*/ /* Flags */#define ISAM_KeyCompress    0x0001  /* with key compression */#define ISAM_LZCompress  0x0002   /* with LZ compression */#define ISAM_ReadOnly      0x0100 /* open for reading only */#define ISAM_Shared  0x0200   /* shared use */#define ISAM_NoRepair      0x0400 /* never automatically repair */ /* Returned error codes */typedef enum {  ISAM_Ok,  ISAM_NotFound,  ISAM_NoNext,  ISAM_FirstError=5,  ISAM_KeyTooLong=ISAM_FirstError,  ISAM_DataTooLong,  ISAM_FileNotFound,  ISAM_NotOpen,  ISAM_OpenError,  ISAM_ReadError,  ISAM_WriteError,  ISAM_CreateError,  ISAM_FileExists,  ISAM_WrongVersion,  ISAM_IsReadOnly,  ISAM_StructError,  ISAM_TooShort,  ISAM_FileReadOnly,  ISAM_Locked,  ISAM_SharingViolation,  ISAM_IndexFull,  ISAM_NoMemory,  ISAM_NotEmpty,  ISAM_InvalidParam,  ISAM_Aborted,  ISAM_BadIndex } ISAMERROR; /* Values for the parameter uWhat */enum {  ISAM_First,  ISAM_Prev,  ISAM_This,  ISAM_Next,  ISAM_Last,  ISAM_ThisNext,  ISAM_Same,  ISAM_Update }; /* Values for the parameter uReason */enum {  ISAM_Rebuild,  ISAM_Compact,  ISAM_DeleteRange,  ISAM_WaitUnlock,  ISAM_Repair }; #ifndef API#ifdef WINAPI#define API WINAPI /* Windows */#else /*WINAPI*/#ifdef APIENTRY#define API APIENTRY /* OS2 */#else /*APIENTRY*/#define API /* DOS, Mac */#endif /*APIENTRY*/#endif /*WINAPI*/#endif /* API */ typedef const struct ISAM {int isam;} *HISAM; typedef int API typIsamCallBack(HISAM hIsam, unsigned uReason, unsigned uDone,  unsigned uTotal);typedef typIsamCallBack* ISAMCALLBACK; typedef ISAMERROR API typIsamCreate(HISAM* lphIsam, const char* lpszName,  unsigned uFlags, unsigned cbBlockSize, unsigned cbIndexSize, ISAMCALLBACK lpfnCallBack); typedef ISAMERROR API typIsamOpen(HISAM* lphIsam, const char* lpszName,  unsigned uFlags, ISAMCALLBACK lpfnCallBack); typedef ISAMERROR API typIsamSetFlags(HISAM hIsam, unsigned uFlags); typedef ISAMERROR API typIsamRebuildIndex(HISAM hIsam, unsigned cbIndexSize); typedef ISAMERROR API typIsamRepair(HISAM hIsam); typedef ISAMERROR API typIsamCompact(HISAM hIsam); typedef ISAMERROR API typIsamFlush(HISAM hIsam); typedef ISAMERROR API typIsamLock(HISAM hIsam); typedef ISAMERROR API typIsamUnlock(HISAM hIsam); typedef ISAMERROR API typIsamClose(HISAM hIsam); typedef ISAMERROR API typIsamGet(HISAM hIsam, unsigned uWhat,  const void* lpsKey, unsigned cbKeyLen,  void* lpsFound, unsigned* lpcbFoundLen, unsigned cbFoundSize,  void* lpsData, unsigned* lpcbDataLen, unsigned cbDataSize); typedef ISAMERROR API typIsamPut(HISAM hIsam,  const void* lpsKey, unsigned cbKeyLen,  const void* lpsData, unsigned cbDataLen); typedef ISAMERROR API typIsamDelete(HISAM hIsam,  const void* lpsKey, unsigned cbKeyLen); typedef ISAMERROR API typIsamDeleteRange(HISAM hIsam,  const void* lpsKey1, unsigned cbKeyLen1,  const void* lpsKey2, unsigned cbKeyLen2); typedef ISAMERROR API typIsamGetCollate(HISAM hIsam, char* lpColl); typedef ISAMERROR API typIsamSetCollate(HISAM hIsam, const char* lpColl); typedef int API typIsamGetDosError(HISAM hIsam); typedef const char* API typIsamGetErrorText(int err); typedef int API typIsamGetVersion(void); typIsamCreate IsamCreate;typIsamOpen IsamOpen;typIsamSetFlags IsamSetFlags;typIsamRebuildIndex IsamRebuildIndex;typIsamRepair IsamRepair;typIsamCompact IsamCompact;typIsamFlush IsamFlush;typIsamLock IsamLock;typIsamUnlock IsamUnlock;typIsamClose IsamClose;typIsamGet IsamGet;typIsamPut IsamPut;typIsamDelete IsamDelete;typIsamDeleteRange IsamDeleteRange;typIsamGetCollate IsamGetCollate;typIsamSetCollate IsamSetCollate;typIsamGetDosError IsamGetDosError;typIsamGetErrorText IsamGetErrorText;typIsamGetVersion IsamGetVersion; #ifdef __cplusplus }#endif /*__cplusplus*/ #define _RAMADB_H#endif /*_RAMADB_H*/


I don't know any C++.... If someone could help me how to declare the DLL calls in VB, i would be VERY thankfull...

I tried it with:


VB Code:
Private Declare Function crea Lib "c:winntsystem32Ramadb32.dll" Alias "typIsamCreate" (ByVal lphIsam As Integer, ByVal lpszName As String, ByVal uFlags As Integer, ByVal cbBlockSize As Integer, ByVal cbIndexSize As Integer, ByVal lpfnCallBack As String) As Long


But it returns me an errorcode: 453: Can't find entry point typIsamCreate in Ramadb32.dll

...

Thanks for taking the time to answer me.

Accessing SAM
I tried to access the SAM file which is located in the WindowsNT system directory.
The exact path is C:WINNTsystem32config and the
filename is SAM.

When I try to access this file in any way e.g. using the
TYPE command in the command prompt, or using notepad
to read the file, I get an error message that this file
is used by another process and is not accessable.

I can't even copy it. I can only read its attributes.

The SAM file saves the passwords under WindowsNT.
I can't read the file alltough I'm the administrator.

Is there a way to gain access to SAM?

thx, vbzero

Accessing SQL
How to access the MySql in VB????


------------------
YC Sim
Teenage Programmer
UIN 37903254

Accessing The Web In VB
Hi all,
I'm new here, and new to VB. Not my tool of choice (I miss my semi-colons ), and frankly, I'm having a hard time getting things to work the way I want.

My boss has asked me to parse a word file (office 2000) and examien all the URLs to see if any return a 404.
Well, I can grab all the urls easily enough (MS Word's collection of them is very handy). But I am not sure how to create or open a connection, or how to check the return on it.

Any help would be GREATLY appreciated.

Thanks for your time,
-Matt

Accessing An Exe From Vb
Hi all,
I've an exe. I want to embed this into a vb project. Am aware that I can do this by using Shell Command. But the underlying problem here is that i want a menu option (assume that this menu option is under a Menu Header) to be clicked in this exe. Please help. Thanks in advance.

Accessing FAT
hi,

is there a way for accessing system FAT,if so please mention it how it can be accessed in visual basic.

tks.

byeeee

Accessing Web From VB
--Boundary_(ID_SXj8K2Sit9PoeIKJwaHBjA)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT

Hello everybody,

Pls. help me regardig following task :
To access a web-site from within the VB-code and retrieving specific information from that site .

Regards,
Alpana

--Boundary_(ID_SXj8K2Sit9PoeIKJwaHBjA)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: 7BIT



Hello everybody,
 
Pls. help me regardig following task :
To access a web-site from within the VB-code and
retrieving specific information from that site .
 
Regards,
Alpana

--Boundary_(ID_SXj8K2Sit9PoeIKJwaHBjA)--

Accessing MDB
Hi

I need a little help here.

I open a table (mdb), now I use ADO, and the syntax is something like this:

Code:
Path_database = “c:somewhere”

ODBCCARGA_SAP.Open "provider=microsoft.jet.OLEDB.4.0;data source=" & _
Path_database & "database.mdb"

But, how i can connect to a remote mdb, just changing the path_database ???

Code:
Path_database = “\PCremotesomewhere “???

Where the Pcremote is the name of the pc.

I already done this, but….. This is correct ????

I know, I know this is very stupid, but, suddenly the doubt torture me!!

Accessing DB
hello all.

i can't connect my pocketpc emulator to the ms activesync. coz i wan to access the database. how do i go abt doing it? or is there another way? pls advice.. thanks.

rgds

Accessing Pdf
Hi
I need to access a list of Pdf and find a particular word in the Pdf. after searching the particular word in the pdf i need to take the next word. for example i am access first.pdf. in that i need to search for a string called "output" after searching i need to take the next word and i want to store that word to the database. how can i do this using VB. Plz help me.


thanks in Advance.

Accessing DLL X From DLL Y
I'm trying to find a way that I can reference a DLL X from DLL Y. The problem that prevents the normal method, is that I cannot allow a reference to DLL Y in DLL X, and I have to use ASP code to pass the name of the DLL X.class to DLL Y.

The problems are this:
1) dim oDB as new stringVariable
where stringVariable contains the DLL X.class, but the
system tries to create oDB as "stringVariable"
2) How do I reference the other DLL (whose name is in
stringVariable) without creating a reference in the first DLL

?????????????????????????????????????????????????????????

I'm not sure if this is possible, but any help would be apreciated.

Temperance

Accessing Dll In VB
Hello!
I'm a beginner in VB programming. I have a VC dll to access functions. on accessing it brings an error: “bad dll calling convention”. I have completely reviewed MSDN help regarding this problem, tried different argument types, however couldn't eliminate arising error.
I would be much pleased if someone helps me with advice or recommends something (url, articles).

Thanks in advance.

Mahendra

Accessing A VC++ DLL
Hi Guys,
Right well what I want to do is access a VC++ DLL. I have included the DLL via Project ->References, but what do I do now?
Something like Dim Repos As New LibNameLib.Repository

any help would be great

P.S. I will always rate quality!

JRW

MTS And Accessing COM
Hi all,
My question is based on already existing implementation that has Thread Manager component created in C++ outside MTS - why did they have to use one?... read next…
I have messages coming from MSMQSeries, accessing COM components in MTS. Can I have a multithreaded process running on the MTS, that picks-up the msgs from the Queue and manages a msg processing transaction for each msg concurrently
OR do I have to create a multithread Manager outside of MTS and have it pass a thread for each message to be processed in its own thread in MTS.

Accessing VC++ Dll Thru VB
Hi ,

i am facing one problem while i am accessing VC++ 6.0 Dll thru VB 6.0. i.e
I have created one dll in VC++ 6.0 and accessing this dll thru VB 6.0. but when i run my project for the first time , i am able to access the dll func's correctly.
but the next time when i run my project i get an error message i.e "the instruction at "0x66004851"referenced memory at "0x01f87378". the memory could not be read"
but if suppose i close my VB and again open and run my project it works fine. so, can anyboby help me out of this sitaution. ?

Accessing VC++ 6.0 Dll Thru VB 6.0
Hi,
I have created one Dll in Vc++ 6.0. and now i wanted to access it thru Vb 5.0. but whenever i try to access any of the function in my Dll it gives me an error message in Vb i.e "Can't find Dll entrypoint my_functionname in my_dllname ".
i have searched for help on net. I have even tried by putting Dllmain () func. plus even with Dllentrypoint() func. as an entry point. but still i am getting the same error.
if anyone of you know it , please tell me or mail me at junaid_jj@hotmail.com
thanks ,

Accessing .mdb With UID And PWD?
Hi!

I am new to databases in VB.

The access XP i have on my laptop is set up to use a username and password at startup, because of other applications we use in the company. And, every new database i create with Access gets the same protected rights.

When i try to open such database from my VB6 project i get erros
telling me i do not have the rights to read the records.

I started trying with the "Data" control in VB, but someone told me that DAO is a much better "thing" to use, so i added reference to DAO 3.6. Still i have not figured out how to connect to the table i just created in Access.

I have upgraded VB6 with SP5.

Any comments that can guide me in the right direction are much
appretiated.

Thanks
/Tomme

About Accessing Fax
Does anyone know how I can print something with a fax that is connected to a computer in a visual progra. Or is there any api dealing with fax?

Thanks already

Accessing A PDF File.
Does anyone know how to read a PDF file?

There is a pdf file I would like to read with a table of numbers in it. I would also like to extract that information in the table into an array so that I can use it for calculations.

can someone help me??

Accessing Files?
Hi,

Just wondered, If I use "Open filename for Input as #1" to open a file on the web ie:

Open "http://www.domain.com/file.txt" for input as #1

Will it open the file and read? The other method I want to do aswell is

Open "http://www.domain.com/file.txt" for Output as #1

Will that work? Any alternatives?

Thanks, Craig.

Accessing .INI Files
I have the following problem:
When I am trying to access an ini file via the GetPrivateProfileString Function I am always getting the content of win.ini. I am absolutely sure the path is absolute(including drive, etc..), correct and the file is there. I have also looked under the registry-ini section and there is no file with specified with name similar to my ini-file. Does anyone know a solution for my problem?

Accessing Files
I need to find a way of finding out the location of a file on my hard drive by the user browsing to it and clicking on it. I'm sure you use something called a common dialogue box but can't find anything in the help. Does anyone know what it is I use.

Thanks

Paul

Accessing .cfg File
Hey,

I have this config-file for a game. I can open it with a regular textbrowser and read/change the info, but that's not what I want.

The file contains info like this:

A B C D E
MART 0.25 0.30 100 130

Can someone show me the path to how to get this information the best way and use it in my program?

Gr. John

Accessing VC Compiled DLL In VB6
I am trying to access some functions in a DLL created in VC. When I make the call to the function VB returns the error that it can't find the DLL. I've checked the spelling SEVERAL times. It's spelled correctly. I've also tried placing the DLL in the local folder where my VB APP is, in the Windows System folder and in the Windows System32 folder. The VC program finds the DLL in all these locations, but the VB program does not. I've even tried hard-coding the path to the DLL. Still no luck. Here's the declaration and call:

Declare Function ZMDOpenPort Lib "ZMDSerialComm.dll" Alias "OpenPort" (ByVal port As Long, baudRate As Long, parity As Long, stopBits As Long, nCOM As Long) As Long


Call ZMDOpenPort( MyPort, MyBaud, MyParity, MyStop, MyCom )

Accessing The Registry
Is there any one way that is more proper for accessing the registry than another using VB6?

Accessing 64-bit Registry Key From VB6 (32-bit App)
Greetings!

OK, here's the thing:
One of my application needs to get information from the registry key.
HKEY_LOCAL_MACHINESOFTWAREMyAppWhatever

But, when I run the same application from a 64-bits machine, it seems that my application tries to look somewhere else:
HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMyAppWhatever
(This is the registry for 32-bits application).


Now, what I would like to know is if there's an API that exists that would allow my 32-bits application to access the 64-bits registry.

If none available for VB6, mayby in vb.Net? If not, any luck in C++?

Thank you in advance for your help!

Accessing .exe-files
I want to make an installation-program for my VB6-solution, that asks the user for input, and then runs different setup files based on the input. How do I do this? Can I make another VB6-program that runs setup-files? How do I access and run these files? I've tried to use FileSystemObject, but cannot find a way to do this.....

Accessing An .INI File [VB6]
I am writting a program that needs to store information such as the Database Connection String and Application Folders in a Config.INI file. Now I know there are special methods to access .INI files (sections and so forth) instead of treating it as normal text file.

So assuming the file exists [Config.ini] and it would look like this:
[Connection String]
DatabaseConnectionString = BLA

[Folders]
ApplicationFolder = C:Root

How could I, in code, access these fields and be able to retrieve information like the Connection String and Application Folders.
Any clues? Help? Thanks,

Accessing Logins...help!
Hi everone.

I would like to begin work on a chat room application for my brothers forums.

What i would like to know is how can i add a login form to my project, where users must login with the same username and password they use on the forums.

Thanks!

Accessing Remotely
Hi, i can get a webcam to display in my application no problem(if the webcam is on my computer), does anyone know a way to access a webcam if the cam is on a network and not on the computer the application is running on.
Thanks

Accessing Webfolders Through VB
Hey all!

I've got a question. I searched the forum but couldn't find anything suitable...

The question: does anyone know how to acces webfolders through VB?
I tried using the commondialog, but retrieving the .filename and .filetitle gave me something like this:

.filename = [file in temp. internetfiles]
.filetitle = [http://www.server.com/dir/subdir/filename]

But messing with this information doens't give me acces. I can browse around through the commondialog but can't copy files to the webfolders through VB

Any help is welcome!

Port Accessing ?????
hi guru s

I need to access an electric door lock through a vb programme. simply i want to pass an electric signal out from a port.
which port is the best for this job ?
how do Code for that ??
Pls help me !!!!


thanks

Accessing Race
I want to design a program that accesses a website and replicates the action of clicking on a link, and have it do this every 10 minutes(so i can basically push my skill level up in a game online),is this possible with vb?

Accessing USB Port Through VB
HI VB gurus!
I'd like to use USB communication in my application. Main GUI of this program is in VB. Now a question arises - how could i acces an USB device in VB?
At first i need only simplex data transfer - from the sensor to PC.
Communication speed is relatively slow (9600bd if in compared to RS232).
Any hints?

Accessing POP Account....
Hi...

i m trying to retrieve the email addresses from a POP account like Yahoo....but unable...to do it..

Can someone suggest me a way to do so...

Accessing TextFields In VBA
Hi I'm totally frustrated with my program. I created 160 TextBoxes in a word document. With the help of the good folks on this site, I finally found a way to access the textBoxes. I'm using the index of each control for access.

The problem is, the index is not equal to the name of the textbox. For example: I expected TextBox1 to have an index(1) and textbox2 to have index(2) and so on; it does not happen that way.

They are all out of wack. The indexing donot go in order. Does anyone have any ideas that may help me?

Thanks

Accessing Checkbox Value
How can I access the value of a checkbox that is not part of a form from a macro (not the checkbox's own private sub)?

Accessing A Website From VBA
Hi,

I'm trying to read some HTML data from a website - specifically I have the captions from the "news" section on my website show on the main login form in an Access DB I use.

Basically, I've currently got the data coming from a text file - I'm storing the headlines in a textfile on a server all machines on my network can access - but we need to roll-out the application for users who don't have access to this shared drive - so I'll be posting the headlines/news on a secure section of a website they can all access.

The website is password protected - the url to get to the page would be something like this: http://www.mysite.com/app_news_headl...ryan&pass=pass - the script makes a session cookie when the user logs in.

Can anyone help me with this problem? IE point me in the general direction of a component or something that can do what I required? It's pretty simple to access as static HTML page via VB/VBA (I've done that in the past), but I've never been able to do it with the session-variable login kinda website..

BTW I can't change the site - it's "company policy" for everything to be in PHP, and I'm not going to be responsible for the site itself......

Cheers in advance.

Copyright © 2005-08 www.BigResource.com, All rights reserved