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

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

Boman

Member List

NetProgrammer
Rhubarb
GN
Bridgeway
tizza2k
kreigh
Clark Anderson
Nilay
mmmmBeeeer
Murilo Rodrigues
RayPowers
LeoLeal
Khurram Javaid
irving at irvingevajoan
YongZai
monolith1986
DMAR330
TechMate
Kendal
TimmyG15
Only Title

Boman's Q&A profile

  • Software Development for Windows Vista Windows Service Running Word via DCOM

    Hi everyone, I developed a Windows service which uses MS Word to generate documents. I call Word using DCOM / OLE. Up to now it worked pretty well. I tested the service on Windows Vista (Beta2, RC1, RC2) and it doesn't work anymore. Opening a Document in Word crashes with varying error messages. Office 2003 sais somthing like "Not enough memory". Office 2007 sais something like "type mismatch". I guess it might have to do something with the Session 0 isolation in Windows Vista. As services in Vista now have an own session. But I guess Word has problems with it's screen. In older Windows versions, Word worked "in the dark". When I run the service as console everything works fine. Anyone an idea w ...Show All

  • Visual Studio Express Editions PInvoke restriction: cannot return variants

    I am trying to use the dhcpsapi.dll to search for a dhcp client using GetClientInfo. This returns the error "PInvoke restriction: cannot return variants". Any ideas what causes this The code: <StructLayout(LayoutKind.Sequential)> _ Public Structure DHCP_SEARCH_INFO Dim SearchType As String Dim SearchInfo End Structure Private Declare Function DhcpGetClientInfo Lib "Dhcpsapi.dll" ( ByVal ServerIpAddress As String , ByVal SearchInfo As DHCP_SEARCH_INFO, ByRef ClientInfo As IntPtr) Sub Main() Dim DHCPserver As String = "172.16.230.1" Dim dhcpsearch As New DHCP_SEARCH_INFO Dim resptr As IntPtr Dim ret As Integer = 0 dhcpsearch.SearchType = "DhcpClientName" d ...Show All

  • SQL Server XML data type as parameters to stored procs- MORE

    Having trouble getting XML from a c# app into a stored proc with the XML Data Type. On the C# side, here’s what I’m attempting: _spCmd.Parameters.Add( "@xml" , SqlDbType .Xml ); _spCmd.Parameters[ "@xml" ].Value = new SqlXml ( new XmlTextReader (wsresultXML.FirstChild.InnerXml, XmlNodeType .Document, null )); Here is my sp (abbreviated): alter PROCEDURE [dbo] . [AddData] @xml XML AS -- Debug while in query mode on SQL Server SET @xml = '<Tickets> -- <Ticket TicketNo="432444" SecurityCode="32Bobbaloo"> -- <Games> -- <Game GameId="12" Desc=" ...Show All

  • SQL Server message with xml validation

    Hi I created a XML SCHEMA and MESSAGE TYPE with VALIDATION = VALID_XML WITH SCHEMA COLLECTION. I thought this would validate the message send with the schema. but when I try to send the message with a different xml, the message is send. there were no errors. Is there something I did not set thanks P ...Show All

  • Windows Live Developer Forums Is msn search api good for my purpose?

    hi there you know, i plan to wrtie an application that will be sensitive to the news that contain some certain keywords from about 20 known web sites. First of all these news websites are not in english and use an other language . Seconed the sites publish news every 3-4 hours. My question is that if i can use msn search api in my application to get to these goals or i have to write my own web crawler Please help me find a best solution for this application. and if you know any other solution other than above please let me know. thanks in advance. Vahid If you are only needing results from 20 known websites, I would not use the MSN search API unless you are certain that they are crawling ...Show All

  • Visual Studio 2008 (Pre-release) Linq to XSD: Casting Untyped Elements to Typed Variables

    Hi, I'm still just getting my feet wet with XLinq and I have a question. I have a framework that routes message parts to applications code after doing its own processing tasks. A message part is effectively a schema type, but the location of the message part in a given message is variable (or at least unknown by the apps code). Anyway, in .NET 2.0 our framework finds the relavent nodes in the overall message and passes either an XmlNodeList or an XPathNodeIterator to an application function. With Linq and XSD, I'm trying to replace the application signature with a typed variable like IList<urn.mycompany.customer.changedCustomer>, but I don't want the underlying framework to take a dependency on the imported schema. Is there a w ...Show All

  • Visual Basic export data from file to excel

    I have data in the following format in an output file: 2003,         1,            27,           139,          328,          16,           2,            3,              9289,          2003,         3,         &n ...Show All

  • Visual Basic Setup Produced By "Build, Publish" Gives Error After I Uninstalled VB With CD And 'Removed' All Installation CD Programs

    Hello, I created a setup file from my application. I did this because I want to put my application on other PCs without installing Visual Basic. I basically want to just run the applicatoin on other PCs. What I did to create the setup file was within VB I clicked "Build" then "Publish." I then wanted to test the setup file on my PC, so I removed everything given to me by the VB installation CD! So, I uninstalled VB using the installation CD. But, I also had to go to the control panel to remove some of the programs that the installation CD gave me. I did this because the uninstall via the CD left things on my system that the installation CD gave me. When I was done, the control panel, remove programs listing ...Show All

  • Visual C# Code conversion C to C# problem with bitwise << shift

    Please could someone tell me why the following code snippet in C# produces an error "cannot implicitly convert type 'int' to 'ushort' " on the bolded line public ushort [] table = new ushort [256]; public ushort XMODEMcrc( byte byt, ushort crc) { crc = (crc << 8) ^ table[byt ^ (crc >> 8)]; return crc; } This exact code works in C. I don't see anywhere where an int type is used Many thanks Les I'm guessing that the fact that there are literal ints in the statement might be casting the entire statement to int. Either way, this compiles for me: public ushort[] table = new ushort[256]; public ushort XMODEMcrc(byte byt, ushort crc) { crc = (u ...Show All

  • Visual C++ Confusion with header includes

    Hey guy, Well I have recently just been exploring Visual Cpp and im sort of catching on but theres still a slight problem I run into with header includes. When I make a window form application I never now what headers to put in my programs for certain stuff. All I know is that for console applications you need the iostream include. Is there a list of header includes around here what explains the functions and procedures held in each one Thanks Keen. Hi Keen I would suggest that you get a very cool book called C++ Primer Plus, Fifth Edition by Stephen Prata. I am like you a C++ n00b but I have been finding this book of great help. It talks you through all C++ fundamentals and really makes sure you u ...Show All

  • Software Development for Windows Vista Library Not Registered

    Hi , I am facing a problem when i was trying to receive mails using EasyMailPOP3 objects.could any one suggest. Here is the Exeption thrown.. System.Runtime.InteropServices.COMException (0x8002801D): Library not registered. at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) at Microsoft.VisualBasic.CompilerServices.VBBinder.InvokeMember(String name, BindingFlags invokeAttr, Type objType, IReflect objIReflect, Ob ...Show All

  • Windows Forms how te get date only?

    I am using this code to get all available doctors in a specefic dates (regardless of the time). sql_command = new SqlCommand ( "sp_get_available_staff" , sql_connection); sql_command.CommandType = CommandType .StoredProcedure; sql_command.Parameters.Add( "@starttime" , SqlDbType .DateTime).Value = e.Start.Date; sql_reader = sql_command.ExecuteReader(); and this is mt stored procedure: SELECT working_schedule . id_number , persons . person_name FROM working_schedule INNER JOIN persons ON working_schedule . id_number = persons . id_number WHERE DATEDIFF ( mi , starttime , @starttime ) = 0 ORDER BY persons . person_name but it's not retriveing anything t ...Show All

  • Visual Basic Load 1997 V6.0 MSMAPI32.OCX so upgrade Wizard will work?

    Dear VB Community, I am a hobbyist trying to help out at work with an old VB6.0 program that we want to move to VB .NET. The one and only VB6.0 programmer we had left along with our VB6.0 compiler. So, I have Visual Studio 2005 and VB .NET and do not want to start from scratch. Here is the error I get when I run the upgrade wizard: "Visual Basic Upgrade Wizard error Upgrade failed: Exception occurred: Could not load referenced component: MSMAPI32.OCX (1.1.0) You need to install this component before you upgrade the project. It is recommended that you install VB6.0, with all referenced components, and ensure the application compiles and runs before upgrading." Thanks for any help/guidance you can give. ...Show All

  • Smart Device Development Infrared remote capability with .net compact

    Hi, After researching infrared capabilities I can't locate how to accept incoming infrared signals from stnadard tv/dvd remotes to be able to play them back. I have seen and read plenty of articles eg. godotnet but can't seem to find what servicename or endpoint is required to be set in vb.net or c# to work with standard tv/dvd remotes eg. to associate with the client/listener classes. I'm starting to think that the .Net Compact Framework doesn;t support this capability and only embedded c++ will work I would be grateful for any leads.... Thanking you I've been on a long project about this, it isn't really possible im afraid (mainly due to 95% of devices not having the hardware functionali ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Day 1 - Where you at?

    So day 1 of the XNA madness has come to a close, with many more to follow. How far has everyone gotten on their first game projects I haven't spent nearly as much time as I wanted to on this, but I managed to get my head to bounce around the screen. I think the next step would be to add another head (i.e. angelina jolie) to bounce around. Maybe I'll even add collision detection so that if the heads hit, she says something like "I want you so much!" and I go "Yeah, whatever" and bounce. ...not sure if I should have mentioned the idea for this game...now everyone's going to steal it and make millions. But enough about my awesome game in the works. If anyone has anything worth checking out, upload it somewhere and post the link in this th ...Show All

©2008 Software Development Network