Greg Beech's Q&A profile
Visual C++ How to use CRect in DLL
I have created a DLL using VS2005 and would like to use CRect and NormalizeRect() but I keep getting a unresolved external link error. I am just learning so it is probably something simple. Do you have any suggestions Thanks Here is the H and CPP files H #ifdef CLIPBOARDHELPER_EXPORTS #define CLIPBOARDHELPER_API __declspec ( dllexport ) #else #define CLIPBOARDHELPER_API __declspec ( dllimport ) #endif #include "atltypes.h" namespace ClipbrdHelper { // This class is exported from the ClipboardHelper.dll class CLIPBOARDHELPER_API CClipboardHelper { public : CClipboardHelper( void ); // TODO: add your methods here. }; extern CLIPBOARDHELPER_API int nClipboardH ...Show All
Windows Forms creating a dataview
I need to take a look at the content of some DataTable(s) I download from SQL Server in a purely debug situation. I decided to use DataView object for it. I improvised the following code: DataViewManager mng = new DataViewManager ( sqlDatSet ); DataView dtview = mng.CreateDataView ( sqlDatSet.Tables[jj] ); dtview.BeginInit ( ); The jj integer is the index of a particular DataTable in a DataSet and is found in a for loop. I expected a primitive form with a Table View displayng my records to show up. Is it not a reasonable expectation Nothing like this happened. The DataView remained an internal object. If I cannot get a good look at what is present in the tables I download I will be facing a cumbersome task of printing the stuff ou ...Show All
Community Chat ok it,s done...update
ok guys I have tried everything to publish my new web browser on to my site.... thanks spotty for all your help.... much appreciated.... I think my isp is not configured for click once.... I have clicked a thousand times to no avail....... so I am wondering if there is some other way to post my application... I would like to put my app on show and tell and get some feedback... any advice on how to do this thanks cheyenne dosen't even install for me, this is what the error log that is generaed says: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) d ...Show All
SQL Server Export to PDF and print in landscape
Hello I have a report which I can print on legal paper, once I choose the landscape settings on print menu. When the same report is set to export to a file share in pdf format, it renders in portrait format. Is it possible to have the pdf document look like the landscape view so that the user can just hit print. Thanks Inder HI, In the report designer, click on the small square in the top left hand corner of the page so you can view the page properties. Now set the page size in the properties box to 29.7 width and 21 height. I can get screenshots if you need them ...Show All
Visual Studio 2008 (Pre-release) Sending selected tree view item data to model (how to bind)
Hi All! I am trying to develop simple WPF-based application and faced one problem. I have UserControl that contains TreeView. This tree view is bound to hierarchical Categories structure. User can select one particular category and view the contents of the selected category in some list view (this list view is not from the same UserControl). Now I want to have Application.SelectedCategory property which will always contain the category selected in tree view. This property will be used in other user conrols. I tried to establish OneWayToSource data binding using TreeView.SelectedItem property, but the attempt failed because this property is get-only and it is not registered as dependency property. What should I do Handle selection change ev ...Show All
SQL Server Import Analysis Services 2005 cube into Siebel Analytics
Hi, I'm trying to import a cube I've created with Analysis Services 2005 into Siebel Analytics Physical Layer. I've installed XML For Analysis SDK on the SQL Server and created a virtual directory which contains the file msxisapi.dll. When I try to import I get the following error message fro the server :"Error proccesing request". I think the problem occurs because the xmla service doesn't "know" I want to import the cube from it. I'm very new to the issue and we don't have knowledge in our company to solve the problem. I'll very appreciate it if someone could help me. Thanks in Advance, Moving to the SQL Server Analysis Services forum. ...Show All
SQL Server Problems with sql:overflow-field and sql:datatype="xml" in XML bulk load
I am bulk loading data from an XML file into three tables in SS2005. All is well except for a section that I would like to load into a column of type XML in the table. I have tried using sql:datatype="xml" and it does load into the XML column but there are two problems: 1) It adds two namespace tags to each element which I don't want. 2) It does not include the outermost tag <Form> but starts with the next tag in. I then tried using sql:overflow-field and have a problem with it, also. 1) It includes the parent tag <Study> which I do not want. If I try to put the overflow annotation on the <Form> tag I get an error that it sees that as a column. Here is the XSD: < xml version="1.0 ...Show All
Windows Forms Issue with AxWebbrowser_DocumentCOmplete
Hello all, im finding that im having an issue with the DocumentComplete never being accessed, it works alright on my PC but on other pcs it just remains at my html document... Im calling the document by using the Navigate2() and then in the DocumentCOmplete i have a Popup that simply says Hello. It works fine on mine but when i send it to any of my friends the page remains blank. THe html website loads but the documentComplete is never called into action by the exe... is there any explanation for this or is it a coding error alright ive found a few others having this issue but no one has been able to resolve it... the code is as follows and maybe sombody can help me out. using System; ...Show All
.NET Development Email from system at certain times every day?
How do I make the system send out an email with a certain content at a specific time every day What I would like to do is take some data from the databaseand use it in a crystal report ( this is done) and then send it in an email. Sune I am interested to know where this code needs to be put, i.e. as a .ASP file in the services window, is it held as .ASP within a Macro which runs on the application start up. I am keen to use this facility in the organisation in which I work, but my knowledge of .ASP and Service Windows is minimal. Your assistance would be greatly appreciated. Many thanks in advance. Mark Jones ...Show All
Visual Studio Express Editions Creating Icons
I have been trying to create an icon and saving it with paint as "icon.ico" but it isnt accepting it other icons will be accepted does anyone know why this is happening Polarbear541 remember this is a voluntary forum and no one gets paid here :-) So you will have to bare with us until someone can give you an answer. how exactly are you creating the ico files What happens when "it doesnt accept it" be sure the icon is 32x32 ...Show All
Visual Basic Performing operations on out of focus windows forms VB 2005
I have a Mdi application I am coding. One screen is a datagridview and from that the user double clicks a record to open a new window. On the new window I have next and previous buttons. Is it possible have the highlight on the datagrid move with the click of the next and previous buttons without leaving the focus of the details window I am using the Load event. I am not setting any of the values for the grid though. In my load event however I am calling my LoadGrid function which is the function I use that executes a stored procedure and binds the records to the datagrid. Could that be it I don't set any of the grid variables though except for the DataSource. I would post code but I am not sure what I wou ...Show All
Visual Studio Team System Local VSTFS install and local user rights
Hi, I was able to install TFS locally (since we don't use AD), and everything seems to be working ok. However when I set up the local accounts for the users I noticed that to let them connect from the client to the server they needed local administration rights on their local account on the server. I'd like to have them at most as power users but so far I can't get that to work. Thanks for any help, - John B The Team Foundation Server groups can be accessed either via the "TfsSecurity.exe" command line utility or through the Team Explorer client. We don't add any Windows groups, but rather handle our own permissions and group lists internally. You can find more information on managing users ...Show All
Visual Studio Team System /format:VSS in tf.exe not supported?
Hi, I 'm trying to use the tf.exe diff command with the /format:VSS parameter. All I get is an error message saying: TF10120: The value VSS is not supported for option format. MSDN says it should be available on RTM: VSS VSS is default difference output format for Visual SourceSafe. For more information, see Diff (Command Line) . Can anybody confirm the lack of this functionality Tom ...Show All
Microsoft ISV Community Center Forums Adding data in one column based on another column using VBA
I have an Excel DB in which there are identical entries in some of the fileds. I need to identify those entries, delete one of them so I can keep the other one in the DB and sum their corresponding value in another column. EXAMPLE: A 23 B 12 A 10 C 20 I need to get the following result: A 33 B 12 C 20 This seemed easy, but I can't figure t out in VB. Thanks. Hi Below is not elegant, but it might give you an idea. The below assumes that data starts in A1. The arrays store the summary data then the data range is deleted and the array data written back. Try with some test data in a new sheet. Public Sub TEST() Dim X, lngLastRow, ...Show All
Visual C++ How to combine managed and unmanaged types?
Hello. I have some managed class MyClass and unmanaged structure my_struct. And I need to create a member of MyClass of type my_struct. typedef struct { int a, int b } my_struct; public ref class MyClass { my_struct val; public : } But compiler reports me about the error: cannot define 'my_struct' as a member of managed 'MyClass': mixed types are not supported The same trouble occures when I try to declare std::map<int> as a member of MyClass. Question: what is the right way to create the unmanaged member of managed object Hi , Now i am in confusion. which one is right , in the 2 ways i proposed or both of them are wrong Please specify the write way. Tha ...Show All
