pat1975's Q&A profile
Smart Device Development itoa
I want to turn int value to char *p; and I have tried itoa, but it can not be passed building. How to turn int value to char *p, Thank you Dear brian: Thank you I code below char str[20]; _itoa(total_pc,str,10); GetDlgItem(IDC_EDIT2)->SetWindowText(str); the _itoa() has passed the building but SetWindowText() error the system tell me that error C2664: 'CWnd::SetWindowTextW' : cannot convert parameter 1 from 'char [20]' to 'LPCTSTR' How to do that bill ...Show All
Visual Studio Express Editions How to add files from subdirectory? - How to save all items from listview?
Hello.I have a LISTVIEW in my app.I add .mp3 file in it with a FolderBrowserDialog.How I can add files from sub folders (for example: MyMusic -> Music 2006 -> May. How I can save all items from a listview in a textfile - Well the files with GetFiles (from MyMusic folder) is working. And the files from MyMusic -> Pop (is working with GetDirectories and after that GetFiles).But if I have MyMusic -> Pop -> Subfolder is not working.... - How to write get a list un item and subitems and after that write with StreamWrite I don't know/.. ...Show All
.NET Development Image Upload Recommendation
I have developed a client/server application using a PocketPC2003 device and a local Windows PC. One of the features of the application is the ability to take pictures and assign them to a record. I'm able to upload the record to the server quite simply using sockets and a message system I've developed(using xml), but I'm a little stuck with the best way of sending the images. Currently I'm trying to investigate configuring a local website (as I need to send updates to my server as well), and being able to send/receive files within the website (simply because the customer will want to view the images on remote sites) But I can't quite figure out the best way to transmit my images up to the server. Really, I'm just looki ...Show All
Visual Studio Team System Problem with recording
I have a recorded a script for my website which is an HTTPS website and my website uses encrypted values to based as query string parameters.I am able to encrypt the values and pass them as query string parameters but at run time the script is executing some requests which are not there in the recorded script and due to this the new encrypted value is not passed to all request and the script executes wrongly.Please help me how to rectify this probelm. Thanks, Hi, You have explained my problems correctly,my website is an https website which I was unable to record using fiddler 1 and with fiddler 2 which supports HTTPs also I am not able to capture the traffic,even if I am able to capture the traffic it displays an mess ...Show All
Windows Forms How can bring to front a form
Hi, I try to minimize a form and restore it with a click in a NotifyIcon but my Form don't want to restore in the top of the applications. This is the code, the Show method works but the Form don't want to bring to front! I try the BringToFront method and it's still the same! private void minimizeMaximize() { if (this.WindowState == FormWindowState.Normal) { this.minimize(); } else if (this.WindowState == FormWindowState.Minimized) { this.maximize(); } } private void minimize() { this.WindowState = FormWindowState.Minimized; this.Hide(); } private void maximize() { this.Show(); this.WindowState = FormWindowState.Normal; } void NotifyIconMo ...Show All
Visual Basic Crystal Report Question
This would be my first time to make a report(a receipt actually) using Crystal Report.I had two querries in my access database and want to use in this report.My question would be, is it possible to use this two querries at the same time, I mean, say Querry1 deals with all the information of a certain customer that needs to be displayed in the receipt and Querry2 pertains to the transaction of the said customer.All the two querries were linked by the transaction number.Thanks... Hi, First add two tables in the report, create link between two tables with common key by using visual link expert, it will automatically maintaining master-child relationship, when you want to show report for particul ...Show All
Gadgets System.Network.Wireless Not Working
It seems like System.Network.Wireless doesn't work... I have tried a few Windows Vista Sidebar gadets that use it and non of them work. I have also tried creating my own gadet and it doesn't work either. Has the object refrence been update but not the documentation Has anyone else seen this issue Or am I just doing something wrong I tried the following to have it printed out on the gadget and also saved in the Event Log and both places show that nothing is outputted. (and before it is asked, yes I do have wireless that is what I am using to write this and dont even have a hard connection) var IPAddress = System.Network.Wireless.address; gadgetContent.innerText = IPAddress; System.Diagnostics.EventLog.writeEntry(&quo ...Show All
Visual Basic .NET on Windows Media Ceter
I am looking into buying a new laptop but most of the ones i come across have Media Center as its OS. Does anyone know if installing .NET on a Media Cener PC has any drawbacks or positives All opinions welcome. I will still have my XP Pro machine that I can do final builds on if I have to. Thanks. .net will wok of media center pc. From my understanding media center is like xp pro with different UI and some addition media applications but its basis is XP and .net will work work just fine - I'm using it here. Drawbacks - generally costs more, no real benefit for development - but interface is cool and designed for use on media PC's ...Show All
Visual Studio Express Editions Multiply Users Accessing SQL2005 Express Database
Hi All, Not sure if I'm posting this in the correct location. I've created a SQL 2005 Express Database from with VB2005 Express. I want users to login with a username and password and have diffrent rights, etc.... What's the best way of going about this Thanks in advance Wayne Hey Wayne; I don't currently use Windows Messenger, although I probably could. I use Yahoo Messenger and sometimes AOL IM (both are free). But we could figure that out if we needed to later. So you are in the UK I am in the US in Tennessee. I've been doing mainframe programming since 1979 and I dabble in PC coding over the years. I've built a few websites and, like you, currently trying to build a Windows ap ...Show All
Visual Studio Team System TFS Fails - Report Services Cannot be confirmed
Just a note to MS - TFS installation is a joke. A travesty. An embarassment. And as it's taken 10+ hours just to get to this point and we've decided to abandon this endeavour I wanted to let you in on some error the Reporting Services Configuration tool spewed out. Good bloody luck with this unfortunate product. ReportServicesConfigUI.WMIProvider.WMIProviderException: An unknown error has occurred in the WMI Provider. Error Code 80070003 at ReportServicesConfigUI.WMIProvider.RSReportServerAdmin.SetWebServiceIdentity(String applicationPool) I/we would be very interested in where the 10 hours came from and where you saw problems. THe issue you are reporting appears to be coming from SQLs configuration, b ...Show All
Microsoft ISV Community Center Forums How do I call for all installed printers....
Hey, How do I, with vba code, call for all installed printers in my computer and then display them in a ListBox Best Regards Cathrine This is a link PSHK gives me awhile back. It works like a charm. http://word.mvps.org/FAQs/MacrosVBA/AvailablePrinters.htm ...Show All
Visual Basic VB.NET Class Library for use in VB 6.0
Hi! I am making a class in Visual Basic .NET 2002, ver. 7.0., with wish to use it in Visual Basic 6.0. The class is declared: Public NotInheritable Class VerifyLicense The function I need in VB 6.0 is declared: Public Shared Function Verify() As Boolean "Register for Com Interop" is checked Output type is Class Library. When I build the project I got following message: COM Interop registration failed. There are no registrable types in the built assembly. If I add a form in the project, there is no error message, compilation is Ok, but I can't see function Verify() in object browser of VB 6.0 nor use it. By the way, I don't need the added form! Please, can somebody to help me Thanks a lot! You should build your .NET cl ...Show All
Visual Studio Team System Menus quit working after showing context menu on element history
My menus are all inoperative. I got to this point by showing the history of a file and then right-clicking on one of the entries for the file in the history window. At first I could not get the context menu to dismiss. I could click on other files in the folder and file view and I can click on VS buttons. The context menu persists. Also VS will not show tooltips for buttons and all VS menus are inoperative. The items on the top-level menu bar highlight but clicking has no effect. I finally got the context menu to exit after clicking on an item (the command did not run but the menu dismissed). Still after getting it to go away, no VS menus work. Nor do the TFS context menus work. I can get, e.g., the context menu in the TFS view to show ...Show All
SQL Server R/W access problem with var in script Component
Hi there I have a a global variable for the package. Now in script task of data flow I am trying to assign some value to it. I have also defined same variable in Read/Write property of script task. But at run time it gives me following error: "The collection of variables locked for read and write access is not available outside of PostExecute." How do we resolve this Thanks and Regards Rahul Kumar You can find lots of examples by just typing in msnsearch "using variable in script component" like for example: http://msdn2.microsoft.com/en-us/library/aa337079.aspx -Tom ...Show All
Smart Device Development Addign Icon to Programs Menu
How do I add the icon (shortcut) to Programs Menu of a Pocket PC Try looking here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=292981&SiteID=1 ...Show All
