473,695 Members | 2,675 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to "Map" a Network drive using Visual Basic

I have written the following VBScript program. It is stored into a
file "map_drive.vbs" . It successfully mapped to a network drive
\\server1\data.

Dim WshNetwork
Set WshNetwork = WScript.CreateO bject("WScript. Network")
sPwd = inputbox("Enter password")
WshNetwork.MapN etworkDrive "J:", "\\server1\data ", false,
"xyz_net\Jo hn", sPwd
Msgbox "Drives has been map successful"

Could anyone teach me how to convert it to a Visual Basic program such
that it can be compiled to an .exe file?
I tried to use Active X Control – Windows Script Control 1.0. But I
couldn't make it work. Perhaps, I do not know how to use the Script
Control, or it is a totally wrong approach. It will be nice if you can
give Step-by-step instructions.
Please help. Thanks a lot.
Jul 17 '05 #1
8 50581
No idea for the wscript object, but I can give you the API code for VB to
map/unmap drives and a whack of others ..
http://vbnet.mvps.org/code/network/netconnect.htm

--

Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.
"Alex Ang" <Al*******@yaho o.com.sg> wrote in message
news:13******** *************** ***@posting.goo gle.com...
: I have written the following VBScript program. It is stored into a
: file "map_drive.vbs" . It successfully mapped to a network drive
: \\server1\data.
:
: Dim WshNetwork
: Set WshNetwork = WScript.CreateO bject("WScript. Network")
: sPwd = inputbox("Enter password")
: WshNetwork.MapN etworkDrive "J:", "\\server1\data ", false,
: "xyz_net\Jo hn", sPwd
: Msgbox "Drives has been map successful"
:
: Could anyone teach me how to convert it to a Visual Basic program such
: that it can be compiled to an .exe file?
: I tried to use Active X Control  Windows Script Control 1.0. But I
: couldn't make it work. Perhaps, I do not know how to use the Script
: Control, or it is a totally wrong approach. It will be nice if you can
: give Step-by-step instructions.
: Please help. Thanks a lot.

Jul 17 '05 #2
Alex, it very similar to the vbscript you have already,

Dim WshNetwork ' COULD SET AS TYPE: OBJECT otherwise its a variant
Set WshNetwork = CreateObject("W Script.Network" ) ' THIS LINE DIFFERS
SLIGHTLY: Note the CreateObject
msgbox("Enter password")

WshNetwork.MapN etworkDrive "J:", "\\server1\data ", False, "xyz_net\Jo hn",
sPwd
MsgBox "Drives has been map successful"

Set WshNetwork = Nothing ' BEST TO RELEASE THE OBJECT (FREE UP RESOURSES)

hope it helps
al.
"Alex Ang" <Al*******@yaho o.com.sg> wrote in message
news:13******** *************** ***@posting.goo gle.com...
I have written the following VBScript program. It is stored into a
file "map_drive.vbs" . It successfully mapped to a network drive
\\server1\data.

Dim WshNetwork
Set WshNetwork = WScript.CreateO bject("WScript. Network")
sPwd = inputbox("Enter password")
WshNetwork.MapN etworkDrive "J:", "\\server1\data ", false,
"xyz_net\Jo hn", sPwd
Msgbox "Drives has been map successful"

Could anyone teach me how to convert it to a Visual Basic program such
that it can be compiled to an .exe file?
I tried to use Active X Control - Windows Script Control 1.0. But I
couldn't make it work. Perhaps, I do not know how to use the Script
Control, or it is a totally wrong approach. It will be nice if you can
give Step-by-step instructions.
Please help. Thanks a lot.

Jul 17 '05 #3
Thanks Alan, my program can run now. :)
Thanks Randy for your suggestion too.

I have another question regarding Dim. Why can't I do the following.
Dim WshNetwork As WScript.Network
‘Compile Error: User Defined Type Not Define

However the following is all right.
Dim WshNetwork As Object ‘NO error.
Set WshNetwork = CreateObject("W Script.Network" )

I was trying the above because I did something similar that make use
of "Excel" object. The VB code is as follows:
Dim XLObj As Excel.Applicati on
Set XLObj = CreateObject("E xcel.Applicatio n")

To make the above VB code run without error, I also need
to configure the VB project to include "Excel" as follows.
1. Project>Referen ces to open the References dialog box.
2. select "Microsoft Excel 9.0 object library"

