VS 2010 VB Running Private Servers?

Jul 27, 2010

There are a lot of games that many languages can be coded in.MapleStory, WOW, FlyFF, and more. Can we do this on Visual basic?I mean we can. We just need a packet system, like to send the getHello packets and ****.

View 1 Replies


ADVERTISEMENT

Remoting - Threading Or Running Multiple Servers

Aug 20, 2009

after my last post i dove into remoting to try to solve my performance problem in a client-server fashion.
This works very well, but i come across a big problem which i don't seem to get solved.

I made a well known singleton servicetype on the server that retrieve all customers. Whith 1 db connection this works fine. But very often customers and i use in 1 sql instance multiple databases (for each administration a separate db). so the whole purpose of a singleton object is hereby destroys as soon i connect in my class to a different db. Is there some way to overcome this for example threading or running multiple servers (for each db it's own server-application)?

View 13 Replies

Deleting A File Or Folder On Multiple Servers From A List Of Servers?

Sep 29, 2011

I don't really know how to code but am pretty good at tweaking. I'm trying to set up a script that I can run to delete a single file, multiple files, a folder or multiple folders on a list of servers.I was thinking that the script could read the files to be deleted from a .txt file and apply the deletion to a list of servers in another .txt file.Example:

FilesToBeDeleted.txt:
\(insert_server_name_from_list)c$Program FilesBINexample_file.rpt
or

[code].....

View 1 Replies

VS 2008 Sharing Variables - Private Sub Could Use The Variable Created On Private Sub

Jul 23, 2010

if for example i have two private sub I declared a local variable on private sub a... is there a way that private sub b could use the variable created on private sub a? Im asking because im in a problem in my app were using global variable is not an option to make the long story short

View 5 Replies

VS 2010 - Difference Between Dims, Private Consts Etc

Jul 8, 2011

I always used to define variables like Dim xxxx As yyyyy. In the tutorials I'm looking at though they do Private Const xxxxx As yyyyy. I wonder just what is the difference here? What is the significance of this change? What am I actually doing with 'Dim' and what is this Private Const doing different?

View 12 Replies

VS 2010 : Define IO.FileInfo Object As Private

Apr 23, 2010

In the following code as you see I am defining myFile inside the timer sub; which of course is not a good idea. The FilePath is derived in form load before the timer kicks in. How can I declare myFile globally so it can be used in timer sub as well as in form load?

Private Sub tmrInterval_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrInterval.Tick
Dim myFile As New IO.FileInfo(FilePath)
If myFile.Exists Then
...
...

I want something like this:

Public Class Form1
private myFile As New IO.FileInfo()

'but I do not have strMessageFilePath value yet, that will be achieved in form load.

View 2 Replies

VS 2010 - Private Types In VB - Store X And Y Position Of A Pixel

Jan 20, 2011

In Vb6 you could make a private type by doing the following:

Private Type PointAPI
X As Integer
y As Integer
End Type

Vb.Net doesn't support this. I need it to store the x and y position of a certain pixel. I know i could just declare an x and y variable but i would rather use something like:

xyCentre.X = 5
xyCentre.Y = 10

View 10 Replies

What’s The Difference Between Private Sub And Private Function

Dec 14, 2011

I am completely lost on procedures. Whats the difference bewteen Private sub and private function?

View 1 Replies

Get All Possible Servers On A LAN Network?

Aug 30, 2011

I'm using the details on connecting to a server from a client here: [URL]

It's quite out dated but I just need it for a quick project. I need the client to auto-connect. This program will be running on the LAN only, is there a way to find on what computer the server is running on (i.e. all computers hosting the specific server on port x). I've seen it on a couple of games that run on LAN. Without access to the internet, they manage to display all available games on the local LAN. I'm doing this with VB.net.

View 1 Replies

Get The Disk I/O On Various Servers?

May 22, 2012

I am using the following code to get the Disk I/O on various servers. For now I am just retrieving the DiskReadsPerSec to get a feel for it. The return data gives a uint32 for each drive on the server and a total. My questions is what is the time frame that this represents? Is this at the second that my code polls the drive or is this over the last few seconds or do I need to do multiple runs to get an average.

My intention is to build a graph for each drive so I wonder how often I need to poll the drive to get a acurate value.

Public Shared Function GetDriveIO(ByVal strip As String) As Boolean
Dim oConn As New ConnectionOptions()
Dim lnglist As New List(Of Long)

[Code]....

View 1 Replies

VS 2010 : Program Not Running On Other Pcs?

Jun 14, 2012

I have developed a program with vb2010, created an installer with installaware and installed the program on my develop laptop and on my normal desktop pc (both win 7 64bits, but program runs on 32 bits).So on my laptop it run perfectly, but when I try to run it on my desktop pc, the only thing I see is the admin message (the program needs admin rights) and than nothing happends (even checked the taskmanager, it shows the program for a short while and closes it even as fast as it opens).I don't know what went wrong, the installer checks the framework which is needed (4.0), but I have that already installed on my desktop pc.

View 8 Replies

VS 2010 Get VB To Show Os Running?

Apr 2, 2012

ok what i want to do is for vb to show what os your running like xp vista and stuff like that also i want to make it if they are not running windows 7 they have to install a program but if running windows 7 for the button to be grayed out because they dont need to use it and if they are using xp vista the button will not be grayed out and you are able to click it is this possible.

View 6 Replies

VS 2010 Running A Cmd File Within VB?

Aug 15, 2011

im v ery new to VB, im designing a game launcher within VB and everything is very simply done. I have 4 buttons currently, 3 of them link to websites and work a charm, but what i need is a 4th button to launch a game via a .cmd file. I tried by using simple commands like:

Shell("C:Program Files (x86)NCsoftAtomixatomix.cmd")and Process.Start("C:Program Files (x86)NCsoftAtomixatomix.cmd")

Both of these options worked in executing the .cmd but it caused an error within it. The cmd works perfectly fine when executed manually from its directory but when i try and execute it via the launcher i get an error.

[Code]...

Just tried it with a .bat file also getting the same issue of not being able to find the bin32

View 1 Replies

VS 2010 Running Programs?

Jul 9, 2011

Yesterday I was using VS 2010 just fine, I was doing my code and hitting F5 and if all was right it ran.Today I start up my computer again and load up VS though and...F5 does nothing and the little play button at the top is greyed out. This is the same on any of the programs I open up.How do I let myself test programs again?

View 2 Replies

VS 2010 Running The Program (exe)?

Sep 15, 2011

I have made a program.Copied the .exe file from "...my documents...indebug"onto an External harddisk.But when I put the harddisk into another pc and launch the program.I can not run it!It says something like "Missing .NET framework 04.03...." or something.Do i need to install VB on that pc too?Or do I need to update the framework? I'm tryin to run the program on a pc. Where I got NO admin-rights.

View 11 Replies

Connecting To 10 Mysql Servers

Nov 15, 2010

i am trying to connect to 10 mysql servers and get aprox. 5000 rows. If i make the test from local network it works but if i take the test using mysql servers (same version) from different city it shows me the error "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding".[code]

View 1 Replies

App That Basically Gets Paths To Servers

Oct 12, 2007

I designed an app that basically gets paths to servers I have admin rights to, I am doing such things such as checking available space on the servers etc., the problem I am having is my app only works if I manually login via something like (start, run, \server) and supply my admin username and password just to store that authentication.How do I code this so it prompts the user in my program ONE time for all 5 servers (they all use the same username and password)

View 5 Replies

Click Once With Terminal Servers

May 27, 2010

Can ClickOnce software be ran on a terminal server?

View 3 Replies

Get All Servers From AD And Ping Check?

Feb 1, 2012

A little background, the client that I am working with has an enterprise AD that is a mess. They have no containers for servers or any organization what-so-ever. They also shutdown servers and did not remove them properly from AD. So I needed to come up with a program that would find all the windows server, identify them by OS, and then check to see if they would actually respond to a ping. (I am aware that this is not a perfect method if they are refusing ICMP's but its good enough for my purposes). The completion of the program will display all the information and then allow the user to save the excel workbook in a location that they choose.

vb.net
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click

[code]......

View 4 Replies

Get The List Of All Sql Servers On Machine

Apr 12, 2012

how can i get the list of all sql servers on my machine i am trying this code i have vs 2010 and sqlexpress 2008 r2 i put breakpoints seems everything working fine but its not getting any server i don't know whats wrong with it here is the code on button click this suppose to work to get all servers and list them in the combobox cmbServer [Code]

View 5 Replies

Time - Using .NET To Query NTP Servers?

Jan 15, 2012

As the title describes I am looking for a way to query for the UTC time from NTP/SNTP Servers from 'VB.NET'The only libraries I have found for VB.NET to such tasks appear require a fairly large sum of different forms of currency.

View 1 Replies

Transfer File Between Two Servers?

Mar 11, 2010

How I can send file from server to another server in network??

View 2 Replies

Transferring Data Between Two SQL Servers Using VB?

Jun 12, 2011

The title of this thread perhaps does not explain my problem correctly.Actually i am developing a financial software for a company.The software is similar to a banking system. The software is being developed using VB 2008 and SQL Server 2008.The company has its branches located at different locations. They are having a centralized SQL Server at their Head Office.The branches are connected to Head Office using a VPN.Now what we are worried about is when the VPN gets disconnected.For that we will be having a SQL server installed at each of the branches.When VPN is connected the the details entered will be directly at the Head Office database,Meanwhile a program will be executed which will get details from the Head Office database at each of the branches in a XML file.When a branch gets disconnected from the VPN another program will get the XML details into the Sql Server installed at the branch. When the branch is connected again Another application will create a xml file from the local server and insert its details into the HO server.The sizes of the XML are reaching upto around 150 to 200 mb. I am using Dataset.WriteXML and Dataset.ReadXMl. I have tested this on my local machine it is taking upto 30-40 secs.I dont know how much it will take when the actual application is installed. How can i speed things up ? Does anyone have any idea on how i can do the whole process more smoothly and faster?

View 5 Replies

Use The WTSEnumerateServers API To Get A List Of Servers?

Apr 7, 2011

show me how to use the WTSEnumerateServers API to get a list of servers?

Here is the MSDN page: [URL]

...but I can't figure out the last 2 parameters:

ppServerInfo - Points to an array of WTS_SERVER_INFO structures, which contains the returned results of the enumeration.

pCount - Pointer to a variable that receives the number of WTS_SERVER_INFO structures returned in the ppServerInfo buffer.

View 1 Replies

Web Services And Proxy Servers?

Feb 16, 2010

I have the following code which connects to my webservice online:

Dim c As New com.*********.checkLicense()
c.CookieContainer = New System.Net.CookieContainer()
c.setApplicationGuid("e3b59b3d-4150-4cb0-adda-f5db004f362f")

[code]....

Now what I need to know is, if a user has proxy settings configured in IE, will this code automatically use the proxy?Also what happens when said proxy needs authentication?Anyone know how this can be adapted. I know about the System.Net.WebProxy class, however I would really need this to pick up the settings from IE by default and then if required (and only if required) pop up for proxy authentication.

View 1 Replies

VS 2010 - Running Application In Background?

Jun 2, 2011

Is it possible to start an application not being visible? This application is a batch application and my application would look way better if I could hide this batch.

View 2 Replies

VS 2010 : Running A Flv File In The Form?

Oct 27, 2010

If I have an flv file how can I display the flv to play inside 2010? I tried the web browser function which will display a function like loading the page, but I am only interested in playing the file itself, is there a way to load a specific player that will load the flv file?

View 4 Replies

VS 2010 : Running Dos Console Commands?

Dec 8, 2011

I'm having trouble opening and running DOS commands through VB Express.I'm trying to have VB open a command console and enter path to a batch file. So far I have not been able to get VB to open a console and enter any text.[URL} Here is the code I am using right now (without success)

Private Declare Function GetShortPathName Lib "kernel32" Alias "GetShortPathNameA" (ByVal longPath As String, ByVal shortPath As String, ByVal shortBufferSize As Int32) As Int32
Private Sub des_date_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles des_date.Click

[code]....

View 11 Replies

VS 2010 : Use Controls While A Loop Is Running?

Oct 4, 2011

Basically what I have are two loops, one inside the other, that will run until the given condition is met. Exactly what I want. My problem is that I want to be able to use the controls, like buttons, while a loop is going on.

I originally did not think of this until I had built this part of my program, what I want to know is if there is a way to use controls while a loop is going on or if their is an alternative.

1)I know timers can be used to meet these goals, but they did not work out as I had hoped and using two timers (1 to represent each loop) I do not believe is efficient.

2)I have considered using recursion, but have found this may not be very efficient either and am not quite sure if this will do what I want.

These loops run as long as the number the user inputted. So it could theoretically run for 100,000+ times. I am not looking for speed, but it would be good if there were a faster method that allowed me to use controls while it loops.

View 7 Replies

VS 2010 Check For Running Program

Sep 30, 2011

I need my program to check if a program is running. The program i'm talking about is Need For Speed World. (NFSW).If the program is running then, I want Label1 to say "Running". And if not: "Not Running".

View 11 Replies







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