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
G

Gareth_Hastings

@Gareth_Hastings
About
Posts
7
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Return an image to mspaint!
    G Gareth_Hastings

    Hi, Thanks for the idea but I'd like to do this will any registered file format! Not just images (I used that as an example). I have a program that's associated with a file format. When you double click the file from Windows explorer it loads the file from a database using the associated program (eg word for .doc, excel for .xls etc etc) I'm using C# Thanks

    C# database question

  • Return an image to mspaint!
    G Gareth_Hastings

    I've just come over something called a re-parse point! It sounds like something I could use!! Has anyone had any experience with these? http://www.pcguide.com/ref/hdd/file/ntfs/filesReparse-c.html[^] Quote: (From link)

    In addition to allowing reparse points to implement many types of custom capabilities, Microsoft itself uses them to implement several features within Windows 2000 itself, including the following: Symbolic Links: Symbolic linking allows you to create a pointer from one area of the directory structure to the actual location of the file elsewhere in the structure. NTFS does not implement "true" symbolic file linking as exists within UNIX file systems, but the functionality can be simulated by using reparse points. In essence, a symbolic link is a reparse point that redirect access from one file to another file. Junction Points: A junction point is similar to a symbolic link, but instead of redirecting access from one file to another, it redirects access from one directory to another. Volume Mount Points: A volume mount point is like a symbolic link or junction point, but taken to the next level: it is used to create dynamic access to entire disk volumes. For example, you can create volume mount points for removable hard disks or other storage media, or even use this feature to allow several different partitions (C:, D:, E: and so on) to appear to the user as if they were all in one logical volume. Windows 2000 can use this capability to break the traditional limit of 26 drive letters--using volume mount points, you can access volumes without the need for a drive letter for the volume. This is useful for large CD-ROM servers that would otherwise require a separate letter for each disk (and would also require the user to keep track of all these drive letters!) Remote Storage Server (RSS): This feature of Windows 2000 uses a set of rules to determine when to move infrequently used files on an NTFS volume to archive storage (such as CD-RW or tape). When it moves a file to "offline" or "near offline" storage in this manner, RSS leaves behind reparse points that contain the instructions necessary to access the archived files, if they are needed in the future.

    Thanks Gareth

    C# database question

  • Return an image to mspaint!
    G Gareth_Hastings

    Hello, I've been trying to make a program that can basically return the contents of an image to paint via the File/Open dialog. So you'd open Paint, hit file-->Open and then either 1. Select my program which returns an image somehow or 2. Select my file type which does something else! (What I don't know!):confused: What I'd like to do is have a shortcut type program that pulls files from a database rather than the filesystem. Maybe I should be asking how do .lnk files tell paint to get the file from somewhere else? Any ideas? Thanks Gareth

    C# database question

  • Calling a function by it's name which has been stored in a string
    G Gareth_Hastings

    Thanks for the suggestion but unfortunately hardly any of my functions have the same signature!

    C# debugging tutorial question

  • Calling a function by it's name which has been stored in a string
    G Gareth_Hastings

    Hello, I've found in every function I am writing I have lots of debug code and was just wondering if I can somehow shorten it. For example: void testFunction() { try { .... Do something that might cause an exception here } catch(mySpecialException e) { myLogClass.log(e.message); myLogClass.dump; //dumps systeminfo to somewhere } } What I would like is to have some kind of wrapper which I could pass the function name (either by name or as a pointer(delegate?)) to it which would then execute and return. Example: void wrapper(functionToRun()) { try { functionToRun(); } catch(...) { myLogClass.log(message); } } void test() { Console.WriteLine("Hello this is a test!"); } void hello() { Console.WriteLine("Hello"); } static void Main(string[] args) { wrapper(test()); wrapper(hello()); } Any ideas? Thanks

    C# debugging tutorial question

  • Convert some VB code to C#
    G Gareth_Hastings

    Hello, I'm converting some VBS scripts to C# and one of them uses the following lines of code Set MyDCOM = CreateObject("NODMON.NODCLS") retval = MyDCOM.addmsg("", "", 1, Now, 0, 3000, Message) Could someone point me in the right direction for how I should go about converting this? It's mainly the CreateObject statement I'm unsure of!. Thanks

    C# csharp question

  • Class Inheritance
    G Gareth_Hastings

    I'm just starting to get my teeth in to C# and so far I think its going quite well. I used to do quite a bit of coding in Delphi which brings me on to my current problem. In Delphi you used to be able to create your own class using a Thread class as its base example: -------------------------------- TMyClass = Class(TThread) .... Public FVariable : string; End; Var MyClass : TMyClass; MyClass := TMyClass.Create(True); MyClass.FVariable := 'Test'; -------------------------------- MyClass now has all the functions/procedures and variables of a normal thread class. I would like to do the same thing in C# but I can't inherit from system.threading.thread because it's sealed. I suspect there might be another approach to this but I can't find much on google. I guess I am not searching for the right things here. I guess I'm trying to do this the Delphi way when I should be doing them the C# way!!! Any ideas anyone? Thanks

    C# csharp delphi algorithms oop help
  • Login

  • Don't have an account? Register

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