I did not manage to find a corresponding object library (i.e.
WScript.Network ) in VB>Project>Refe rence.
I feel that it is important to understand this to improve my
programming skill and write better program. Pls help. Thank you very
much.

"Alan Barker" <Az*****@hotmai lREMOVEME.com> wrote in message news:<c9******* ***@sparta.btin ternet.com>...
Alex, it very similar to the vbscript you have already,

Dim WshNetwork ' COULD SET AS TYPE: OBJECT otherwise its a variant
Set WshNetwork = CreateObject("W Script.Network" ) ' THIS LINE DIFFERS
SLIGHTLY: Note the CreateObject
msgbox("Enter password")

WshNetwork.MapN etworkDrive "J:", "\\server1\data ", False, "xyz_net\Jo hn",
sPwd
MsgBox "Drives has been map successful"

Set WshNetwork = Nothing ' BEST TO RELEASE THE OBJECT (FREE UP RESOURSES)

hope it helps
al.
"Alex Ang" <Al*******@yaho o.com.sg> wrote in message
news:13******** *************** ***@posting.goo gle.com...
I have written the following VBScript program. It is stored into a
file "map_drive.vbs" . It successfully mapped to a network drive
\\server1\data.

Dim WshNetwork
Set WshNetwork = WScript.CreateO bject("WScript. Network")
sPwd = inputbox("Enter password")
WshNetwork.MapN etworkDrive "J:", "\\server1\data ", false,
"xyz_net\Jo hn", sPwd
Msgbox "Drives has been map successful"

Could anyone teach me how to convert it to a Visual Basic program such
that it can be compiled to an .exe file?
I tried to use Active X Control - Windows Script Control 1.0. But I
couldn't make it work. Perhaps, I do not know how to use the Script
Control, or it is a totally wrong approach. It will be nice if you can
give Step-by-step instructions.
Please help. Thanks a lot.

Jul 17 '05 #4
Alex Ang wrote:
Thanks Alan, my program can run now. :)
Thanks Randy for your suggestion too.

I have another question regarding Dim. Why can't I do the following.
Dim WshNetwork As WScript.Network
‘Compile Error: User Defined Type Not Define
Select "Windows Scripting Host ..." in Project -> References.

Change your code to

Dim WshNetwork As WshNetwork
Set WshNetwork = New WshNetwork

or shorter:

Dim WshNetwork As New WshNetwork
However the following is all right.
Dim WshNetwork As Object ‘NO error.
Set WshNetwork = CreateObject("W Script.Network" )

I was trying the above because I did something similar that make use
of "Excel" object. The VB code is as follows:
Dim XLObj As Excel.Applicati on
Set XLObj = CreateObject("E xcel.Applicatio n")
For shorter,
Dim XLObj As New Excel.Applicati on
To make the above VB code run without error, I also need
to configure the VB project to include "Excel" as follows.
1. Project>Referen ces to open the References dialog box.
2. select "Microsoft Excel 9.0 object library"
CreateObject() just makes it possible to use objects only at run-time
without the reference library at design time. There is no practical
difference when the program is running.
I did not manage to find a corresponding object library (i.e.
WScript.Network ) in VB>Project>Refe rence.
I feel that it is important to understand this to improve my
programming skill and write better program. Pls help. Thank you very
much.


To use WScript.* and Scripting.* objects, reference "Windows Scripting
Host".

--
Olof Lagerkvist
ICQ: 724451
Web page: http://here.is/olof

Jul 17 '05 #5
Alex, you can reference the Wsh Object just like you did with the Excel
object. The reference is
Windows Script Host Object Model
and can be found lurking towards the bottom of the references list.

Its a little different than using the createobject method earlier but with
the Intellisense now working (because you have told VB what type of object
it is) you will find it a lot easier.
The network object is WshNetwork so; your code should now resemble

Dim a As WshNetwork

Set a = New WshNetwork
a.MapNetworkDri ve "I:", \\server\folder , False, "domain\usernam e",
"password"

Set a = Nothing ' clean up

------------------------
to further your understanding, when you use the createobject function it
asks the system to do a lookup for any installed ActiveX components with the
name 'wscript.networ k'. This list is in the HKey Classes Root hive of the
registry (do a search with regedit). In this key it will point to the
wshom.ocx in the system folder. This file is the same file you 'reference'
when you use the alternate method above.

