Wee Bubba's Q&A profile
Smart Device Development POOM: Can't delete appointment if using IAppointment*->Display
In Windows Mobile 5 for Smartphone POOM is now supporting the Display method in ITask, IAppointment and IContact (Display was not working in pre-WM5 versions). The Contact card and Appointment card also have a menu connected with the right soft key - the menu enables to beam the contact or the appointment, edit the contact, etc. In the Appointment card, however, the "Delete" menu item is not working. The same command works perfectly in the Contact card - you get a dialog asking to confirm the operation and, upon confirmation, the contact is removed. With the appointment menu, no way - the appointment is retained. Tested on two different Smartphone models from two different OEMs. Is anyone aware of this issue and of a workar ...Show All
SQL Server please help with order by in a view
I have make a view where i have a order by when i execute my view in modify my result are allright but when i say open view to see my view it is not in order by. I use the view in a asp site to the internet and i can't use order by here because the field i orderby shall not come up in my site, i only use this field to order by Hope someone can help Alvin Hi I still don't understand maybe i'm a little bit stupid If i have this: SELECT TOP (100) PERCENT ordenummer FROM dbo.samlekursus ORDER BY ordenummer And ordenummer is a integer i get this result when i open my view 100 200 100 250 And i get this result when i use modify and execute: 100 100 200 250 And then i ask WHY I give up ...Show All
Internet Explorer Development Problem substituting CSS for frames
I have a website in which I link a real estate idx search engine using a frame. I want to change this to CSS to get the website ready for XHTML strict, but I have been unable to get the page loaded. The page to be loaded is http://tarmls.rapmls.com/scripts/mgrqispi.dll APPNAME=Tucson&PRGNAME=MLSLogin&ARGUMENT=6mNQtqRwUcziNf%2BGEU9r3A%3D%3D . Part of the problem is that it isn't an html page: it is a compiled dll. Can that be loaded using <object> I've tried and so far I'm unsuccessful. Thanks for any response. Scott A compiled dll would need to be installed on teh client machine and registered as an ActiveX control that is signed and safe for scripting in order for it to be in ...Show All
.NET Development Setting up trust
How do i go into the framework and setup trust for new users to run apllications You could do this through the .NET framework configuration tool found in Control Panel -> Administrative Tools. Navigate down to Runtime Security Policy and create a code group or modify a permission set based on your requirements hope this helps tribal ...Show All
Visual C++ Prevent same string in ofstream
Hi all. Is there a way to prevent ofstream from writing the same line if it already exisits If so please let me know because i wrote a function that loops the time/date but it keeps on showing the same time/date. Thanx in advance! Before anyone asks. My code below. #include #include #include using namespace std; int main (){ while(1){ Sleep(300); char date [9]; char time [9]; _strdate(date); _strtime(time); ofstream file1; file1.open("time.txt",ios::app); file1 << "[Date]: " << date << endl; file1 << "[Time]: " << time << endl; file1.close(); } return 0; } Note: the idea is to update when the time changes, not to write the same time over and over until it ...Show All
Visual Basic power to USB port
i'm pretty sure it is possible, but i wanted to atleast ask here before venturing out on my own. can I control the power sent to a particular USB port I built a little device to run off USB power, but I want to control the power going to it via the keyboard. so I figured that I would write a program and set up some hot-keys to run the program to turn this device on or off. thanks for any input :) As far as I am aware you cannot control the power going to a particular USB port through code. http://www.howstuffworks.com/usb.htm ...Show All
Windows Forms Mdi Child does not appear
hi i have an Mdi parent form and a toolstrip control on it i load the toolstripmenuItems from an external file and i attach the event (at run time) when i click on on the toolstripmenuItem an event called showform is fired which in it i use thos code that returns a form Public Function GetForm( ByVal Str As String ) As Form 'Str is the form name Dim formType As Type = FillForms(Str) If formType Is Nothing Then Throw New ArgumentNullException( "" ) End If Debug.Assert( Not (formType.GetConstructor(Type.EmptyTypes) Is Nothing ), String .Format( "{0} does not have a no-arg constructor" , formType.Name)) Dim obj As Object = Acti ...Show All
Visual Studio Express Editions sorting list items based on the header clicked
hi, I hav created a list view dynamically and added header controls for it,now i hav to sort the list items based on the header clicked.iam able to handle the header event ... HDN_ITEMCLICK, but iam unable think the procedure for sorting list items,should i redraw the items after sorting the list item. Thanks in advance, Sudhakar. Add a new header file to your project, named sortedlist.h and paste this code: #pragma once using namespace System; using namespace System::Windows::Forms; using namespace System::Collections; // Column sorter private ref class mySorter : public IComparer { public: mySorter(ListView^ vw, int col, SortOrder ord) { mList = vw; mCol ...Show All
Windows Live Developer Forums Display Driving Directions code
I have made a code to display the route but I was trying to implement that so it would display the driving directions but it wont work... The code I am using is below. If you could help that would be great! Thanks < html > < head > < title ></ title > < meta http-equiv ="Content=Type" content ="text/html; charset=utf-8"> < script src ="http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></ script > < script > var map = null ; function GetMap() { map = new VEMap('myMap'); map.LoadMap(); } function FindLoc() ...Show All
Visual C# BITS AddFileSet Function
I am working with BITSInterop.cs from Microsoft and I am having problems getting this function to work properly. I have changed _BG_FILE_INFO to be an array in both IBackgroundCopyJob and IBackgroundCopyJob2 (AddFileSet(uint cFileCount, ref _BG_FILE_INFO[] pFileSet);). For testing purposes I am using this: _BG_FILE_INFO FileInfoTest; FileInfoTest.RemoteName = " http://STLSMSAPP29/SMS_DP_softlib$/9753/Package.Binary "; FileInfoTest.LocalName = "C:\\winnt\\options\\Software\\MIC\\9753\\Package.Binary"; _BG_FILE_INFO[] strctArrFileInfo = { FileInfoTest }; uint intCount = 1; bckGrndCpyJob2.AddFile(" http://STLSMSAPP29/SMS_DP_softlib$/9753/Package.Binary ", "C:\\winnt\\options\\Software\\MIC\\97 ...Show All
Visual Studio 2008 (Pre-release) DataContractSerializer exception "System.DelegateSerializationHolder+DelegateEntry [...] not expected"
Hello, in the microsoft.public.windows.developer.winfx.indigo group I was encouraged to ask my question also here, so I hope this is not seen as cross posting. Here's my problem: I have an object tree which I want to serialize to disk using the DataContractSerializer. For complexity reasons I have not defined specific data contracts for each class but I have marked them [Serializable]. Now I am getting the following exception: Type 'System.DelegateSerializationHolder+DelegateEntry' with data contract name 'DelegateSerializationHolder.DelegateEntry: http://schemas.datacontract.org/2004/07/System ' is not expected. Add any types not known statically to the list of known types - for example, by using the KnownTypeAttri ...Show All
Visual Studio 2008 (Pre-release) Xaml Error when using Frame in a Window "Source="Page1.xaml"
I am getting an xaml Error when i use a Frame to Display a Page with in a Window Class....When i run the program its fine,when i remove Source="Page1.xaml" the error goes away... But as soon as i put the Source="Page1.xaml" back in the Error Returns.. 'Class' sttribute does not exist in XML namespace ' http://schemas.microsoft.com/winfx/2006/xaml ' namespace Line '8' Position '2' Here is part of the Xaml:: <Window xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " xmlns:mc=" http://schemas.openxmlformats.org/markup-compatibility/2006 " xmlns:d=" http://schemas.microsoft.com/expression/interactivedesigner/2006 " mc:Ignorable= ...Show All
SQL Server ReportExecutionService Render Method - Setting the data - XML
Hello all, I'm at a bit of a loss as it seems what I want to do should be obvious but I can't seem to locate whether it is possible. Essentially I would like to render a report using the api/C# and I would like to set the actual data the report renders via an XML string that I construct however I like within my code. Is this not possible I hope I'm overlooking the obvious here. Thanks in advance for your feedback. Take a look at the XML Data Provider: http://msdn2.microsoft.com/en-us/library/aa964129.aspx Or, if you are using the local controls, convert the XML to a dataset. ...Show All
Visual Studio Express Editions Capturing form dimensions
Hi all, One of the things I'm trying to do with my current project is to preserve the most recent dimensions (x, y, w, h) of all the forms upon user exit. And then, when the user runs the program again, the settings are restored. Currently, I'm using the StreamWriter to send the form dimensions to a text file. This seems to work fine for my "main" window ("Me." below), but for some reason my other form ("OutputConsole") only holds the orginial values for the form when it was instanced. In other words, the values don't seem to be changing when I resize and reposition the window. What ends up happening is, the main form settings are captured, but the "OutputConsole" is only capturing the initial ...Show All
.NET Development Asynchronous socket reading using BeginRead
I have a question on reading data asynchronously from a socket. How do you know when all of your data has been received Below is a code sample taken from MSDN. This function will be called recursively until all the data is retrieved but how do you know when the last retrieval is Thanks Kurt private static void ReceiveCallback( IAsyncResult ar ) { try { // Retrieve the state object and the client socket // from the asynchronous state object. StateObject state = (StateObject) ar.AsyncState; Socket client = state.workSocket; // Read data from the remote device. int bytesRead = client.EndReceive(ar); if (bytesRead > 0) { // There might be more data, so store the data received so ...Show All
