Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. B00gyeMan

    Total Newbie ~~

    If X = 5 then: 1. Console.WriteLine( ++X); Console.WriteLine( X); This will print: 6 and 6 2. Console.WriteLine( X++); Console.WriteLine( X); This will print: 5 and 6 Google is your friend: Here is what MSDN has to say: The first form is a prefix increment operation. The result of the...
  2. B00gyeMan

    Problem on my assignment

    Ummm... this forum is cannot be used to solve assignments. For these, books are the recommended information source [thumbsup2] Try to figure it out, it cannot be that hard [pipe]
  3. B00gyeMan

    Check versions of .net framework installed progamatically

    The Registry Key for the .NET Framework 1.0: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v1.0 The Registry Key for the .NET Framework 1.1: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v1.1 The Registry Key for the .NET Framework 2.0...
  4. B00gyeMan

    console application

    OR you can write this: Console.WriteLine( "Press <ENTER> to close."); Console.ReadLine();
  5. B00gyeMan

    Windows Service

    Here is what you're trying to do (it uses the FileSystemWatcher which elliminates the need of an endless loop): http://www.codeproject.com/csharp/FileWatcherWinServiceCSha.asp P.S.: Google is your friend [thumbsup2]
  6. B00gyeMan

    inheritance question

    newclass : baseclass<someotherclass> is a combination between simple inheritance and compile-time inheritance. Compile-time inheritance is when you have a class Container<T> and you're declaring an object like Container<int> anIntContainer = new Container<int>(...); That is referred to as...
  7. B00gyeMan

    DB Connection problem: C# syntax, SQL Server or Vista

    1. You did not specify what version of SQL server do those two machines run (yours and the remote one). 2. For a list of how the connection strings should look, check this out: http://www.connectionstrings.com/ 3. You successfully connected to your local server by including in the connection...
  8. B00gyeMan

    C# - ActiveX Control - How do I Install over the web

    CAB is not suited for "ActiveX" components written in C# (please keep in mind that they're not actually 'real' ActiveX components, they're COM visible managed assemblies so that IE can create CCW - COM Callable Wrapper - to use the object in the same way it uses 'real' COM objects). What I did...
  9. B00gyeMan

    activex registry setting

    1. Programatically add the site to "Trusted zones" - http://www.codeguru.com/forum/showthread.php?t=368335 2. Inherit your ActiveX from IObjectSafety - http://support.microsoft.com/kb/168371 No 1. needs to be run on the client, so this automatically implies that the ActiveX will be deployed...
  10. B00gyeMan

    Two ActiveX questions

    Question 1: I have an assembly writen in c#, marked COM visible. And a CAB setup project containing the project output of that assembly. Typically, the .aspx page contains a <object id="myControl1" name="myControl1" classid="...guid...here..." style="width:100%; height:100%"...
  11. B00gyeMan

    ActiveX cab deployment

    I have an assembly writen in c#, marked COM visible. And a CAB setup project containing the project output of that assembly. Typically, the .aspx page contains a <object id="myControl1" name="myControl1" classid="...guid...here..." style="width:100%; height:100%" codebase="myCAB.cab"></object>...
  12. B00gyeMan

    C#, Interfaces and Interop

    The simplest way I can think of (it's morning here and I've just woke up...) is using WinDbg and the SOS extension. Start the debugger, load the SOS extension and then start you VB application. The debugger will break upon exception. Inspect the call stack (when the debugger breaks it...
  13. B00gyeMan

    Calling an executable from a web app fails (framework 2)

    They are the system error codes and can be found here http://msdn2.microsoft.com/en-us/library/ms681381.aspx
  14. B00gyeMan

    Calling an executable from a web app fails (framework 2)

    MSDN says: "ERROR_PATH_NOT_FOUND 3 The system cannot find the path specified." 1. Are you sure the path exist, the executable is there and that you've set the appropriate permissions? 2. Can you post some code as well as the full path (including the file name and extension) of what you're...
  15. B00gyeMan

    Oooooh baby... Attempted to read or write protected memory

    I've had this exact problem today. Turned out that somebody modified the signature of a method in a COM we're using in order to suit his own needs, but forgot to update all calls from C# to that method. And an unmodified call gave the "attempted to read or write protected...". Any other details...
  16. B00gyeMan

    The Good Exception

    I do not know. I was bored, read your post and dugg a little bit here and there. Should be easy to reproduce in a small WinForms application (on .NET 1.1) which can be imported by VS2005 and run on .NET 2.0
  17. B00gyeMan

    The Good Exception

    Here's a quote from Bob Powell * [MVP] Visual C#, System.Drawing): Here's the link: http://www.bobpowell.net/doublebuffer.htm
  18. B00gyeMan

    Drawing Exception

    If the user is doing highly intensive graphics rendering and 3GB is just not enough there are at least two options: * Windows Server 2003 Enterprise Edition (with Physical Address Extension) * 64-bit systems; The second option seems resonable enough, financially speaking since you're gonna...
  19. B00gyeMan

    Drawing Exception

    1. Usually the calls to the methods that handle graphics end in GDI/GDI+. That's why you have to dispose of the graphic objects, in order to release the resources allocated by GDI+. 2. Yes, it is called the /3GB switch (because it is a switcht that you add to boot.ini: -...
  20. B00gyeMan

    Force Completion of function without thread swaping?

    1. Thread that chatter one to another? Seems like a granularity problem to me. Maybe there is too much lock overhead and too much contention. First means that there are too many locks and the second means that a thread is waiting too much for a lock to be released by another thread. In the first...

Part and Inventory Search

Back
Top