Lamon's Q&A profile
Visual Studio Hot to get project of currently opened item
Hi all, I've created an editor based on the BasicEditor sample. If the item that is open in my editor is part of a project, I would like to scan the files and references of the containing projects for other files that might contain information I want to use in my editor (more of less like using classes form other files or referenced assemblies). I've seen the SolutionHierachyTraversal sample, but this samples traverses the entire solution or all projects. I just want to traverse the project containing the file my editor is working on (not nesseseraly the active project). I think when I know which file I have open in my editor I also can get a reference to the project containing that file. How can I get a reference to the project i ...Show All
Software Development for Windows Vista Testing Windows Vista Gadgets in Xp
Hi All, I'm new to Windows Vista and I've some difficulties here in installing new OS. Is it possible to setup Vista SDK and test the gadgets in Windows XP I've installed Vista Sidebar for XP ( http://www.wincert.net/forum/index.php showtopic=485 ) Unfortunately, not all gadgets work :( Thanks, Gabriel Topala http://www.gtopala.com ...Show All
Windows Forms Change Tabe Page Font
When we open multiple pages, we get tabs along the top. Can we change the size of that Its kinda stranger not being able to switch that. ...Show All
Visual C++ About the path of message
Hi, See code for CWnd::WindowProc() and CWnd::OnWndMsg() in wincore.cpp. note that the WM_COMMAND message is handled by itself,how it can reach the procedure of the derived class.it did not look for entry in derived class message map also. thanks very much. //code form wincore.cpp LRESULT CWnd::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) { // OnWndMsg does most of the work, except for DefWindowProc call LRESULT lResult = 0; if (!OnWndMsg(message, wParam, lParam, &lResult)) lResult = DefWindowProc(message, wParam, lParam); return lResult; } BOOL CWnd::OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult) { LRESULT lResult = 0; union MessageMapFunctions mmf; mmf.pfn = 0; CInternalGlobalLock ...Show All
SQL Server Parameterized SSIS Packeges
How i can create parameterized sql query .This is my basic idea to implement. select * from dimemployee where name = or exec proc sp_para_employee how can i pass expocit parameter (that means when i run the package that time it should ask me or when i pass the parameter should execute ,satisfy atleast one xondition ).rf any one have script please provide me because i tried all angles using books on line and other resorces. JSR2005 wrote: How i can create parameterized sql query .This is my basic idea to implement. select * from dimemployee where name = or exec proc sp_para_employee how can i pass expocit parameter (that means when i run the package that time it should ask me or when i pass ...Show All
Smart Device Development TrackBar dilemma ...
I using a TrackBar to show current elapsed time of audio. As the audio is played back, the trackbar will be updated. The trackbar also used as seek function. However, here come the issue. Whenever the trackbar 's value is updated, the position is been changed. There seem to be chicken and egg problem. private void uiTrkTime_ValueChanged(object sender, EventArgs e) { control.currentPosition = uiTrkTime.Value; } The trackbar revert to startpoint whenever the audio play a while because of "deadlock". The trackBar event API seem to be poor designed as it does not take care of even the simplest case. Please do tell me how to resolve this issue. thank When you are updating your trackbar's value on your timer tick ( ...Show All
Visual C# Pause and Resume
Hi, How can I pause the application executing and resume it Thanks, Aya. Hi, what exactly do you mean From user's point of view, when application is started, it just sits there waiting for user to do something to it. Perhaps you meant saving user's state when application is shut down and ability to resume from whatever user left it before shutting it down Andrej ...Show All
Visual Studio Team System TFSWarehouse shows data but reports come up empty
Hi, The built-in reports (e.g. remaining work, related work item, etc.) that come with the project template show 0 for number of work items. I checked the warehouse database tables and do see the changes to the existing tasks. I've enabled the security permissions in the Team project, the SQL Server reporting services and the Windows share point service admin, but still don't see improvement. The number of work items shown in the reports is 0 no matter if I use VS2005, the report site or the project portal to bring them up. What else can be missing What can I try Thanks. Hi, thanks, I figured it out. The default fields used by the reports are not the same as those used in the work items, so the report ...Show All
Visual C# operator overloading vs operator overriding
what is the difference between operator overloading and operator overriding thanks in advance for ur replies No they are distinct things. Overriding changes the behavior defined in a base class. Overloading provides multiple ways of doing something. Overloading does not require a base class. Michael Taylor - 10/2/06 ...Show All
.NET Development string.Split() method memory management - potential problems ??
Hi friends, I've been using the string.Split(Char []) method to split two strings and compare them item-by-item. You may assume that I don't need to simply compare the entire strings (for out-of-scope reasons). The MSDN documentation says this about this method - The Split methods allocate memory for the return value array object and a String object for each array element. If managing memory allocation is critical in your application, consider using the IndexOfAny method, and optionally the Compare method, to locate a substring within a string. Does this mean that even if my array, in which I hold the split-string, goes out of scope the memory allocated by Split is still occupied and garbage collector does not free it ...Show All
Visual Studio 2008 (Pre-release) Managed BitmapEffect
Is it true that custom BitmapEffects can only be implemented in unmanaged code OK, so the full range of a BitmapEffect's capabilities, optimized for speed (ie using pointer ops) can't be allowed in a sandbox XBAP setting, but it would be possible to implement a slower, but safe, pattern. A simple but useful solution would be to provide a safe base CustomBitmapEffect that only does per-pixel operations (the derived class can only override a "protected Color ProcessPixel(int x, int y, Color clr)" method thus avoiding illegal memory writes etc). Or maybe this can already be done but I'm missing how Also, is there any way to composite graphics with operations other than just alpha blending Like Photoshop's Modes: Add, Mulitp ...Show All
Visual Basic Limits on Memory Use?
Hi all, I was testing the VB2005 Express and decided to create a large array in the IDE. My 32bit XP Pro machine has 3.5GB available and I thought I'd check to see how much I could use with VB. I understand that there is a 2GB process limit, but I thought I just check that out. My code: Class Form1 Private Sub CreateArrayToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CreateDataTableToolStripMenuItem.Click Dim bigarray(1000000, 250) As Single End Sub Private Sub ExitToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click End End Sub Private Sub Form1_L ...Show All
SQL Server SQL Server takes so much time to startup
Hi, I have SQL Server 2005 Standard edition with SP1. Whenever I start the Management Studio, it takes for ever to come up. It will take atleast 30 Sec to 1 min every time I start SQL Server. Is this some thing we have to live with in SQL Server 2005 or do I need to tweak any thing Pls let me know. One more thing, in the SQL Server logs I see the following message every day -> Source - spid36s, Message - Starting up database 'dbname'. Why do I get this message Thanks Hi, perhaps you switched on the Autoclose option for your databases, making the database to close after being idle for a while. If you don’t want to have this, navigate through the properties of the database and switch the auto ...Show All
Visual C# Printing EVents
Hi, Is there any different between these two proberties if i want to change the bottom margin of only the current page 1- PrintPageEventArgs.PageSettings.Margins.Bottom 2- QueryPageSettingEventArgs.PageSettings.Margins.Bottom Thanks nobugz was perfectly clear. "Former" means the first one that you listed, and "latter" means the last one. So use the QueryPageSettings event for changing just one page, like he said, and don't be so accusative next time, please. ...Show All
.NET Development installing .net framework SP1 problem
I was just trying to install the sp1 for 1.1 on a media center pc and i need it because i want to connect to my 360.. Anyways, the message: (Microsoft Visual C++ Runtime Library runtime error! Program: C;/WINDOWS/system32/msiexec.exe This application has requested the Runtime to terminate in an unusal way. Please contact the application;s support team for more information) i have windows installer 3.1 and framewark 2.0 and 1.1 installed and it wont let me uninstall them either, same message comes up. Please can anyone help me Hi mAh3u, can you share your solution for anyone else who might be running into this Cheers, JJustice [MSFT] ...Show All
