Software Development Network Logo
  • Visual C#
  • IE Development
  • Visual Studio
  • Visual Basic
  • SharePoint Products
  • .NET Development
  • Game Technologies
  • VS Team System
  • Visual C++
  • SQL Server
  • Windows Vista
  • Audio and Video
  • Windows Forms
  • Microsoft ISV
  • Visual FoxPro

Software Development Network >> pkv's Q&A profile

pkv

Member List

Assaf Stone
M. Nicholas
Yen-Sheng Chang
applepie
JJKebab
swan_sgp
12340987
Poma
Mike9000
imdz
Mike Martin24365
Kevin McGarvey
Devan47
kabucek
giddy
chatz
Jing-ta
EntDev
David Beavonn
p.cosmos
Only Title

pkv's Q&A profile

  • Visual Basic VB.NET 2003: Object must implement IConvertible Error...

    The Following post explains in detail the error I am receiveing and provides the modified code I have implemented based on help tools. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=828435&SiteID=1 I think you'll need a serialized string of byte data instead of an array.  Basicly take the value of each byte and create a concatonated string... Byte(0) = 255 Byte(1) = 143 Byte(2) = 45 Byte(3) = 9 Byte(4) = 214 Serialized into:  255143045009214 Not sure what the order should be or if you should use decimal, hex, or binary values, but the datatype of the SQL field is expecting a string of data... ...Show All

  • Smart Device Development How to connect to GPRS network from code?

    When Internet Explorer is ran on my mobile phone it automatically connects to Orange GPRS network and I see a popup/hint on top of the screen saying "Connecting to GPRS...". I want to do the same in my application. Detect somehow that the network if available and just connect to it. I've looked in settings and iI think this is somehow connnected to modem connections but still I dont know how to start them from code. Any help/link will be appreciated. When Internet Explorer is ran on my mobile phone it automatically connects to Orange GPRS network and I see a popup/hint on top of the screen saying "Connecting to GPRS..." ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. "Chaos" 3d FPS Game Engine (WiP)

    Title: Chaos First Person Shooter Game Engine for XNA Objective: To design and write a first person shooter engine for the XNA that utilizes advanced shaders, shadows, and poly-based collision detection and to meet or exceed the capabilities of the engine used in "Halo" Website: [ here ] Time Frame: 4-5 Months (Expected completion in late April to early May, 2007) Description: The Chaos First Person Shooter Game Engine for the XNA will allow anyone to create high-quality first person shooters that will rival Halo. Chaos will be a library available for both Windows and the XBox 360. The library will include all the basic, and advanced functions of the game, you just need to add in your custom elements and add the content. Chaos will not onl ...Show All

  • Internet Explorer Development Where can I store images that my extension injects into the DOM on Windows Vista?

    I have a toolbar that does some direct DOM manipulation, sort of the way the IE Developer Toolbar does. Part of this DOM injection are some images that we use. Previously, we were programmatically inserting our images into the Temporary Internet Files folder, and when we created our DOM objects that needed these images the URLs pointed to the images in that folder. The problem is, that on Windows Vista it now seems that Temporary Internet Files is now considered a system folder, and I have lost the ability to write to it. At this point, I think I have a few options but am unsure as to how to implement any of them: 1. Store the files in an accessible temporary location (using a different Special Folder, maybe ). I don't know which one, i ...Show All

  • .NET Development How to find the last occurence of <p> within a textblock tiltled <h2>??

    I have html files with the following structure: <h2>article title</h2> <p>paragraph 1 - bladiblah di blahblah</p> <p>paragraph 2 - bladiblah di blahblah</p> <p>paragraph 3 - bladiblah di blahblah</p> <p>paragraph 4 - bladiblah di blahblah</p> <p>paragraph 5 - bladiblah di blahblah</p> <h2>article title</h2> <p>paragraph 1 - bladiblah di blahblah</p> <p>paragraph 2 - bladiblah di blahblah</p> <h2>article title</h2> <p>paragraph 1 - bladiblah di blahblah</p> <p>paragraph 2 - bladiblah di blahblah</p> <p>paragraph 3 - bladiblah di blahblah& ...Show All

  • SQL Server sp_send_dbmail HTML body with stored procedure results in body?

    Hi all, I'm playing around setting up a sp_send_dbmail report to send me deadlocking information. I've written a stored procedure ( utilities.dbo.GetDatabaseDeadlockingDetails ) and I would like to recevied the results in an HTML body. I can easily add the results as a seperate file, but it is far easier to use inside the email. Since the formatting isn't particularly nice as text, I wanted to get it as HTML. Now the sample in BOL: DECLARE @tableHTML NVARCHAR(MAX) ; SET @tableHTML = N'<H1>Work Order Report</H1>' + N'<table border="1">' + N'<tr><th>Work Order ID</th><th>Product ID</th>' + N'<th>Name</th><th>Order Qty</th><th>Due Date</ ...Show All

  • SQL Server Error 1203

    I am running a script on a schedule and I get this error quite often: Unspecified error occurred on SQL Server. Connection may have been terminated by the server. [SQLSTATE HY000] (Error 0) Process ID ## attempted to unlock a resource it does not own: OBJECT: ## . Retry the transaction, because this error may be caused by a timing condition. If the problem persists, contact the database administrator. [SQLSTATE HY000] (Error 1203) If I keep rerunning the transaction, it will eventually succeed. I am running SQL Server 2005 with SP1 installed. Does anyone know what this means and what would cause it to fail sometimes and succeed other times Thanks This often indicates some sort of corruption in yo ...Show All

  • Visual Studio Team System MICROSOFT - Please Clarify

    For me all this is hopelessly confusing. Can anyone from Microsoft tell me if I will be able to install CTP7 with my current copy of Visual Studio Team Edition for Software Developers I don't want to uninstall CTP6 and then be told I don't have the correct version of VS to install CTP7. Thanks - Amos. Hi Amos, No. If you have no other version of VSTE, then DataDude (RTM) will install as a standalone product. AKAIK - If you DO have VSTE (for example Developer) THEN DataDude will (as it does in VSTS) extend the installed Version to include the DataDude features. This is why CTP7 will not install alone (RTM will). CTP7 is only the extensions required on top of VSTS but does not include ex ...Show All

  • Visual Studio Tools for Office Prevent Outlook from embedding attached image

    I'm using Outlook 2003 and C# and I'm trying to create a MailItem using Microsoft.Office.Interop.Outlook.Application It is working so far, but there is a small problem. I create a new message and set the the BodyFormat to olFormatHTML. Then I attach an image "test.png" to the mail. In the HTMLBody I use this image as a source: <img border="0" align="middle" src="test.png" /> After executing Display(false) on the created MailItem object I see this message, but without the image attachment - it is automatically converted to an embedded image with the cid:-link as image source in html code. Is it possible to use attached images as image sources in html-body, but also to keep them as at ...Show All

  • Software Development for Windows Vista Using AVIStreamWrite seems to be corrupting AVI headers on Vista (RC2 build5744)

    I am using the Video for Windows (VFW) API to create AVI files. My code works fine on XP Pro SP2 and Windows 2000. However, the same code running on Vista creates the AVI files with bad headers. The corruption begins after the video and audio stream format headers starting at the JUNK chunk. Example: //Stream header info comes before this Low rate size 00000294 (660) 00000000000000D4 JUNK 00000000 00000000000000DC LIST 0002200E movi 00000000000000E8 00000000 00000000000000F0 00000000 00000000000000F8 00000000 Notice the JUNK chunk has an invalid size of 00000000. And the 'movi' tag falls within the junk chunks. This throws off the indexes. I found that this "junk" gets wri ...Show All

  • Windows Forms DataGrid View Focus Controling

    hi all, i have a problem regarding datagridview. i have one form, and it has two control, one is DATAGRID and another is ListView Control. in datagrid view i have following columns. ItemId, ItemName, ItemUnit, ItemQty, ItemRate, ItemAmount. Now, if i am entering wrong Item Id in datagrid row, and goes to second cell, i want that the list of items in the listviewcontrol will be visible automatically, and settting the focus to that listview control. Actually, on my code my listview control is visible, but my focus is still remain on the datagrid view. so i have to select it with the help of mouse. but it is not convinient if i am doing data entry with using keayboard and mouse simultaneously. Kindly, need helpful ...Show All

  • Visual Studio Team System Ability to incorporate relational data within TFS fields?

    I would like to add role information to a customised work item. When a user is chosen from a dropdown, I would like the role dropdown to default to the chosen user's role. Currently both users and roles are defined in Global Lists, but I wondered if there was anyway that I could move to a relational model. Can this be done Cool, here is the sample and documentation on custom controls: http://blogs.msdn.com/narend/archive/2006/10/02/How-to-use-Custom-Controls-in-Work-Item-Form.aspx ...Show All

  • Architecture Which protocol?

    I'm writing a solution for communication with a (.net) server. Now I'm thinking about a protocol I should use(Remoting, WebService, Sockets, ...). There are some things to consider: There may be many clients connecting to the server with that app (100000 ) I want this app doesn't have any problems with routers (firewall, NAT) Later, there will be a C++ client (not managed) I'm tending to webservices because of (2,3) but don't know if there will be performance issues... What would you do Konstantin Hi Konstantin, Remoting can work well over HTTP, so firewall issues will not help you decide here. I dont think that there is a straightforward way to directly call .NET remoting services from unmanaged C++ client ...Show All

  • Visual Basic How to cast to the parametrized type?

    In my application, I have got a subroutine, which should retrieve the active window, check its type and return it in case of success. I wrote it with the generics syntax: Private Function ActiveWindow( Of T)() As T Dim f As Form = Me .ActiveMdiChild If TypeOf f Is T Then Return DirectCast (f, T) Else Return Nothing End If End Function But compiler says that System.Windows.Forms.Form cannot be converted to the type T. As you can see from this code, f can always be converted to the type T. I have found out really weird thing about that. If we modify the code in the following way, everything works: Private Function ActiveWindow( Of T)() As T Dim f As Form = Me ...Show All

  • Visual C# HELP: Convert PDF to HTML

    Hello all Programmers! I want to write a software myself that can Convert PDF file's content to HTML. But I don't know where to start: Is there any valid ActiveX for this Any exist Function that can extract PDF contents and add it to an HTML file Or anything else that a newbie like me don't know So wonderful if I can receive any reply of yours... Thanks a lot! So many things to learn in this world, hihi : - ) you need to use some PDF SDK that maybe available then generate html from it in some way. in .NET there is no direct way since PDF's are not a Microsoft product really but Adobe as well as having no relevance to the .NET Framework itself. I believe there are a couple of open source PDF projects you can lo ...Show All

©2008 Software Development Network