Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Rendili

@Rendili
About
Posts
8
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • GetServices permissions error with Windows2003 SP1
    R Rendili

    ok, thank you, i will think about writing a client service for those servers

    C# sysadmin help

  • GetServices permissions error with Windows2003 SP1
    R Rendili

    Hi, Thank you very much for your reply (and code) It sounds like the only way is to access as a local admin, but we do not want to do this by any method, we are monitoring service status on 80+ servers (not all windows 2003 sp1) and do not want 1 (or any application) knowing local admin password to any of the servers let alone all of our servers Maybe creating a service that runs as system on each of the servers, so that the application asks the service on each server for the status of the required services on that server and the service then queries the services. Did not really want to install any compenent on the servers though. Do you know if running as system would be able to access service information? Thanks for your help

    C# sysadmin help

  • GetServices permissions error with Windows2003 SP1
    R Rendili

    I have been using the following code for a long time to retrieve service information from WinNT 4 server SP6a, Windows2000 (most service packs) and Windows 2003 : ServiceController[] AvailableServices; AvailableServices = ServiceController.GetServices("ServerName"); We have recently just installed SP1 for Windows 2003 on a number of servers and now I get an acces denied/permissions error come back when running the code I have tried most combinations of putting the the network account running the application with the code in to the built in local groups on the remote server and the only combination that works is if i add the network account to the local admin group. Does anyone know if there is a way to allow this to work with out the need for having the network account in the local admin group (we dont really want this on all our servers) Thanks for any help

    C# sysadmin help

  • Accessing objects in resource files
    R Rendili

    OK thanks for all your help I will try getting this working using your original post

    C# question learning

  • Accessing objects in resource files
    R Rendili

    Using win32 resources looks very complicated (looked your url) Maybe I am going about it all the wrong way. What is the best way to use icons and jpgs/bmps in a c# application? Would I need to have seperate files to keep with the exe or can they be embedded into the exe? At the moment I have 6 BMPs that I use in an image list for use on a listview, and at the moment I have the exe and the 6 BMP files in the same folder so i can access them. I also would like to add an icon the exe and the status bar and stop using the default one. Would I need to have seperate file(s) to the exe to allow this? Thanks again for your help

    C# question learning

  • Accessing objects in resource files
    R Rendili

    Thank you very much for your help. I have tried your code, it compiles but I get the error "Stream is not a valid resource file" I created a MyResources.RES file using RC.exe and compiled the app with the following command line : csc /debug- /t:winexe /win32res:MyResources.RES /w:4 /o+ *.cs It seems to embed the resources in the exe as it much larger than if i do not have the /win3res switch any idea why it won't work?

    C# question learning

  • Accessing objects in resource files
    R Rendili

    How do you access jpgs bitmaps and icons in a resource file?

    C# question learning

  • Please could someone help me with the code required to access resources in a res file
    R Rendili

    Hi, Iam just starting to try and use resource files to embed images and icons rather than have them as files that need to be available when running the application. I have tried many different examples of code in my application but can not get any of them to work. The best I have managed is to create the resource file, add some code to the application and compile it without error, when I try to run it I get a : Application has generated an exception that could not be handled error every time. Please could someone point me in the right direction. I have created a 'MyRes.rs' file with the following text : MyResImage1 IMAGE Image1.jpg MyResIcon ICON MyIcon.ICO used rc.exe to build the res file and that created a 'MyRes.RES' file The trouble now is that I do not know how to access the resourse in my application to, for example: use the Image1.jpg in an image list use the MyIcon.ICO as an icon for the application in the status bar Please could someone help (example code, or pointers to example code, would be very helpfull as I am fairly new to C# programming) Thank you Paul -- modified at 15:25 Wednesday 12th October, 2005

    C# help tutorial csharp learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups