George Shear's Q&A profile
Visual C++ This code snippet makes no sense...
I've come across some code syntax I've never seen. It compiled, but I don't know how, or what it even does! I've been reading a book about DirectX, and in one of the examples, this little piece of code was present: D3DXMATRIX *D3DXMatrixIdentity(D3DXMATRIX *pout); "D3DXMATRIX" is a type, of course. And "D3DXMatrixIdentity" is a function, of course. Now I don't see how this works. Okay, to break it down, first we have a type, which is D3DXMATRIX, then we have the indirection-operator (which I assume is a pointer), and then we have a function (perhaps a call) with a new D3DXMATRIX (pointer) as it's only parameter. How the heck does this work It isn't just a regular function-call. It isn't a function-call that' ...Show All
Visual C# How to convert an infopath file pdf
Hi, I have a requirement to convert an infopath file to pdf.It's very urgent, friends. I have no idea about. Is there any way of doing so through code .. Thanks in advance... Hi Mikedopp, By default there is no option to convert the infopath file to PDF. So Microsoft gives addin to overcome the issue you can download the 2007 Microsoft Office Add-in: Microsoft Save as PDF or XPS from this link http://www.microsoft.com/downloads/details.aspx familyid=4D951911-3E7E-4AE6-B059-A2E79ED87041&displaylang=en Once you installed then there is a option in the file menu export to PDF and XPS in the Infopath 2007. Programmatic Approach Add the Form Control to Windo ...Show All
Visual C# HELP!!! Unresponsive keys in IDE! All of the special keys, including ENTER, DELETE, Arrows, etc! Very weird!!!
I'm getting nuts with this! Suddenly, 2 days ago, my Visual Studio IDE stop responding to any control key (Enter, Insert, Delete, the Arrows, Home, End, Page Up, Page Down, all of them!), but still types in any other alphanumeric key (including the numbers in the keypad with NumLock on) Obviously this makes editing impossible, and is making me go out of my mind! This happens with any file type, in any language, even txt files, but only in Visual Studio’s IDE (even god old Notepad behaves perfectly normal and recognizes all keys) I’ve already done everything I could think of, including uninstalling and reinstalling Visual Studio several times (in one of them I “hunted”, and destro ...Show All
Visual Studio Tools for Office Outlook 2007: trouble with PropertyAccessor.SetProperty
The following code is throwing a COMException (0x80020009) on the second line. The actual_date object is a valid DateTime object (and it does have the date I wanted) when watched after the first line. The property accessor is from a MailItem object. object actual_date = oPropAccessor.GetProperty( "urn:schemas:httpmail:date" ); oPropAccessor.SetProperty( "urn:schemas:httpmail:datereceived", actual_date ); Any ideas why this won't work OutlookSpy is making the changes using Extended MAPI. PropertyAccessor is part of the Outlook object model and implements any read-only restrictions that the object model implements. You could write Extended MAPI code using C++ or Delphi to make the changes but you can't u ...Show All
SQL Server problems displaying images
Hi I have a query that returns a companyname eg. "ACD". This info is then saved in a parameter. On the logo (which depends on company), I use this parameter value to the pick up the right picture like this: =Parameter!.company.Value &"_logo.jpg" The image is there on the server an the path is correct, but the image is not displayed! What is wrong I think you're misunderstanding. Use a URL to access the LOGOs (not the report). In other words, host your images on a website and access them from there instead of from windows. If you don't have a website, set up an account at http://photobucket.com/ and host your images there. It's quick and simple. ...Show All
Visual Basic Need Help/Ideas for Program
I'm making a program that changes the size of a group of user-selected images stored on the hard drive (JPEG, GIF, BMP, ect.), but I'm kind of stuck on how to approach this. I was wondering if anyone had any ideas/suggestions. I know how to resize each single image, but I don't know how I should automate it to do a group of images one after another. I was thinking about storing a list of filepath addresses of the images... Thanks for any help. No, that returns all files it finds in a folder. To let the user selectively pick which files to work on, use an OpenFileDialog with the Multiselect property set to True. You'll find the files she selected in the FileNames() property. Save the selected list of fi ...Show All
Visual C++ MFC CScrollbar Question.
I'm having some issues with a scrollbar. I can get it displayed and everything, but I can't get any messages. Below is the code. Any ideas // BrowseMissionDlg.cpp : implementation file // #include "stdafx.h" #include "MDAE.h" #include ".\browsemissiondlg.h" // CBrowseMissionDlg dialog IMPLEMENT_DYNAMIC(CBrowseMissionDlg, CDialog) CBrowseMissionDlg::CBrowseMissionDlg(CWnd* pParent /*=NULL*/ ) : CDialog(CBrowseMissionDlg::IDD, pParent) , m_nMaxWindowLines(0) , m_Exit(FALSE) , m_Viewable(FALSE) , m_WindowBuffer(m_DeviceInterface) , m_CurrentRecordOffset(0) { } CBrowseMissionDlg::~CBrowseMissionDlg() { } void CBrowseMissionDlg::DoDataEx ...Show All
.NET Development General Question "Practical use of BitArray & BitVector32"
I'm studing for the MCTS and was reading over BitArray and BitVector32 i understand what they can do...But my question is how can they be applied in a Application what pratical use do they have Can a BitArray be applied to an object like a ComboBox,TextBox etc and when a Bit returns "True or False", different information is supplied in the ComboBox and vice versa.. Those classes are used when you must do bit-level operations to some data. Usually bit-level modifications to data are made in byte level using mask bytes and binary operations, but in some cases using BitArray and BitVector32 it can be more illustrative, than more or less cryptic masking operations. I don't know if there ...Show All
SQL Server Can I automatically see which VIEWS are used for each REPORT?
Is there a way to see which database views (or tables) were used for each report (For example, I have a report called "Customer Oriented" and it uses 2 views: Customers, and Products. Can I automaticaly pull out this information Thanks, Hi Jens, Where can I see that text (the one in which you can see the name of dataset). Although I am more looking for seeing database VIEWS or TABLES used to create a report rather than a DATASET, but that might give me some insight. Thank you. Alexan ...Show All
Visual Basic data set is either undeclared or was never assigned
I have a vb 2005 windows app that on a form I have added a datagridview. But now that I have the .xsd file I can't view it in the designer window anymore. I keep getting the message that the dataset is either undeclared or was never assigned. Has anyone else experienced this issue Thanks Nikki Here is the error: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. The variable 'VPPLookupDataSetHelix' is either undeclared or was never assigned. Hide Edit at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(ID ...Show All
Visual Studio Team System Security Problem with Accessing Work Items
I have a security problem with accessing work items. I have created a team project based on a customized project template. Among the rest, there are a "Defect" work item and two team queries, "All Defects" and "Active Defects" . MyProject > "Team Project Settings" > "Group Membership..." context menu item shows "Project Groups on MyProject" dialog with the list of the team project groups, including [MyProject]\All that includes another team project group, [MyProject]\Developers that includes a Windows user MyDomain\John . MyProject > "Team Project Settings" > "Security..." context menu item shows "Project Security" dialog with the list of the team project groups and their permissions, particularly, the above-mentioned ...Show All
Visual Studio Team System Using Visual Studio 2005 Source Control
Hi, Can i use only the New Visual Studio Source control without the other components of team system. I would like to use the new source control for my application which is in dot net 1.1 regards rajesh To use Team Foundation from VS 2003, you'll need the MSSCCI provider: http://www.microsoft.com/downloads/details.aspx FamilyID=87E1FFBD-A484-4C3A-8776-D560AB1E6198&displaylang=en ...Show All
.NET Development Fetch Network Bandwidth Usage
Hi I want to find out the network bandwidth usage. I have to create a dll that will give the bandwidth usage. Mani Here ;) http://www.codeproject.com/csharp/networkmonitorl.asp Best Regards, Rizwan ...Show All
Visual Basic World clock
Hi, I am busy making a world clock program showing 5 clocks from around the world. I have a coupel of problems: 1. How do I substract hours from the system time Or is there a way to take GMT and substract/add to that time 2. If I run the program it will show my local time, but if someone from an other part of the world runs the program it will show his local time, and so the offset for other countries might be wrong... How to correct independent of location Thx for any tips you might have These forums are for .NET prograsmming questions only. VB6 is offtopic for these forums. Please see any of the following links for further help: Useful Links Visual Basic 6.0 on MSDN Library V ...Show All
SQL Server Issue with inserting chart into table's cell
Hello, look at this one I've formed table with grouping + Group 1 | Sum(field1) | Chart Elem1 | field1 | "Cannot place a chart at this location in the table" Why I cannot insert chart at this place Thanks I get a similar error when trying to paste a table in a detail cell of another table. "Cannot place a Table at this location in the Table" Yet I can insert a new table into that table cell from the toolbox. The table I want to paste is based on a single data point from the parent table. I can recreate it, but it would be a lot easier to paste it from another report. ...Show All