Because you already 'reference' the wshom.ocx you need not call the
createobject function: you are telling VB in advance what object you are
going to create, this is known as early binding.

both methods have the same result but the one above is much faster.

if you need any further info just ask,
al.
"Alex Ang" <Al*******@yaho o.com.sg> wrote in message
news:13******** *************** **@posting.goog le.com...
Thanks Alan, my program can run now. :)
Thanks Randy for your suggestion too.

I have another question regarding Dim. Why can't I do the following.
Dim WshNetwork As WScript.Network
'Compile Error: User Defined Type Not Define

However the following is all right.
Dim WshNetwork As Object 'NO error.
Set WshNetwork = CreateObject("W Script.Network" )

I was trying the above because I did something similar that make use
of "Excel" object. The VB code is as follows:
Dim XLObj As Excel.Applicati on
Set XLObj = CreateObject("E xcel.Applicatio n")

To make the above VB code run without error, I also need
to configure the VB project to include "Excel" as follows.
1. Project>Referen ces to open the References dialog box.
2. select "Microsoft Excel 9.0 object library"

I did not manage to find a corresponding object library (i.e.
WScript.Network ) in VB>Project>Refe rence.
I feel that it is important to understand this to improve my
programming skill and write better program. Pls help. Thank you very
much.

"Alan Barker" <Az*****@hotmai lREMOVEME.com> wrote in message

news:<c9******* ***@sparta.btin ternet.com>...
Alex, it very similar to the vbscript you have already,

Dim WshNetwork ' COULD SET AS TYPE: OBJECT otherwise its a variant
Set WshNetwork = CreateObject("W Script.Network" ) ' THIS LINE DIFFERS
SLIGHTLY: Note the CreateObject
msgbox("Enter password")

WshNetwork.MapN etworkDrive "J:", "\\server1\data ", False, "xyz_net\Jo hn", sPwd
MsgBox "Drives has been map successful"

Set WshNetwork = Nothing ' BEST TO RELEASE THE OBJECT (FREE UP RESOURSES)
hope it helps
al.
"Alex Ang" <Al*******@yaho o.com.sg> wrote in message
news:13******** *************** ***@posting.goo gle.com...
I have written the following VBScript program. It is stored into a
file "map_drive.vbs" . It successfully mapped to a network drive
\\server1\data.

Dim WshNetwork
Set WshNetwork = WScript.CreateO bject("WScript. Network")
sPwd = inputbox("Enter password")
WshNetwork.MapN etworkDrive "J:", "\\server1\data ", false,
"xyz_net\Jo hn", sPwd
Msgbox "Drives has been map successful"

Could anyone teach me how to convert it to a Visual Basic program such
that it can be compiled to an .exe file?
I tried to use Active X Control - Windows Script Control 1.0. But I
couldn't make it work. Perhaps, I do not know how to use the Script
Control, or it is a totally wrong approach. It will be nice if you can
give Step-by-step instructions.
Please help. Thanks a lot.

Jul 17 '05 #6
Alan, Thanks for the explanation. :) Now, I can tell the differences
in VB code between "late binding" and "early binding".

However, I'm afraid I still do NOT understand the following.
Example 1:
Why it should be -
Dim a As WshNetwork
NOT - Dim as As WScript.Network ‘user define type error

Example 2: The Excel object can be Dim in both ways without errors.
Dim XLobj As Excel.Applicati on
‘Dim XLobj As Application is ok too.

Set XLObj = New Excel.Applicati on
‘Set XLObj = New Application is ok too

Why does Excel.Applicati on can be Dim in either ways? Whereas
WshNetwork cannot?

Based on "Windows Script v5.6" documentation" download from MS web
sit, I thought it should be "WScript.Networ k". This is because the
documentation shows the following diagram for the "Windows Script Host
Object Model". See diagram below.

The Windows Script Host object model consists of 14 objects.
The root object is the WScript object.

WScript
!
+-----WshArguments
!
+-----WshController
!
+-----WshNetwork

Based on the above diagram, I will write the following VB code.
WScript.WshNetw ork
because WScript is the ROOT and it contains WshNetwork.

