coolcars's Q&A profile
Smart Device Development Updating listview frequently
Hi, I have a list view to support presence, it has a buddy and his status using (Session Initiation Protocol). I want to update it whenever someone changes his status. What is the best way to update it I try this code but it does not work it hangs, I wonder if there any other solution if (e.Request.Method == SipMethod .Notify) { string tstatus= "" ; GetStatus(e.Request.Body, ref tstatus); OK ok = new OK (); client1.SendResponse(ok, e.Request); StringBuilder sb = new StringBuilder (e.Request.From.ToString().Remove(0, 5).Split( ';' )[0]); sb=sb.Replace( "@here.com>" , "" ); UpdateListView(sb.ToString(), tstatus); //to a ...Show All
Windows Live Developer Forums How do I highlight words in a Windows Forms Text Box
I would like to direct the user of my form to the search text they entered during a find process. I would like to colour it red and make it bold for instance to show them where it is easily in the text of the text box. Does anyone know how to do I do this I'm using VB Net 1.1 Spence take a look at this link, they are doing what you want: http://www.startvbdotnet.com/controls/rtb.aspx ...Show All
Software Development for Windows Vista ScardAccessStartedEvent does not signal in Vista services - service hardening?
Dear all, Migrating our core development platform to Windows Vista, one of our Windows services using smartcards is failing. We have debugged the problem and found that the event provided by the function ScardAccessStartedEvent does not receive notification. This event is supposed to signal when the SmartCard Resource Manager starts. As we have a WaitForSingleObject(event,INFINITE), the service hungs. Testing the same service as an ordinary executable ( registering with -regserver ) I can see it works properly. In XP it works properly both as an executable and service. I have read something about Service Hardening in Vista and I guess it may be caused by privilege reduction. So, I've created some code to enumerate the existing ...Show All
Visual Studio Team System Dynamic Configurable Items
I'm having problems adding this item to a shopping cart. Its has custom dynamic configurations so that the user can select custom sizes or colors for a shoe for example. Here's a link to an example: http://qwww01.extra.americanexpress.com/Product.aspx uscshortcode=12204304&usclongcode=32870730&merchantid=0 As you will see for this particular item, you first have to select a width in the first drop down. When that is selected, the items for the second drop down ("Then Select ShoeSize") populates. When that is selected, the items for the third drop down ("Then Choose Color") populates. The VSTS 2005's recorder gets confused and tries to do a form post for all three. However that fails. Does anyone know how I can g ...Show All
Windows Live Developer Forums The oncontextmenu event isnt fired when im in 3d mode
The oncontextmenu event isnt fired when im in 3d mode. helphelphelp... On viavirtualearth is an article about the issue, my event is fired, but the contextmenu isnt displayed, i will have to use iframes for content overlapping the 3dmap( sh1tsh1tsh1t), because thats the only html element that will be rendered above the map. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. My First XNA Game (not complete yet)
Hi! I hope it's ok to post this here :) In order to get acquainted with the XNA Framework, I've been working on a small game that showcases several things I wanted to try out. It's a computerized version of an old dexterity game where you have to navigate a ball through a maze with traps by tilting the maze itself. Today I released sources of the project so far: Project Balance - Day 11 May it'll help beginners see how a moderately sized XNA game project can be organized. The sources are very well commented and I took care to apply established design practices where possible. Things you can find in the project: using a scene graph to manage the visual scene usage of the GameComponent/GameServices architecture stencil shadow volumes with ...Show All
SQL Server Top 10 with ties
I have the following tale that appears like this: IMAGE Its show the top 10 company, with the top 5 sub companies underneath in a table where I use the filter TOPN = 10 . My problem comes in when I have two company that exist in the top 10 with the same value, in this case $0.00 it shows more than 10. I understand that using the top = 10 in sql reporting services is suppose to function like this, but want to only show 10. My SP looks like this: SELECT SicDescription, ISNULL(Company, 'OTHER') AS Company, AccountMV, AccountFeely,sicid,relationshipid as 'rnumber' from snapsraw WHERE (Branchstate = @state) AND sicdescription is not null AND (monthend = @date) Any help would be greatly appreciated, I heard of some people saying use the ...Show All
Internet Explorer Development How do I pop a new dialog?
I have a COM/ATL BHO written that will scan the body of a document looking for specific data. When found I want to pop a windows form that will contain different messages depending on the data found. These can be long so a message box is not going to work. So, how do I create a dialog with a text box and a close button and display it on need. Do I add a windows form A resource dialog I did try the dialog route, but I am getting an error saying MFC Apps cannot include windows.h. And when I tried the windows form, I get a namespace and class, but I can't figure out how to call them. I do form work in VB and server console stuff in C++, so I have never really had to do any forms and C++ together. Can someone point me to some good examples, ...Show All
SQL Server SSIS Database Table to Flat File Destination with Column Headings
Hi, I have a simple enough task to complete that I can’t seem to find the answer to. The task is this – Select table x from the database and write it to a flat file complete with that tables column headings. Now I’ve managed to set up an ole db datasource and selected the table and I’ve also linked it to the flat file output. So now I can generate a flat file from the database. However no column headings appear in the flat file. I can’t seem to find anywhere (like a checkbox) that will also output the column headings to the flat file. Now I can add in Headings manually in the properties of the Flat File Destination object but the columns that appear in the flat file don’t appear to be i ...Show All
Visual Studio 2008 (Pre-release) EqualAll sequence's method is gone?
Hi, in May 2006 CTP release I could write a code like this: int[] sequence1 = { 1, 2, 3, 4, 5 }; int[] sequence2 = { 1, 2, 3, 4, 5 }; Console.WriteLine("Are those sequence equal "); ObjectDumper.Write(sequence1.EqualAll(sequence2) "Yes, they are" : "No, they aren't"); With March 2007 Orcas release the EqualAll method seems that is gone. Any idea Thanks ...Show All
Software Development for Windows Vista Getting an overview of a Dynamic format change and it's application to a filter derived from CTransformFilter
Hi I'm trying to do a transform filter derived from CTransformFilter. It does everything should be doing except handling dynamic format changes like when used in a DVD graph with a codec that defaults to 720x480 and then switches to 720x576. As a renderer i use VMR9 in YUV mixing mode and my transform filter doesn't not have any preference towards the YUV format for now. So the goal of the filter would be to have anything relating to the format handling working exactly as if no transform filter was in between and thus letting the codec and VMR9 workout the connection and simply having the transform jacked in between. For performance reasons i choose not to go with CTransInPlace filter. So what I need are some pointers on how ...Show All
SQL Server SSIS - Handling different types of record in same flat file source
Hi, I've just started looking at SSIS and have encountered what should hopefully be a simple problem to solve. I have a pipe-separated source file that looks like this (I've added Line numbers for simplicity): Ln 01: HDR|FEED_CODE|31-MAR-2006 Ln 02: Tom|100|Jones|ZZ1 1ZZ|USA Ln 03: Tom|200|Singer| Ln 04: Tom|305||Red|Porche ||Lanzarote |Apple|Carrot| | | Ln 05: Dick|100|Van Dyke|ZZ1 1ZZ|USA Ln 06: Dick|200|Actor| Ln 07: Dick|305||Blue|Ford||California |Tomato | |||Beef Ln 08: Harry|100|Houdini|ZZ1 1ZZ|GBR Ln 09: Harry|200|Escapologist| Ln 10: Harryk|305| |Green ||Triumph |Poland|Banana|Sprout| | | Ln 11: TRL|9 In addition to a header and footer records, this file contains three record types for each person. Record types a ...Show All
Visual C++ load and time
dears i need an axample how to get time and how to load numbers from file in the disk i found this in the help but it is not printing #include <stdio.h> #include <dos.h> int main(void) { struct time t; gettime(&t); printf("The current time is: %2d:%02d:%02d.%02d\n", t.ti_hour, t.ti_min, t.ti_sec, t.ti_hund); return 0; } i replace printf by cout then the statment is printed but the time no pls help thanks #include <stdio.h> #include <dos.h> int main(void) { struct time t; gettime(&t); cout<<"The current time is: %2d:%02d:%02d.%02d\n" << t.ti_hour<< t.ti_min<< t.ti_sec<< t.ti_hund; return 0; } wha ...Show All
SharePoint Products and Technologies Where is the schema for .webpart file?
I cannot find the schema (.xsd) for the .webpart file. Some bloggers say it is in wss12.xsd but I do not have that file. Maybe in MOSS 2007 it was moved. Please tell me where I can find the schema. ...Show All
Windows Forms How do I disable the MenuStrip's ALT-key action in C#?
How do I disable the MenuStrip's ALT-key action in C# I would like to use the alt-key for an alternate character set in a RichTextBox. Currently every time I press the ALT-key it selects and deselects the menu's shortcut mechanism. Thanks, schmighty Hi, schmighty Just override the ProcessDialogKey in your form, as: protected override bool ProcessDialogKey( Keys keyData) { if ( (keyData & Keys .Alt) == Keys .Alt ) return true ; else return base .ProcessDialogKey(keyData); } Hope it helps. Best Regards. Ye ...Show All
