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
I

ian mariano

@ian mariano
About
Posts
348
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Visual studio .net Vs C#.net
    I ian mariano

    Actually, you can use just VS C#, The installation should include the CF bits of the .NET Framework. If you wait a bit, there's an even more compact version of the IDE coming soon: Visual C# 2005 Express Edition.

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    .NET (Core and Framework) csharp visual-studio question

  • CoRegisterClassObject
    I ian mariano

    You'd basically create such an object the same way you do any normal COM object, using CoCreateInstance. There's a small simple ATL COM example on CodeGuru. Google's also a good place to start.

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    COM question

  • Add Reference Dialog control
    I ian mariano

    See ExecuteCommand Method (DTE Object). You'll want "Project.AddReference", I think...

    DTE.ExecuteCommand("Project.AddReference", "");
    

    Try it in the immediate window by typing "Project.AddReference" It'll bring up your requested dialog.

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    C# visual-studio csharp question

  • CoRegisterClassObject
    I ian mariano

    CoRegisterClassObject "Registers an EXE class object with OLE so other applications can connect to it. EXE object applications should call CoRegisterClassObject on startup. It can also be used to register internal objects for use by the same EXE or other code (such as DLLs) that the EXE uses." CLSCTX_INPROC_SERVER could be used to register an object for internal use by an executable.

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    COM question

  • Web services
    I ian mariano

    This brute forces it, sample Web Service method scan ASPX page (no real error checking, but you get the picture):

    <%@ Page Language="C#" %>
    <%@ Import Namespace="System.IO" %>
    <%@ Import Namespace="System.Net" %>
    <%@ Import Namespace="System.Xml" %>
     
    <html>
       <head>
          <title>Web Service Methods</title>
          <style type="text/css">
             body
             {
                font:   9pt sans-serif;
             }
             input
             {
                font:   9pt monospace;
             }
          </style>
       </head>
       <body>
          <form name="frmMain" action="webmethods.aspx" runat="server">
             <h2>Web Method Scanner</h2>
     
             Please enter the URL of the Web Service:<br/>
             <asp:TextBox id="txtURL" runat="server" width="300"/><br/>
             <asp:Button id="btnScan" text="Scan" runat="server" OnClick="Scan_OnClick"/><p/>
     
             <hr size="1"/>
     
             <h3><asp:Label id="lblUrl" runat="server"/></h3>
     
             Methods:<br/>
             <asp:ListBox id="lstMethods" runat="server" width="400" size="10" visible="false"/><p/>
     
             <asp:Label id="lblMeths" runat="server"/><p/>
     
             <asp:Label id="lblError" runat="server" ForeColor="DarkRed"/>
          </form>
       </body>
       <script language="C#" runat="server">
          void   ScanService(string url)
          {
             lstMethods.Items.Clear();
             lblMeths.Text = string.Empty;
     
             WebResponse   response = null;
     
             try
             {
                WebRequest   req = WebRequest.Create(url);
     
                response = req.GetResponse();
     
                XmlDocument   doc = new XmlDocument();
     
                using (Stream rs = response.GetResponseStream())
                   doc.Load(rs);
     
                foreach (XmlNode node in doc.DocumentElement.ChildNodes)
                {
                   if ("portType" == node.Name)
                      foreach (XmlNode op in node.ChildNodes)
                         lstMethods.Items.Add(op.Attributes["name"].Value);
                }
             }
             catch (Exception e)
             {
                lblError.Text = e.ToString();
             }
             finally
             {
                if (response != null)
                   response.Close();
             }
          }
    
          void   Scan_OnClick(object sender, EventArgs e)
          {
             lblError.Text = string.Empty;
    
    ASP.NET wcf question

  • Network Monitoring Tool
    I ian mariano

    Check this out: Free Network Monitoring Software.

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    System Admin sysadmin help database sales performance

  • Type.GetType
    I ian mariano

    Type.GetType("_SharedAssembly.SharedObj_, _SharedAssembly_"); For remoting you'd use [Activator.GetObject](http://msdn.microsoft.com/library/?url=/library/en-us/cpref/html/frlrfSystemActivatorClassGetObjectTopic.asp?frame=true). See the example code in the MSDN overview of Client Activation.

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    C# question help learning

  • Difference between ( os)
    I ian mariano

    They really differ in use. Many operating systems come in several flavors because of this, e.g. Windows, Linux, etc. A Desktop OS targets an end-user, and is [usually] optimized for Graphical Interfaces, Media, et al., while not needing robust features required or needed by Server OSs. Server OSs are meant to be used by multiple users and as such are optimized for background processing, application/file sharing, print services, databases, internet and network services, fault tolerance, etc. Network OSs are meant to be used by clients (such as a Terminal Server Client for Windows or VNC or an X-Windows client in the case of Unix.) Applications and ilk run on the Network OS across the wire, the client just sees a representation of it on their "terminal." The client is usually the only software running on the local machine when using a Network OS -- and may be a very stripped down OS whose sole purpose is to be a "terminal" to a Network OS.

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    System Admin sysadmin question

  • Web Anaylsis Tools?
    I ian mariano

    http://www.google.com/search?q=free+web+analysis+tools

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    Web Development tools question

  • SSL IIS AND HTTP403 Error
    I ian mariano

    SSL uses the https protocol, so you need to use https://Localhost:/myfolder as your URL. As far as trusting, when you import the certificate into your browser, you should be able to choose the certificate store when adding it.

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    ASP.NET security windows-admin cryptography tools help

  • C++ Compilers
    I ian mariano

    Of course, Microsoft Visual C++. There's also gcc, which can target more than just Win32, plus it's open source. Borland C++BuilderX is another alternative as is CodeWarrior from Metrowerks, and of course the Intel C++ Win32 compiler (they also have a C++ compiler for Linux.) MS VC++ is probably your best bet, as a noob.

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    Managed C++/CLI c++

  • Closing an open Task Manager window
    I ian mariano

    Yes, and I believe that TaskMan.exe is a well-formed Windows app. Process.CloseMainWindow (MSDN) "in a well-formed application, closes child windows and revokes all running message loops for the application. The request to exit the process by calling CloseMainWindow does not force the application to quit...The behavior of CloseMainWindow is identical to that of a user closing an application's main window using the system menu. Therefore, the request to exit the process by closing the main window does not force the application to quit immediately."

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    C# help tutorial question

  • UnRegister a Service Process
    I ian mariano

    If you're on NT, 2k, XP, 2k3, you should consider using a true windows service. For C# / .NET refer to the System.ServiceProcess Namespace. For Win32, see Using Services on MSDN including the section on Service Configuration Program Tasks.

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    C# json tutorial

  • Closing an open Task Manager window
    I ian mariano

    I try to avoid Killing processes unless it's a last resort. To quote MSDN: "Data edited by the process or resources allocated to the process can be lost if you call Kill. Kill causes an abnormal process termination and should be used only when necessary." The task manager opens handles to the performance counters amongst other things. Just Killing it may not release them cleanly. Latter versions of Windows are better at handling reclaiming such resources, but I feel it's better to play nice.

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    C# help tutorial question

  • Web Service From Java
    I ian mariano

    I believe you want to access a .NET Web Service from Java, yes? Accessing a web service, from straight HTTP, C++, .NET, Java, sockets, et al. work the same way since Web Services are all based on SOAP. Take a look at Sun's Java Technology and Web Services as a start, especially the The Java Web Services Tutorial. You will want to pay attention to the part about Creating Web Service Clients with JAX-RPC.

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    .NET (Core and Framework) java question

  • String vs string
    I ian mariano

    They are identical (aliases). So are Object and object as well as Decimal and decimal and a few others.

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    C# csharp visual-studio question

  • Where can I get a information about Window Protected-Mode?
    I ian mariano

    First, Windows doesn't have protected mode, the Intel CPU does. See the following:

    • Protected Mode Basics from Dr. Jobbs Journal
    • The IA-32 Intel(R) Architecture Software Developer's Manual, Volume 3: System Programming Guide.
    • Protected mode references

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    C / C++ / MFC question

  • java to C++
    I ian mariano

    The Thinkquest introduction to C++ structures is a good place to start. Good luck!

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    Managed C++/CLI c++ java help tutorial question

  • How to announce Windows Service Manager, that service fails (Recovery Options)
    I ian mariano

    It's also probably a very good idea to log the service failure in the Windows Event Log, or publish it to WMI.

    //   c#  panic(), expects message as a string parameter
    EventLog  log = new EventLog(...);
    
    log.Write(message, EventLogEntryType.Error);
    Process.GetCurrentProcess().Kill();
    

    It should be noted that forcibly terminating an application without at least attempting a graceful shutdown / release of resources is a bad idea. If possible, cleanup what you can before Killing the process.

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    .NET (Core and Framework) tutorial question

  • How to announce Windows Service Manager, that service fails (Recovery Options)
    I ian mariano

    If your service throws an unhandled exception, the SCM will handle it. If your service terminates abruptly (such as it's process being killed), the SCM will handle it.

    //  c#
    Process.GetCurrentProcess().Kill();
    

    A really good way to get Windows to know your app failed most heinously is to use Interop and RaiseException and pass EXCEPTION_NONCONTINUABLE for the dwExceptionFlags parameter.

    Ian Mariano - Bliki | Blog
    "We are all wave equations in the information matrix of the universe" - me

    .NET (Core and Framework) tutorial question
  • Login

  • Don't have an account? Register

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