John Emmanuel - MSFT's Q&A profile
Visual C# Reusing an open FileStream with multiple BinaryWriter objects
Hi all, a quick question: Part of my application (Windows Forms / C# / .NET 2.0) deals with different objects which all have Serialize / Deserialize methods (custom ones, not implementations of ISerializable). At some point, I create a FileStream for writing, and then need to call those objects in turn, passing the FileStream object to the Serialze method. Each object should then append some binary data to that stream (and the reverse process for deserialization, of course). The problem: When first creating, say, a BinaryWriter, passing the FileStream, everything works fine, and the data is written. However, when the writer i ...Show All
SQL Server Does Microsoft has a methodology for BI?
Somebody asked me today if Microsoft has an standard methodology for developing BI applications I am reading some ralph kimball books and I think they are very focused only on datawarehousing and I only found technical books on BI, (Reporting services, analisys services, integration services) but I think that I need a more theorical guide for implementing a BI application from scratch to end with MSFT tools. Thanks Did you look at Ralph Kimball's most recent book "The Microsoft Data Warehouse Toolkit : With SQL Server 2005 and the Microsoft Business Intelligence Toolset" -- Robert ...Show All
Visual Studio Express Editions Best way to do something
I have a project and I'm not sure the right way to go about it - I'm after some ideas. Basically it'll be a program that takes ad bookings for a magazine and allows them to be placed on pages in magazine editions. I'm thinking of setting up a class for ads, pages and editions but my problem is that an edition will have properties like date, magazine, number of pages but also contain an array of pages then a page will have properties like number, colums and also contain an array of ads, then of course the ads themselves will be individual things but contain properties such as colours, requested page, advertiser, caption, etc. ...Show All
Visual Studio Express Editions How to create an Icon image file
Hi team, I have been trying to create an icon file for my new project. But I have been totally unsuccessful and I am confused. Since I have never done this before I must ask the question that is probably obvious to everyone else. What makes an Icon file an Icon I know that it has an extension of .ico but there is more to it than renaming a 32 x 32 pixel bmp to an .ico. Is it the size Some internal header data When I try and add a resource with the type "Icon", I select my image file but it gets imported into the "Images" area and not the one for Icons. I have tried jpg's, bmp's and gifs to to avail. The form ...Show All
Visual Studio Word Embeded in Crystal does not refresh! How to get it to REFRESH
System: VS2005 Crystal Report XI R2 I create a .rpt file with embedded OLE (Linked) to a word document. I have the RPT file inside an .aspx page that shows the report. BUT everytime I update the word document the .aspx page does not show the updated document. The only time it will show the updated document is when I open the project (and it seems that its getting refreshed) then save it. Now after doing this it will show the updated document. How can I make the .aspx page show the updated document without having to open the project via VS2005 update: I created the ...Show All
Visual C# C#.net 2005 to Excel 2003 - Insert function into Excel VBA Editor
Hi guys, The code below is a VBA function into Excel VBA Editor. The function opens an unknown file using 862 code page, save it as txt file, and reopens it using 28598 code page. (That's the way I succeeded to read the unknown file using Excel). You can download the unknown file from this site: http://rapidshare.de/files/19995657/Unrecognized_files_examples.rar.html (When it opens click "Free" in the middle on the page, after reloading write the color letter as indicated and download the file) What I need is one of two options: 1. - Generate C# code to do the same. (As VBA function does). ...Show All
SQL Server Failed SQL 2005 SP1 installations (Hotifx.exe crashes)
I am seeing repeated failures installing SP1 database services with crashes in hotfix.exe being reported and the following appearing in log files: Property(S): SqlUpgradeMessage = SQL Server Setup has encountered the following problem: [Microsoft][SQL Native Client][SQL Server]Cannot find the object 'dm_exec_query_resource_semaphores', because it does not exist or you do not have permission.. To continue, correct the problem, and then run SQL Server Setup again. Property(S): UpgradeInstruction = Connect to SQL instance ZENO as sysadmin Launch SQL statement USE master Launch script file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\I ...Show All
Visual C++ C99 standard snprintf() function ?
Hello, Is there any direct equivalent of the C99-standard snprintf() function is the CRT (C99 standard: always null-terminated, always returns the size of the whole string regarless of the buffer size, accepts null buffer: May be used to get the size of the string before allocating a buffer) And if there isn't any, is it planned to add one sprintf_s http://msdn2.microsoft.com/en-us/library/ce3zzk1k.aspx ...Show All
Visual Studio 2008 (Pre-release) How to get scrollbar on ListView?
I'm populating a ListView with several items (~100) -- more than can be shown on the screen. However, I never can get a vertical scrollbar to appear (I haven't tried for a horizontal one yet). I can select an item and hit the down arrow key and the selection goes off screen, so the selection logic appears to be working. How do I get the scroll bars to appear ListView is derived from ListBox and the vertical scroll bar appears when I use a ListBox and bind my data to it. Just for the heck of it, I put the ListView inside of a ScrollViewer, but that didn't work (I didn't expect it to). Vertical scrollBa ...Show All
Visual C++ Dinamic allocation of memory , acces violation
Hello Im working on project for my college, nevermind (but it urgent :((()... So I have this code example (in VS 6.0) in main class : REAL *Input[NUM_DATA]; ... size[br] = r.getSize(); Input[br] = new double [size[br]]; for (i=0; i<size[br]/12; i++) { for (j =0; j< 12; j++){ Input[br][i*12+j]=r.vector[j]; } ... delete[] r.values; // size iz a static field witch contains a number of data in object r. Br is variable which values go from 0 to NUM_VALUES. when I execute my program, it crashes. I have tried to put breakpoints and Debug it and Ive ...Show All
Visual Studio Team System Performance Issues with Version Control
We (a dev team of about 15 people) have been experiencing some performance issues recently with Team Foundation Version Control. It takes about 30 minutes to just load the project into Visual Studio and then another 30 mintues if you do a "Get Latest Recursive" on the entire solution. I setup SQL Profiling on the VSTEAMSCC DB and noticed some odd results: Based on the profiling duration, the sproc: prc_QueryItemsExtendedLocal is the main problem. The Duration for running this sproc is anywhere from 10000000 - 1455555. What is going on with this sproc I tried to open the sproc in SQL Server Management Studio, but it ap ...Show All
Visual Studio 2008 (Pre-release) Setting up a chat buffer using FlowDocumentScrollViewer
Hi, I'm new to WPF, trying to make a chat app to learn with. I've run into some walls with setting up the output buffer: -How can I make it scroll to the bottom all the time FlowDocumentScrollViewer, despite its name, doesn't seem to provide any scrolling functionality. -Can I make it not update the buffer until the scrolling is done It'd look really awkward if the text appears and then it scrolls. -Supposing I'll quickly build up a few hundred lines of text, is FlowDocumentScrollViewer viable in terms of performance -How can I style the zoom thing to be gone This thread has a link to a blog that explai ...Show All
Visual Studio #line directive and debug symbols
Is there a way to match whatever line was input with the #line directive to the debug symbols that are generated in a .pdb file If I generate a big file from several .cpp file, the compilation errors are displayed correctly, the __LINE__ macro are generated correctly but during the debug process I still get redirected to the big file instead of the small files that are used to edit the code. If it is not possible via a compiler option, is there some documentation on the .pdb format if I want to try to modify the info there directly I am not sure I understand your question. Are you asking for a way to have ...Show All
Visual Studio Pointing at the .net 2.0 framework?
Hello, I just upgraded to the 2.0 framework, and have tried within VB.net 2003 to point at the windows.systems.forms.dll that is in the 2.0 framework path (after removing reference to the 1.1 version). Studio responds with an error saying it's not a valid reference. I know I'm doing something wrong, there is probably a more top level setting to reference the new framework instead of the old. Any help Thanks in advance, Matt You cannot use VS2003 to develop for .NET 2.0. If you don't want to buy a new IDE, you can download VB.NET Express for free. ...Show All
Smart Device Development CeMAPI example...
Hi everyone, I’d like to start working with CeMAPI under Windows Mobile 2003, is there any docs about it, some links that points me to the right direction I found some docs in msdn, but it shows only how to start and it’s for PPC2002 using ActiveSync service, I’d like to work with a POP3 account in the WM2003. Is it possible does anyone have already made some application send and receive messages is there some examples I’ve created the POP3 account with some XML params using the DMProcessConfigXML function, but I don’t know how to send and receive messages. Thanks in advance, Best regards, Thiago Leite Hi Ja ...Show All
