VS 2005 MultiThreaded Server Socket: From Console To Windows Applications?

Nov 23, 2011

I would like to make a multi-socket TCP server (to accept multiple clients at the same time).I'm working with Visual Studio 2005 Express, maybe that's why files on CodeBank don't work..I found on the web an example about MultiThreaded Server Socket programming, but this is done for "Console application" in this way:

[Code]...

View 7 Replies


ADVERTISEMENT

Info: Multithreaded Server Socket Program Or Client/Server?

Oct 26, 2011

I made a simple TCP server (I've found the example on the web) in VB to receive data from about 40 TCP clients.The clients are not synchronized but sends data about every 18 minutes; the problem is sometimes several clients sends data at the same moment, so I can't receive data.I also made a second program that reads the data (server program writes data on a file, read from the second program) scheduled.

My question is this: I've seen on the web examples about Multithreaded Server Socket Program, so I suppose this could manage my 40 clients (but now the clients are syncronized and send data at the same time in client mode) or is better get data (I have a central client that asks data to all 40 devices in server mode)?

Second question: can I make a single program where I run both TCP client and TCP server at the same time?

View 1 Replies

Registry Program - Moving Applications From Windows 2000 To New Server Windows 2003 ?

Feb 7, 2010

I am working on moving applications from Windows 2000 to new server Windows 2003 R2(64 Bit). I noticed that there are some VB programs and config files for those programs have been placed in Windows 2000 Registry. Some other applications are using them from different servers.Why do we use registry here? How can i move these to registry in windows 2003? Can I just move these or do I have to write VB programs to place them in 2003 registry?

View 1 Replies

Socket Server, Windows Form App?

Jun 7, 2010

i took this code from another example, it works fine but it a windows console application.i took the code into a windows form app but it looks like i have to change somethingto start, it says client is not defined, so what should i use?lient.startClient(clientSocket, Convert.ToString(counter))

Dim serverSocket As New TcpListener(8888)
Dim clientSocket As TcpClient
Dim counter As Integer

[code].....

View 4 Replies

Windows Service Running Socket Server On Specified Port (Secured)

Jun 30, 2010

I wanted to know what are the risks of opening up a socket server on a specified port? Right now I have it limited to only accept requests from 1 specific IP to that port and all the other ones get rejected (using the windows firewall), is there a way to implement an authentication or anything else so I can allow it to be accessed from any IP worldwide yet have it secured?

View 1 Replies

(Vs 2010) Applications Stop Using Windows Server 2008

Jul 22, 2010

I migrated some applications from Visual Studio 2005 to Visual Studio 2010. I develope using VB.NET in VISUAL STUDIO 2010 on a Windows 7 PC (32 bit). The applications writed in VB.NET - VS2005 run correctly in PC having XP, VISTA, WINDOWS 7 and Windows Server 2008. After the migration, the exe of these applications work correctly in PC having XP, Vista, Windows 7 but work stop immediatly on Windows Server 2008. The error returned is 'System.InvalidOperationException'. Seems that the application stop when attempt to evaluate the first global variable that meets. If i change the framework from 2.0 to 3.5, things don't change.

[Code]...

View 3 Replies

Identify Connection Lost Between Socket Server And Socket Client?

May 21, 2011

I wrote a Socket Client which will send the Socket Server some data and get some response from Server. This process will be running once in every 2 seconds.

Now what I need to know is How we can identify the connection lost between Server and Client?

I need this to be implemented in the Client side. If there is no connection then Client should automatically close the connection. Once the connection with the server is available in the next attempt it should connect automatically.

View 1 Replies

VS 2005 Use A Console Window To See Data On A Windows Form Application?

Sep 1, 2009

I have a form program that runs long, and for kicks I was wondering if I could out put some data to a "real console" -not the Console useing the Output debugger.

View 8 Replies

Getting A Console Based Socket App?

Aug 3, 2009

i have made a console based socket program in vb.net, all it does 2 things:

1- server shows a msgbox when the command msg is sent from the client

2- the server opens the cd try when the command open is sent form the client

when i run it , i type the command open and works just fine , the cd tray opens , but if i type open again or msg it simply wont do anything(this also applies for the command msg, if type it a msg is shown, but if i type it agine or open , it wont respond. so its like one command per session. i tried to put the code in a while loop , but didnt work?

here is the code for the server:

Imports System.IO
Imports System.Net.Sockets
Module Module1

[code]....

View 2 Replies

Unable To Use A Console Based Socket App ?

Aug 2, 2009

i have made a console based socket program in vb.net, all it does 2 things:

1- server shows a msgbox when the command msg is sent from the client

2- the server opens the cd try when the command open is sent form the client

when i run it , i type the command open and works just fine , the cd tray opens , but if i type open again or msg it simply wont do anything(this also applies for the command msg, if type it a msg is shown, but if i type it agine or open , it wont respond. so its like one command per session.i tried to put the code in a while loop , but didnt work

here is the code for the server:

Imports System.IO
Imports System.Net.Sockets
Module Module1

[code]....

View 1 Replies

VB 2005 - Sync Lock In Multithreaded Programs

May 16, 2010

I have been reading through lots of sample code and explainations regaurding the uses of Sync lock in multithreaded programs but still am a little fuzzy on this.

Am I correct in assuming that if I have two or more threads running the same procedure which has a sync lock on a shared resource that the first thread to call the lock will complete its update of the resource and any of the other threads to try and lock this object would just wait in line until it is released by the first object?

I am also a bit fuzzy on what is actually locked by the sync lock.

Lets say I have code that uses sync lock and the object specified is the current thread. Does that also lock the shared resources that are referenced within the sync lock block or would I need to use another method to do this?

What if my shared resourses were all in another class and I issue a sync lock on that class before I try to modify the resources would that be the proper way to go about it?

And last but not least is there any need to use sync lock when the shared resource is in effect read only [meaning the program will read the value but will not change it during runtime]

View 8 Replies

Control Console Applications?

Jul 15, 2011

how can I control and use already compiled console applications with VB.Net? I would like to be able to pass parameters to the console app, as well as be able to hide and close command prompt widow (as ordinary users would probably get scared/confused from seeing it). Perhaps it is possible to integrate the command application into my VB.Net executable?

View 1 Replies

Add Hotkey Functions In Console Applications

Nov 25, 2009

I want add hotkey functions in my console applications.[code]How I can add two or more keys as shortcut?

View 2 Replies

Console Application Versus GUI Applications?

Aug 9, 2010

I have a few questions regarding the GUI applications.I am aware that Console applications are non-event based programs which do not have the pretty GUI interface.Having done C/C++ on *nix with a main() as the entry point and in Windows 3.1 with WinMain as the entry point into the application, I am trying to figure out the entry point into the VB application.

View 4 Replies

Get The Current Mouse Coordinates On The Console Applications?

Jul 13, 2010

i am trying to get the current mouse coordinates on the console applications that the mouse is moving on. is there a way to find this values. Than possibly how can we turn this values to row col values related to the console window

View 1 Replies

Made 2 Separated Applications A Console Applicaton?

Aug 23, 2009

okay now i made 2 seperated applications a console applicaton that runs the server and a form application that runs the client! now if i want to make a 3rd windows form application with 2 bottons one to start the server "witch is a console appliaction"! and 1 botton to start the server "witch is a windows form appilaction" how do i do that? i have been driving my self insane trying to do this!

View 2 Replies

OpenFileDialog Equivalent Code For Console Applications?

Apr 26, 2012

In the GUI world, OpenFileDialog provides one stop shopping for the user to select the drive, the folder and then the file.Has anyone seen a set of code to implement this functionality (although obviously one value at at time /select drive/selectfolder/select file) in a console application?

View 1 Replies

Shared Subroutine Library For Console Applications?

Sep 29, 2009

VB.net newbie question: I am writing a number of console applications, all of which need to use a set of common functions and subroutines that are compiled directly into the applications, not into a separate DLL.

I assume that each separate console application needs to be a separate project, and that the commonly used functions and subroutines need to be in a separate module, but how can such a module be shared between multiple projects so that only one copy of the shared module and its code is required, without creating a separate DLL?

View 2 Replies

VS 2008 : Killing External Console Applications?

May 19, 2009

I am developing an application which launch an external windows app, ei called APL.exe Also, this APL.exe launch two console utils, ie. named CON1.exe and CON2.exe I would like to know if is there any way, after APL.exe has died, of killing CON1.exe and CON2.exe, because there is a small possibility that they will not died completly after APL.exe has exited.Also there is another requirement. My final app version could be executed twice in the same machine, so there could be two instances of CON1.exe and CON2.exe, and because this I need a way to kill them not by process name, but knowing which of them has been launched by my current application instance.

View 5 Replies

Connect Different VB Applications To A Database Server.like Accessing Data From One Database By Different Applications?

Aug 15, 2011

how to connect different vb applications to a database server.like accessing data from one database by different applications...

View 4 Replies

VS 2005 Windows Server 2008 Compatibility?

Feb 23, 2010

I have a VB.NET executable program that I've been running nightly as a Windows Scheduled Task on a Windows Server 2003 machine. I have the source code, and it was compiled using VS 2005. Now I want to run it on a Windows Server 2008 R2 machine. If I try to "open" it from Windows Explorer, I get "The version of this file is not compatible with the version of Windows you are running." It is in Program Files(x86), so doesn't the OS know to run it as a 32-bit application? Do I have to load this in VS2008 and recompile it there as a 64-bit app? But all my old VB6 and VBScript scheduled tasks are running fine, why is the OS only complaining about this program?

View 1 Replies

Windows App Created In 2005 With Sql Server Backend?

Apr 24, 2012

I have a windows app created in 2005 with sql server backend. There's also a web service that is located on a web server at a hosting facility. In my app, when ever it needs to interact with the data, it calls the web service.Ive been having this issue with several screens that Ive developed in .Net. The user enters a date, and saves to the database. When the datagridview is refreshed, the date that they entered always displays one day earlier. Eg. If they entered 4/18/2012, it displays as: 4/17/2012.

The date is correct in the database. I verified that the problem resides on the web server. The default timezone set on the server is GMT -06.00 Central Time(US and Canada) and it cannot be changed on the shared server. The time zone where I'm at is Pacific Standard time. I'm not sure the best way to deal with this issue. Here's one way I was thinking: Retrieve today's date from the server (don't know how to do this), and compare it to the date on my machine so I know the difference. Then, when I'm looping through the datatable, add this same number to the dates to display correctly. Maybe it's better to retreive it from the database via the sql?

View 13 Replies

Access Remote Sql Server 2005 Work On Windows 7

Dec 21, 2011

how can i access remote sql server 2005 work on windows 7 ? and in the seem time i donot like turn off firewall .

and how i can make sql server listen to it port 1433

View 6 Replies

Mass Email Using Sql Server 2005 In Windows Form

Jun 29, 2009

I am doing a project on sending mass email. My codes should be able to read contacts/email from the SQL Server 2005 database and send mass email with attachments.Below are my codes for sending email. My windows application limitation is that it can only send email from a valid email address to a valid address one at a time with the help of a relay server. Also, it doesn't allow the user to attach attachments and could not read from the sql server database.[code]

View 1 Replies

Mass Email Using Sql Server 2005 In Windows Form?

Jun 29, 2009

I am doing a project on sending mass email. My codes should be able to read contacts/email from the SQL Server 2005 database and send mass email with attachments.

Below are my codes for sending email. My windows application limitation is that it can only send email from a valid email address to a valid address one at a time with the help of a relay server. Also, it doesn't allow the user to attach attachments and could not read from the sql server database.[code]...

View 7 Replies

VS 2005 Find Files In A Server In A Windows Service?

Mar 26, 2009

I use VB.net to create a Windows Service . its job is to connect a server ( for exemple \10.10.10.10ox named P: and collect files .but the problem is the result of mapping the server ( Dir P: = "" ) return nothing i don't find my files !!!Do i have to use the ftp in windows service ?? because when i use a windows form apllication there is no problems and I find all the files

View 3 Replies

[2005](Windows) Server.Mappath - Access A File

Feb 3, 2009

I am trying to access a file using the following

CODE:

However I am getting the following error: "Object reference not set to an instance of an object."

View 3 Replies

.net - Identify Memory Leaks In Windows Application Using Sql Server 2005?

Dec 15, 2010

what is the best way to identify memory leaks from a vb.net 3.5 windows application.

View 1 Replies

Deploy 2005 With Crystal Report 9 On Windows Server R2 2008 X64

Dec 1, 2011

My problem is, when deploy vb.net 2005 with crystal report on Windows Server R2 2008, the report can't load it show blank. i'm using AxCRViewer91 component.

the DLL's;
AxInterop.CRVIEWER9Lib.dll
Interop.CRAXDRT.dll

Is it compatible on Windows Server R2 2008 x64?

View 1 Replies

Insert Xml Data To Sql Server 2005 Table Using Windows Form?

Jan 23, 2012

I have exported data from a SQL Server table into a XML file and the output looks like this:

Filename = 11190.xml
Table name = LRTest
<NewDataSet>

[Code].....

Now I want to save the above XML file into my SQL Server 2005 table

With the same columns using vb.net windows forms, in every exported xml file there are 100 to 200 records. .

View 1 Replies







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