Angel38's Q&A profile
Windows Live Developer Forums MSN MESSENGER
I am using Visual Basic 2005. I would like to make an application which can control some options of MSN Messenger like sending an instant message. I would like to know which dlls I need (if any) and any references (if any). I would like someone to show me hiw it must be done. Thanks GlennZarb wrote: I have succeded in changing my status via an application. Now I would like to know how to check someone's status Your MSN buddy will send status changed command to you when he change his MSN status. The status changed command like CHL/NLN and so on. ...Show All
Visual C# Compare 2 Strings of Diff Length
I am looking for the fastest comparison which will start from the left of one string, and return true if ALL the characters of the first string match the first x characters of the 2nd string where x is the length of the first string. For example: String s1 = "YI" ; String s2 = "YIPES" ; String s3 = "Y" ; s1 = s2 would return true s1 = s3 would return false This would be part of a larger loop, so I am looking for the fastest comparision method. Regex maybe Many thaks Mike Thomas ...Show All
Visual FoxPro Produce error when running the form
Hi, When running the form, I got the error. The error is "Error loading file - record number 61. grid_detail < or one of its members>. ControlSource : Alias 'NEWDETAIL' is not found." I'm not sure where i go wrong on my form. Thank you. I ran through the errors in the program and found nothing wrong with the codes. My senior IT said that there is a bug in the Visual Foxpro 6 software itself. The codes in the open file and close file method in the Data Environment has switched places. So have to correct them in the right form method. Now the form runs well. ...Show All
Smart Device Development Winsock and timeout under WM5
Hi everyone, My application connects to a server using GPRS. Since the application is running in the backgroung, I want to ensure that whenever the user presses the red key (stopping GPRS connection), the appli connects again. I could achieve that but the thing is that now, my server is asked to reply as late as possible (to minimize GPRS traffic). When a request is sent, the appli is waiting for an answer, if I press red button at that time, the application won't connect again. I again there is a failure in the timeout handling in the winsock. I use the command : setsockopt(this->m_iSocket , SOL_SOCKET , SO_RCVTIMEO , (char*)&iTimeOut , sizeof(int) ); to set the timeout, but it seems reading MSDN that SO_RCVTIMEOUT option is not i ...Show All
SQL Server Problems with disconnected recordsets i Yukon
We have a VB6 application using ADO 2.8 connecting to SQL Server. We use disconnected recordset to load data to client-side. The client does updates in the recordset and then sends it back to server-side component that converts the recordset into SQL to update the database. No problems in SQL 2000 but on Yukon we get error when trying to update the disconnected recordset on the client. Error: -2147217887 Multiple-step operation generated errors. Check each status value. Error only occurs on recordsets which obviously won't work it was a connected recordset; for example a UNION sql. Is this the way Yukon is supposed to work Is there anyway to disable this new functionality to really get a ...Show All
Visual Studio 2008 (Pre-release) mismatched dll versions (june ctp)
Hi, Since installing the most recent ctp, I get an exception on my old projects. Message="Mismatched versions of PresentationCore.dll, Milcore.dll, WindowsCodecs.dll, or D3d9.dll. Check that these DLLs come from the same source." I can create new applications without a problem, so it's definitly something in my old project. Obviously, I've checked all references in the project, they are set to not copy and point to: C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0 The version of all dll's (including presentationCore ): 3.0.6507.0 (vbl_wcp_avalon.060607-1054) Public key tokens of all the dll's is: PublicKeyToken =" 31bf3856ad364e35 " I've looked at the gac, and it seems to be okay. I'v ...Show All
SQL Server serious help with SQL
blah blah blah thanx i have come to the conclusion that they won't ever find it. i asked a couple of question about SQL, and they really didn't know all that much. other than what maybe the first chapter of the SQL bible. ...Show All
Software Development for Windows Vista How to CreateProcess NOT as administrator
One of our modules is an executable that will always be run as administrator (after getting permission from user). One of its screens allows the user to run a different executable, which the code currently does by CreateProcess. The problem is that since the first process is running as admin, CreateProcess has the second process run as admin also. This is undesirable because it is a security breach (the second process can open browse dialogs that should not have admin privileges in this scenario). How do I get the second to run without admin privileges I do NOT want attach a manifest to the second exe that says it does not want admin privileges because under certain circumstances (not from the first exe), it SHOULD be run with admin privil ...Show All
Visual Studio Express Editions How to add Help Balloons to the application
Hi, I have set the Help Button Property on a form to true. This adds a question button to the form. If I then run the project and click the qustion mark button the move the mouse the question mark follows the mouse pointer to allow me to click on a control to then display help on the control. My question is how do I code this so when I click on a control it displays help either in the form of a balloon or dialog. Can not seem to find any help on this subject. Ron I have now downloaded the MS HTML Help Workshop application, after 1hr of messing around with it I was able to produce a reasonable HTML help viewer for my application. Using the help topics in the link, In my post above, I could s ...Show All
Visual C# Another form or an assembly?
I am in the process of creating a larger piece of software, more in the design, than implementation. I am trying to find out the best practices. At the same time I am trying to figure out how visual studio can help me in these things. I have a main form, from where I run the other items of my project. Basically a form with buttons that load other forms. Now in my project, a have all these forms now. Would it be a better idea to make this into an assembly per form What I mean is that the main form just loads the correct assembly, when you click a button. Thanks in advance :) Sune P.S. Happy New Year everybody. The reason I am asking is that I will have many different applications running in the ...Show All
Visual C++ Connect to internet using Winsock.
Hello. I am trying to make a program that connects to the internet and checks whether a specified webpage is online or not. After looking on the internet, I found that you can do it via Winsock. However, i'm fairly new, and I don't understand any of it. Could someone please explain to me how you do it Thanks Hi, Tryone. I would like to direct you here for networking questions. This forum is for C++ language issues. :) ...Show All
Visual Studio 2008 (Pre-release) How to: Implement aggregates with GridView and Grouping
I'm trying to create a sort of Outline Grid. Where you can group and the Grouped item contains the sum. Eventually I need to include a Min and Max for dates. +/-Group1 20 50 item1 10 40 item2 10 10 I was thinking that extending the CollectionView and CollectionViewGroup might work, but before traveling down that long road I figure I'd see if anyone has had experience with this sort of thing. The goal is so that when you're creating the GroupItem style, you'll be able to reference ItemSum, just like ItemCount that currently exists. There is still an issue as to what column you need to sum, which I haven't really thought out yet. The other issue is that I'll need the group data to refresh when the item data changes. ...Show All
Smart Device Development Exchange data trough USB
Hello, I want to exchange data between pocket pc and desktop pc via USB. This works ok but now I want to integrate it into a windows service. When i try to connect to the ppc in the Windows Service I get the message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) I found a lot of things on google but nothing changed ... Fille wrote: There's a timer which tries to connect via USB to a pocketpc (using active sync). The code is correct because it works in a windows application. right, but you said you went from an app to a service, right when you install the service, is the correct user, and pwd, used in the "Log On" tab of the service Either a logged-in u ...Show All
Visual C# ** Problem with calling unmanaged C++ DLL from C# on a network drive. **
Hello, I write a C# program which calls a C++ unmanaged DLL. Actually, I write both of them. I put both of C# exe and C++ DLL to a Network folder. When I run the C# exe. The Program gives me an exception. "An exception 'System.Security.SecurityException' has occurred in <my program>." But if I put both the exe and DLL to my local hard disk, the program runs with no problem. Anyone have any idea how to solve this exception Look forward s to hear from you. Thank you, Hello, No, it just say "Exception cannot be handled" But I find that this error only occurrs in some machine, but not in the others. This must be some kind of machine setting or user setting thing problem. Many many ...Show All
Visual Studio Team System After Rebuilding, I got an error Http internal Server error 500
I did do a rebuild like this. 1) rebuild C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Tools>setup warehouse -rebuild -s kwonlee01 -d Tfswarehouse -c warehouseschema.xml -a kwonle e01\TFSService -ra kwonlee01\TFSReports SetupWarehouse: Warehouse updated successfully. C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Tools> 2) run inetmgr 3) http://localhost:8080/Warehouse/v1.0/warehousecontroller.asmx 4) http://localhost:8080/Warehouse/v1.0/warehousecontroller.asmx op=Reinitialize 5) Click invoke button then, It shows Http Internal Serve Error 500 What should I do and What did I miss thanks Kay (+) Tfswarehouse was not read-only mode .   ...Show All
