Click here to Skip to main content
15,925,250 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I use WSAStartup() in C# ?? Pin
IrishSonic16-Aug-03 22:22
IrishSonic16-Aug-03 22:22 
GeneralDEPLOYMENT Pin
eggie515-Aug-03 22:56
eggie515-Aug-03 22:56 
GeneralRe: DEPLOYMENT Pin
apferreira16-Aug-03 3:22
apferreira16-Aug-03 3:22 
GeneralRe: DEPLOYMENT Pin
eggie516-Aug-03 12:20
eggie516-Aug-03 12:20 
GeneralAccessing protected members Pin
Alex Korchemniy15-Aug-03 19:23
Alex Korchemniy15-Aug-03 19:23 
GeneralRe: Accessing protected members Pin
Nnamdi Onyeyiri16-Aug-03 22:22
Nnamdi Onyeyiri16-Aug-03 22:22 
GeneralRe: Accessing protected members Pin
Alex Korchemniy18-Aug-03 6:02
Alex Korchemniy18-Aug-03 6:02 
Generalfileshare Pin
grv57515-Aug-03 18:49
grv57515-Aug-03 18:49 
I'm creating a file in a dll with:

invoke CreateFile, addr logfile, GENERIC_READ or GENERIC_WRITE, FILE_SHARE_READ or FILE_SHARE_WRITE, 0, CREATE_ALWAYS, 0, 0

and then trying to open it for read access with:

fs = new FileStream("whlog.log", FileMode.Open, FileAccess.Read, FileShare.Read);

which always gives me:

An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll

Additional information: The process cannot access the file "C:\<path>\whlog.log" because it is being used by another process.

What gives?
GeneralRe: fileshare Pin
Ista16-Aug-03 16:23
Ista16-Aug-03 16:23 
GeneralRe: fileshare Pin
Anonymous25-Aug-03 10:25
Anonymous25-Aug-03 10:25 
GeneralRe: fileshare Pin
Ista25-Aug-03 15:11
Ista25-Aug-03 15:11 
Generalgetting attribute values from AssemblyInfo.cs Pin
zuhx14-Aug-03 9:47
zuhx14-Aug-03 9:47 
GeneralRe: getting attribute values from AssemblyInfo.cs Pin
Burt Harris16-Aug-03 15:58
Burt Harris16-Aug-03 15:58 
GeneralCopying data to bytes for sockets Pin
NorthWoodsman14-Aug-03 9:35
NorthWoodsman14-Aug-03 9:35 
GeneralRe: Copying data to bytes for sockets Pin
Rein Hillmann15-Aug-03 23:14
Rein Hillmann15-Aug-03 23:14 
GeneralProgramaticaly select a listview item Pin
Manster14-Aug-03 8:31
Manster14-Aug-03 8:31 
GeneralRe: Programaticaly select a listview item Pin
Ista14-Aug-03 8:36
Ista14-Aug-03 8:36 
GeneralRe: Programaticaly select a listview item Pin
Manster14-Aug-03 8:50
Manster14-Aug-03 8:50 
GeneralRe: Programaticaly select a listview item Pin
Bo Hunter14-Aug-03 9:00
Bo Hunter14-Aug-03 9:00 
GeneralRe: Programaticaly select a listview item Pin
Manster14-Aug-03 9:12
Manster14-Aug-03 9:12 
GeneralRe: Programaticaly select a listview item Pin
Csharp™14-Aug-03 9:23
Csharp™14-Aug-03 9:23 
GeneralRe: Programaticaly select a listview item Pin
Manster14-Aug-03 9:33
Manster14-Aug-03 9:33 
GeneralRe: Programaticaly select a listview item Pin
Bo Hunter14-Aug-03 9:53
Bo Hunter14-Aug-03 9:53 
GeneralRe: Programaticaly select a listview item Pin
Furty15-Aug-03 18:35
Furty15-Aug-03 18:35 
GeneralRe: Programaticaly select a listview item Pin
Ista14-Aug-03 10:05
Ista14-Aug-03 10:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.