enric vives's Q&A profile
Windows Live Developer Forums Need help adding onclick event handler to a pushpin (Somebody please help)
I'm having trouble establishing an event handler for the case of clicking on a pushpin in Virtual Earth. From http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=663245&SiteID=1 I learned that the Virtual Earth API does not support this directly; they suggest using document.getElementById and DOM methods and events. My addPushPin function is called inside a for loop and I'm successfully adding the pushpins to the map but with each "add" I am getting the alert. I want the alert to occur only when a given pin is clicked. Thanks in advance for some help. Here is my code: function addPushPin(id, latitude, longitude, label, html, iconStr) { var pushpin = new VEPushpin(id, // unique value new VELatLong(latitude, longitude), number ...Show All
Windows Forms How can I use fonts othern than TrueType and OpenType fonts in Windows Forms
The font boxes in all control properties do not show any of installed non TT or OT fonts in the system, in addition I cannot figure out how to programmatically create a System.Drawing.Font instance representing such a font. I need to do this in a System.Windows.RichTextBox control, the interesting things is that I can copy and paste text from word in the desired font and it would show correctly in the Rtf property of the control. I would really appreciate any help on this. Thanks, Karim Yes, GDI+ does not support non-scalable fonts. This is a built-in design constraint due to GDI+'s resolution independent design. RTB is however an ancient control, designed back in the days when device fonts where s ...Show All
Software Development for Windows Vista How to Connect Web cam Capture pin and SmartTee input pin ?
IPin* CaptureOut = GetOutPin(gcap.pCap,0); //ASSERT(SUCCEEDED(hr)); IPin* Smartinput = this->GetSmartTeeInputPin(); //ASSERT(Smartinput); IPin* Smartpreview = this->GetSmartTeePreviewPin(); //ASSERT(Smartpreview); IPin* Rendvideo = this->GetRendererPin(); //ASSERT(Rendvideo); hr = gcap.m_pGraph->Connect(Smartpreview,Rendvideo); if (SUCCEEDED(hr)) ...Show All
Visual Studio uninstall problems
I have Visual studio 2005 professional and express editions installed on my computer. I would like to uninstall the express editions. When I try to uninstall them, I get an error message saying "Setup is unable to determine a valid ordering for the uninstallation. See the error log for further details." I don't know where the error log is or else I would post it here. Also, I get frequent errors with professional edition. Should I install SP1 or uninstall professional, and reinstall fresh then install sp1. A lot of these issues came up when I uninstalled VS 6 while VS 2005 was installed. Speaking of VS 6, it is uninstalled, but it left 10 megs of junk in the program files/microsoft visual studio 6 folder (including the ma ...Show All
Visual Basic Simple XML problem :)
If the following document is saved as "example.xml": </ xml> <nodeA> <nodeB> <nodeC> <nodeD> <value1>NO</value1> <value2>NO</value2> <value3>NO</value3> <value4>YES</value4> </nodeD> </nodeC> </nodeB> </nodeA> How can I then get value4 My code works along the following lines: Dim xml_doc As XmlDocument Dim xml_nodelist As XmlNodeList Dim xml_node As XmlNode xml_doc = New XmlDocument() Dim xml_reader As XmlTextReader = Nothing xml_reader = New xmlTextReader("example.xml") xml_doc.Load(xmlReader) xml_nodelist = xml_doc.SelectNodes("/nodeA/nodeB/nodeC/nodeD") ...Show All
Visual Studio Crystal report: Project deployment issue with - crystalcntrl.dll, crxddrt9.dll, crxdrt9.dll
Dear All, I have created custom crystal report control in which I have used crystal report control (crystalcntrl.dll) & crxddrt9.dll , crxdrt9.dll as reference. I am getting exactly same interface as Crystal report IDE for designing my own report. Is there any dependancy file we have to include into setup so that we can run this successfully. But while deployment I found that its running properly where .net 2003 is installed. On the other hand its not working properly where .net 2003 is not installed but .net framework(1.1) is installed properly. But I am getting following error: Application has generated an exception that could not be handled. Process id=0xcfc (3324), Thread id=0xcec (3308) Th ...Show All
SQL Server Merge Join question
Hi, All, In the data flow of Intergration Service, my understanding is that the "Merge Join" only does the "join", there is no way to input the "where" clause. If I need to input the the "Where" clause or selection criteria, how should I do it in Integration Service TIA, Thanks Rafael for the input. Now I have "conditional split" worked for me even it's inconvenient ...Show All
Visual Studio File grouping per project
I work on a large code base (30,000+ files) and what I need is a way in Source safe to group files that I have checked out. So when I do a search to see all the files I checked out, I can mark them to say "for project A" or "for Project B" and if they were color coded that would be awesome. I find myself always trying to figure out if I checked out a file for this project or that and the only way to tell if by doing a difference. When there are 50 files and half are one, and half are the other I waste a lot of time. I don't have the latest source safe, perhaps this feature is available, if so someone let me know so I can request an upgrade. I'm using 6.0 Cheers I've never seen ...Show All
Visual C# How to activate the forms application?
Hi, I am developing a windows form application.If my application is minimized how can I make it visible . my application is waiting for a event from a hook procedure. I tried SetFocus() but it returned the "false". How can I achive this. Regards, Hemant. Thanks for Reply This code sets the application to active app on task bar.(On taskbar that applicaion starts blinking), but the window is not shown. I also set the window state to normanl befor calling AppActivate. So how I can show the form as active application and form to be maximized Regards, Hemant Kulkarni. ...Show All
Visual Studio Tools for Office Catching Unhandled Exceptions
Hi, I am trying to catch unhandled exceptions in my code for a c# workbook. I have tried using the: AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(HandleException); (this is set in the ThisWorkbook_Startup method) but my HandleException method is never called and i get the default "Office document customistation is not available" error message. This isn't ideal as the customisation breaks and stops working, I'd like to handle the exception myself and carry on. The workaround is to put try catches on all my code but handling the unhandled exception would be better. The exceptions only ever tend to be network timeouts, but occasionally something else goes wrong. Thanks ...Show All
Visual Studio 2008 (Pre-release) WCF Stream Bug?... or something?
Hello everybody, I am new to WCF, today I want to make a file upload service using netTcpBinding hosted on a manage application, at beginning, I write some code to test how stream works on WCF. I use MemoryStream to carry a string's byte array to the server side, server decode the byte array and returns the string. codes like these: client: byte[] data = Encoding.UTF8.GetBytes(txtFileName.Text); using (MemoryStream ms = new MemoryStream(data)) { &n ...Show All
Smart Device Development Activesync fails to sync after installing vers. 4.0
Hello to all, I have upgrade activesync from version 3.7.1 to 4.0 in order to deploy my application in VS2005 beta2 to the device. After doing that, activesync stops to work: although the AS icon show connection (green) when the PDA is in the cradle, is is not possible to get the main screen of activesync ; and, when trying to explore the device, I get the following error window: " Critical communications services have failed to start . Try resetting the mobile device, and then connect again". To get worse, I have uninstalled AS 4.0 and went back to version 3.7.1. The problem still is there! In fact, I have tried (with no success) to : - install activesync 3.8 , then 4.0 again, then back to 3.7.1 & ...Show All
Audio and Video Development Programmatically setting the default playback device (and recording device)
Under Vista is there a way to set the default playback device programatically I've searched through the APIs but I'm not seeing it. For example, there is a method IMMDeviceEnumerator::GetDefaultAudioEndpoint(), but there is no corresponding IMMDeviceEnumerator::SetDefaultAudioEndpoint(). Can I do this through the endpoint properties Larry Osterman wrote: Microsoft DOES provide a mechanism for a new audio device to indicate that it should be the preferred device, this is typically used for USB audio devices. Very interesting. Do you have a reference for how this works Leo Havmoller. ...Show All
SQL Server Can a non-admin user generate a create database script?
I am trying to generate the create database script using SMO. The issue is the user account which connects to SQL server is not SA, SMO fails to generate the "Create Database" script with error User ZZZ\User1 does not have permission to run DBCC SHOWFILESTATS. Is it possible to generate a "Create database" script using SMO when you are connecting to the SQL server using NON-ADMIN account The user login is a part of db_Datareader role on the database. I tried following grant permission to the concerned account at server level Grant view any database, grant view any definition and grant view server state. Still it fails. Any idea Adamus, just to test things, i made the user D ...Show All
SQL Server How to delimit in Derived Column Component
If there are two columns in a Derived Column Component, Is there a way we can put a delimiter between them say a '||' symbol or so and build an expression. All I was able to do was concatenate them. [Col1]+[Col2] thanks in advance. ...Show All
