UncleSam89's Q&A profile
.NET Development What is the signifigance of maxstack in IL or "Which set accessor is more efficient?"
Hi there, I was hoping that someone could help me to understand something. For the longest time, whenever I've written a set accessor for a property in c# I've done an equality test on the value before assigning it to an internal variable. I really wasn't sure why except that I had seen MS doing that in some examples and figured MS knew best. Today I decided to find out if an equality test was more or less efficient or whatever and came up with a confusing result. If I do the follwing assignment: public string Path { get { return m_path; } set { m_path = value; } } I generate some fairly simple IL: .method public hidebysig specialname instance void set_Path(string 'value') cil managed { // Code size 9 (0x9) .ma ...Show All
SQL Server Conditional Split Question
I have a package which has a conditional task which directs rows to its respective OLEDB command. The records are sorted from the source system in chronological order. The problem I am experiencing is that some of the operations do not seem to be occurring in the same order. An example of this would be someone inserts a record, deletes the record and reinserts in the record in that order. When we run the package we can see the records are coming down in chronological order but the delete from the split seems to occur after the inserts. Has anyone else experienced this Is there anything I might be missing to ensure things happen in the order they should Any advice would be greatly appreciated. Thank you. Jamie Thomson wrote: ...Show All
Visual C++ VS2005 C++ compiler bug?
I do not know if this is the best forum to report a MS VC++ compiler bug (please advise if I should post this to another forum). In the process of migrating code from VC6 to VC8 (i.e. Visual Studio 2005 Professional Edition) I have stumbled across what I believe is a C++ compiler bug in the handling of template functions invoking the function call operator. Details and other ramblings below (after the example code that exposes the problem). #include <algorithm> #include <list> #include <stdio.h> #include <tchar.h> class A { public : // explicit initialising constructor (made explicit to avoid implicit conversions or casts) explicit A ...Show All
Visual Studio Express Editions Install Trouble
If I try to install any Visual Studio Express, It will not install. I don't know what the problem is..... Please help Have you looked in the event viewer if it reports any errors Which express edition are you trying to install Are you able to start the installation application How do you start it What do you do in the installation application What do you do and what happens ...Show All
Windows Forms Datagrid problem - SelectedIndexChanged
Hi, hope someone can help. Using ASP1.1 w/ VS2002. I am getting an ArgumentOutOfRangeException in the SelectedIndexChanged Event for my datagrid. I am happy to go into more detail if required, but I hope it is something simple to fix. When my datagrid had a datasource hard-wired in the datagrid properties, I was able to select the datarow to display a child view in another grid and assign some values for the parent selected row to a session object. I have now found that to be able to apply a search (filter) on the parent grid, I had to remove this datasource from the datagrid properties and then apply a dataview with a rowfilter and bind it to the grid programmatically. The searching/filtering works fine for the main grid, but, w ...Show All
Smart Device Development How to display a pop-up in CompactFramwork
Hi, I'm developing an IM application, in which i want to show a pop-up window when ever a buddy changes his status( some thing similar to the one in yahoo and jabber which show a pop-up window at the bottom-right on the desktop when a user changes his state). I did'nt find any direct way to do this. I can't use a messageBox because i can't display a messagebox without any buttons on it and i've to close that messagebox explicitly. What actually i wan't is a pop-up window which gets displayed at one corner on the PPC and disappears after few seconds. It should respond to a user-click, i.e it should open a chat-window when ever the user clicks on it. Can any one tell me how i could do this. Do i need to downlo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Thanks for adding the Vector math 'ref' overloads guys.
Very glad to see that in the API. No more annoying posts by me on this subject I guess... ...Show All
Visual Studio Express Editions Problems with basic Hello World program.
I am using the following code.... #include "stdafx.h" #include <iostream> int _tmain(int argc, _TCHAR* argv[]) { std::cout << "Hello, world!\n"; return 0; } And I am getting the following error... Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<char,struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (__imp_ $ 6DU $char_traits@D@std@@@std@@YAAAV $basic_ostream@DU $char_traits@D@std@@@0@AAV10@PBD@Z) referenced in function _wmain test4.obj I don't know why but V C++ EE ins ...Show All
Smart Device Development How to use tmail.exe -attach and -transport option
How can I attach multiple attachments to the SP2005's tmail.exe What should I keep the transport "email" is OK or do I need to give something like POP3 or SMTP The following code is able to launch the tmail and tempFile is attached but how to attach more than one files Using the email as transport option is acceptable _stprintf(commandline, _T("-attach \"%s\" -transport \"email\""), tempFile); if( ! CreateProcess(_T("\\windows\\tmail.exe"), commandline, NULL,NULL, FALSE, CREATE_NEW_CONSOLE, NULL, NULL, NULL, &procInfo) ) return -1; Hi , This forum is primarily monitored by Visual Studio for devices group. Please check this link for m ...Show All
Visual C# ShowDialog... Shows dialog?
I'm using ShowDialog on a Form control, which is called on the Shown event for my form. Works great outside VS, but here's the problem, it also works inside VS! Not a major ball ache, but it would be nice to not have the dialog open when ever I open the form designer. Does anybody know how to turn it off Thanks! ...Show All
Visual C++ Windows forms help
Hello everybody i wonder if you can fill a hole in my understanding of programming windows. I am trying to develop a very basic windows forms application. I have a class called class1 and another called game. It is my understanding that the autogenerated form1.h is also a class. Maybe this is because i don't understand. Anyway from game i can declare a pointer of type class1 and access class1's data members, functions etc from a function inside game. I can also declare a pointer of type form1. However when i come to access form1's data members using this pointer it won't let me alter them it just says: error C2227: left of '->richtextbox1' must point to class/struct/union/generic typ Here is the code: //game.h #pragma once cla ...Show All
SQL Server Questions about "Dimension Processing Destination" & "Analysis Services processing Task"
First I will thanks for any friends open this one. My questions is: 1.What's the diffrent between Processing a dimension by "Dimension Processing Destination" or just by "Analysis Services processing Task" I found that I could do the same work by both, and the MSDN tell nothing about the diffrence. 2.Why the Process Option in the "Dimension Processing Destination" is diffrent to the Process Option in the "Analysis Services processing Task" to deal with a dimension In the "Analysis Services processing Task",the Option is the same with the MSDN, without the "incremental" option. But in the "Dimension Processing Destination",there is the "incremental&qu ...Show All
Smart Device Development VS2005/CE6.0 SDK roller hangs?
Hello, I've created an OS image that targets 2 BSPs: A hardware platform and the ARM Device Emulator. When I attempt to add an SDK configuration to my project, VS2005 almost always hangs. Here are the steps that I'm following: 1) Open my project and complete a successful build/Sysgen selecting the hardware platform BSP configuration. At this point, flatreleasedir is populated. 2) I then add an SDK and enter the project name, company name, and website. 3) In the Emulation pane, I add the ARM Device Emulator configuration. When I hit 'OK', VS hangs. My configuration: WinXPSP2 VS2005 PB 6.0 Anyone else seen this Thanks, Matt I would recommend you to post this question on microsoft.public.windowsce.platbui ...Show All
Visual Studio Common documentation for overloaded methods?
Is there a way to write a snippet of common doc for two or more overloaded methods Thanks Karlo Karlo, Could you elaborate your scenario and I will be happy to provide tips or a solution. Thanks. Anand.. ...Show All
Smart Device Development Screen Capture application
Hi, I'm developing smart device application by using CF 1.0 on VS 2003. I need your help. Is there any source code for screen capture available in net or how to take a snap as bitmap programmatically Please send your suggestion or links. Thanx M. GANESAN ...Show All
