Mike D's Q&A profile
Visual C++ convert from char a[MAX_PATH] to LPCWSTR
hi, i have 2 variables like char * username char sysname[MAX_PATH] i need to use "NetUserGetInfo" windows API method, which takes two LPCWSTR strings, how can i convert the above sysname,username to pass them to NetUserGetInfo. thanks http://www.codeproject.com/cpp/unicode.asp ...Show All
Visual C# XmlReader (ReadSubtree)
I am attempting to parse the “ShippingTotal” element of an xml file with the xmlReader. The xml file uses the following DTD. <! ELEMENT Order ( Totals , Coupon *, GiftCertificate *, Other ) > <! ELEMENT Totals ( ShippingTotal , Surcharge *) > <! ELEMENT ShippingTotal ( Total , Description ) > <! ELEMENT Surcharge ( Total , Description ) & ...Show All
.NET Development Serializing an XML document
I'm fairly new to C#, so maybe this is simple, but I couldn't find any answer to this anywhere. I am trying to write something that will take an XML document of unknown structure and wrap it in a mesage wrapper and send it to another program. I figured it was easiest to just use the XML serialization stuff to do this, but I can't figure out how to get this to work with the XML document. This is a simplified version of what I am trying to do: ...Show All
.NET Development Major bug/perfromance issues with .net 2.0 sockets
Ok I have spent a considerable amount of time debugging my project, and I have now been able to recreate the problem in a small console app which I will cut and paste at the bottom. So let me explain the bug and the performance issues with this console app, I bind a socket at port 8000 using tcp and then after calling listen I do the following: for ( int i = 0 ; i < 10 ; i++ ) { _listener.BeginAccept( new AsyncCal ...Show All
.NET Development Convert Java SHA1 computation to .NET
Hi, I need to convert an Java application into C#. The Java application compute SHA1 hash value using the code: MessageDigest digest = MessageDigest.getInstance("SHA"); digest.update(getSessionId().getBytes()); digest.update(getMachineMark().getBytes()); digest.update(getClearingNumber().getBytes()); hashcode = (new BASE64Encoder()).encode(digest.digest()); I can compute SHA1 hash in .NET with the code: SHA1 sha = new SHA1M ...Show All
Smart Device Development MSMQ for .NET CF limitation
OK, here is our MSMQ needs. We are looking to replace our current middleware messaging solution (Broadbeam ExpressQ) with MSMQ. We would need a single MSMQ server (Windows Server 2003) running in workgroup (private queues) mode. We also will have multiple Pocket PC clients running MSMQ that will be connecting over IP using Sprint, Verizon, Cingular, etc. I have recently discovered the CE limitation of not being able to re ...Show All
Visual Studio login Failed
I have a windows app that connects to a sql database. I now want to do reporting from it. I have created a CR report (from the buit-in VS2003 version of CR) that is going to be used to display the information. When I run the app I get a login prompt for the database. No matter what I enter into the prompt CR returns "Login Failed". Searching the web the only references to try and solve the problem de ...Show All
Visual C++ That "File XXX not found in current source file's directory or in build system paths"
I am so sick and tired of this bug. I right click on a file that the compiler knows how to find, then select "Open Document XXX" and then I receive "File XXX not found in current source file's directory or in build system paths". Was this ever fixed in 2005 I have been (im)patiently waiting and waiting for a new service pack to address some of the major flaws in VS.NET 2003. Is one ever coming out Was this bug finally fixed ...Show All
Visual Studio Percentage of detailed record
Hi, I just want to know how to create in crystal report a report like this.... Year OrderQuantity 2004 896 2005 &n ...Show All
.NET Development How can I extract a string from a string?
I have the following string string ConnectionString= "data source="MyLocalSQLServer" ;Initial Catalog=aspnetdb; ;Integrated Security=SSPI ;persist sercuity info=false ;UID=sa; ;PWD=asdasd; ;ProviderName="System.Data.SqlClient" what I need to do is extract all th ...Show All
Software Development for Windows Vista Web services and runtime compilation
I have a couple of questions about exposing the web service activities in a runtime-compiled worklfow: 1. If my .xoml workflow definition includes a couple of WebServiceReceive and WebServiceResponse activities and I compile it in runtime with a WorkflowCompiler object, are the appropriate web services and methods going to be generated As I understand, in VS.NET the web service is generated when the project is being compiled. 2. If a ...Show All
SQL Server SQLDMO fails to connect
We have db's developed with sql2000 and now attached to SQL2005 instance and vb6 code which was used to connect no longer works. Is this a known issue ...Show All
Visual Studio Team System How do file attachments get saved?
Through the API, If I look at the collection of Attachments associated with a work item and look at an indivdual attachment I see the following: AttachedBy: "" AttachedTime: {5/18/2005 12:15:39 PM} AttachedTimeUtc: {5/18/2005 5:15:39 PM} Comment: "" CreationTime: {5/18/2005 7:10:56 AM} CreationTimeUtc: {5/18/2005 12:10:56 PM} Extension: ".doc" IsSaved: true LastWriteTime: {5/18/2005 12:10:57 PM} LastWriteTimeUtc: {5/18/2005 5:10:57 PM} Length: ...Show All
SQL Server High CPU Usage SSIS Package
Anyone aware of anything I can look at to improve performance of my SSIS packages i basically have two master packages that call about 15 child package tasks each. All the package tasks are called sequentially and all they do is just load flat files into temporary tables and execute a simple stored proc. Each package tasks check to see if a file is there and if so it processes it else it just ends. The packages are scheduled to run every minute ...Show All
Smart Device Development WM 5 based smartphone apps
Plz help me to find out some good books for wm 5 based smartphone apps. Also help me to find out some codes for mp3 player for smartphones. Its urgent There are a lot of .Net Compact Framework and WinCE development books out there which should help. As for mp3 players, I cant help - why dont you try hosting Windows Media Player ...Show All
