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




How To Get Name Of All Lan Cards From System With List Of Each IP Associated With Lan Card


Hello Friends,
I am new in vb code ,Can anybody point me in the right direction of some code that i could use to .

Return name of lan cards in the system with a list of each IP associated with each along with a flag as public or private .
And also display the active lan card.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Get Name Of All Lan Cards From System With List Of Each IP Associated With Lan Card
Hello Friends,
I am new in vb code ,Can anybody point me in the right direction of some code that i could use to .

Return name of lan cards in the system with a list of each IP associated with each along with a flag as public or private .
And also display the active lan card.

Card Games - Checking Which Cards Have Already Been Dealt.
So, let's say I wanted to make an online card game. Simple enough, right? I can do the graphics, the server is ready, the faces/profiles (see my Face Maker! ) are decent... but before I begin programming, say, Bridge, I need a little help on dealing the cards.

My first thought was to simply randomly assign a value & suit to each card as it was dealt. Unfortunately, there might be four or five Queen of Hearts by the time I was done dealing.

My second idea was to keep a boolean 'already dealt' array going - whenever a card was randomly selected, the program would check the array to see if it were already dealt. If it had already been dealt, then it would select a different, random card. If it hadn't been dealt, then the card would be dealt, and the boolean array updated.

The problem with the second option is that once you've dealt 51 cards from the deck, the game is probably going to select many, many random cards that will be rejected (because they've already been dealt) before the final card is randomly selected. This makes the poor server work harder than it should.

So... has anyone ever used a better way to deal cards? =)

Urgent - Creating A Card Game With CARDS.DLL, I Dont Know Where To Start!?
hey,

im creating a card game known as * * * *head (or Palace), im considering using this cards.dll file, or cards32.dll for all the images etc. however I do not know how to incorporate it into my project, or exactly what it will do.

This project is really important as its a big chunk of my coursework this year.

Your help would be REALLY appreciated

Iain

Setting Cards In A Rank To Declare Winner In A Card Game
I am writing a card game called Euchre in which trump changes from hearts, clubs, spades, and dimonds in no particular order. The Jack of the declared trump is the highest followed by the Jack of the same color then Ace, King, Queen, 10, and 9 of the chosen suit. Players declare trump before the game begins. My problem is when a person has played a card how do I compare the other players cards to decide who wins? Any suggestions would help thanks.

Complicated Card Game With A Limited Number Of Cards And Computer Generated Players
I am trying to simulate computer generated players and I don't really understand how to get VB to recognize the cards in the players hands and not shown to others. Plus the computer has to know what card to play. Also I want VB to compare the cards in each players hands to determine the winner. Any suggestions or hints would really help thanks.

POS System With Reward System (RFID Card)
HI folks...


I'm currently intend to develop a customer/reward system that capture the amount purchase each time.
The membership card is a RFID card, i will used a desktop reader to read the card.
But the problem is, POS system have been used. So,how am i going to read the amount purchase from the POS system to my reward system. Is not a good pratice to let the cashier to key keyin the amount munaully.

Anyone can give me some advice..? like how to reside the vb system into POS..., or others good method to do it so that cashier have the easy way to do the daily task....

Thanks in advance..


=Elvis=

File System Object And Wild Cards
Hi

Hope someone can help

I am using FSO.getfolder to try and pick up a folder using a wild card.

I have tried to use the

Folder = dir(path & "*", vbdirectory)

but when the directory I am trying to pick up has an all numeric name this returns a preiod "."

And when using

FSO.getfolder(path & "*")

I get a path not found error although

FSO.getfoler(path & "00001")

Works ok

Anyone know a way around this any help greatly appriciated.

Thanks

John

How To List Network Internet Cards Into Combobox ?
Can someone tel me how to list List Network Internet Cards (NIC) into a combobox

List Of Sound Cards By WaveIn And Wave Out ID's
Does anyone know how I can get a list of soundcards in the system by their Wave In and Out Id's??


Thanks
Rick

How Do I Get The Mac Address Of The Network Card In My System
Thanks!

Looking for an api call, should be able to handle it from there.

Smart Card Building System
I am doing a system called Smart Card Building System. It is use for building security. To avoid unauthorised ppl from unentering building or certain level of the building.
so the carrier of the card, of course have to wear it when entering the building.. a device will detect the card which the carrier is having in certain distance and will open the door just in time for the person to get in the building or levels.

