Skip to content

Instantly share code, notes, and snippets.

View CCInc's full-sized avatar

Christopher Lee CCInc

View GitHub Profile
void Initialize_RPC()
{
RPC_STATUS status;
// Uses the protocol combined with the endpoint for receiving
// remote procedure calls.
status = RpcServerUseProtseqEp(reinterpret_cast<RPC_WSTR>(L"ncacn_ip_tcp"), // Use TCP/IP protocol.
RPC_C_PROTSEQ_MAX_REQS_DEFAULT, // Backlog queue length for TCP/IP.
reinterpret_cast<RPC_WSTR>(L"4747"), // TCP/IP port to use.
NULL); // No security.
//header
class SamplePlugin : public DexpotEventHandler
{
public:
SamplePlugin(void);
~SamplePlugin(void);
BOOL Initialize();
int Run();
/*****************************************************************************\
Javascript "SOAP Client" library
@version: 1.4 - 2005.12.10
@author: Matteo Casati, Ihar Voitka - http://www.guru4.net/
@description: (1) SOAPClientParameters.add() method returns 'this' pointer.
(2) "_getElementsByTagName" method added for xpath queries.
(3) "_getXmlHttpPrefix" refactored to "_getXmlHttpProgID" (full
ActiveX ProgID).
<Window x:Class="TestWPF.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="422" Width="733" WindowStyle="None" AllowsTransparency="True">
<Window.Resources>
<Style TargetType="{x:Type TabItem}">
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TabItem}">
[$family: function, $constructor: function, each: function, clone: function, clean: function…]
0: "How do I reverse text in C#?"
1: "How do I retrieve stock market data from an external window for my application in Windows?"
2: "How do I get latitude and longtitude for desktop application?"
3: "How do I solve this compile error?"
4: "How do I find a substring in a string?"
5: "How do i make a program to display real time video from a webcam"
6: "How do I make a loop that runs through every value in a list, printing each value in a C# console application?"
7: "How do I open an Excel file in a web browser for editing?"
8: "how do i send variables from form to form in C#"