DarwinMak's Q&A profile
Visual C++ Lookin for instruction to pause program for couple seconds (not in a thread)
Hello, I'm looking for simple standard instruction to pause program for couple seconds. Using MFC. Thx ...Show All
Visual Studio Can't locate Web Dev Environment
For some reason, my VS2005 web development environment has disappeared. I have no options to create a web project whatsoever. I also installed the SharePoint templates so I could build webparts for our MOSS2007 site however, I cannot see those templates either. Does anyone know why this is and how I can fix my IDE so that I can see the web development environment again Thank you for your help. Tim Did you run tools like a registry cleaner that might have corrupted the registry Do you have entries in the Application Log which indicate a corrupted template ...Show All
.NET Development Accessing folders
I have an application that accesses some files that are nested in folders. Every folder may have other folders and files. So i 'm asking if is any function that gets the files and subfolders of a folder Thank You absolutely. Take a look at the System.IO namespace, and look at the Directory class. The class contains functions to getFiles and get directories. you may wish to make a recursive method (a method that calls itself) to dig deep into directories and get files. Here is the information about the class(es) http://msdn2.microsoft.com/en-us/library/system.io.directory.getdirectories.aspx http://msdn2.microsoft.com/en-us/library/system.io.directory.getfiles.aspx an exam ...Show All
Visual Studio Copy/Paste
Is it normal that when I selected a shape, the copy/paste operations are disabled I suppose copy and pasting of shape is not supported Is there an easy way to make it work Thanks! Mike Hello Mike, This is praveen from india. i am not able to find VisualStudio namespace under Microsoft. Can you help me in this. Thanks, Praveen ...Show All
Visual C++ Why /Mt & /Mtd options differences cause my release version to crash?
Hello The Debug version of my software works fine. when i compile it into a release version. Some of my objects seems to be destroyed where it's not meant to be, creating memory access error. The objects themself seem to be existing but some of their variables seem to have been deallocated for some reasons unknown to me. I found out that compiling my project with the option of multi threaded 'debug' runtime library instead of a normal multi threaded runtime library solves the problem. Could you tell me what are the difference between these two type of library It would help me to find if there is any fixable error in my code. Thanks a lot. // Get current flag i nt tmpFlag = _CrtSetDbgFlag( _CRTDBG_REPORT_FLAG ...Show All
Visual C++ Edit and continue in VS2005
Hi, I just recently started to use VS2005. I am trying to use the edit and continue function, but for some reason it desn't work. I have it enabled in the project options (check mark). when I change the code during debug I get this message: "This source file has changed. It no longer matches the version of the file used to build the application being debugged." Then I have no coise but to click "OK" and forget about the change I just made What could be wrong Thanks! Thanks james and all, It was the project specific settings. I had some weird behaviour though: I created a function that does nothing but return true. Then, I set a breakpoint on the return tru ...Show All
Software Development for Windows Vista EventDeliveryFailedException
Hello. I already asked something similar to this in at least one other thread. And many other Threads ask about this problem This time I'll post real code, so there are no doubts. In the highlighted line the execution stops saying there is an EventDeliveryFailedException. I know for sure the service is registered in an ExternalDataExchangeService. And I'm sure the HandleExternalEventActivity is listening to the right event form the right interface. And I know through Tracking that the HEEA is in execution. I don't know what to do... public class StandardEventEmitter : EventManagementService.EventEmitter, IEvento { public override void RaiseEvent(System.Workflow.Activities.ExternalDataEventArgs externalEventArgs) { if (ev ...Show All
SQL Server SSIS OLE DB Source Error
I am creating an OLE DB Data Source in an SSIS Data Flow - it is calling a SQL Server 2005 stored procedure, which accepts 3 parameters and returns a result set, but I get the following error: "There is a data source column with no name. All data source columns must have a name." I have have tested the output of this proc a million times, and every column has a name! I am also able to call a different proc in the same way, without error: EXEC pProc @DT = '20060928', @Id = 1015, @Debug = 0 Any ideas what could possibly be causing this error - assuming all of my columns DO have names Thanks : ) mary.oneill wrote: Yes, but I was trying to avoid adding more ...Show All
SharePoint Products and Technologies Add aspx page developed in Visual Studio to sharepoint
Hi folks Can you tell me if this is even possible..... I have an aspx page which I have made in Visual Studio. It basically has a web form with the usual objects which are populated from a database. Now... I want to have this page within my sharepoint site, so I want to add a link to it on the sharepoint home page and when the link is clicked I want the page to load and look like all the other pages (i.e. with the sharepoint menu at the top, etc... Is this possible, and if so how The closest I have got is adding a web page, modifying it in front page and inserting my page into an IFrame, which I am not really happy to do. Any suggestions PS.... if this is not possible I would love to hear suggestions as to how to work aroun ...Show All
Windows Forms Doubleclick event on combox doesn't trigger
I added a doubleClick event to a textbox. This is triggered very well. Now i added a MouseDoubleClick event to a combobox (because a doubleclick event doesn't exists apparantly), but this event is not triggered. Why How do i solve this Kind regards Damiaan Peeters Thanks for the hint from Davecat. Double click is quite useful when combobox displayed in DropDownStyleSimple. In a similar fashion in Visual Basic Dim mylastClick As Date = Now Private Sub ComboBoxPathologyTests_MouseClick( ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ComboBoxPathologyTests.MouseClick If Now.Ticks - mylastClick.Ticks < 5000000 Then 'do task End If mylastClick ...Show All
Windows Live Developer Forums Converting (N 48° 31' 28.79") to number values for VELatLong
Latitude: N 48° 31' 28.79" Longitude: W 123° 9' 26.96" If I have latitude and longitude such as the above coordinates, what do I pass into the VELatLong constructor for this Go here for a conversion utility. http://www.fcc.gov/mb/audio/bickel/DDDMMSS-decimal.html The math is pretty straightforward. Divide the number of seconds by 60, 28.79 ÷ 60 = 0.5166. Add the result to the number of minutes, 31 + .47983. Divide the result by 60, 31.47983 ÷ 60 = 0.52466383. Now add that to the number degrees, 48 + .52466383. The result is 48.52466383° Do the same with the longitude, and then you can pass them into the constructor. Paul ...Show All
Architecture What is Architecture and Who are Architects?
In the software/IT industry the notions of "Architecture" or "Architects" are certainly not very well defined. The Open Group Architecture Framework (TOGAF) supports four groups of enterprise architects -- business architects, data architects, application architects, and technology architects. Microsoft Certified Architect program so far designed for two certifications (solution architects and infrastructure architects), and one more certification, messaging architect, is coming soon. Different companies use titles such as "Chief Architect", "Industry Architect", "Integration Architect", etc. Job recruiters announce "Web Architect", "Software Architect", and "Dat ...Show All
SQL Server Error authenticating proxy when attempting to run Job
Hi, I am trying to get a maintenance plan on SERVER1 to backup to a UNC path on NAS1. NAS1 is managed by a 3rd party who gives us a username and password to connect to our directory on the NAS. I have created a matching username/pass on SERVER1 (WIN 2003 SP1). I can logon as that user and browse to the UNC path without being prompted for credentials. I can read, write, and delete files and directories. We'll call this user SERVER1\MyUser1 In SQL2005 I have done the following: Created a maintenance plan, BackupToNAS, that is supposed to backup all databases to the UNC path. Owner SERVER1\Administrator Created a SQL 2005 Credential, NASuser. Identity: SERVER1\MyUser1 Created a proxy, NasProxy Credential name: NASuser Operating System(Cm ...Show All
Visual Basic Need advice regarding how to put this code better.
Hi, I have written this code in a module. The code works fine and for my kind of brain it might be okay but some of you who have got better IQ OR programming experience might disagree. I need your recommendations. 2 things which i want to make clear are ........ the message "Data validation completed is commented because it was running even when the rest of the group box validation wasn't completed. Other then that function focusclear() at the end of the module is used on every textbox's lostfocus and keypress event. I'm open to all recommendations including rewriting the whole thing if that is certainly the case. Thanks in advance. Imports System.Windows.Forms Module Module1 ' Constants for checking the RSR va ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Any way to fill texture with data in memory?
I thought it should be Texture2D.SetData() but when I saw the remarks, I found it says it can only be used with dynamic texture. So if I use the constructor of Texture2D to create a managed/automatic texture, how can I fill it with data Wow, the Device object is missing almost all the methods I used to work around limitations like that in Managed DirectX... If you use the Texture2D constructor, it looks like you will have to specify that the usage is dynamic and the management mode is manual in order to get or set its data. The usage mode has some performance considerations with it, but they are unavoidable if you are generating the texture each frame. The manual managment mode just means you need to r ...Show All
