akin_l's Q&A profile
Visual Basic User Control problem
I have a UserControl which basically shows in a textbox the content of a row in a table relationally linked to another table in a database and also a combobox containing the contents of that second table. This mean that as you travel through the main table you can see what the linked text entries are and have a combobox when entering a new record. I started the table in VB.NET 2002 and upgraded it to VB2005 Express and have been using it successfully for some months.So, it has saved considerable code and added to my VB skills. However, having recently discovered the MaxDropDown size property for the combobox I wanted to add a line to the UserControl to fix the MaxDropDown size to be the size of the records in the table it accesses. T ...Show All
Visual Basic Upgrading MaskEdit Control
Need help with converting mask edit control in VB6 to Studio.2005 Starting with Visual Basic 2005, the masked edit control (MSMask32.ocx) is upgraded by the Upgrade Wizard to the System.Windows.Forms.MaskedTextBox. What problems are you having ...Show All
Visual Studio Team System How can I install windows service using VS.net setup?
How can I install windows service using VS.net setup http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1209205&SiteID=1 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Stereoscopic googles?
Can Xbox output a stereo signal for Stereoscopic goggles Greenwu We have new hardware currently in dev. Anyone interested send contact info to info@w6.com . ...Show All
Windows Forms Sockets and Windows Forms
I have a problem with my windows forms application in which I am not quite sure how to troubleshoot. Basically I have a Socket Client/Server program running and the client sends some information to the server via a NetworkStream, the problem is it doesn't always send the information or the server doesn't retreive it (not sure which); I have my server which listens for the data and when that data is retreived it adds it to my listview, but its not working so here we go................... Here is the client code: Dave The only way I've been able to make this kind of thing work reliably is to spin a thread off the thread pool for each incoming accept socket request. Here's an example of an echo server I wrote a few years ago while teachin ...Show All
Visual C++ TCHAR[]... How to manipulate it?
Hi, I have a variable declared as TCHAR szFileName[260]; This variable contains a filename which is correctly printed out using the _tprintf() function. How can I check whether the string contains "iexplore.exe" I've been searching through google and trying to convert it to CString without any success. Pls help. TCHAR is generic text mapping string, which means char in ANSI condifuration, and wchar in Unicode configutation. To assing TCHAR[] to string, use: TCHAR szFileName[260]; CString s; ... s = szFileName; Every string function has generic TCHAR routine. For example, to apply strcmp to szFileName, use _tcscmp function: if ( _tcscmp (szFileName, _T("iexplore.exe") == 0 ) { ... } More about ...Show All
Visual Studio XML documentation, ASP.NET site, NDOC
Hi, I have an ASP.NET website with several classes but i would like to use Ndoc to generate some documentation. When I do Open > Website and I load my website folder i can't fill in a 'XML Documentation File' at the properties screen, those options aren't even there. How is it possible to let VS make a xml file everytime I build my project. Greets ...Show All
Smart Device Development Other ways to obtain the version of an assembly
To obtain the version of and assembly i go throught the reflection class and use the assembly.loadfrom("assemblyPath").getname.version. This way implies to load the assembly.Is other way to read the manifest which don’t implies load the assembly I always using something like public string getVersion() { Assembly assy = Assembly.GetExecutingAssembly(); return assy.FullName.Split(",".ToCharArray())[1].ToString().Replace("Version=", "").Trim(); } ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA/Xbox 360 memory management heads-up...
I was just browsing through some docs on the 360's heap manager, and it turns out it is a compacting mark and sweep collector rather than the generational model used on the desktop... So... what's the deal regarding: Large block allocation (will it have a large object heap like the desktop version ) GC pauses times (do all threads halt during GC) Rico Mariani recommends a heap size equivalent to the Gen 0 size on the desktop, i.e. ~cache size. That seems way too small unless we are dumping lots of game data into unmanaged memory! Andy. Rico Mariani's main suggestion for dealing with the compacting garbage collector is essentially to try to make a large chunk of your data as static as possible and to use ...Show All
Visual Studio Is there an option to add or remove options from a menu list?
I am using VS 2005. Recently the programmers in my group went thru a routine that resulted in integrating our computers with other offices in our network. After this was done the apps that were installed on my C drive had to be reinstalled. Aside from the difficulties with the other applications, I've noticed that in Visual Studio 2005, several options are missing from the "Build" menu option. Where before I had "Batch Build", "Build Solution" "Clean" "Publish" "Rebuild ..." and several others, now I can only see "Build" and "Publish". After searching thru the Tools/Options for a way of re-inserting the missing options and searching on the Knowledgebase ...Show All
Visual Studio Team System Changes are not shown in the Form
In my application I do a change of some WorkItem fields. Via the Team Explorer in Visual Studio I want so see the changes of the WorkItem fields. When I select the WorkItem the changes in the Form are not shown. I change another field in the Form and then the next error occurs: "Unable to save all edited documents. 0 saved successfuly. 1 could not be saved. Please correct the unsaved work items and try again." So this means that the changes are committed but are not shown in the Form After about 5 minutes the changes are shown in the Form !! Why does it take so long to show the changes in the Form Yngwie, this could happen if you have a workitem opened in team explorer UI, or if you ...Show All
Visual C# GZip
I'm trying to decomress a .gz file and read it with BinaryReader. The problem is I need to frequently change the position of the BaseStream of BinaryReader. However, GZipStream does not support Seek function, Length and Position properties yet. Alternatively, I'm trying to copy my GZipStream into MemoryStream and then I will read it with BinaryReader. Is any other way to do this // Read mygzip.bin.gz FileStream fs = new FileStream("mygzip.bin.gz", FileMode.Open, FileAccess.Read, FileShare.Read); // Get total estimated byte length of GZipStream int totalBytes = EstimateDecompressedByte(fs); // Redefine FileStream fs = new FileStream("mygzip.bin.gz", FileMode.Open, FileAccess.Read, FileShare.Read); // ...Show All
Game Technologies: DirectX, XNA, XACT, etc. The woes of boxed objects (and foreach)
Here's another post by someone who has learned everything through mistakes, not learning it right in the first place . :) I've been working on some nasty GC issues on Xbox360 for some time now, and through RPM and CLR Profiler I've started to make some sense of things, so I thought I'd let everyone in on my experience so that the next guy (or gal) with these issues can have some info. So here's the story: Remote Performance Monitor showed 240 boxed value types per delta. Having no idea how I was creating boxed objects (or what they are), I ran the CLR profiler--as it would happen, I had 4 foreach calls per frame--for a postprocessing effect. According to CLR Profiler, the foreach calls were creating System.Collections.Generic.List<T> ...Show All
Visual Basic Error 80040154 retreiving COM Class factory
Greetings, I have a VB.NET application that references a 3rd party Com component. The file is Interop.WINTSRRLIB.dll. My VB.NET application has a project reference to the COM comonent which lives in the directory: C:\WaveTracker. The application runs fine. When I sent it to my customer, he installed in on his desktop machine. It runs fine. Then he copied all of the application files (which live in C:\WaveTracker) to his laptop. However, on his laptop, he gets the error: "System.Runtime.InteropServices.COMException (0x80040154). Retrieving the COM class factory for component xxxx failed due to the following error: 80040154" The customer swears he has the .NET 2.0 Framework installed properly on his laptop. Any i ...Show All
Smart Device Development Read xml with DOM in Pocket PC
Dear All: ******* I have the following code to read an xml file: ************************************* // Pocket_XML01Dlg.cpp : implementation file // #include "stdafx.h" #include "Pocket_XML01.h" #include "Pocket_XML01Dlg.h" #include <objsafe.h> namespace MSXML { #include <msxml.h> } #include <ocidl.h> //try these to fix filestream.h issue #include <objidl.h> #include <rpc.h> #include <rpcndr.h> #ifdef _DEBUG #define new DEBUG_NEW #endif // CPocket_XML01Dlg dialog CPocket_XML01Dlg::CPocket_XML01Dlg(CWnd* pParent /*=NULL*/) : CDialog(CPocket_XML01Dlg::IDD, pParent) { m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } void CPocket_XML01Dlg::DoDataExchange(CDataExchan ...Show All
