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

Search:

Type: Posts; User: petru66

Page 1 of 3 1 2 3

Search: Search took 0.05 seconds.

  1. Replies
    3
    Views
    4,569

    Re: Generics, interfaces and casting

    Thank you very much for your responses! Indeed, I am a total beginner in C# generics (would I ever be otherwise?...), and the impossibility of doing what I thought was right irked me.
    ...
  2. Replies
    3
    Views
    4,569

    Generics, interfaces and casting

    I hope this is the right forum for my question.

    I am trying to write a generic class parameterized by an interface, and to down-cast an instance, but I always get an error. More exactly, I have...
  3. Re: problem when compiling ECMA scripts with VSA JScript engine

    Oh, but they are required to be declared... :(

    I've just discovered (so I must apologize for posting before a thorough documentation) the following:

    "You can declare a variable without using...
  4. [RESOLVED] problem when compiling ECMA scripts with VSA JScript engine

    A part of my current project has to do with running JScripts from .NET. For this I create a VSA Jscript engine, feed it with the scripts, compile and run.

    The problem comes when compiling: all...
  5. Replies
    2
    Views
    4,702

    Function call on proxy (.NET remoting) hangs

    We have two process that communicate via .NET remoting. The server publishes two singletons, on two different TCP server channels. The client connects to them and, as soon as the communication is...
  6. Replies
    1
    Views
    668

    Local threads started remotely?...

    I have two applications connected via .Net remoting. They communicate exclusively via function invocations (on the on the object marshalled by the server, or callbacks in the other direction).

    I...
  7. Replies
    3
    Views
    1,132

    Re: Multiple lines in tooltips

    Sorry, I was not clear. I wanted to ask about the control System.Windows.Forms.ToolTip.

    More precisely, I want to have different texts in the tooltip box for different location on my user control....
  8. Replies
    3
    Views
    1,132

    Multiple lines in tooltips

    Is it possible to display more than one line in a tooltip? It seems that inserting "\n" or "\r\n" does nothing...

    Petru
  9. Replies
    1
    Views
    2,627

    Re: JavaScript: how to do function indirection?

    I've just found out, so here I am posting the answer:


    myObj[objAPI[1]](params);

    Petru
  10. Replies
    1
    Views
    2,627

    JavaScript: how to do function indirection?

    Context:

    I have the definitions of a few JavaScript objects, given as functions. The common pattern is as following:

    function object_type1(args) {
    // ...
    // method definitions
    ...
  11. JavaScript: how to load script from other script

    Hi all,

    It seems that I will always be a beginner.

    My current project requires creating dynamically documents that can be visualized by IExplore (fyi, SVG documents). They have to be created on...
  12. Wiring events to dlls loaded with Reflection

    The context is the following:

    I have an application which loads a dll using reflection. In the dll, I define a delegate and class which has an event. I create an instance of that class. I need to...
  13. Replies
    2
    Views
    631

    It did not. Now it does. No change.

    It did not. Now it does. No change.
  14. Replies
    2
    Views
    631

    Updating windows and threading

    One of the child windows of my application gets updated every tenth of a second. It draws some trajectories.

    The data come from a working thread (which in fact is far away: the values are...
  15. Replies
    8
    Views
    1,054

    Wait, wait! what's that?!? There's a problem...

    Wait, wait! what's that?!?

    There's a problem here! Or at least an inconsistency!

    Here's how I see it:
    All windows must be created in the main thread, if they will be children of the main...
  16. Replies
    4
    Views
    2,899

    "Thou shalt operate on a window only from its...

    "Thou shalt operate on a window only from its supporting thread!"
  17. Problem when compiling from the command line

    This is an interesting (though unpleasant) behavior of the Microsoft Visual Studio .NET 2003. It's going to be a tedious explanation, so I start with the conclusion:

    Do not add references to C#...
  18. Replies
    0
    Views
    561

    Accessing file properties

    It seems that this is a white spot on the map.

    In Windows Explorer, a right-click on a file pops up a menu whose last item is "Properties". Clicking on this item pops up a dialog, which almost...
  19. Martin, Thanks a lot for your answer! It...

    Martin,

    Thanks a lot for your answer!

    It seems that I found the right person to ask questions :)

    It so happens, that I have to write a trace-log class. I have to trace function calls - too...
  20. Replies
    3
    Views
    927

    Robert, Thank you very much for your answer. ...

    Robert,

    Thank you very much for your answer.

    I needed a high resolution timer for measuring the time needed by some functions, which were called thousands of times per second (that is why...
  21. Replies
    2
    Views
    2,923

    Put into GAC the dll which contains the class of...

    Put into GAC the dll which contains the class of the marshalled object(s).

    Play with the security policy of the computer and intranet (Control Panel -> Administrative tools -> .Net framework...
  22. Replies
    1
    Views
    932

    A simple solution would be to use interfaces: ...

    A simple solution would be to use interfaces:

    -------------------------
    // you can put this in a separate project,
    // which you refer in both BT and Combo projects
    // or you can add the...
  23. After you set the object to null, you can call...

    After you set the object to null, you can call GC.Collect(). I used to do that with files, in order to make sure that a file has really been closed (un-locked).

    Take care, however, that you do not...
  24. Replies
    3
    Views
    927

    High resolution timer

    For monitoring the performance of a set of methods, I need a timer that enables readings with high resolution.

    Seemingly the DateTime class gets "Now" (i.e., the system time) with a resolution of...
  25. MartinL, You write: "I would not keep the...

    MartinL,

    You write:

    "I would not keep the log file open all the time."

    May I ask you why?

    Petru
Results 1 to 25 of 68
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured