CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: riscutiavlad

Page 1 of 5 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    5
    Views
    4,196

    Re: DWM Managed API

    I didn't realize the file can no longer be downloaded. I contacted SkyDrive support regarding this.

    In the mean time, I moved the DWM.dll to FileBox. Please try the link again as you should now be...
  2. Replies
    11
    Views
    1,742

    Re: float representation

    Amazon. For a book on algorithms and data structures and a book on C# programming.
  3. Re: trailing zero in memory stream

    The method you are calling returns the buffer of the MemoryStream. The trailing zeros appear because the buffer of the MemoryStream object is larger than its content.
  4. Replies
    6
    Views
    1,030

    Re: going back to basics

    You can see the list of C# operators here: http://msdn.microsoft.com/en-us/library/6a71f45d(VS.80).aspx

    All operators in the form something= (except >= and <=) are translated from

    a...
  5. Replies
    5
    Views
    1,222

    Re: Syntax Highlighting

    I never said it was impossible, I just said it's not optimal. But even if you decide to use regular expressions for analyzing the text, the bigger problem is using the richtextbox for drawing it.
  6. Replies
    5
    Views
    1,222

    Re: Syntax Highlighting

    If you want a good syntax highlighting component, you have to do a bit of work. First, it's not advised to process the text using regular expressions. When applying highlighting, the text must be...
  7. Re: Queston on C# Garbage Collection/Destroying Objects

    The Garbage Collector will destroy only the objects to which no reference exists - if you remove the object from the list and you don't keep another reference to it, it will be destroyed.
    ...
  8. Replies
    5
    Views
    4,196

    Re: DWM Managed API

    No problem.

    Just... tell your friends :)
  9. Replies
    4
    Views
    2,746

    Re: Embedded Image thumbnails - how?

    Unfortunately, .NET doesn't help you in any way with that. If you just want to load a thumbnail, you need to read the binary file yourself and, as you said, determine the location of the thumbnail...
  10. Replies
    12
    Views
    12,383

    Re: "Modern" style MessageBox

    It depends. All wrappers are built over WinAPI imports so there is no strict requirement for .NET 3.0. If you get the wrapper with source code and it doesn't use any fancy new features of .NET 3.0 it...
  11. Replies
    5
    Views
    4,196

    DWM Managed API

    I hope this is the right forum.

    A while ago I wrote a C# wrapper over Windows Vista's Desktop Window Manager API to be used with WinForms.

    I'm giving it away so if anyone wants it, it can be...
  12. Replies
    12
    Views
    12,383

    Re: "Modern" style MessageBox

    The underlying API is called TaskDialog. If you want to use it with WinForms instead of WPF, you need to create a wrapper for it in C# although I bet if you search the web you will find some freeware...
  13. Re: Simple Image Processing causes Program to Crash

    The garbage collector frees up memory whenever it finds an instance somewhere in memory for which there are no references pointing to it.

    You can try the following:
    1. Use UnlockBits after you...
  14. Re: Simple Image Processing causes Program to Crash

    Well consider that for a 800 x 600 frame at 24 bits per pixel you need to store in memory a little over 1 MB. At 400 frames you store more than 400 MB. I don't know if your bitmaps are discarded...
  15. Replies
    7
    Views
    10,545

    Re: Stream Reader/Writer Encoding

    If you want to send/receive files, try using a BinaryReader and a BinaryWriter for this.

    StreamReader and StreamWriters work on text files and only on specific encodings - that's why some text...
  16. Replies
    1
    Views
    712

    Re: Scroll bars for Pictur Box?

    Use HScrollBar and VScrollBar objects. You can link them to the PictureBox like this:

    First, whenever you load a picture - set the dimensions of the scroll bars or enable/disable them.
    ...
  17. Replies
    39
    Views
    10,126

    Re: atomic operation of reference assignment?

    In terms of IL, an assignement isn't an atomic operation per se - foo1 = foo2 can't be translated into a single IL instruction. The CLR works with a stack so all assignements have the form "store the...
  18. Replies
    5
    Views
    897

    Re: lock needed in this scenario?

    Yes, you need a lock. While thread 2 looks up something in the dictionary Dic1, thread 2 shoudln't be able to change the reference of Dic1 to point to Dic2. Same thing the other way around. You need...
  19. Re: About abstract/sealed/virtual/override/new keywords...

    <1> Lots of good anwsers above.

    <2> It depends on the actual needs. If you need members and abstract methods, use an abstract class. If you need a contract use an interface. There is no rule to...
  20. Replies
    3
    Views
    1,241

    Re: System.Windows.Control namespace

    System.Windows.Forms is the namespace used by WinForm projects.
    Windows Presentation Foundation projects use all the other System.Windows.* namespaces, including System.Windows.Controls.
  21. Re: How to create an assignment expression and evaluate it at runtime?

    You can do this using Reflection. To assign a value to a field of an instance of a class, get the field using the GetField method provided by the Type class. Or you can use the GetProperty method to...
  22. Replies
    1
    Views
    654

    Re: a problem about XmlDocument

    The problem is you are not loading any XML file in the xmlDoc object. You just create an instance of XmlDocument

    XmlDocument xmlDoc = new XmlDocument();
    and then you are using doxml.

    string...
  23. Replies
    1
    Views
    698

    Re: Getting contents of a web page

    You can use HttpWebRequest and HttpWebResponse. The first requests a web page over http, the seconde represents the reply. From the reply you can create a stream that will read the content of the web...
  24. Replies
    1
    Views
    662

    Re: couldn't understand syntax

    The above declares and instantiates a dictionary object with string keys and double values, named m_BankBalance.

    The Dictionary class uses generics, meaning that you can provide any types between...
  25. Re: using properties and parameters...newbie question

    As MMH noticed, you get the stack overflow because you are trying to set the given value to the property, not a field.

    Properties usually look like this:


    private string privateMember;
    ...
Results 1 to 25 of 124
Page 1 of 5 1 2 3 4





Click Here to Expand Forum to Full Width

Featured