I have to design the interface using Visual Basic. The interface would have to come first before designing the card. it means that what are the information that i have to put in the system for the device to recognise the card and open the door.
so the question are how to design the interface..what fields or attributes will the interface carries? and what information will the database have? can u help by giving some guidelines?
over in Malaysia, my country ...we dun have a lot of these systems around...
i am a bit lost in doing my work....
Please, if anyone who read this and knows bout it..please do guide me through this....
i appreciate all your help.

Thank you

Playing Mp3 Or Wav With 2 Sounds Cards Using API MCI (How To Select One Of The Cards
I have two sounds cards in my system and I need to know how to select one of them to play mp3 or wav files all of this with Api mci.
I use the mciSendString Api function that I suppose you already know to play these files but i can't find a function to select one of the sounds cards and play alternately.
Any help will be appreciated. Thanks in advance.

Painting Corners Of Cards With Cards.dll
First I would like to thank all of the people who have posted answers on this forum. I use to code VB 5.0 back in college. I hadn't done any VB since 98 or so. Just stated with VB .NET 2003 a couple of weeks ago and have been searching this form all the time. Lots of my questions where answered by just searching.

My current project is a solitaire game for my dad. I wrote on in 5.0 (lost the source code) and now reduing it again in .NET a few years later. I am using cards.dll after reading this post. Everything is ok other then the fact that the corners of the cards are always white. I need to change the color of the corners depening on where the card is. I don't remember having this problem before. I believe that if I could set the corners to transparent then every thing would work fine. Does anybody know how to do that? Otherwise I will have an ugly solitare game or have to paint the corners manually.

Thanks in Advanced,

Landon

File List Wild Card
I have a drive list, a directory list, and a file list. in my project.
I know that you can use a wild like this,,,
FileList1.Pattern = "*.jpg"

Does anyone know if you can add more than 1 wild card? because I would like the user to be able to view all picture types that the Windows Picture Viewer allows, not just .jpg

I thought about adding .jpg, .bmp, etc... option buttons but my form doesnt have enough room on it.

List The Datasource Name In The System In A List Box
DSN- data source name. There may be a number of data source name in a system to establish ODBC connectivity. Now all that i need is i should display all the DSN names in my system in a list box in the form and should be able to select one from that rather than hard coding one particular DSN name in the code

Brawl Card Game In VB (Card Deck Questions)
I wanted to make a TCP/IP online version of the card game Brawl by cheapass games.

I have some general questions, as I've been a VB programmer for 2-3 years, but haven't done much (anything) with game programming, or objects. (I was taught in college procedurally, so my Object creation isn't what is needs to be in my opinion.)

The short explanation of brawl (card-questions to follow) is this...

2 Players each with a 35 card deck which consists of the following cards:
Bases: Use to start a pile
Hits: (coming in 3 colors Red, Green, Blue)
Blocks: (also in the 3 colors) These stop your oppoent from playing anymore hits on a pile
Press: (3 colors) counters the effect of a block
Freeze: Freezes a pile

You have up to 3 piles (which must start with a Base Card, the base card can only be played if there are less than 3 piles), and then play Hits on your end of the base in hopes of getting more hits on the base than your opponent does. Once a pile is frozen, you count up the hits, and whoever has more wins the base.
Whoever wins more bases, wins the game.
Blocks will prevent the opponent from playing any more hits on that pile. (can only be played on a Hit)
Presses will undo the effects of the block (can only be played on a Block)
So you have up to 3 piles to play on, and each player has a discard pile (which they can play the top card of, instead of the top card on their deck).


Ok, now the questions...

I have a Card Class which has:
Color: (red, green or blue)
Type: (hit, block, base, press, freeze)
Number: The number of this card in the deck. You may have for example, 8 Blue Hits, 2 Red Hits, 4 Green Hits, 2 Bases, 2 Blue Blocks, 1 Blue Press, etc.

Deck Class which has:
Array of Card (1 to 35)
Current: Pointer to the array slot holding the top most card.

Is the right way to do the deck really an array with a pointer? I'd need a Deck class for the Deck to draw from, an initialy empty deck to use as a discard pile as wel.

I was debating making the deck class in a collection instead of an array, but you really won't ever have more than 35 cards in the deck.

Now for each of the 3 piles, you could theoretically have between 0 and infinity (if I allow more than 2 players to play).

Comments?

How Can I Retrive The Infomation Of A Video Card && Sound Card?
Friends,

Is there any possibility to retrive the information of a Video Card & Sound Card? Please help.

Determining Credit Card Vs. Debit Or Check Card
There are many functions available that implement credit card identification
and number validation -- meaning you can decide, based on the number, if a
card is a MasterCard or Visa and if the number passes the Luhn Formula or
MOD 10 algorithm for the checksum. What I'm looking for however is the
scheme to determine is a card is a check or debit card versus a credit card.

Anyone know if this can be done by examining the account number pattern?

Thanks,

-Bill

How To Print Employee Card On Card Printer In Vb
Hi,

i got a problem of printing employee card on card printer (e.g. Fargo printer).. in Visual Basic Code
i am developing (almost developed) a card designing software which require to print business card on card printers . It has option like both side printing or one side, thickness of card, overlay etc..
i don't know how to print the card with following options after being selected by user...


waiting for respose..

thanking in advance..

Khurram

Winsock And Directory List Box To Get Directory List Of A Remote System
hi,
I am using winsock control to transfer the items listed in a directory listbox, to display the list of folder names.The problem is if we move to c:dir1dir2dir3 then again come to c: i am still getting the directory list of c:dir1dir2dir3 .All the changes are done in the directory list box by coding.

List All System DSN's
Hi,

How can i list all the system DSN's to check if a specific one is configured?

Thanks.

Joćo Pinto

Get List Of ONLY System DSN's
Hello,

I have used a code example that I have seen in many threads on this site to get a listing of DSN's off my system. The link to that page is below:

http://www.codeguru.com/vb/articles/2035.shtml

However, I need to get a list of ONLY system DSN's.. I don't want all the rest that this code returns. Can anyone help me out? Also, once I have the list can I open a connection through ADO with just the DSN name that is returned when I have the list of System DSN's?

If I am unclear on something just let me know. Thanks up front!!

Dallas

System DNS List
Hi All

I have to show the list of System DSNs in system,is there any control like common dialog .

Thanx in advance

How To Print Card On Card Printer , Plz Help
Hi everybody,

I have been searching for its help , i am workig on a project which require me to print card on card printers..

My application does print on laser , inkjet etc..
but does not print on card printer... i am using vb win api code to print and get printer properties..

but for card printer how i it will be done...
plz help,

anxiously waiting for respose.

Khurram

"if any expert who can give me his email for vb consulting , i shall be very thankful....
because
on every new day i gets vb problem in my breakfast.

Getting The Available Software List From The System
Hi,

Here i am facing one problem anybody can help pl.
Actually my problem is that i have to get all the software installed in the system into my vb application.how can i get all the softwares list.

Here i did by capturing the control panel - add/remove program - install tab.when i ececute this one using shell function i am getting this tab and its focusing to install button. below that button all the softwares list installed in that system is exists how can i get that list into my application.


Pl anybody knows this one help me.is there any other way to solve this probelm.pl help me

Thanking you

Raghava

List All The Processes Running On The System
I want to write a service that logs the duration of execution of some specifice applications. That is it records the log in the time when they start and log out time when they terminate.

USMAN

How Do You List Running System Processes?
Is their a way to list the running system processes (as in taskmanager) with VB?
If its not to difficult could you show me?

Thanks for your help guys.

How Can I Get A List Of All The Fonts Contained On The System...
How can i get a list of all the fonts contained on the system to appear in a menu or list box like MS Word has?

List Of Non System Tables In Access Using Vb
i need immediately help for the retrive tablename from access. it works finely but i get list of system table also with the user table i need only user table. so plz help me to get only user table

Get The List Of Running Application In The System
Hi

Is there a way to get the list of running application in the system? Also i should able to get the other info. similar to the info. available in the Task Manager service.



Thanks.

List Of Know File Type In The System
Here's an Example I just put together..

Add a Listbox and Picturebox to a Form..

Code:
Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long
Private Declare Function RegEnumKey Lib "advapi32.dll" Alias "RegEnumKeyA" (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpName As String, ByVal cbName As Long) As Long
Private Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Private Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long
Private Declare Function DrawIconEx Lib "user32" (ByVal hdc As Long, ByVal xLeft As Long, ByVal yTop As Long, ByVal hIcon As Long, ByVal cxWidth As Long, ByVal cyWidth As Long, ByVal istepIfAniCur As Long, ByVal hbrFlickerFreeDraw As Long, ByVal diFlags As Long) As Long
Private Declare Function ExtractIcon Lib "shell32.dll" Alias "ExtractIconA" (ByVal hInst As Long, ByVal lpszExeFileName As String, ByVal nIconIndex As Long) As Long

Private Const HKEY_CLASSES_ROOT = &H80000000

Private aIcons() As String

Private Sub Form_Load()
Dim sType As String 'Ext.
Dim sName As String 'Name of File Type
Dim sFile As String 'File Used For Default Icon
Dim iIndex As Integer
Dim lRegKey As Long

List1.FontName = "Courier"
iIndex = 1
sType = Space(255)
'Enumerate all Extensions in the CLASSES Hive..
Do While RegEnumKey(HKEY_CLASSES_ROOT, iIndex, ByVal sType, 255) = 0
If Left(sType, 1) <> "." Then Exit Do
'Store Icon Info in an Array Linked by ListIndex
ReDim Preserve aIcons(iIndex - 1)
sType = Left(sType, InStr(sType, Chr(0)) - 1)
'Get this Extensions Name, eg - .zip = WinZip
If RegOpenKey(HKEY_CLASSES_ROOT, ByVal sType, lRegKey) = 0 Then
sName = Space(255)
Call RegQueryValueEx(lRegKey, ByVal "", 0&, 1, ByVal sName, 255)
If InStr(sName, Chr(0)) Then sName = Left(sName, InStr(sName, Chr(0)) - 1)
Call RegCloseKey(lRegKey)
If Len(Trim(sName)) Then
'Look for a Default Icon for this Type..
If RegOpenKey(HKEY_CLASSES_ROOT, sName & "DefaultIcon", lRegKey) = 0 Then
sFile = Space(255)
Call RegQueryValueEx(lRegKey, ByVal "", 0&, 1, ByVal sFile, 255)
If InStr(sFile, Chr(0)) Then sFile = Left(sFile, InStr(sFile, Chr(0)) - 1)
Call RegCloseKey(lRegKey)
aIcons(iIndex - 1) = sFile
End If
End If
End If
List1.AddItem Left(sType & Space(10), 10) & " - " & sName
sType = Space(255)
iIndex = iIndex + 1
Loop
End Sub

Private Sub List1_Click()
Dim sFile As String
Dim iIndex As Integer
Dim lIcon As Long

Picture1.Cls
On Error GoTo IconErr
'Get the Icon from the File Stored in the Array for this File Type
sFile = Left$(aIcons(List1.ListIndex), InStr(aIcons(List1.ListIndex), ",") - 1)
iIndex = Val(Mid$(aIcons(List1.ListIndex), InStr(aIcons(List1.ListIndex), ",") + 1))
lIcon = ExtractIcon(App.hInstance, sFile, iIndex)
Call DrawIconEx(Picture1.hdc, 0, 0, lIcon, 32, 32, 0, 0, 3)
IconErr:
End Sub


------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net

List Of All The Process Runing On The System
Hello to all of you,
 I am developing an application in VB.
In that application what I have to do when computer starts it automatically starts running and make a log file about all the running programms on the computer just like task manager in windows.

Any idea, clue or coding is welcome.

thanks in advance.



Anjali

Edited by - anjish on 3/11/2006 12:31:49 AM

List All The Items In The System Tray
Hi.

Is it possible to get a list of the items in the system tray?

Or better still, it is possible to make a program that takes over from the system tray - accepting all the Shell_NotifyIcon requests, and displaying their icons?

If you haven't guessed, i'm trying to make a shell... but i'm being stumped by how to get the icons in the system tray to show up in my little picturebox i set aside for the systray area... lol. It just suddenly struck me, that I don't know how to go about doing it - would it be API? would it be an inbuilt VB function? would i have to write a new sub for it...? lol you get the idea.

Thanks in advance,
Alex



Edited by - anderwill2002 on 4/13/2004 10:24:06 AM

Country List From System Registery?
Hi, how to get all country list from the system registery?
(Using VB Program)

In Registery,

Quote:
HKEY_LOCAL_MACHINE - Software - Microsoft - Windows - CurrentVersion -Telephony - Country List


Best of Luck,
Kartheeee...

Edited by - kartheeee on 9/23/2006 6:52:46 AM

How To Read List Of Existing DSN's In The System Using VB
i need to read all existing DSN's in the system into my Visual Basic 6.0 application..i dont want to use any .NET framework classes for accomplising this..how to accomplish this using VB 6.0?

List Of Non-system Table ...No Read Permission
Hi all,

I have to get the list of Nonsystem table in the listview.

I have tried :
Sub SQL_ListUserTables()
Dim cn As adoDb.Connection
Dim rs As adoDb.Recordset
Dim strSQL As String

Set cn = New adoDb.Connection
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0; " & _
"Data Source=C:MyDB.mdb;"
strSQL = "SELECT Name FROM MSysObjects WHERE Flags = 0 AND Type = 1"

Set rs = cn.Execute(strSQL)
Do While Not rs.EOF
Me.List1.AddItem rs.Fields(0)
rs.MoveNext
Loop

rs.Close
Set rs = Nothing
cn.Close
Set cn = Nothing
End Sub

But this code generates following error:

Record(s) cannot be read; no read permission on 'MSysObjects'.

Thanks.

Retrieve List Of NICs Installed In System
If anyone has the code to retrieve the NAMES of the installed network adapters, I would appreciate it....

I have the code to retrieve the IP addresses and MAC addresses, but the name is the only thing left

better yet, if you know of where to get code to perform functions similar to WINIPCFG, that would be great!

Thanks

Tom

How Can I Get A List Printer Name Of System? Resolved---Thanks Vikramjb So Much
Hi, Everyone.

How can I get a list printer name of system ?
I want to add them a combobox like some application print image.

Plase help me.
Thank you so much
Best regards,






Edited by - phuongnam3000 on 1/5/2005 12:33:33 AM

How Do I Associate System Image List To ListView Control In VB6
Hi,

Can anyone tell me how do I associate system image list to a listview control so that I'm able to get correct icons for files and folders.

Regards,
Piyush

How To Get The List Of Database Driver Names, Installed In The System?
Hai,

The following API gets the list of DSN and the driver name, but not all the driver names installed in the system. Only those drivers are listed which do have a DSN.

SQLDataSources(lHenv, SQL_FETCH_NEXT, sDSNItem, 1024, iDSNLen, sDRVItem, 1024, iDRVLen)

But how can i access the list of all the database driver names installed in the system.

Hoping for an early reply,
Thanks,
Srinivasan.

#File System Objects .... Auto LIST Not WORKING! How Do I Enable It?#simple Question
hi

im learning VB and the FileSystemOBject. im interacting with text files at the moment... but this FSO does not prompt me for the autolists which prompt you while your typing code. i hope u get me....

i gone to Project>>References and select Microsoft Scripting too... but still does not work? WHY?

is there anyway to enable it or is it never there?

thx

TCG With X No. Of Cards
Hi
Im trying to make a TCG (card game), I was wondering how you could show each card you hold in your hand without using a picture box per card?
The number of cards in hand is usually 7 but can be unlimited sometimes.

The card must be able to disappear (discard/removed), if possible: drag & drop and rotate 90 degrees.

Currently I have 2 pictureboxes (per card) representing the card and a image on the card.

-----------------------------------------------------------------

Oh, and this game has lots of different card that affects the game, is it a better idea to code each effect or write every possible parts of each effect and call what the effect uses up?

Any ideas?
Thanks in advance

Using Cards.DLL
how would i call up a card (doesnt matter which, we'll use Ace of Spades) into an image control using Cards.DLL (its filename its c:windowscards.dll, and we can assume the image is named image1)

Cards
I've heard that there's some dll file that I can access with all of the card images and stuff in it. Where do I learn how to call this file and use the cards in it?

Jacob Sheehy
http://www.sheehy.ca

The more I C, the less I see.

Using Vb Cards
I have just started using vb cards for visual basic 6.0 and I am having great difficulties with it is there a website or anything that can help me work with them?


Thanks

Cards Dll
Hi folks,

I'm trying to make a card game with home made cards. I've seen cards.dll of windows and it is very handy. How can i make a DLL with my own cards (so the dll must include picture and some data of a card) can someone give me a starter or a tutorial about this ?

Cards.dll
Does anyone have any info on the file cards.dll that used to (and might still) come with Windows for all the card games that come with Windows like Solitaire? Is it possible to use that dll in my card programs?

Cards.dll
Im using the same version of cards.dll on two different computers. My home computer which uses windows XP displays the cards correctly on screen for my blackjack game. The machine in school which I copied cards from my machine to so it would be the same version only displays 4 small dots, when on mine it would display a card, The other computer is in school but I don't see why it is not working as my code is the exact same?

ID Cards
Out team is looking at doing ID cards for our customers. We want them to look like an insurance card or driver license without the picture. Any ideas of software or any tools that do this?

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