Display: Cloud | List
Most Popular Tags
Results (119 total) All > example (x)
Quick class-based selective export example (Using dllimport and dllexport in C++ Classes)
The articles don't appear to have an explicit example for "Selective Member Import/Export" from a class, so here's mine:[Or, what I'd call "exporting a single member function of a class from a DLL, instead of exporting the entire class".][Trouble is ... I'm not sure that mine actually works right.]In the .h file, something like:#if defined EXPORT_MYDLL_EXPORTS#define MYDLL_EXPORTS_DLL __decl
Last modified by bkrcove on 7/18/2012 6:18:09 PM
Tags:  example
Example usage (ItemEvents_10_Event.PropertyChange Event (Microsoft.Office.Interop.Outlook))
Microsoft.Office.Interop.Outlook.TaskItemTaskItem newTaskItem = (Microsoft.Office.Interop.Outlook.TaskItem)oApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olTaskItem); newTaskItem.DueDate = DateTime.Now.AddDays(4); newTaskItem.Subject = "Do something important"; newTaskItem.Categories = "Code Stuff"; newTaskItem.PercentComplete = 0; newTaskItem.PropertyChange += new ItemEvents_10_
Last modified by Thomas Lee on 3/13/2012 8:50:04 PM
Tags:  example
Samples Gallery Example (DateTime Structure (System))
Sample of using DateTime struct according to the settings of the Computer Locale can be found at: $0http://social.technet.microsoft.com/wiki/contents/articles/globalization-and-localization.aspx$0
Last modified by Pantelis44999 on 12/27/2011 10:33:47 PM
Tags:  code  datetime  example
PropertyGrid Example (PropertyGrid Class (System.Windows.Forms))
Please see following for PropertyGrid Example:http://msdn.microsoft.com/en-us/library/aa302326.aspx
Last modified by soyuz on 12/13/2011 7:08:37 PM
Tags:  code  example  sample  tutorial  usage
Example Usage and Output (Filename Macros)
Below is an example of how to properly format one of these special macros when using one of the modifier strings. Additionally the example below contains the actual output for this inference rule. Inference Rule: foo.xsd : $(OBJ_PATH)\$(O)\bar.dll Output: *** No Modifier *** $@ = foo.xsd $* = foo
Last modified by Steve Lessard [MSFT] on 11/3/2011 11:51:02 PM
Tags:  example  macro  nmake  output  sample
Simple example of fstream and strstream::str (strstream::str (Standard C++ Library))
Simple example of fstream and strstream::str $0#include <iostream>$0 $0#include <fstream>$0 $0#include <string>$0 $0// stream string$0 $0#include <strstream>$0 $0//using namespace std;$0 $0//myofstream_constructs3.cpp$0 $0//Output File Stream Constructors $0 $0void readfile10(char[] ); $0 $0 string str1; $0 $0 int main()$0 $0 {$0
Last modified by Thomas Lee on 8/27/2011 10:59:52 AM
Tags:  example
Sample Code(C#) (FindWindow function (Windows))
[DllImport("user32.dll")] public static extern IntPtr FindWindow(String sClassName, String sAppName); Example: IntPtr hwnd=FindWindow(null,"Form1"); "Form1" is the Text property of the window. Along with "EnableWindow(..)" , this function can be used to lock a perticular window. Example: [DllImport("user32.dll")] public static extern bool EnableWindow(IntPtr hwnd, bool bEnable); public
Last modified by kaka2011-07-20 on 7/20/2011 6:06:07 AM
Tags:  c#  code  contentbug  example  sample;
Minor issue in XmlArrayItem example (Controlling XML Serialization Using Attributes)
There is a mistake in the example output of XmlArrayItemAttribute. The article says the output would be:<Group><Employees> <MemberName>Haley</MemberName></Employees></Group>but it is actually:<Group><Employees> <MemberName> <Name>Haley</Name> </MemberName></Employees></Group>XmlArrayItem does not change th
Last modified by Moby Disk on 4/5/2011 3:48:47 PM
Also possible: (Compiler Error C2748)
array<float> ^flt = gcnew array<float> {1.2f, 3.4f, 5.6f, 7.8f, 9.0f};
Last modified by Jochen Kalmbach on 2/26/2011 10:19:47 AM
Tags:  example
The example for a different overloaded method with 8 params (SPViewCollection.Add Method (String, StringCollection, String, UInt32, Boolean, Boolean) (Microsoft.SharePoint))
collViews.Add(strViewName, collViewFields, strQuery, 100, true, false, Microsoft.SharePoint.SPViewCollection.SPViewType.Grid, false); Add(String, StringCollection, String, UInt32, Boolean, Boolean, SPViewCollection..::.SPViewType, Boolean)
Last modified by Natalia Tsymbalenko on 1/13/2011 2:53:16 PM
Tags:  example
Page view tracker