Note: I have this "understand ing" of writing VB code in
objectX.objectY .property - "Object hierarchy" (nested object) - from
some ADO programming experience such as the following:
adoFriends.Reco rdset.MoveLast

I guess I do NOT have adequate understanding on "Object Hierarchy"
etc. Hence, it gives me many problems when writing VB code that duels
with Objects hierarchy, etc.
Pls help. Thanks a lot.

"Alan Barker" <Az*****@hotmai lREMOVEME.com> wrote in message news:<c9******* ***@sparta.btin ternet.com>...
Alex, you can reference the Wsh Object just like you did with the Excel
object. The reference is
Windows Script Host Object Model
and can be found lurking towards the bottom of the references list.

Its a little different than using the createobject method earlier but with
the Intellisense now working (because you have told VB what type of object
it is) you will find it a lot easier.
The network object is WshNetwork so; your code should now resemble

Dim a As WshNetwork

Set a = New WshNetwork
a.MapNetworkDri ve "I:", \\server\folder , False, "domain\usernam e",
"password"

Set a = Nothing ' clean up

Jul 17 '05 #7
> However, I'm afraid I still do NOT understand the following.
Example 1:
Why it should be -
Dim a As WshNetwork
NOT - Dim as As WScript.Network 'user define type error

Example 2: The Excel object can be Dim in both ways without errors.
Dim XLobj As Excel.Applicati on
'Dim XLobj As Application is ok too.

Set XLObj = New Excel.Applicati on
'Set XLObj = New Application is ok too

Why does Excel.Applicati on can be Dim in either ways? Whereas
WshNetwork cannot? Based on "Windows Script v5.6" documentation" download from MS web
sit, I thought it should be "WScript.Networ k". This is because the
documentation shows the following diagram for the "Windows Script Host
Object Model". See diagram below.

The Windows Script Host object model consists of 14 objects.
The root object is the WScript object.

WScript
!
+-----WshArguments
!
+-----WshController
!
+-----WshNetwork

Based on the above diagram, I will write the following VB code.
WScript.WshNetw ork
because WScript is the ROOT and it contains WshNetwork.

Note: I have this "understand ing" of writing VB code in
objectX.objectY .property - "Object hierarchy" (nested object) - from
some ADO programming experience such as the following:
adoFriends.Reco rdset.MoveLast

I guess I do NOT have adequate understanding on "Object Hierarchy"
etc. Hence, it gives me many problems when writing VB code that duels
with Objects hierarchy, etc.
Pls help. Thanks a lot.
<snip>

when you use the createobject function you need specify what COM server you
are starting and what object you are going create from that server.
so in this case using the createobject method you will specify the COM
server: Wscript and then the Object from the server: WshNetwork hence
Wscript.WshNetw ork.
however; when using visual basic you create a 'reference' to the WScript
object in the references page. The object may be Called 'Windows Script Host
Object Model' and have a filename of wshom.ocx but it is the Wscript object.
Because you have now added a reference to this object within VB you no
longer need to prefix any of its objects with the name so Wscript.WshNetw ork
becomes WshNetwork.

CreateObject does not use the look at the references in VB so you need still
need to provide the full object hierarchy.
As for the Excel example; This is a little more tricky. You are correct,
declaring Excel.Applicati on or just Application on it's own has the same
effect; this is because although Excel appears in the list of types when you
declare it cannot be declared alone i.e. Dim obj as Excel. The reason for
this is that Excel here is a Type or object library *containing* the type
Application. Also because the Excel object is now referenced in VB it also
just displays the Excel Objects. My bet is if you were to also add a
reference to MS Word in the project as well you would have TWO 'Application'
Types listed Together. You would not be able to distinguish the two (and
neither would VB) try it:

Add a reference to MS Word and MS Excel

Dim ExcelObj As New Application '<- Select first from type list
Dim WordObj As New Application '<- select second from type list

Debug.Print ExcelObj.Name
Debug.Print WordObj.Name

You will notice the same name, so change the declares to

Dim ExcelObj As New Excel.Applicati on
Dim WordObj As New Word.Applicatio n

Now you have the desired result.

Your object hierarchy understanding is perfectly ok.

finally, returning to Why it should be -
Dim a As WshNetwork
NOT - Dim as As WScript.Network 'user define type error


