sbogollu's Q&A profile
Visual C++ Bug in WriteData defined in atlmime.h
Hello, The function WriteData defined in file atlmime.h accesses 1 byte passed the end of a buffer. This leads to a crash when the buffer happens to be at the very end of a memory page. When the buffer has completely been written (i.e., nRead == m_nTextLen and AtlSmtpSendAndWait has completed with success), the code inside the while loop continues to execute one last time. However, at this point szText points ...Show All
.NET Development MultiThreading Question
To the multithreading gurus: Given the following code, is it necessary/good practice to use a lock somewhere Thanks in advance, zulu using System; using System.IO; using System.Threading; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { FileCounter cnt = new FileCounter(); cnt.StartAsync(@"C:\"); while (true) { bool exit = !cnt.IsRunning; Console. ...Show All
Visual C# Understanding Invoke method
Hello all, I started recently working with .NET/C#/WindowsForms, coming from Win32/MFC programming. So, all my apologies if you feel I am too much trying to find similarities between both environments. I have a UI application controlling the execution of a background worker thread. The thread is launched when the user presses a button, and must report about the current task being done, to the UI main thread (removing file #### , calculating some ...Show All
Visual Studio VS2005 consumes 100% of CPU?
For the last couple of days, my VS2005 RC1 installation will just start to consume 100% of the CPU. From task manager, the devenv.exe process takes up 98%-100% of the CPU. The IDE becomes completely non-responsive and the only thing I can do is stop the devenv.exe process from Task Manager. The solution that I have loaded includes a console app, and I've noticed a running process called "appname.vshost.exe." I gather that ...Show All
SQL Server Fuzzy Grouping Transform Corrupts Pass-through Data
We are working with a client and are using Fuzzy Group transform for de-duping, and hierarchy creation for a national account list. I've found that if a large number of pass through columns are sent to the Fuzzy Grouping transforms it randomly corrupts the char columns. Our work around was to only pass through ID columns and then build out the attributes needed from views against the Fuzzy group output --- however product team should take a ...Show All
Visual Basic view / update msi tables from vb .net
I seen the code in vbs, but I haven't seen any examples of accessing the msi database using vb .net code. I attempted by adding a reference to the msi.dll, this created the windowsinstaller object. When i tried to open the database I couldn't b/c I couldn't create a new windowsinstaller.installer object. Am i headed in the correct direction Does anyone have an examples I could use I am using vs 2k5 pro thanks, Rick ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Pick-Through Multiple Selection
Hi! I'm developing a 3D scene arrangement tool in C# and I want to implement a feature for users where you can select objects behind other objects. I've searched the web for examples on how to get all of the meshes gathered from a pick ray (instead of only the nearest) but I haven't found any references on how to get or store that information. Are there any resources for this that I might have missed If not, may I get some advice or (bless ...Show All
Visual Studio Team System Easy question
I can view my work items as tasks in the Pending Changes window and check them off as resolved. How can I "check in" these changes so that the work items are actually resolved The system thinks I have no pending changes. TIA, Mike Rodriguez Interesting. It sounds like what you are doing is 'Associating' the code check-in with an work item. If I understand correctly, you are viewing your ...Show All
Windows Forms can anyone help me to getrid of this error....
hello i have made deployment for my windows application but when i make request for the my report i have got an error:cannot find keycodev2.dll or invalid keycode. note i have include my report in the deployment thank you for the help and for the&nb ...Show All
Visual C# XML
Is there anyway for a DataGridView to read an XML file and display it Try this post. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=155336&SiteID=1 Also, there is a Windows Forms Data Controls and Databinding forum that is great for questions like this. Thanks, Karen ...Show All
Visual C# How do you do to get only 6 from 2006
I need the last number of the year to use it to for something else. How do I do it If he really does want the "last number of the year" (I assume that means "last digit of the year"), it would have to be: int lastDigit = year % 10; But if the year is in string form, it would have to be: string lastDigit = year.Substring(year.Length-1, 1); Or if you KNOW it's a 4-character ...Show All
Visual C++ Help ID generation not available for ActiveX Control
Hi there, Well we have been using an ActiveX control in VC6 for quiet a long time and generating help ID for them but , when We start using newer versions of VC Studio the Option for generating Help IDs for ActiveX control is not displayed and we have difficulty using Context Sensitive Help, If there is any work around Please help us out. Regards Usman Mahmood Well Martin! the problem is with most ActiveX contro ...Show All
SQL Server Problem using SQL Server Mobile 2005 with Windows Mobile 5 application
Hello, I am developping a non-managed C++ application for PocketPC using a SQL Server mobile database. The application is compiled for PocketPC 2003 and uses SQL Server Mobile v2. I use Visual Studio 2005. But I need to compile the application for Windows Mobile 5.0 devices. So I installed the WM5 SDK and had the WM5 into my project configuration. The "ssceoledb.h" which I include incluses the "transact.h" file. But my proble ...Show All
Visual Basic Close external exe, txt file on click from main program....
I've tried everything I've seen in here about this and nothing is doing it... Prior to venturing into coding myself (thanks to MS's letting us download Express free...) I had another coder create a couple of small utilities I designed (the GUI and functionality) as part of a bigger project/program. He never finished the project so I took it on myself... and I am still in the process of learning all the complexities...now I know I've been ...Show All
Visual C++ '0' character oddity
I'm working on a Poker game for a class project and I've come across an unexpected behavior of the '0' character. One I know it might be better to use '1' but, I haven't, up to this point anyway. I'm just wonder if anyone could explain to me why this code is actually working. It confounds me. Is it a bug I'm trying to sort a hand of Card objects, implemented as such: struct Hand { const static int COUNT = 5; Cards cards[COUNT]; ... } ...Show All
