Eva Pierce Monsen's Q&A profile
Visual C++ Write a text file with Visual Studio
Hi, I am trying to write a function thats save to a text file the text I wrote in an EditBox of my main dialog. I tried many ways but the only approach that seems to work is through the code that I detail below. Still I could not write down the whole text, the last three characters are not written!!!, What I am doing wrong . Is there any way of doing this more easily . I am using Visual Studio C++ 2005 Express Edition and if i try to use fopen compiler tell me is a deprecated method, so I don't want to use it. Thanks in advance. HRESULT RecordAuxTextData(HWND hDlg) { HANDLE hDestFile = INVALID_HANDLE_VALUE; BOOL bSuccess = FALSE; // Open destination file hDestFile = CreateFile (TEXT( "c:\\RASITSonidos\\myfile. ...Show All
Visual Studio June GAT Installation Issues
Hi All, I had major issues in in uninstalling previous version of GAX. I had to revert to editing the registry and using msizap.exe as pointed by Tom in the thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=502698&SiteID=1 . After doing so I successfully installed the June version of GAX. Since then I am not able to install GAT. It says GAX is not installed. If I try to uninstall June GAX it wants me to unregister following package(s) guid81f72285_df90_4e71_9ca5_233fdadf6200, MetaGuidancePackage. I have removed every file or registry entry which has 81f72285 in it. No success. I have installed and installed VS 2005 twice but still can't get around this problem. Any help / pointers would be appreciated. Regards, ...Show All
Visual Basic Newbie Question - Yes I've searched. :)
Bear with me...the last time I programmed was on my Atari 800 back in 1983. I've decided to take up programming again as a hobby. I've done some online coursework and I believe I'm making some decent progress. I've also ordered a book or two but haven't received them yet. This is a simple process I'm sure...I just haven't found a way to do it yet. I've made a form and a simple SQL Database. What this does is show Last Name, First Name, and a quick summary of the person (in this case historical figures.) I want to add a PictureBox that will change when you click on the name of the person. I've got .jpg files in a folder inside the Project. I've searched Help and the Web and most say with VB it's best to store the locations of ...Show All
Visual Studio How i can use Crystal Reports XI Release 2 with Visual Studio 2005 Standrad
Hi, I Am using Visual Studio 2005 Standrad and Crystal Report XI Release 2 But i Don't know how to use this Crystal Reports XI Release 2 in this New Visual Studio 2005 Standrad Edition i just conver Visual Basic 6 to Visual Basic 2005 But Don't know use of new crystal report xi r2 plz. help me for this thanks check out this link http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=380008&SiteID=1 ...Show All
Software Development for Windows Vista Problems with Workflow and CodeDom
Hi, I’m creating a workflow generator system and I’m using CodeDom to generate the workflow files (.cs, .designer.cs) and WorkflowMarkupSerializer to generate the .rules file. After to generate the files, if I add them into solution and compile them, the workflow works perfectly. The generated sample consists of: 1- CodeActivity 2- CallExternMethodActiviy 3- WhileActivity a. HandleExternEventActivity 4- CodeActivity But, If I generate the files and compile in runtime using CodeDom. The sample workflow terminates in step 2 (CallExternMethodActivity) and throws an exception message: “Exception has been thrown by the target of an invocation.” Stack Trace: at ...Show All
SQL Server Making SQL 2005 Developer accept the connection string for SQL express edition
Hi, I have installed on my laptop SQL server 2005 Developer edition, I can change ANY of the settings of the SQL server and OS. I am writing code with a team using continuous integration where the connection string is the following: "Provider=SQLNCLI;Server=.\SQLEXPRESS;Database=Secret;Trusted_Connection=Yes;" is there a way (create an alias,rename server, other ) to make my local dev SQL server accept the connection string above, as at the moment I have to rename the connection string every time before checking in code and after downloading the latest version from the code repository. any advice or tips will be greatly appreciated Thanks JW. Hi, setup an alias using the SQL Server Configuration ...Show All
Visual C++ VS2K5 SP1 Beta
After installing the SP Beta I now have code that does not build and I get errors in MS files: Error 21 error C2446: '<' : no conversion from 'MSXML2::IXMLDOMElementPtr *' to 'MSXML2::IXMLDOMElement **' c:\program files (x86)\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h 553 I think it just died. At work we installed it on two computers, mine and the one that does the overnight build. The overnight build wasn't broken, but it kept giving people a strange error that I can't remember off the top of my head. So with that computer and my computer we had to uninstall and reinstall VS. ...Show All
Internet Explorer Development Embedded video crashes IE 7
Since about mid January everytime i browse to a page that contains embedded video IE 7 crashes. This also affects watching Adobe flash files and other forms of video. all i get in the event logs is: The first example was watching NBA TV Broadband and the second was browsing to a page with embedded flash. This is extremely frustrating so any ideas or fixes would make me a happy man. Faulting application iexplore.exe, version 7.0.6000.16386, time stamp 0x4549b133, faulting module wmvdecod.dll, version 11.0.6000.6324, time stamp 0x4549be1d, exception code 0xc0000005, fault offset 0x000ed7d1, process id 0xf88, application start time 0x01c74a3a58fb0c0d. OR Faulting application iexplore.exe, version 7.0.6000.16386, time stamp 0x45 ...Show All
Visual Studio Express Editions Virtual Variable
Hi All, I have these two class class Base { public int number = 1; public override String ToString(){ return number.ToString(); } } class Derived : Base { public new int number = 2; } static void Main(){ Base base = new Base(); Derived derived = new Derived(); Console.WriteLine(base.ToString()); Consolt.WriteLine(derived.ToString()); } I was expecting to print out: 1 2 but I am getting: 1 1 Is there a work around to achieve what I was intended to do Thank you, Riady Hi, fields cannot behave like virtual functions. To get what you want you will need a virtual function GetNumber which you override in Derived. ToString must then use GetNumber and not the field number. -- SvenC ...Show All
Visual Studio 2008 (Pre-release) Question about concurrency and sessions
Hello. I've been trying to understand the interdependencies between: SessionMode, InstanceContextMode, ConcurrencyMode and the used binding. I’ve done a systematic test where I issue two concurrent asynchronous calls over the same channel, and observed the following: With SessionMode=NotAllowed the calls are processed concurrently, independently of the InstanceContextMode (PerCall or PerSession), of the ConcurrencyMode and of the binding (NetTcpBinding throws an exception). This is ok because every call is handled by a different instance. With SessionMode=Required and InstanceContextMode=PerSession and ConcurrencyMode=Single, the calls are processed sequentially. This is ok because the instance is always ...Show All
Visual Studio 2008 (Pre-release) How can we change the WS-Addressing headers?
By default the WSDL generated for a WCF service have WS-Addressing headers using the 2005 namespace. Is there a way we can change it to use the 2004 namespace version Thanks! Hi Raj, Madhu's example actually shows the service side (in code) and the client side (in config). You can also configure the service side in config as well, just create a custom binding as he does in his config example, but reference it from within a <service> element instead of a <client> element. Cheers, JJustice [MSFT] ...Show All
Software Development for Windows Vista LessThan cannot be used on decimal type ?
How do you do comparisons on currency values in rule conditions I want to do a simple discount test for a price < 50.00, where price is decimal type. Am I missing something easy Hi Kavita, Just realized you write using an int order value. In order to see the error you need to use a decimal order value. Maurice ...Show All
Software Development for Windows Vista Issues with HumanEmailWorkflow...
Hi Everyone, I am having serious problems with HumanEmailWorkflow - a "Sample" as from Windows Workflow Foundation. These are the errors I am getting: Warning 1 Could not create output directory 'C:\Windows Workflow Foundation\Examples\SimpleHumanWorkflow\RtcActivityLibrary\bin\Debug\'. Access is denied. RtcActivityLibrary Warning 10 Cannot find wrapper assembly for type library "Outlook". SmtpMailServices Warning 11 The referenced component 'Outlook' could not be found. Error 2 'LeaveWorkflows.EmailWorkflow' does not contain a definition for 'CanModifyActivities' c:\Windows Workflow Foundation\Examples\SimpleHumanWorkflow\LeaveWorkflows\EmailWorkflow.Designer.cs 43 18 Error 3 'LeaveWorkflows. ...Show All
Smart Device Development Place an Icon on title bar along with form name?
Hi, Can any one tell me How to add Icons to Title bar along with form name and to Menu Options. I want to format the Menu options. I hope you can help me. Thanks in Advance, Hi David, Thank you very much for your response. Then what about the Icon Property in Form properties May I know what is the purpose of that and how it works Thanking You, ...Show All
.NET Development Porting part of a large COM+ application to .net
I'm a litle currious that I can't find anything on this subject in the forum. There should have been written lots of COM+ application, and it's very unlikely that they all are trown away, just because .net is the current technology now. Anybody have any experince with using COM+ component in a .net application (It's simple enough - in teory - but reality usally is not so simple. Is this the right forum to ask such a question BTW With respect to UniToolbox, these are user interface ActiveX controls and I don't know whether they would be supported in .NET. You would probably want to contact the vendor for this information. .NET Windows Forms controls are unicode enabled so the UniToolbox controls should be unnecessary. Since ...Show All
