Presenter:Jim Wilson
In this video, Jim Wilson demonstrates how to set up Merge Replication for use with Windows Mobile Devices. In Part 1 of this two-part series, we will learn how to set up SQL Server publication.
The following text is a software generated transcript of the video. Click on a minute link to jump to a location within the video
Minute 0
A collision kills some president it is unincorporated in this video rental about House of mirth application is video action is of part one of a two part series on using such a setting of mortification for use with Windows mold places in this first farm and focus on just the part of the issue of setting up SQL Server s actual publication to mitigate a available in the particular video will then look at how did the publication and make it available over the Internet to the little devices and sacred eyes with this started in were first ask a simple case on the server whereby you SQL Server management studio with connect or server just would when doing any other maintenance work on the server itself because they connect to database engine and put it with Windows authentication is good connect to a glance at this point like it here is attached virus for server for with a near
Minute 1
Video today and create a publication that is to take a look in Cyrus are right now in my databases in real dailies I have here in Oz adventure Works and so this is one of the standard sample databases for six or 75 so a great location looted hundreds as replications note expand that we take a look rhinitis and all have implications currently defined through the record bonus and choose new publication know what is going to allow you do is identify one or more tables in this database but I would like to make available for sharing with other computers in other words once and it is available in a computer to get initial snapshot of what it is looks like and then changes can occur with on this computer and on another computer and the changes synchronized and reconciled to the databases remain in saying that remembers them just publication
Minute 2
Is not a Windows mobile specific solution index is part of the country overall SQL Server solution selected to service in the event of this or a server and wonderful devices force overlooking at so we have the welcome screen Wednesday next it s just that now we set us up the first that we have to identify is is called a distributor words acting manager of application backend database course is responsible to keep track of the changes are going on the system is as responsible for an exchange in his change the other assist those was called the distributor that we set up a system you can just let them machine running back and enemies these own distributor or it is of a different machine beauty sure the idea being that if it was a development environment or a small installation you can ask the editors let me back in daily Serbia distributor for dealing with a larger environment remain a large
Minute 3
Computers synchronizing with a server they get better scalability by leading a different computer minister in this case Wednesday with a simple choice in this devastating can be a sister in I want every aware was that once you set up to the sugar for this database you ll have to do that again one distributed to set up we use for all publications you create for the status now as part of sales distributor has little the snapshot folder and this is used to exchange information between SQL Server and components this for see made into a share multiline that were created for us to share nights of the multiple is the region were asked on previous years a list to receive this is used internally as SQL Server manages revocation process rights that were setting this up for internal use don t be concerned to do what exposes us to the Internet and this is not going to happen is specifically initially set up
Minute 4
Sure you are a process now were the first fair use when do you this morning as he was here are my start menu or wrong then paste them in this okay of course the sale of the house were basically I just navigated out of that for a living thing to do as any to turn off a future simple file sharing of the tools folder options menu to view tab and the Downey arrested advanced settings would throw away the bottom this check box is use simple file sharing my head and uncheck that we don t once will file sharing will ask explicitly managed posture ourselves was it okay in a once I ve done that I can now right click here in the window of robberies
Minute 5
In my sharing tab will you now say share this folder is in now is for the available evidence you share is okay now that s also have their milk and distortion created just for the internal use on the server side for managing replication were never noticed was that out publicly in Sonata got identified as a next now accessible piece in part this first total boxes were for the distributor on the set of here will never see it again to get new vocations to you that oldest is able to rephrase what is the so despite she is a database I want republication on this ticker configuration in a one database event works and gives one SQL Server 2005 sample databases sitting next no answer for publication type you re always liked his murder for vocation numerous locations are the only type of publication supported by SQL Server compacted
Minute 6
And simmer for vocation will say next now we ll identify that were merging with a SQL Server sales by product edition database and uncheck inserted a five year displayed news will format to exchange information and for use with customers 2005 division database you with what you have that checked when you re targeting of course it was just out of the Wednesday next of that one now this point or to find out his published familiar with it and choose our tables were down here and once used by vendor table check vendor now what is it online here now is that there s a couple of opportunities to improve the efficiency of merge replication one of his choices is a selection right here how they do was download only if you know the table you re exposing will be used only for reading information by the
Minute 7
Mobile application if they do something like postal codes and that s just thing or maybe just priceless something is not going to change five was the location and identifies it was a download only table that tells SQL Server that no changes will ever call in from remote systems and allows for server and it will more efficient in how it manages publication in our case we ll minister is really an unchecked saying that now he is changes in appearance or just that also happen out on the wonderful device of the next that is physically telling us that in order for her application work every record inside a table has the uniquely identifiably globally noted that is within one day resistance but globally delimiting do that is what do it right globally unique identifier so this is box telling us that if you have to create a good column on the stable and that s fine tools and ask
Minute 8
In to actually can improve the overall efficiency of how well your revocation process works when you set up a publication of expose the entire table with former doing here or you can filter the table down to only a portion of the records go down to the place he and General you for your come as a best practice you probably don t want to expose the whole table you probably what he is actually narrowed down to specifics of the records if you can if you notice you would get if the filters could just say I filter all this is doing for us is create a where clause so dubiously do is identify the columns in the filter criteria and one upon their so that when some of those and get his locations they only get the subset of records identified by the select statement by such is the way to reduce the number records are sent down to the corn there s also that is for the filter is updated
Minute 9
Duff icicle server whether multiple descriptions we as us or only once description will use it but it is against opportunity to SQL Server to optimize waste management is it only a single s description will be able to get and cancel suffered out its results able indicated wherever there is that any strategy to reduce the number records are sent down as a good thing and click next to on that work to the point where the razor and producing a data the wayward location works is that it directly create snapshots of the database of the worst weather that it was look like right now and then was shot for it in place changes happen on the server is list of changes are recorded so that makes us laxly synchronizes with this location this snapshot combined with a list of changes produces the of the true change history to exchange without the lights in terms of how often you create a snapshot
Minute 10
By the fall increases than for every two weeks in general if you have a large number of changes being made to your database you may look at a sort shorter snapshots are idiotic smaller changes being made to the database when creating longer snapshots are the ideas that sure snapshot times reducing on time as it takes to do this organization but also increases the role of your server longer sunset times in the opposite and they reduce a woman s server of the life changes that happen the reconciliation process can take a longer as a writer that defaults to create a snapshot right now and well scheduled at once every two weeks is a next and we get to the snapshot agent grid as CFO process is going to take care for you snapshots to security settings now for best practices will you really want to his creative account as the minimum privileges necessary to ask runs Athanasian fizzle document is looking to do for simplicity in this
Minute 11
Boarding thyroiditis chooses one of the SQL Server is in the SQL Server agent service account just for simplicity as a best practice you a dedicated account to that was at a preset their genetics smells as me you went to create this publication right out and say yes notice also if we were on a secret publication on another service and for example this is a development server and we later went on a production server which also have a system JavaScript file that we need greatest single occasion later this portion of a grateful case itself when she s next now accepting the publication of name and is simply a text it identifies a publication community want this as a name that remote devices will use to identify the publication of their looking for someone and I call this one caught our adventure Works works of vendors and others all because it
Minute 12
As all of them that way that if identified as are some of the cases were only a subset of vendors agree a new vocation in that case so they can does to the subset that they can with them and then click finish now the system is out of search generator things to seven this year and we need a critical case itself at our table select and implement of snuff out if the DeWalt work and with that we ve now got posted a senior vocation completely created as I said in part two of this video will then talk about how you think is the location does exist in SQL Server and make it available to Windows mobile devices over the Internet
Click here to go to original video page
Monday, June 16, 2008
Video: How Do I: Merge Replication for Windows Mobile Device Access? (Part 1)
Video: How Do I: Merge Replication for Windows Mobile Device Access? (Part 2)
Presenter:Jim Wilson
In this video, Jim Wilson demonstrates how to set up Merge Replication for use with Windows Mobile Devices. In Part 2 of this two-part series, we will learn how to take an existing merge replication publication and make it available for users to sync with their mobile devices over the Internet.
The following text is a software generated transcript of the video. Click on a minute link to jump to a location within the video
Minute 0
Killings to Wilson President Jimmy does not incorporate organs on this video is how to take an existing merge replication publication and make it available to the Windows mobile devices can synchronize their local databases are back in server over the Internet after not familiar with how I can create a number of application vocation look for a companion video in a series of exit discusses how to create a publication of his amount to get started so going to synchronize their existing location one thing you have to do is install utility called SQL Server 2005 compact edition server tools in SQL Server 2005 covered the distance server tools in this install some components onto your server inserting within a server and Web server that actually allows them to ask a synchronized with mobile devices now the weight install that
Minute 1
You re I navigate the house and got her files inside of there and look into Visual Studio environment or in any slots or to justify your smart devices didn t go to our SDK looking SQL Server in the mobile is just buried under what far it is version 3 this lower your SQL CE 30 setup EN MSI neither were on this installation file now when you install Visual Studio initially Mexican version of this for SQL mobile and when you ask install the SQL Server to have a compact edition that s it for that installation ask the upgrades is filed to the latest version flexing happens is that when you install Visual Studio when you saw the SQL searches by competition as for the installation it drops this server tools installation individuals to
Minute 2
Before the run ever to double click it and that differences with the Milwaukee Brewers is very straightforward much is taken through step by step interview setting things up to the very simple wizard personally noticed a definite iMacs installed in vans to save time of this video to cancel out your so I went as a focus on how we actually do the work exposing publication so now e is a disposable occasion with coursing music was a reminder studio to connect to the SQL Server instance actually has the publication because they can t just do a database engine that could attach to be a local SQL Server is ever in this machine connect up a giving their sources can ask I m actually looking at my server as as it would in any other domains of our red so that it is a doofus automatic tables or yells out and do that through SQL Server matter Studios case to get to the public
Minute 3
In that we created in this book is retreated in the companion video just get on your nonsense for looking replication under local publications and they will find vocation we created this to resize the window since was there again this adventure Works vendor all it s up to the locations of the event source and is all vocation as arguments were studious Zaslow exposed symbolizes and access it so do have the right click on it and would choose the option your configure Web synchronization said this listed here will ask to go through the steps to set up everything so that the Malays nicely connect up to do the categorization process race of that English or humidity of the server tools that is the utilities in place so that secret is possible this is the steps actually takes a particular publication exposes the categorization of mobile devices in the thick of computer westernization
Minute 4
Face of this wizard will suffer a tougher thing wasn t always will knew what he cigarettes and with our case was a grandson SQL Server compact edition is just that Ms must know is the where s worth computer running IIS on this case I want to seemed with IIS and as the database server is a good and create a new virtual directory foreigner and I did navigate down the virtual directory tree they ve have the fall website is very much of you very much like directly using the IIS ministration environment recently identify where you want create another virtual directory you need is that we could nicely use an existing virtual directories wealth wanted to Sweden actually have one virtual directory being used as a prize many different publications and absolutely thought is to let you how you want to administer that the goods they want their new in this case next as I passed me what I call us want
Minute 5
Well I could name a silly example of a publication like adventure Works vendor is all about analogous hide is wanted to virtual directory to this individual publication for the 19 you can have multiple occasions exposed to a single virtual directory so is I sometimes like to imagine is that we have one person directory per database so everything is in the event source database is nice to a particular virtual directory rate of the austerities the Northwind database look on three different virtual directory in case it is up to whatever works for you soon is a device intensely share this with other publication in the event source database jungle adventure Works sink precisely makes it might one can one and only place than you did go to actually access the contents either residents to take care that it actually got battles and so it is a next
Minute 6
Said despicable questions the first idiocy as simple as a solo that Ford is an existing lead and created as a yes and I think that s visiting her important way talks about the us how to SQL Server cognizance server agent for that particular DLL is installed as part of the server tools nicely SQL CE SA 30 dll to SQL Server server edition server agent to SQL Server composition server agent 30 dll likely to go that far momentarily but yes we do it without file actually in their presented to go to that file and can navigate directly to that deal well to exit do the civilization they so here I don t have any certificates on this particular machine so I was a chance of SSL and into next are here now in most cases you would want you having use SSL regular to encrypt us if you re synchronizing corporate
Minute 7
And over the Internet trial for hijacking massive related idea and uses a cell and encrypt the content said now is forcing us not need identifying power by handle syndication and obviously we could do anonymously but yes I m an idiot and the disconnect of without any credentials and access your data to several run ins they just have the wheels and to get them out for simplicity in this demo rendering of Windows community when the litigation attorneys basic authentication is again once the key to remember is that using basic authentication women sure you can ask the rest of cell discussions going clear text with saints in those cases were going to having use SSL for armor for patients and physicians anyway it s authentication sexy risible choice of as a base of indication to an ex and I want to know who I want to actually allow to get to this red source jump act was a notice that I can ask is to have the fall to me
Minute 8
Said he was not the main connections using his name in or I went to a doing now as it is identify individual users that while I have access sub execute on users as they add now you take a look around or I could just type in Russia to use a particular user so fizzled the example sink user I could just type that in but it is easy to that effect going to name you want to look it up when I was advanced tab and we do this since it s allowing you to confine things are outdistanced as a fine now this is showing lists of potential principles for a principals and user could use it as an example sink user here for that form and use this example sink user okay okay and obviously we can add more used to this one to read what is this lawsuit is example sink user say next rights and out with asking for the share
Minute 9
If you ve ever settle publication if you watch the video were decent publication a key part in what has to happen is that a network share has to created for she got for distribution information for its distributing in principle to hope to be from the publication if you recall that folder was actually called Ruppel data itself I should go my only senior and was a pseudo405 1400 this is the machine name and the four different forces reveled in an icy rubble data is actually the default name that exit the wizard to Crystal gazing gives it typical not so easy that we actually have the publication so that s leaving it as that of Novak hearing to the wizard and so that s the share election working for a sin probably not miss everything out at this point we actually half of this
Minute 10
Is Asian porn of of Jimmy Wilson is a support obligations set up correctly mostly along him is a finish as the give and generate all parts so once I is selling seasons of now and now with our national weaponization suddenly financing about his settings and security values and encloses board into your particular to the security and logins and singing along and is willing to do is actually make an example sink user one of the logins within a database with a part of database right so we can do here is a little syndication is a search anticipated before and find his advance have defined now it is looking that user I wanted what gets my example sink user was okay since it is okay okay so now I have is that once the user can accept I am
Minute 11
Us in his login when others use NT authentication for IIS to connect up to the database elegance of the fall database to be urban for today s reality doesn t really matter that much of because are allowed for the recently specified anyhow I said you as a matter of good practice and that you do is that now we actually have simple sync user identified as a user or as a login when SQL Server is there to do is identify was allowed to get to see it as user mappings page or just your we choose events works as a sexual provide access for Devil said user to event for civics and suited their food and goods is it okay with a single to do is ask and provide the user with access to the actual publication regulars as the database would give access through IIS the lesson you do is
Minute 12
Say your lad asked the recent publication is a valid publication of the list here is just a click on that and what you do now is get out and choose properties when farmers when it comes up or looking to do is ask the fund s policies access list will we need to do is make sure the argues are our example sync user is actually in his last search for adding a graduate to add and we get to the user and choose ears of a cell uses a potential access rights in my example sync user said okay so now we should ask a senior example sync user there just resizes a sin so now that s their twins have had so that we now set up the entire publication so it can be synchronized okay whether Lisa Leslie did it was his dentist a lot so I m versatile application here
Minute 13
s data binding against the vendor table schema to display the records in the grid would also take advantage of visual Studios generate data forms future generating warns the details are renewed Centex care of everything we did the show they as well as modified so my responsibilities these murder case itself so to menu options and a slice of Christian and cigarettes look at the code behind those with either the menus don t have it inside their their relying instead on some help for a particular cover methods arrested three of them and really want is the most significant is his first one free revocation instance and its job is to create the secrecy revocation object and settle apart correctly so we look to first when the Internet URL is point out for server or virtual directory and then the server agent memory we are running the wizard
Minute 14
To set up the ratification of it available over the Internet when the questions were asked is with old hay is to copy the server agent into the first directory server agent is this DLL file this you ll follow they give loaded inside of IIS will act as the server side of this whole process for communications and organization we also need to identify the surtax he hasn t in response to database for cigars and with every thing else is free simple stuff when they of course is that although I specified the actual password here in the farm statically for simplicity in this demo we knew we d never really do that life would execute solution sure prompt the user for it is the work is very simple to come to initialize description as an code unit is checked to see if the data is all just exist in Kosovo can believe it within latest causes it was the revocation of it is an advanced description and sink rises over three that initial snapshot of data so I haven t
Minute 15
One comes time to actually synchronize the data icily claw or piece of its sacred eyes and supervises my local device database to database on the server so you say to your deliberate evocation is gnarly little program issue is much more of really a selfish so there is a few back here through the Bullock got my application and so my same menu initialize description is to go out there now and if the runs for a moment then populate until so that in with that this is a position itself as a complete rawness lives would go to hear myself to go anyways records as it was at one associated value is as icy using of victims generated degenerative uniforms when this
Minute 16
Plays I see elected for simplicity lets in which its credit rating from one to three in encyclical and edit rings like as long to go through three will save it so that stays with change in our local device and also of course the back to determine a studio runs a server database and my vendor stable to stay ahead and open table and latest alert IT and for the record ran so in the case of the mice we actually it seems the second record so that it s everyone from one to three will do nearest was the first record which it is credit rating for one thought to put away the changes applied this is a classic situation out of the database and server hasn t changed with the device is no bounce and of course overall device is a change made to the server is not a list where recertification resist aggressive
Minute 17
Can and a disloyal about their exchange changes between his lands and what is over 60 boat databases and sank so we see now is the place is updated he s got his own change was the one from the server for your back to the server and redo its physical Jew now that he has his own change in the one for the device so that we have a public is as creative as exposed over the Internet and license a grass with you my name is Joe Wilson and present it in his own corporate I think your time
Click here to go to original video page
Video: How Do I: Create a Desktop Project for Installing CAB Files to a Windows Mobile Device?
Presenter:Jim Wilson
In this video, Jim Wilson demonstrates the creation of a desktop project for installing CAB files to a Windows Mobile device.
The following text is a software generated transcript of the video. Click on a minute link to jump to a location within the video
Minute 0
On you Mr Wilson a president who has incorporate in this video where I thought about how you can take ever to win his mobile camp file installed onto a device as part of regular desktop subproject get you started your I have a disposable application was the latter case it is a performance is whole world that have also glanced really can t file for an act to install it so if I build the solution I get into a cab file copied onto my device or emulator somehow it is like file Explorer sport have to adjust SUV install now is easy that is this not a gun experience when you give our users would want if you start it manually copying files around in front of sport of them are what you look for traditional desktops of experience as a force you to do said that Visual Studio here was just ahead in creating the Project for their project is there
Minute 1
A project to million my other prototypes self employment is to create as a project so we just went to grab cases or applications called my win mobile at large will this mind win mobile at installer so tenuous that is a force now he never worked with any of these installed projects unit up basically what can you do is identify up what files when installer and where applicable to resettle the start or application folder in the first week to do is get the of file we created for this wonderful program answers as they add file if they navigate out to grab things your schemas to dry my views project folder rendered my when the lap it is my when we ll have us to get it done here is of the
Minute 2
Account file wasted as a Windows mobile File the right in the part of our desktop subproject do is a lability of courses that when we run the setup that file be dropped into deeper reform dustup is a lonely video is somehow once is Files on the desktop get it out of the device and install it and that s where program called CE app manager comes in the play the scene at matter programs with axial allows you to identify account file the photos just thought it ll didn t do the copy onto the place and a proper install for you resorted we ll do something like that to run for RAM we d be ported the install process really took on custom install its window and here s a say right click I want to add a new project in the Project avoided to assume in seizure when it s creating
Minute 3
Or just interlibrary and no one as well as a custom install lot in question are a force now we only as a component of an Air Force jury friendly against him around and say you re at and to choose component and weed out there with Celia modular choices and one we have here is the installer class residents a base class that actually knows how to be part of the install process or inherit from that mission poses a custom installer so to say at that and in view tune she knows that we inherit from installer is imagined so we get one for the install process and we will have happen is that the writers all occur
Minute 4
Control the files we need onto the user does not and elegant rock for him to read it here is as they override mode for own after install and so this is the method is the biggest call when the install process in place before Mexican shutdown everything you want them extremely the base class calling here because the base class only after install actually raises the efforts all of that submitting listing for that is the method called me to happen when it s really that in their now what our goal is inside of your is going up there and wants that CE at Mac application with is an argument identifies what Wants all is a citizen of one simple time is that we want to go out there and have to use some mechanism to look in her CD at Mac but now there s a couple steps involve you look at and because he sees Dr Bob would probably
Minute 5
Psychological insight issue supplemental property as as as a string see at manager eggs he did get her know we can do is that as part of the architecture and aggregation for CD at manager says he should never rely on where the firms located instead is a well known place in the registry to work with the look and find out what up for election salts or so it appears that when Claire Constance identifies average to pass this is a constantly string with those on the first tee at manager Registry Path in never convenient I m actually just taken that text input of the nearest of the dragon and this is not a long pass the only front of the base delay it for me under age local machine and software Microsoft s Windows current version
Minute 6
At pass it is finally see at manager that is the so we need to do then is inside here to open up the registry and grab that information from the clerical things your entire registry key and I would give that registry key for a new namespace as the student of Jr of Win32 forgot that there was a call his variables subject is of the little wasn t clear stream user agent that you also set to know no to work to go out and ask the reason register them up into a try finally block you because you to open up its usual was closed and we know is offering like this is not really that big a deal was for good practice to follow suit for 20 years as a half subkey is not evil and own it was a subkey a close race with our Houston police noticed a
Minute 7
Do the actual work so if you hear now is as a subkey equals about the registry class raises static property for local machine and from their resource that opens up and wanted to open is RC at manager registered that Legos and opens up a registry key and now you to value from that discover your exit path and all we need to get over subkey is as the fall value resolute as long eyes fastened him strength and that ll give us actually the default value which is the full path out to where see at matters located this without they re going after memory do this is a return a death so that s there to the part about one
Minute 8
So unassuming to do is identify the argument we need the past that now what you have to do is yet to create an INI file INI file Percy had manager identifying what you actually like you to install the units greatest on yourself that one angry when advances would reference a race I got here to go to the cavalry are actually got my when the laps so die dragon in your it is a very simple file has a section header identifies a version number in this important entry this value on the right just identifies the name of the section that has the installation details since my guy here at my when mobile is just from the description will be displayed and account files visited half bottle just going to install that s the guy we actually get onto the device so of course what you do ever going to install this and we needed all user does not
Minute 9
In the part of the actual subproject should back to the files as the applications folder and were gone and can say at file renowned at that guy noticed my little camp motto in the lab setups of us will want open so that we got in and I followed her significant file we got the eye and I saw sooner you get it back over to her code and know first is will create constant for that I saw the constant string or INI file name in the INI files name is just as a reminder is reminiscent incident at my when the lapse of time mine win mobile path set up I am on after filing no we didn t know when the users desktop where that s located in which every heart of this because even though
Minute 10
Installer project has a default path uses free chains of foreign install really need to add one time as the question where it s located so it will use the property leave the details CString goes on and I file path needed to be really wanted to get her and so the first inning and he was identifying the folder where things are located as she reaches many times that we had to use the assembly class grinned at his face for assembly using system reflection said yet be executing assembly was actually running its exit to throw on the IntelliSense like to who gets into assembly that is a get name and then finally CodeBase psyche of the fully qualified path after the actual assembly were running in
Minute 11
Though we don t want the whole assembly which was path as we does use the parent classes get directory so path then add are using statement so as to get directory name don t want anything to be an so that gives us a director in aware were located that so once we know that goes aside to wearable got that there to nicely know is not what s with full qualified path of the I I file itself for youth half a combined to give the install folder and our actual outcome is a ready eye filename value is a fully qualified path altitude of the I filename is in Lake Siegel in excess for files and so forth in their environment as a string and that s what we are
Minute 12
INI file path is just that they re now for the most part we should be good there if it is one of special concern we call the gets the assembly before the name is returned as the URI to knew you are at all format so what happens is that routing to cc program files and the remainder of it is a sexy preceded by a fidelity read identifies it as a URL so we get that file also there as we pass the art reform in this way is he at badger you doesn t know what to do it through the rear screen of a constant code is our file prefix the federal file go there slowly did you
Minute 13
Now is inside here to say well if online file path starts with the file prefix Lolita Kabila overthrew a say as well hell is that prefix the file prefix length once we know that what is it a well made the INI file prefix recently I thought patterns are at about half equal to the INI file path substring of index than I did as the actual path of the file ripped off so familiar with his unit as a return eye I filed that Rossa is still quick buildings read in any mistakes on whether it is identical to liberal tears and seeing new icons and I guess it is a this is
Minute 14
And put an absolute one of their dogs are launched to also get your instrumental cast in that was left over when we done here to get value if value returns an object type is just different registry types that didn t catch that out to a string trying to build failures so there ll oversight hearings with is the present missile at a concert that the loss of their instead will build an hour to go so basically we re ready that to run thanks so much go ahead and launch a program to see at matter pass the arguments now we ask each setting up the system to run without the need to them in quotes because that s the space is contained in a Rancho president who is a string program name equals of the city quotes and what actually to get
Minute 15
That would see at matter if you run on a site as a quoted program name for a program are it isn t just some are saying quote back when it can be that with our eye and I file path soon to include on the race with plays Marin to run a program so i announced his process class Gennady needs is for it in system diagnostics is a start and what he is the format that accepts a programming target and programming
Minute 16
And insists IVR system that wonders of forms show with the same programming concatenated with a space to get into with programmer writes with all the pieces in place but if I thing we have to do without this output together with at the DLL all built the fun we have now is that we just have associated the two Munich Olympics will benefit to clean to do the first you do is make sure this DLL actually gets the part of the project and to dissolve the dustup was returned back to the file system you wish to say at as the same folder farm is a product out for some say we want the primary output
Minute 17
Last thing we have to do is we have to tell you sell a project with a steel job is what is a one time participate in process of a right click here and we go to view you see we have this custom actions produce custom actions only say that we have a custom action for install silly for the install actions at the selection wounded Iraqis and folder whose a detail elbow Hamlet okay so overall length that we have all the pieces in place Sedgefield will build down and see everything worked to succeed as a murder their so suitable things never have brought to the emulator should I see that of the filesystem is he was out there ago due to my my installer regarded for my size located in this Amazon through their
Minute 18
Who erase the list even run the sky if you trigger wizard next to pass the use looks at the Falls next now nice if all goes well with first year MessageBox sinister and files much of ActiveSync CD at manager and then protocols and fall company named my wins the Web installer is it simple to faulty her and her eye I saw my sale gay news that you see the actual ad remover and stick in your residential see at manager is in the first installed back here so is it okay to that pathetic as it is exit or death of installer with the device is as installer is okay now know is that there s axiom I win the laugh here in a program for a click on a wet his uniform show up
Minute 19
Never hello world right out and exit this as we done everything right we saw sealed on solid from your something of the settings system remove programs there am I when the lap remove us in the other hand in creating our own desktop install galaxian stalk files onto the Windows mobile place for us if you re a citizen reinstalling work for what is mobile or other videos this series is another video that covers how install multiple Model for the place from a single camp file and then a separate video on Al Aqsa created to have install to check for the copper framework and installs as it is not their residents over the series and letting the Joe Wilson for president giving a talk think you
Click here to go to original video page
Video: How Do I: Implement a Managed Application Requiring Callbacks from a Native API?
Presenter:Jim Wilson
In this demonstration Jim Wilson shows us how to implement a managed application that requires callbacks from a native API.
The following text is a software generated transcript of the video. Click on a minute link to jump to a location within the video
Minute 0
Ali Mr Wilson President Judith portrait in this video just talk about how to implement a managed application that requires callbacks from a native API and a number of the IP eyes when the Win32 API in situations where you got to call out to the API and the API will have to call back into application will go callback function knowing in net and latest comments of callback is very simple we do with delegates but we don t see coding is the native API is really a single delegate is that we used single function for his alleged and first was that how economy does constantly see function pointer in about a delegate matchup and then how we deal at passing data and often when you are the callback function involved your application will call into the native function panaceas some apathy specific data and then when the callback occurs your application that uses
Minute 1
It is that you associate with callback rights of the few things that look at here now and what it seems very simple a rather amusing with a built in callbacks I ve ask the creative solution your Mr solution is a mad application and as a CD allow the infamous callbacks that lethal roadside weeds he was happening they ll be obligated itself is very simple would it ll appear at the two menu options and there s really no code or the only thing I have in your interna room and function and that is display message function that will use the display information is belonged to does with happening so no real function out here and what comes until the callbacks and it ll appear whenever you re dealing with sea programs you don t have a header file you later have documentation or to see her file is not both and we don t callbacks yield is very colorfully looking type definition will appear as a callback definition that
Minute 2
In return for it and no parameters is a basically just a look here this is the data to name neither were complete crock incidental as a callback because of the threat is a list around and note the callback was expecting a function with a holy and no arguments so the question is that how we deal with that how if you get that into our master we re going to do two things first of all reminder to go ahead and define something the maps of this and also we saw to use the callback function right of the giggle appear in the next of function in the sea code will start native process at this of the idea that the managed application when it wants to go off in the requests and work it calls into this native of function starting a processing and at some point that native functions when the callback into our managed application to the ceiling of Windows for simplicity is that we got his start in
Minute 3
Assessing if your vehicle to start in processing accepts the callback function it stores a reference with all that function and that would does is it launches a background thread is a very common way we see callbacks that innovation calls in the work happens in the background and later on you callbacks with Alicea we start his phone to call the thread phone downside here is this a simple loop and basically when the loop finishes it causes were complete crock with Ottawa diggers and women are managed application so that we call into this name API where you callback in the job finishes enough to simplicity work function base his sleeves about a second half depressingly work can just go back to our massive cases yelled at government is now Rachel really do here is that in our menu just one match what call that function and so is the functional
Minute 4
And call is a sky here and concocted a suicide here will call that somehow the first of all we know that we have to do a deal import because native and so go near with ordeal import and mental immunity a lot called native DLL won t name you ever hear it who got that in the fourth grammar function in know it is a reaction to say of external to start concern and we have had returned that of course everything is back to their file and returns of this function is void if your void in the functioning the question is what we ve has as an argument I because in the name of world it s expecting a function pointer as an argument for the function pointer corresponds this
Minute 5
Will in the inner layer that Exley did Donna provide comfort reports has the ability call back and forth feed in managed code at the trouble or beginner of layer is able to map see callback functions into net delegates to base a lousy or verbs of things understands us function pointers and allows a Donna world to see things understand delegates so we need as a delegate that matches the signature to be a member that would return type and no arguments to back your my code for Singh would do is declare delegate is a delegate and call anything a want for consistency of Holocaust something similar to what the native API uses a cynical at neither were complete crock and sum total of my work complete delegate saw Seo s would avoid return to work complete delegates and takes arguments declared
Minute 6
Delegates are so now we can stick a delegate an estimated title user expects that delegate I was told us of our work complete in which the simplicity and so he got that we now have a delegate much of the function pointer and the deal import opinion both allows the callouts and it could sit now last thing you do is asked to call the function will just have a delegate defined as we win to have a function that we feel the function is to create a function is what you call back into so basically wanted to hear now is actually have a function near the matches the signature the delegate was a former work complete in all doing here is display a message to determine
Minute 7
At there is just want to process a will at is this function are we at their but now I complete matches the signature of the delegate we ask him to tell the function but it is this delegate to grab is your to cast so now you know Bill typos as we could so our Bottalico written and tested sway you now to break points in one break point he goes in to many herbs and we get here will break an elegant debugging point on Wednesday released it
Minute 8
About second half later we find that we get called in to work your callback function is as good start in a five launch of the application student of the emulator know what it implies that this one were debugging we can only look at the managed side of things can t debug the native side at the same time your life for another video lexicon over how Alexa do kind more advanced debugging and embossed with native and managed case of the application world Summit protest one that puts us into our function to all of you again say debug continue and is a call in to the native code native who will call us back momentarily to continue when a second and a half and Bill are back but somehow we ve actually got to the point that were called back into your from native to JC in the simple case of just passing a delegate and you
Minute 9
Folks are very simple because the delegate matches to the actual font imported native code now you consider more advanced case case for relaxing pass data in the managed code into the native code and other native code has to data back to the master says we have another start function you re starting a processing with control frock and access a different default of water as will go where you were controlled frock is a bull return value which is really an answer in a managed code and a ran towards them and importer in unmanaged code in a safe time I ve actually just a pre declared as for Sebastian brought his delegates are for were controlled delegate has and returned late was her bowl and importer world for a
Minute 10
And also a distilled down to the is a one to many test to a gas and code here so that an empty control function as the first argument is in zero second argument and are all were complete as there is a time to tell that laid out they will focus on now is the issue of data in a limitation in native code is that we colonists are starting across with control frock we take the data and the function porter and restore the false importer for control frock and that is signed of this background thread processing each loop through it calls a control frock pan seeing the data from the second arguments over the Al Qaeda pass the data in and that the native code is passing that data back in the idea that is that that actual managed function whenever that returns zero is back from processing and just as the idea that is a
Minute 11
Repressing data and funk supporters are managed and native native calls that match function passing back the day of the matters application and then each time through the function and managed to decide whether process continues wife return value is a very tight coupling between these two so appear somewhat control so versatile you want to do as he details out at the snow for simplicity I got his classical managed it a very simple except the manager recall process account is displayed that that s going to manage data that we pass around this in a vacuum reform suicide here but I managed it in do you do for a new instance of a sub Saharan press accounts of the zero and doesn t display picture was told I managed its object
Minute 12
A wind chill is this is is a sure so inherent conifer for second as clear as you are no one has been his inside of this function is all foreign again we want this to receive the same reference to our MGD data it is just that in cyber code here somewhere we would have a managed data NPD data could have at a price parameters of the at any years in that one might want to do is only this MGD data that are processing countless of what increment that are one in edit each time we go through that red check the value through essay that will never return value in return value and basically the return value is the tests
Minute 13
Data processing to manage data a processing Is a screwed up and say to is ignored onto two times then we return zero which will say to stop otherwise return one of the return value and put it here just a silly dissent again is that the background processing is going to salute it calls or were controlled frock which is really David is managed function national did I get the data of its past so it was passed in here in the Navy which is passed back into whether that it is an error if it s a gratitude is an stop sex and so that s what we really want to have happen another so Houston yet consider first of all his Majesty as we have here is the local reference to that means that when this lawsuit is out of scope that David doesn t exist in
Minute 14
Gave a fact that it moves into class level or see ideas about decoration of is the class level use in this function and use in this function lands back to calls his background code and soda and Condit managed to instances of that and so forth but we want that or the idea of passing beautiful callback function is of the data in the callback can just close together so we really want is this year s argument now to what we can do that and it is very useful when you do that is now again we can t just have the directly at because Barcelona were still using it is wild collected before you done your chance to use it we have to pass the data needed code in a way that s safe that surrounds me as class of the DC handle just about as our data handle and we didn t hear drug or DC handle function call the Alec
Minute 15
Function of the GTO class called Alec function and were I say that from and manage data and what this does for as it allocates a with public reflector handle basically this GC handle instance counts as a reference to that object no as long as this handles alive the object will give our collective ritual even know this is going a scope here we re guaranteed as the garbage collected by allocating a handle to know what you said here as this argument so we want to do then is that like hands are data handle to an employer to impose our interests in the system with the cast and corner of our data handle so now with that I think they did a rough if we were a year as an animal that handle travels from the managed code in
Minute 16
The native code written native code it back or give towns and enter the native code and starts the threat passes into the thread and the backdrop for a summit causes when he was back that important rivers of their metadata so we need to do that is down here in armor control function is guessed that manage data back so have is not as that is lParam is going to represent we created for a year so what we want to do then is that we ll get back toward GC handle first all together therefore getting out of him already here against cast duty Seattle that s on your lParam and then once we have the data handle Woodgate is a real object so this is our data handle target so this does is that this of it as a reference back to the auntie treated here
Minute 17
Here s the real object that s a target I will use it now is to cast said now we have at this point is the reference back to the same object was created here so now we get our men s data are processing cow will increment up by 190 minus this obviously is alive to the still having it was delivered we have destroyed him later regret why one do the test and then of course it based on that return back to 01 with controlled loop you know we want less than we had to be where are we ve allocated out his handle to the date of the clean of warrants being here where we use it and we increment it and ultimately we exit the loop that they be careful of is we will don t want to be there to leak the whaling industry great now the piece of data that I allocated for a year to never a cleanup is a GC handles the second round to live her life the application so it was so
Minute 18
I too am just a legality of the handles they were keeping were still using it needs someone as they were not using it anymore will we know that when I return value is euro redone this is necessary if it turned out in evil zero we can then do is take our handle to handle in Crawford and every zip classes were done what Cinelli creatively test around with you to use event in world on her for it who is enough where to get it into her testing your list is a call for display message function and will do is read or manage data and called to string function correctly write out the strings inside of the men s data and with processing count as he saw or it s just a similar break points there present was a debug start debugging
Minute 19
Router drama later want to starts upwards on the menu methods are just too inside in your race and now we get to hear his Al Qaeda referral manage data and to doubt that there s a minister in a managed object thrust down zero and I goes through a calling to GC handle to a Celtic reflector hey I want to best references to build it away for me is cast into an importer and provided with the call calls the native code in addition to call us back passing in that same information that same reference to comes back now is not the end foreigner as we need to do is give back to the handle to back the handle want to get a handle denoted the object node and manage data and began across down zero the step we increment that by one
Minute 20
Projector return value result was a processing count as one is not written to the return value is wanting to keep running again let this guy go Fish come back again it will step birdies in his 14th process account is still one little as last time as I did at the increment is integrated into denies it looks processing count is two is a great into a return value is still one let go because Bank sniper processing count as juvenile ask all its and now we go through the process and cannot reach the return I will present his rate is written to the return as yours run exit the loop and we know now we no longer need that manage data object survey done for it is that there s a similar release them a measure to see everything just
Minute 21
Font finale we can actually go ahead map delegates into function pointer for callbacks are going into native code as a callback for mass applications and were castigated down to their native code is capacity of the best for our massive occasions these easy handles to save the pass that data down to native code is not usable what comes back for a master given a ridiculous and present it as incorporated by degree time
Click here to go to original video page
Video: How Do I: Debug Native Code in a Managed Windows Mobile Application?
Presenter:Jim Wilson
In this video Jim Wilson shows us how to debug native code in a managed Windows Mobile application.
The following text is a software generated transcript of the video. Click on a minute link to jump to a location within the video
Minute 0
A president in a corporate this talk about how you can debug the code to call for a managed application in this ads appear there is a managed applications that this war is at us as a bully and guilt is now aware in a system deal import set up start in us as a control for a I call this match could on the case there s a very tight coupling is noticed that silly are surpassed your or control or complete their delegates to that means is that I m actually taking this managed code calling down to a native function and we get a native function start and processing control fraud disabled for calling we ask is stored as delegates launch a background thread and in the background thread actually calls back into the managed code so you re an interest going
Minute 1
I could imagine and hear the background thread cement is going back to not just a physical design is not familiar with how to do this we talk about how to set up these callbacks between native and managed code in another video how I create callback methods and pass callback between managed and native code listing if you are familiar with legitimate video as well as a now we want ahead and debug is to now commonly rid of our debug something mail to break points in so since a calling in to started for us with control fraud of input breakpoint here than go back into my managed code and other breakpoint radio just about to call so this is good to start debugging Trevor Zumbrun of art are is running our emulator as a once a starts on the other like with a menu option to get right to the break when I managed a cyclical new menu option I guess I breakpoint
Minute 2
Normally I would expect that I had another break point I would hit it right to live another brick for this line here and other breakpoint on stuff on another breakpoint here in immense good and lost a breakpoint down your name to rights of item back to where was it as a release and you knows that he didn t hit any of the breakpoint drilling at the managed code brick and that s because Visual Studio can only be blog one or the other into native code or managed code so that was that we ask you to choose which one would want with what is it now we know how debug managed it all happens for automatically one will look at now with techniques we have available for debugging the native code are just as good with his finish to that few thinnest of their said now if I want to go and debug the name could know
Minute 3
One of the easiest ways I have is that rather than making the managed application to start project I can make a native DLL the start project with that means now that when I go ahead and say start debugging it wants this project now the only problem we have is that this front is a deal of project therefore it can will start running on its own or we can fix that if I is going to the properties as project to use in the remotest table but by default is listening to remove executable as ex as via a DLL file and project creates what I can do is to change this to be executable that s created by the mass project residents of either for impossible delays of managed application s application for threatening CS as a folder and then managed application CS NZ so they ll now be the actual application
Minute 4
Bizarre call until it is it okay so now we got to break points in the menace I am different points in the name saw her sister and start this up and we can comes out on tour soon as he was your first or only emulator is having a second now once you get to start some you notice something initially is that if I compare it would be a frequent environment might overhear into VFP seven magnification is to defray points having some settings sizzled icons telling us that it is no code that they can get to that when reasoning is that it s launched be native debugger now not imagine voters we can hit the anything up here on the NATO side is that it looks if you have the same problem as a Manichaean hippies the issue is that at this point is the loss is not low to get right away networks is that when you
Minute 5
Evoking out pretty well it is aware that the allow them to need it so basically the still get loaded when you click a menu option writes by return back here and now I could just do it as a deal that loaded and now I ve got my breakpoints and it s just now I system through your suggestive earth and if there is a separate tutor their mail before great a threat or put a breakpoint down your this is only a background thread flew to let that go to now is running on a background thread hellish day that remember this is not called back into the master was done he urges him to follow along it at the functions are going to call this all work control and all were complete Andres and debug messages out to sea without helpful when of your resume clears out Rachel
Minute 6
Is not as we call each one of these receive you start to respond to the matter and finished on its function is being retarded return sitting here feel to it is enough I go back and demanding a good race or seven through just a causal sleep are false and excels asleep for a short time reach where the callback tonight wants that are nearly out the window I step again news that we get started with the callback into Damascus which of course were you around here is in Qu bec to managed code in the latest programs could lose three times is a town called by the demands could some day early budgets to go back into the other matter function in an element that are still in the case that s the easiest way for us to debug ready to go to simply switch urgently the project
Minute 7
Launch debugger from that project warning to the other executable this is another situation a little any blog that native code but we don t have the application of an running inside Visual Studio force in them for a number of reasons many of these as order running in your eyes went ahead and do some debugging of the Unicode or immediate access to the name to debug symbols but now the provisional city projects and if that native code project is not really available or to only party ratification you that he believed the return of the Visual Studio allows us to attach to the application after the fact and give full debugging of those of the native to the secular care what you had a stark application on this time I m up at the Visual Studio are doing just directly on emulator to the gatherings for Alturas located rights of the citizen to my documents pop up
Minute 8
Program files refine my application to manage application and click on the start bonus I thought we will again deal gives us whose breakpoint is a back to my good woman is good here again I liberate we call into this function analog recording of adhering to thread function so I will today announce televisual Visual Studio about the application is running a rear so it has been debunked and was it has to process known this comes up by a faulty test process window once to a national process of trying to does not we need to tell it was natural processes for Smart device three for the transfer drop down to choose more device and then basically from here we can choose what went above from a list that is already gone with most of professional emulator said here if I didn t seen the
Minute 9
Leader or device so that one shown here I don t calls and given a complete list is that I can do devices as well via ActiveSync doc device I can do this exact same procedure is a redhead to use that when I will such device and now we say it has to select knows that it can be automatic with what is by default or does the eligibility blog native code reviews automatic front runner use managed to as we went that civilians are native to a guy named a selective is it okay so this is a process is running on an emulator and I want my managed application and instead attach ghettos and it s an hour and voter you know the concerned because the breakpoint is the Highlander bred yet it simply means a deal hasn t been loaded yet because again that this is not a load it until it needs a call now to back
Minute 10
Your application I could on the menu option to see that we go into now or in side of our masculine cities I ve are native to a forgotten integer and wouldn t let this continue on a back reference process remembered and that is the callback into them as good and clear this window sent out each time we go through here now it is a sure way that calls into managed code generators out there calls source function finishes functions as a matter function is wrong just to get her hand was reached on goals again ran one last time goes again and we exit the loop don t go to a restaurant is a very still it is absolutely debug a sea of advocate in Unicode format application where we can either
Minute 11
Set the native project so that it uses the magnification is the start of code red alert said the native project as our project and tell it to start and manage applications run voting process or physically attached to the application after the fact using Visual Studio visiting at the youth market with transport and pick out just application in coalescing again is that if you want to know more about doing callbacks between native and managed code there is the other video like recall that methods and pass callback field between man s new code in listing Wilson are legitimate as often every time
Click here to go to original video page
Video: How Do I: Get an Application to Automatically Start When a Mobile Device Wakes Up?
Presenter:Jim Wilson
In this video, Jim Wilson shows you tips and tricks to automatically start an application when a mobile device wakes up.
The following text is a software generated transcript of the video. Click on a minute link to jump to a location within the video
Minute 0
Tommy Mr Wilson of President units on corporate and this video rental about how you can application the automatic restart whenever one is the place wakes up at doing this is pretty easy to want increase confusion is that in the middle will find a wonderful six anytime you want to handle an event is an incoming phone call or low powers of work you do that use in the state of the case in a system steam class is a class is a party place to go for supplement but there are a few scenarios that are not supported by the systems they class one of which is the voice wake up so we can do that as a negative image of net interop and call out to the Win32 API to do this is why here s a cool class that acts as a writer for over 202 APIs so that is what here s seeing Ron at event in that function is designed for Justice programs to store application
Minute 1
Claim as events occur now it supports a number of different events but most of those are now available consistency class than the ones I have defined herein as enumeration notification event are those that are not readily available through the systems that class so we went use of the device wakes up to use the wake of event to do it is really combated or could send a menu option here for when wakes up so all I have to do this in a winter default class so you run at the event I ll give it the application name possesses a cost near misses account for just do that in a good notification event and will wake up personality someplace wakes up in basically a Pocket PC is a push the power button writer if it is asleep when we bring it back the wake of that will far to rekindle build of this mill RCR device is a
Minute 2
Week he would await us think I m going to sleep up correctly generally on you later know if they are waking up with fortunately the owners will still let us test us so we have is that at the Windows mobile five of phone and privacy for this emulator and the Corona saw as a go ahead once the application event for you that is the one thing is for a messaging is missing is one arm and call mostly folks might have some say on wake up and list the over registry or just application the is that we does in the feedback was going on is whether there is a deliberate plane you re just because you happen in nobody ahead and run the application does it is not only will make this function call sea rather than we always
Minute 3
In the training happen because we ll were as this is the deal is later went wakes up to run something reservoir menu option after I wake up no idea here is that the function call and registers it in the phones limit us at so that s going to some degree if you read the way we test this now is go ahead and put her emulators sleep every backwards in her sleep is a file since it makes a female deceiver program do the right thing in action properly read issued in the application or we do is go back and try connect to the emulator when it just comes up we should see our technical not know what is worse is that when you register that event the cancer program is going to keep coming up now every time you turn the place on it to make a clear and
Minute 4
Is just wonderful around the next I wakes up as a program every time the device wakes up until you tell the system to stop doing up within a once you decide if you want to have your application show the beginning of the system wake of a know what happened to run every time a user starts a system we had to clear out the event is a leading into it as I go back for application and doesn t we had me off for acts are a wake up man at a menu option to clear that if you go here and so the code exactly clear the event is very much the code to create event commemorating their daily difference is as I call this the run up at event to use a different event name and that s the nonevent in the scene arrested your now the nonevent actually clears all events associated with this application so the unlawful event is a
Minute 5
Gated with Count Basie is a clear all of them aren t such as go and run our application with general debugger to looks like that and just like before we has registered in the event to start application there was not much to say at this point seems a weekly or the event as a government option is to clear up star in Waco is in the year to make the call clear and financially at racist election emulator is just application as it is that before going ahead and say file saves the exit and we come back with activity as the sea replicate our device a but in a lot of cases to start the stock will be associated for first insert of the emulator and of all is well the tacklers should not start this time in center comes out to see nothing started so we had to
Minute 6
We properly cleared out Arafat OKs inelegantly to register in a season to start up automatically loosely thought it was not clear it would in many situations you may not mess it was start a new application or you may want have an existing application being notified her that when you put the device asleep at the shutdown your programs revert remain Ronnie is going to Paul s to stay so if they have applications that are running when the device is asleep as if the person do anything and disguises are officially renounced him if our and it was likely so you may want a program now begin performing some action so you should be limited to be notified only is our brand new application and existing applications also get notified everything he do that lately do it as that is our application we have to use were called system laments a base of either like a
Minute 7
All the recent events and manual reason events either Win32 objects that are useful in multithreaded scenarios where you threaten to stop and wait for some external event to occur when the event occurs be a system wakes up that thread is as a precedent so we years out of menu option about no one is as notify Apple wake up soon this case with the far obligation running to get notified of what s going on ago and here is what time I see written a thread function back here they will use that to your back row or as a basically got his thread function and all it does is going to loot to see the loop until he fell to stop its bully veritable and it waits for some of that you re fired so it s box that is fired when the event is fired all of those wake up and display a message saying his event that signal is asleep for a short time they goes back and we think
Minute 8
In don t dispute new here this gosling called I have it here does not make that technically necessary we could want right back into the week off the relentlessly calling here it is so that if multiple events fire or water testing things out we can clearly see that sometimes multiple little fires of Astrakhan was in a convoy farewell salute his asleep and you should see better of events far wife of a function back here it is the width in a row in a background thread away from that first one to do it to the function start up in his order menu offers your menu handler here are meant and say got existing verbal background thread and giggled down your back addresses of the threat and agree a new instance of the thread class and want to run our Fred Funk is our year to run a force gay sex creates a driven course of them started residents of
Minute 9
And would want to do is just background thread to start an All Star right it was densely message like that as well thread started in to death at their that launches a background thread no member said that the background thread is going to block on some of that finance associate as we handle breakaway handle is isn t it no wonder things that makes this a little more challenging is that in order to actually get the system to notify your thread of the given the current behalf he is just called and named the events in its criticism of that obviously have a string name in the compact framework the auto reset event in Amman recently classes do not support currently named on its so now where it is fortunate to come afterward we know so little where he is named events we have
Minute 10
Interop calls for better call the Win32 function of creative that then that will allow us such great anime that so and here is back in that Win32 class and we see are ready for sea just happened that I see as some other functions and these are all just Win32 functions are related to events are creative and creates the Eiffel that object like real name or wafers and wanted a logical way for an event the signal signals using event modify action allows us to manually signaled the event note that modifies ask the racks are more commonly known function so that now our application to manually fired event if it needs to see why one do that it is a close handles and clean up after ourselves the ones are really conversation was so creative and rejected at the screen and event and to wait for single out aren t so windy outside our code when you hear a lack to create event
Minute 11
So you know Dewayne Hamill is an importer serves as a way to handle equals you Win32 function recreate event for us from just 40 manual reset unless we want is the auto reset event or manual reset was a zero with his auto reset which means that ask the signals license radio through and guarantees of the thread doesn t come through again it s a matter reset allows for an open up the gates let s read Ron finish up and down all the recesses of exactly 1 instance through and walk again such we want and also we see is a stateless if that is your reset is that we want the threads will initially block so what happens here is that what we start up our application chooses option we create this event is back from thread I comes is his Islamist logic if a stop at that point until
Minute 12
Than signals is just one free maintenance you re right side icons of euros for men and waiters and so that s the name than it now so at this point with all the pieces are tied together here we just want a background thread was created a Win32 in the event that can be used to signal the threat the thing we need to do now is actually get the system to signal that threat that is hard to seem a little strange to a here and were still in use the same cultural use before there s an Win32 is that we see run up advance and we know we want to signal our Win32 event and get and grab in a name right and when we want to signals well on Waco no the thing that makes us a little strange is that we can t use of that name in this format beneath it difficult to identify what are your Frankel program remained in a
Minute 13
Ever that appear earlier we passed inside Windows without a seat in this case it is also just account that NZ because of this as a lot of us are any things in Windows for McSweeney at way to clearly specify this is a Win32 named event as opposed sometime programmer something for is that there s a special format the font is what is it just another cost in your costar of notification to system event name and the way we said this now little questionnaire is that we have to put in back backslash with identifying notifications named events
Minute 14
Still a TNR says that it is in him is just a disease of all and how we put our law and said a little string becomes I such medications bash is named events events example so weakened that name we ll put it here and see run out of event what that will do now is actually single elements whenever the system wakes up soon how we choose his menu option we launched a background thread the obvious is right of course the background thread blocks here at the place asleep when this is the wakes up he will then signal that event in our background thread should wake up and display the message let s wake up to now I also have here is to make it more obvious that
Minute 15
Is won when does both a few simple and selective and blue aqua telling you say this is what cannot we know we ve gotten out of so here we got everything ready the only thing left to do is clean up her right now poised for it is written that want to go ahead and creative and start a background thread and nothing ever lets his back comfort come down to tobacco thread doesn t come down until his loot a very bulky for lives of the falls process we need to do right so back here and our foreign closing and take that member key for a lot of said he will falls in now of course the classic problem we are threading is that he is at this burnable we go down here and found is that the background thread kick around the while loop because we visited the signal not only family for the actual system was similar to that of shutting down was a kid ourselves so we do here than
Minute 16
Is to go to let the thread come down to Win32 set event reviews are waiting out so that does them is that we set the variable we go ahead and the signal event so that when this wakes up the back of France says it keeps her alive rumors about the false cynicism can then come around to thread can come around excellent verbal and is it just back from federal shutdown notice a LAN environment to clean up the sure thing works right right we should check and say that well on a background thread where we want to go into wafer that the shutdown in my getting everything I come down cleaner together serve as a good way to shut down and we should probably use of a shutdown wait times as a cost in your shutdown week time thousands of the really large and 30 seconds the system doesn t order with a debugger
Minute 17
Is either had these long wait times it is so in real for cover real situation in your applications if I make the something more like 500 000 in a guerrilla situation again this is all sorts are nobody s tears will keep that in their resident got that Saddam is just shadowy time she s got that there are no wonder though if the stock of red shutdown properly resurrects you can use the notable wages should return value rights will say here that is the pool terminated so wait for that background thread for up to three seconds when this phone for the soldier returns if it actually shutdown correctly will have terminated the true if he didn t as we falls so to say here that is a will is not terminated have been shutdown correctly there in force at Saugus appeared in at the end is really just making sure everything is just
Minute 18
Includes of nicely in terms of background for a minute once for all done we can close the handle this associate at an event we created to Win32 close handle after we have right now the only thing left to do here is that remember that are a background thread object is only set if we actually run this menu option document is a background otherwise is no arms we tried to call an old thread redo their search in Iraq is in a flock and so if our background thread is not equal to null then we ll do all this stuff It s another to look at it crazily daily and we set the menu option to your reset the menu option because aside creates a named event of an example starts a background thread displays a message and this is the system whenever the week
Minute 19
Event occurs go ahead and signal is named event slabs and forces the background thread is blocked on that single please reply with that of the signal when signals will come through tell us that it happened and they go back around waiting to signals again raises a perfect way to set this up so that if your application needs a something special when this is the wakes up you would put all that code right inside here is that where are you going to work stuff ago when in the course of shutdown interested citizens resent the variables and events in her back conference of sound or image is clean up after ourselves ordering or who he is as good as the sounds doctors didn t want to occasion I was startled out of the boat of us are obviously just because an organism to the application recently and where to plug it in and probably does
Minute 20
Act chemicals or application to crash something we come back just on a voter to get into their menu option soon I was to start a background thread just think as we expect you to instead thousand dollars for and we bring it back up to find that our cases were still running as unification is a single at you like you re written contract or emulator can do is emulator you see that we got place like a signal as I think the missing is busily asked if two of them in and of the lot and to see whether that s how it works sexy signals twice of the event wake up reduce all that I said the messenger toys as well as we had to got in a case when to shut up twice resolutions down again see his leaders of was a stadium to do for
Minute 21
A note in Rebecca and rearm Hillerman signaled another just beware that was very powerful field advantage it noticed you to that of employees on wake up is that it is here ripping out of how dead and about the Islamic a starter for us when please fix up in Wales and I m running application notified of the Weslaco in the news jewels Ltd has on every time
Click here to go to original video page
Video: How Do I: Configure the Device Emulator to Use an Emulated Cellular Connection?
Presenter:Jim Wilson
In this video, Jim Wilson shows us how to enable and use the Device Emulator to simulate a GPRS connection to a Windows Mobile device.
The following text is a software generated transcript of the video. Click on a minute link to jump to a location within the video
Minute 0
Prime Minister Wilson from President Italy have incorporated in this video rental at about how to configure the device emulator to use an emulated sailor connection for you as solid as well since SDK it adds a number of new tolls to just shut us up the tolls are applied there are available for use not just a wonderful sex across all of your wonderful 50 and 2003 second edition development to the tolls although the little sex of affect our entire proenvironment ago with the key changes the wins will since SDK makes is one it off greater device emulator to a reasonably similar one point out complacently just to point out you also get what s called the cellular emulator this emulator acts as a cellular radio for the device emulator so plans that you go more for powerful place emulator and you got a much greater capability
Minute 1
For taking advantage of this site activity and emulating Sutter collectivity navigation development system that we set up the first one to do is going to Visual Studio tools menu to start a device similar matter and so from here if I go out and open up the windows mobile six professional emulator they ll do when this was a professional emulator or this is the same as what we used to call Pocket PC phone edition remained at his accidental regional Pocket PC but also has the capability to make phone calls and actually use the site networks and wrote it as networks are useful for much more than just phone calls are often want use it on the field to use their networks actually transfer data back and forth as well switch really important that when you re developing applications that you incorporate testing for the behavior of cellular networks they notice that while it was Joseph professional if you notice the icon at the top is
Minute 2
We don t have any service this is good and try to Hong Kong to give your admission essay in warmer numbers as a style 1112222 as they talk Minnesota value says we just aren t wireless radio must be attached use the phone just that we don t have ascetic abilities here also if I go to suddenly Internet Explorer and I try to go to while one of the favorites out here in section on Internet and said the Windows on site which I got there he was also that you sang an engineer messing attack and act such as that we only have a collectivity there so what we want course is in a fact turn on the cellular radio for the simulator and what we do that this was using was called the cellular emulator and so if I go out here for start menu
Minute 3
I go to where the winners will sophisticate photos are good schools have ago to sell your emulator as we bring out was startled to see that has a number of features available to make it very powerful and just I miss him to go back on your shoulder into is that what you have is a limited or open you got the call manager which actual Linux to see the calls that the listeners making as well as light calls into the device emulator the network tab allows you to see deity cases going on between the emulator and out to be a newsletter connection as a must have allows you to see SMS messages that are sent from the device emulator and allow you to send SMS messages to the list and it is usable to test your abilities and burial of a low level management desiderata to return to setting commands to so forth are the ones of us who will work with most
Minute 4
Often are the call manager network SMS and so does go back to her device now we ve got this in an earlier open we have to tell the device emulator how to connect to sell you emulator in the way to do that is by noting this comport number down here in the bottom left hand corner of the same emulator businesses calm for so we have to do is go over to her device emulator going to file configure menu go over to the referrals if any are underserved for zero we want to put in that comport calm for negative is that why click the drop down pursuer for zero there is no calm for a sexy showing the only the physical comport for available as your virtual comport is so wanted to hear instead is that he decides that in a sitcom for sale gang soon who knows that this initial
Minute 5
Thing going on with the device emulator for no something happens at the device emulator cannot fully connect up with a cellular emulator until we do a soft reset on the device emulator single file resets soft insidious were prompted and now the voice of a war reset with these easy amount as a device to your finishes and reset it comes up it now has phone connectivity and a cellular network activity resembles now I should go into full list here is our number at 11122226 on the list that the call goes out and you can see it on this emulator for showing us the lack of call is made to that number and so this gives the ability now may cause out notice that
Minute 6
I select this I can then drop the call so I guess he doesn t have a case to see how it behaves out what to call a suddenly dropped also in this of their special phone numbers down here so I would see how my application behaves when a phone it s a busy signal callers rejected right to connect this only hangs up right basically we now have the abilities or application to working closely with other phones service to really test out what s going to happen notice that we came to call it here saw semi calls coming from 1234567 and I say Domino is an incoming call shows up over here on the DeLay Senator Mike answer and so now I ve got that call coming in so for the full sample and we now have full capability call sounds calls in the new subspecialty moodily calls will hasten out because connection plays the
Minute 7
Or son or network know that to this device emulator and I can connect with ActiveSync and in a network that way and to be using the desktop pastor in a semantic going through the desktop to the network or at most cases against the mobile application your users are going to do transfers over a cellular connection she sure that you are application that you can deal with all the things that go what is our connection to courts and connections are sure lozenges nature of a being mobile and more often impatiently to handle for one to work to another so you understand hierarchies would behave in this area is so limiting engine as well just go and run a cellular network units for commitments are going my favorites here is to try to the Windows lives of
Minute 8
So you know is that we doesn t have them right away near message that tells us that although cellular collectivity was enough to get the phone work is not quite enough to have the networking software and this is a real device just because your device has access to the site of the attraction of civilian orbs of the work and descend up right about and dismiss us as to why your settings limited for connections tab to go to connections and what we need to do now is set up proper connection shootings so throwing out to the Internet to notice my ISP selection here to add a new modem connection however one or called as the eye as he cheap URS connection to a bigger select alone in an era to choose cellular line cheap URS and no Midori to wrestle Wizard
Minute 9
Next with only an access point name river doing a real set of neither were heading to hear you say that blank to work as a writer in there and also the log information and just give that blanket finish so now we have a connection to find for going out to the Internet over a secure connection settings now if I close this on back and explore why go to my favorites again and does not try to Windows lines in is that it s connecting it was the pages are coming on momentarily and then see the thieves is painting out a real data stored on going out over the Internet at us through our serious or connection so as far as EMI is concerned this was a cellular radio out onto the Internet of you
Minute 10
A blessing to keep in mind just like the other connections you re doing when his mobile this actually set up so far is just for going out in the Internet if you want to be a access of resources under work network to set a emulator was a celebrity protection for that resident acidity of the 100 settings good connections choose connections you re and we get to my work network just a so so minimize the minimum I work network at new impact and it will call this work at G PRS connection and an infusion dress again say next it is little for connects through its and so now you ve got a connection defined for both going onto your work network and out to the Internet misses you say that was a emulator in place we can now connect our emulator up
Minute 11
We will radio calls out for a device emulator sent SMS messages out from our emulator is there caused it to our device editor and send SMS messages and tortoise and and then once you re going to find connections for the Eucharist connection to define it was little connection or to correct activity we can actually cause now onto the networks going through Saudi Arabia this unprecedented ability to really test your applications to test out their behavior winter air with these communities are resources rates still lost and what he will do what is is a place where it doesn t test enough for vacations and Nestl area for your very likely run of problems just because a little acre thing s unique to know what happens to revocation when a connection suddenly drops her activity was spotty faced so they re really powerful tool
Minute 12
Is to give and get my name is Jim Wilson a president giving up Inc thanked her time
Click here to go to original video page