it can be, but...
unlike the Excel Library above, for some reason Microsoft did not name
the WScript library 'WScript' but Instead named it 'IWshRuntimeLib rary' !

so (eventually)
Dim obj as new IWshRuntimeLibr ay.WshNetwork

--------------------------------
Hope I didn't confuse,bore,ov er complicate etc
any further info just ask,
Apologies for the size of post,

Al.
Jul 17 '05 #8
Alan, Thanks for the explanation. :) Now, I can tell the differences
in VB code between "late binding" and "early binding".

However, I'm afraid I still do NOT understand the following.
Example 1:
Why it should be -
Dim a As WshNetwork
NOT - Dim as As WScript.Network ‘user define type error

Example 2: The Excel object can be Dim in both ways without errors.
Dim XLobj As Excel.Applicati on
‘Dim XLobj As Application is ok too.

Set XLObj = New Excel.Applicati on
‘Set XLObj = New Application is ok too

Why Excel.Applicati on can be Dim in either ways? Whereas WshNetwork
cannot?

Based on "Windows Script v5.6" documentation" download from MS web
sit, I thought it should be "WScript.Networ k". This is because the
documentation shows the following diagram for the "Windows Script Host
Object Model".

The Windows Script Host object model consists of 14 objects.
The root object is the WScript object.

WScript
!
+-----WshArguments
!
+-----WshController
!
+-----WshNetwork

Based on the above diagram, I will write the following VB code.
WScript.WshNetw ork
because WScript is the ROOT and it contains WshNetwork.

Note: I have this "understand ing" of writing VB code in
objectX.objectY .property - "Object hierarchy" (nested object) - from
some ADO programming experience such as the following:
adoFriends.Reco rdset.MoveLast

I guess I do NOT have adequate understanding on "Object Hierarchy"
etc. Hence, it gives me many problems when writing VB code that duels
with Objects hierarchy, etc.
Pls help. Thanks.

"Alan Barker" <Az*****@hotmai lREMOVEME.com> wrote in message news:<c9******* ***@sparta.btin ternet.com>...
Alex, you can reference the Wsh Object just like you did with the Excel
object. The reference is
Windows Script Host Object Model
and can be found lurking towards the bottom of the references list.

Its a little different than using the createobject method earlier but with
the Intellisense now working (because you have told VB what type of object
it is) you will find it a lot easier.
The network object is WshNetwork so; your code should now resemble

Dim a As WshNetwork

Set a = New WshNetwork
a.MapNetworkDri ve "I:", \\server\folder , False, "domain\usernam e",
"password"

Set a = Nothing ' clean up

------------------------
to further your understanding, when you use the createobject function it
asks the system to do a lookup for any installed ActiveX components with the
name 'wscript.networ k'. This list is in the HKey Classes Root hive of the
registry (do a search with regedit). In this key it will point to the
wshom.ocx in the system folder. This file is the same file you 'reference'
when you use the alternate method above.

Because you already 'reference' the wshom.ocx you need not call the
createobject function: you are telling VB in advance what object you are
going to create, this is known as early binding.

both methods have the same result but the one above is much faster.

if you need any further info just ask,
al.
"Alex Ang" <Al*******@yaho o.com.sg> wrote in message
news:13******** *************** **@posting.goog le.com...
Thanks Alan, my program can run now. :)
Thanks Randy for your suggestion too.

I have another question regarding Dim. Why can't I do the following.
Dim WshNetwork As WScript.Network
'Compile Error: User Defined Type Not Define

However the following is all right.
Dim WshNetwork As Object 'NO error.
Set WshNetwork = CreateObject("W Script.Network" )

I was trying the above because I did something similar that make use
of "Excel" object. The VB code is as follows:
Dim XLObj As Excel.Applicati on
Set XLObj = CreateObject("E xcel.Applicatio n")

To make the above VB code run without error, I also need
to configure the VB project to include "Excel" as follows.
1. Project>Referen ces to open the References dialog box.
2. select "Microsoft Excel 9.0 object library"

I did not manage to find a corresponding object library (i.e.
WScript.Network ) in VB>Project>Refe rence.
I feel that it is important to understand this to improve my
programming skill and write better program. Pls help. Thank you very
much.

"Alan Barker" <Az*****@hotmai lREMOVEME.com> wrote in message

news:<c9******* ***@sparta.btin ternet.com>...
Alex, it very similar to the vbscript you have already,

