Evan Mulawski's Q&A profile
Visual C# Design question: collection of collections
Hello, I need to implement an investment portfolio data structure. I'm thinking that the basic unit is going to be a transaction (ex: buy 10 shares of IBM). Multiple transactions will be combined in a position (ex: buy 10 shares of IBM on September 1st to open the position, and sell 10 shares of IBM on September 30th to close the position). Multiple positions are going to be grouped in an account. Multiple accounts are going to be grouped in a portfolio. The restrictions on positions is that the same account can not hold more than one position of the same side (long/short) in the same instrument at the same time. The way I plan to approach this problem is with a bunch of nested collections. An IAccount will have an ICollection& ...Show All
Windows Forms drag n drop into Webbrowser control
I have webbrowser control on the form and now I want to give drag and drop functionality into web browser from windows form. Basically I want to drag text from Windows Control into webbrowser's document object's htmlElement control. Any suggestion would be appreciated Cheers, kahn i too have a similar situation. I see how to call script code from application code, and I see how to call application code from script code. What I dont see is a way to intercept the drop event on the webbrowser control. anyone ...Show All
Smart Device Development Why Can not I connect the WM5.0 device by the remote process viewer and remote heap walker?
For the first time, I installed the Visual studio 2005 professional Edition (VS2005) first and the the Windows CE 5.0 with Platform builder 5.0 later. I find I can connect the WM5.0 device with the remote process viewer and remote heap walker provided by VS2005 and all data can be obtained successfully. However, when I reinstalled my system by installing the Windows CE 5.0 with platform builder first and VS2005 Professional Edition later, I find I can not connect the WM5.0 devices with the remote process viewer and remote heap walker (the other tools are OK) provided by VS2005 although the Activesyn shows that the WM5.0 is conncected correctly. Anyway, all the remote tools provided by VS2005 can connect with the emulator. By the remo ...Show All
Visual C++ Compile C++ code To .Bin File
Hi. can I compile C++ code with VC++ or VC.Net to a BIN file How thanks. Hi again and I'm sorry I'm late! I have a Microcontroller that must be program. my programer needs a binary file. ( *.bin) the *.bin file has no Header .( I checked it ) and this is difference within "BIN" files and other type. cause this code run on processor . ( there is no Operating System!!! ) and if my file has Header ( like exe,... ) it won't work. ( if I rename exe to bin. ) but I can't compile my C++ code to a binary file (*.bin) what should I do ...Show All
Visual Studio rsNone - Query execution failed for data set ...
I have created a reporting services report in Visual Studio. It uses a SQL Server 2005 stored procedure which creates a #temptable. The primary report works fine, but the subreport does not. It yields an rsNone error. This subreport executes a simple query of the #temptable. Does the #temptable persist into the subreport Sub reports are considered a new report in Reporting Services. You should create a seperate report which should be based on different result set. You can have parameters in the sub report in order to filter the data based on values from the main report. From my understanding...I don't think a temp table from the main report can be accessed in the sub report. ...Show All
SQL Server report server failed to initialize, access denied to 'c:\inetpub'.
At the last step of the Reporting Services installation after notification Reporting services has been successfully installed. A warning message that setup could not initialize the report server. When trying to connect to the REport manager get the following message Access denied to 'c:\inetpub'. Failed to start monitoring file changes... have checked the rights to the folder and in IIS and even granted temp access to everyone to test, still receiving the same error. please help! ...Show All
.NET Development Managed Heap Virtual Memory
Can someone point me to a reference which describes the amount of virtual memory allocated to the managed heap on startup I'm under the impression this is hardware dependent (ie..# of processors and size of registers, 32/64 bit) but wondered if this is documented somewhere. Hi, Every process (no matter if is .NET) starts with a default working set of minimum 50 pages. This is configurable using the function "SetProcessWorkingetSize". The size it will depend of the page size in your system, upon the page size is based on hardware you still have an option on the OS. You can select using a small page (default) or Large Page Size. You can change this setting changing the registry option: Local Machine\System\CurrentControlSet ...Show All
Community Chat Native C++ cross thread call framework
If you're a C++ developer, with an interest for threads and interlocking, I'd be greatful for any input (be it comments, suggestions, criticism) on a generic framework I've been working on. I wrote a quick article about it, and included full source code + examples at Codeproject: http://www.codeproject.com/useritems/threadsynch.asp . I find that not too many seem to share my passion for that specific subject, so by asking here, I hope some thoughts are presented (or perhaps provoked). The very reason for me to put the framework onto Codeproject, was to enhance it through feedback and collaboration with other devs. Anyway, as I said: all thoughts are welcome. Should I include some diagrams to better explain how the framework does it's ...Show All
SQL Server Query criteria / parameter for a whole project
I have a large collection of 'projects', i.e., RS reports for each of our customers. Each project is effectivley a library of maybe up to 15 reports. They are usually modified slightly according to the customer's requirements. Most of the reports use a variery of SQL tables / views and to ensure the customer only sees theor data. I am currently changing the query criteria for each report in the project each time I deply a new library / set. This is time consuming and open to the risk that I mis-key the criteria for one or more report. The criteria is always the customer's account number and is common across most of the database tables. E.g: WHERE (LIVE_INVOICESUMMARY_CRREPONLY.IS_SUCODE = 'DH166'... Is there any easy way to set this ...Show All
Visual Studio 2008 (Pre-release) January Orcas CTP
Hi! I have download and installed January Orcas CTP on virtuell server and now I can start Visual Studio Orcas 9.0, but can not find any Linq project to start playing. I am a first timer about Linq. I checked and there is a version 3.5 Net framefork installed under Windows. Regards The official 'Orcas' CTPs do not have LINQ project templates. Those templates existed in the eariler LINQ-only CTP's to help you start a project that targetted the correct compiler. With the Orcas CTP, the main compiler understands LINQ. All you need to do is include the correct DLL's and namespaces to get going. For LINQ standard-query-operators you need to reference the new System.Core.dll and use the System.Li ...Show All
Visual Basic Unsigned Arithmetic and overflows
I've had this discussion before with unint64s. Setting what would normally be the sign bit causes an overflow. Now I'm seeing this in unint32s. Dim a As UInt32 = System.Drawing.Color.Black.ToArgb will cause and overflow. Dim a as Uint32 = now.ticks and &hFFFFFFFF will cause an overflow depending in the time. This should not be. What it means effectively is the UInt32 is actually UInt31. Well, you get the same behavior as long as you tell the compiler what type the constants are. It's not big deal to add an UI suffix after all. ...Show All
Visual Studio Express Editions Install express visual studio c# authority
I am trying to install Express Visual studio C# on Windows 2000 and getting the error: "You must have administrative privileges to run Visual C# 2005 Express Edition Setup." I know from Microsoft website that installation on W2000 no need administrative privileges. Somebody knows solution for this I appreciate any help. Weston, thank you for the reply. The documnet I referencing is at the site: http://msdn.microsoft.com/vstudio/express/visualcsharp/download/ It states that administration id need only for Windows Vista: Download Visual C# 2005 Express Edition Now! 1. Make sure you're ready! Before installing, you must uninstall an ...Show All
Visual Studio Express Editions Popup Blockers
Hi All, Since many would have known about the Popup blockers that have been implemented in IE. Can anybody help me out like how this have been implemented. Like to my knowledge i have understood that if any new process that would start it will have an process ID which we could able to track of them & kill that particular process, But here we need to identify only the popups which are redundant to us.So, how to get the track about this.IS this appraoch is correct or do i need to follow some other approach. Please let me know, since i am very new to C++. Thanks, Arvind Hi Dennis, Based on your feedback I got to know about pop-up blockers we have to look at the Internet Explorer SDK and learn the Internet ...Show All
Visual Studio Tools for Office I need to view the source of a .pst file
I would like to view the source code of a .pst file. Is this even possible I know that you can open it in Outlook and view everything, but I need to see the actual source for an app that I am looking into writing. Thank you Hi, You may be able to get an effective response if you posted the question to the Outlook DL below: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.outlook.vba&lang=en&cr=US Thanks. ...Show All
Community Chat Yes i'm working on my site looking for new and exciting ideas
looking to drive more traffic on my site called www.applyquotes.com Really looking for a Data base programer to be a partner. You can get in touch with me at david@applyquotes.com looking forward to hearing from ya. have a great day David PentagonMaster wrote: PentagonMaster wrote: looking to drive more traffic on my site called www.applyquotes.com Really looking for a Data base programer to be a partner. You can get in touch with me at david@applyquotes.com looking forward to hearing from ya. have a great day David So you're looking for ideas ......Curently i give most of my ideas to www.Rsvpfirst.com but i'll give you the same thing tha ...Show All
