Click here to Skip to main content
15,914,074 members
Home / Discussions / C#
   

C#

 
GeneralRe: Default Application running path Pin
Dennis C. Dietrich20-Jan-05 13:14
Dennis C. Dietrich20-Jan-05 13:14 
GeneralRe: Default Application running path Pin
Dave Kreskowiak20-Jan-05 13:25
mveDave Kreskowiak20-Jan-05 13:25 
Generalarray of object Pin
NicklasRing20-Jan-05 12:10
NicklasRing20-Jan-05 12:10 
GeneralRe: array of object Pin
Christian Graus20-Jan-05 12:22
protectorChristian Graus20-Jan-05 12:22 
GeneralRe: array of object Pin
Dennis C. Dietrich20-Jan-05 13:28
Dennis C. Dietrich20-Jan-05 13:28 
GeneralRe: array of object Pin
Christian Graus20-Jan-05 13:30
protectorChristian Graus20-Jan-05 13:30 
GeneralRe: array of object Pin
Dennis C. Dietrich20-Jan-05 13:33
Dennis C. Dietrich20-Jan-05 13:33 
Generalwindows application vs console application mode Pin
Pilaf20-Jan-05 9:01
Pilaf20-Jan-05 9:01 
windows application vs console application mode (1/20/2005 12:51:40 PM)

hello I have a following problem,

i am trying to make a windows form app in c# (.net visual studio) which would be using ndis protocol driver,

for this i need to be able to open a driver file with a handle, which i could then use with function DeviceIoControl() to bind the ndis driver handle to the specific nic device

but i cant find functions in form app mode corresponding to CreateFile() returning a handle to a file and DeviceIoControl() (they both work fine in console app mode)
-------------------------------------------------------------------------

No You have something else going on here (1/20/2005 1:56:34 PM)

You can set references and using statements in a Windows Forms app or in a Console App exactly the same. The only difference is the console app has no Windows GUI, and can response to event-driven programming, whereas a console app is basically linear within its Main method.

Better go back and check your code.
-------------------------------------------------------------------------

appearently not, another question:ms-help binding (1/20/2005 2:30:15 PM)

thanks for reply

i also find it strange but it seems that windows form app simply can't use CreateFile() function while the console app can

when you create same basic apps both in console and form mode and put
IntPtr handle = CreateFile() in a constructor in both apps
the compiler in windows form app will throw an error: no such function in namespace

i also have another question about msdn docs
tried almost everything but i am unable to view help in VS or the msdn docs browser
i keep getting the white unable to open page, i suppose it has something to do with ms-help:// binding, maybe its a service which has a problem?


GeneralRe: windows application vs console application mode Pin
Dave Kreskowiak20-Jan-05 13:21
mveDave Kreskowiak20-Jan-05 13:21 
GeneralCheck for DVD-ROM Pin
jooky20-Jan-05 8:24
jooky20-Jan-05 8:24 
GeneralThreadPool ThreadSleep issue. Pin
Tristan Rhodes20-Jan-05 8:03
Tristan Rhodes20-Jan-05 8:03 
GeneralC# bittorrents Pin
kshet2620-Jan-05 7:14
kshet2620-Jan-05 7:14 
GeneralRe: C# bittorrents Pin
Heath Stewart20-Jan-05 7:20
protectorHeath Stewart20-Jan-05 7:20 
GeneralArrayList Pin
Newbie_Toy20-Jan-05 6:17
Newbie_Toy20-Jan-05 6:17 
GeneralRe: ArrayList Pin
Heath Stewart20-Jan-05 7:29
protectorHeath Stewart20-Jan-05 7:29 
GeneralRe: ArrayList Pin
Newbie_Toy20-Jan-05 19:25
Newbie_Toy20-Jan-05 19:25 
GeneralRe: ArrayList Pin
Heath Stewart21-Jan-05 5:53
protectorHeath Stewart21-Jan-05 5:53 
GeneralArray Parameter to Method In COM ActiveX Control Pin
tdciswalker20-Jan-05 5:55
tdciswalker20-Jan-05 5:55 
GeneralRe: Array Parameter to Method In COM ActiveX Control Pin
Heath Stewart20-Jan-05 7:18
protectorHeath Stewart20-Jan-05 7:18 
GeneralI've Seriose Problem.. Pin
Shady Aly20-Jan-05 5:32
Shady Aly20-Jan-05 5:32 
GeneralRe: I've Seriose Problem.. Pin
Heath Stewart20-Jan-05 7:06
protectorHeath Stewart20-Jan-05 7:06 
GeneralOSSOCK::recv bottleneck Pin
iandmcneill20-Jan-05 4:41
iandmcneill20-Jan-05 4:41 
Questionkeep alive error? Pin
Anonymous20-Jan-05 4:30
Anonymous20-Jan-05 4:30 
GeneralListview Pin
Newbie_Toy20-Jan-05 4:19
Newbie_Toy20-Jan-05 4:19 
GeneralRe: Listview Pin
Heath Stewart20-Jan-05 6:59
protectorHeath Stewart20-Jan-05 6:59 

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.