Michael Lipp MSFT's Q&A profile
Smart Device Development String: undeclared identifier in WinCE system
Dear all I had one big problem with WinCE system when i define one variable String type in Wince sysytem and it come out some error for this type could some one may know what's going on and how to defind this type in Wince Evirnment Wince 4.2.net , evc 4.0 sample code //=================================== #include "windows.h" #include "string.h" #include "math.h" #include <stdlib.h> #include <stdio.h> #include <wininet.h> #include <commctrl.h> #include <string.h> #if defined(WIN32_PLATFORM_PSPC) #include <aygshell.h>   ...Show All
Visual Studio Team System TF command line checkin
I am trying to update our old vss command line scripts to be used with Team Foundation Server. I have successfully tested the tf get , tf label and tf checkout commands. However when I run the tf checkin command it returns 'No files checked in' I am using this command line: tf checkin /comment:"Doing a new build" /override:"Build process commandline checkin" /noprompt On the screen I am seeing the check in policies that are not being meet (in yellow), then a line saying policies have been overriden (in blue) then 'No files checked in'. If I just type tf checkin and go through the GUI the files are checked in. Am I missing something or is ...Show All
Architecture Doing what Microsoft does, not what they say to do… DNA, SOA, Software Architecture, VB.NET, CMMI, Agile Development
Trying to weed through all the marketing driven releases from MS is not an easy task, but in the end it is something that always needs to be done. In this blog I discuss DNA, SOA, Software Architecture, VB.NET, CMMI, Agile Development - Doing what Microsoft does, not what they say to do… I would like to know if you are going through the same problems I gave up trying to weed through Microsoft's patterns and tools a long time ago. Bear in mind that MS is extremely popular in the novice and unproffessional developer community and this reflects on the patterns they provide. As for 'Doing what Microso ...Show All
SQL Server Best way to prevent multiple notifications for an event
I am setting up a notification system using the SQL Event Provider, and I have a question about preventing multiple notifications for a single event. The events are provided from a SQL select, and the notification emails are sent once a day. How does NS decide if it's already handled an event If I change the email frequency, do I need to add a check in my SQL select, or does NS handle this Thanks Erick Chronicles tables can be used to prevent duplicate notifications. Check out ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/sqlntsv9/html/17e2debd-485f-4962-b974-6be6597983f9.htm for more information. HTH... ...Show All
Windows Forms Dialog box stays visible after "Yes" button clicked
Any idea why a dialog box would stay displayed even after the "yes" button has been clicked I have an application that prompts the user if they want to proceed with a process which results in numerous database changes. After they select "yes" the message box stays visible even after the resulting code executes... Doesn't look very professional at all. MRW Hello again. The idea is that long running tasks shall run in a worker thread, not in the event-handler itself. This will make it possible to eg. cancel the task or see how it does. Programming with forms make programming database soutions look easy. It is not. To set up depl ...Show All
Smart Device Development how can Smartphone Emulator send and receive SMS?
Hi, I am a beginner at .net Compact Framework and I have just started a project called "SMS SPAMMER", my idea is to enable a mobile phone to spam an SMS based upon Cell Number. I want to use .net Compact Framework and learnt how my project will go on but I am unble to test my code as I dont know two emulators can communicate or not and if they then how I also wish to know how can I send an SMS to emulator through my cell phone. Is it possible or not. If anyone has any ideas about how to go about undertaking this project I would be very greatful!!! Thanks for your time, Anupam Pathak SP emulator can not receive or send SMS ...Show All
Windows Forms which control 2 use : windows numeric like clock
Can anyone pls. help me what control to use to create windows numeric clock with numericupdown control.How to split numericupdown controls into parts so it works separately on hours,minutes and seconds like in windows clock. Thanks Dude Gr8 this helps :) using format propert to time and showupdown to true that is what i wanted :) thanks again ...Show All
Smart Device Development How to get the delivery notifycation's body?
I am developing an SMS Client on smartphone. In wm2003se, this notification message has a subject "Message Delivered" and a body "This Message you sent to XXXX has been delivered.". I can get the subject using PR_SUBJECT, but I can't get the body. PR_BODY returns an empty string. An software named Jeyo Mobile Companion can get it. How Pls check the following link for more appropriate forums for this topic http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=286724&SiteID=1 Srikanth bogadapati ...Show All
Visual Studio Express Editions SQL Server Express Installation Problem (More details of the error log)
Hi, I am trying to install SQL Sever Express and it gets hanged at the stage "detecting installed IIS...." I have correctly installed Visual Basic 2005 Express edition. I have Windows XP Sp2 OS and correct version of .Net framework. I tried the installation many times since yesterday with IIS installed and not installed. But everytimes it gets hanged at the above stage. Please help me out from this. Thanks Prasad Can you give more info on how you are trying to install SSE Specifically, what exe are you running prasad ...Show All
Visual C# Not Freeing Memory
Hi, I don't know if anyone can help me. I am working with large png files, and finding the memory is not being freed after the object is disposed. Are there any know bugs on this issue Many thanks, Bruce Hi James, Thanks. I have had a look and can't seem to find GC.Collect() within the code. Running through the memory profiler, the garbage collector is collecting instantly after it previously freed some memory. To try and picture this, it starts off at the bottom left corner and increases rapidly diagonally up the screen freeing memory and then the app throws an out of memory exception, before the plugin dies. Its the first ...Show All
Visual Studio C# Express 2005 and Report
Dear All, I am using C# Express 2005 and SQL Server Express 2005 as well. I am planning to use no-touch deployment as well. At the moment, I am stuck as I cannot find any report designer to make my report work in the enviroment of C# Express. Is there any way or extension that I can include into the C# Express so that I can use to build the report Highly appreciate your advice. Regards, LG That error indicates that the report definition is looking for an instance of a datasource that is bound to "dsInventory_tblStok". Click the Smart Tag of the report and select "Ch ...Show All
Visual Studio Express Editions Problems deploying extra files
Hi there, I am having a problem deploying some files, like Readme.txt, Database, File.ini on the deployment package, the files are included in my project and with copy always to local propertie, but when i hit publish, the files just dont copy to there, so when i try to run setup(instalation), on the end, when app starts run, it returns always a exception, because file bla bla not found on location bla bla, i resolved the problem of INI file, by creating a function that creates 1 default on the app directory, before reading his values, but i cant make the same with the database and with the readme.txt, how can i always send this files on ...Show All
Software Development for Windows Vista TimeoutActivity
I want to write a TimoutActivity, that behaves and looks the same as the SequenceActivty, but has in addition a TimeoutProperty, which allows me to define a TimeSpan after which the activity is closed. So my TimeoutActivity gets closed when the child activities of the sequence have finished their work OR when the TimoutPeriod has elapsed. The first idea was this: My TimeoutActivity has to be sort of a discriminator activty that is similar to the standard ParallelActivity, except that it immediately switches to the closed status when one of the branches has finished. For the first (left) branch I take a DelayActivity and use its TimeoutDur ...Show All
Visual C++ Isolated Application? What is it?
Hi, plz allow me to ask all of you a very simple question. What is an isolated application Who isolates our apps from who Some docs start with the following sentence; An application is considered an isolated application if all of its components are side-by-side assemblies. Do you understand this Me No, I do not. I suspect that these days Microsoft is encouraging us to write manifest-based apps. If I am right, you may call every application isolated applications. Help me understand the concept of an isolated app. So far I have read more than 10 docs about deployment. Very sadly, I am getting to conclude t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mesh.FromStream method of C#
I have a VertexBuffer object that I "manually" load with vertices. I then attempt to create a Mesh object by calling the Mesh.FromStream method. The first parameter of Mesh.FromStream takes a stream and I attempted to get the stream from the VertexBuffer object by calling VertexBuffer.Lock. I need a Mesh because I want to make use of the Intersect method. Has anyone ever attempted create a Mesh object from a "raw" VertexBuffer If so and you were successful, I would be interested in knowing how you did it. GraphicsStream gs = vtxBuffer.Lock(0, vtxBuffer.SizeInBytes, LockFlags .ReadOnly); mesh = Mesh .F ...Show All