Dim WshNetwork ' COULD SET AS TYPE: OBJECT otherwise its a variant
Set WshNetwork = CreateObject("W Script.Network" ) ' THIS LINE DIFFERS
SLIGHTLY: Note the CreateObject
msgbox("Enter password")

WshNetwork.MapN etworkDrive "J:", "\\server1\data ", False, "xyz_net\Jo hn", sPwd
MsgBox "Drives has been map successful"

Set WshNetwork = Nothing ' BEST TO RELEASE THE OBJECT (FREE UP RESOURSES)
hope it helps
al.
"Alex Ang" <Al*******@yaho o.com.sg> wrote in message
news:13******** *************** ***@posting.goo gle.com...
> I have written the following VBScript program. It is stored into a
> file "map_drive.vbs" . It successfully mapped to a network drive
> \\server1\data.
>
> Dim WshNetwork
> Set WshNetwork = WScript.CreateO bject("WScript. Network")
> sPwd = inputbox("Enter password")
> WshNetwork.MapN etworkDrive "J:", "\\server1\data ", false,
> "xyz_net\Jo hn", sPwd
> Msgbox "Drives has been map successful"
>
> Could anyone teach me how to convert it to a Visual Basic program such
> that it can be compiled to an .exe file?
> I tried to use Active X Control - Windows Script Control 1.0. But I
> couldn't make it work. Perhaps, I do not know how to use the Script
> Control, or it is a totally wrong approach. It will be nice if you can
> give Step-by-step instructions.
> Please help. Thanks a lot.

Jul 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1871
by: AES/newspost | last post by:
I'd like to generate a site map or some kind of cascaded outline or tree diagram of a web site stored in a folder on a Mac under OS 9, showing the file names and the links or hierarchical relations between them. Is there a free-standing tool or a not too expensive HTML editor that will do this, or is this capability built into any other apps? Again, this is on Mac OS 9, and my current toolkit consists of Netscape 7.0 and BBEdit (plus...
7
3601
by: William Payne | last post by:
Hello, I have a variable of type unsigned long. It has a number of bits set (with set I mean they equal one). I need to determine those bits and their position and create new numbers from them. For example, consider this four-bit number: 1100 from this number I want to extract two numbers: 1000 and 100 had the four-bit number been 0101 I would want to extract 100 and 1. How should I do this? I wish I had some code to post but I don't...
1
3044
by: Mosher | last post by:
Hi all, is there a good way to have a popup window appear using Javascript and the html "map" tag? Here is my code: <map name="navigation"> <area shape="rect" coords="5,57,45,70" href="index.php" alt="Home"> </map> I would like to have this link be a Javascript "onclick" type popup function with no scrollbar, etc.
5
2271
by: Diwa | last post by:
Does the "value" type (value as in key-value pair )of "std::map" require a default ctor even if it is not used ? If I comment out Line 1 in the code attached later, i.e remove the default ctor of "value" type of map, I get the following error: // -------------------------------------------- /usr/include/c++/3.2.3/bits/stl_map.h:225: no matching function for call to `FieldType::FieldType()'
3
1924
by: Thembi | last post by:
I wanna know if ,the map stores sorted data or not.
1
2017
by: siva07 | last post by:
Hi experts i want get a folder which is outside the root directory that is i use as a private directory help me Thanks
4
2184
by: tshad | last post by:
How can I fix this error? I am on an XP and tried to right-click the uploads folder to find the security tab, but it isn't there. In IIS6, I have write access checked. How can I give ASPNET write access to this folder? Thanks,
2
5564
by: moodyman13 | last post by:
Hi all, Hoping someone can help me. I'm using WSH to automatically map a network drive when someone opens a webpage. Below are the codes <HTML> <Body> <script language="VBScript" type="text/vbscript"> Option Explicit On Error Resume Next
0
1207
by: William Manley | last post by:
Lately I've been thinking of trying to make a map for a game I play. The current maps are all images, they are basically just tiles each. I'd want to be able to have each tile its own small image so i could show information about it. I was wondering if there is any already developed software that would make this easier. Someone told me to try out pygame, but I've never dealt with it so I don't really know how it works, what the interface is...
0
9132
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9004
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8864
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8838
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5842
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4351
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3024
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2288
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1986
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.