blixt174963's Q&A profile
Visual C++ Accessing ref class when operator -> is redefined
Hi, i know this is probably a silly question, but the fact is i can't realize how to do this. I have a ref class with operator -> redefined, but in a specific point of my code i want to acces a member of this class. Example: class N2 { public: N2(NativeClass nc); }; ref class RC { public: ... NativeClass* operator -> () {return m_p;} static operator N2(RC^ rc) {return N2( *(rc->m_p) ); } private: NativeClass* m_p; }; Since i can only acces the class with -> the conversion operator to N2 doens't compile. Any help Thank you. Yeah. Switching to a tracking ref isn't the best solution is it. Try this: static operator N2(RC^ rc) { return N2( *((*rc).m_p) ); } ...Show All
Visual Studio Tools for Office Assembly Reference Error
Hello, I have been working on a project that imports images from powerpoint, and have built the program just fine many times. I made a few changes to the code, and now I am getting the following error when I try to build: Error 1 The type 'Microsoft.Office.Core.MsoTriState' is defined in an assembly that is not referenced. You must add a reference to assembly 'Office, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. I have tried adding a reference to the office.dll file which has the correct assembly reference, but when I do this I get an error stating that Microsoft.Office.Core.MsoTriState exists in both office.dll and interop.office.dll (which for some reason gets added back into the obj ...Show All
Visual Basic How do i drag a file from my application to the desktop or to another application(not a .net one) ?
Hello!!! I have created a little program that finds and shows thumbnails of all my autocad files. I now want to drag and drop them into autocad or at least at desktop. I don't mind if you can't tell me exactly what to do with the autocad file.I just want, if its possible, a general example of dragging from the application and dropping to anywhere. Thank you very much, your faithfully, john. fulminado, Use the Control.QueryContinueDrag event that Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled. The following code shows the usage of this event: Private Sub ListDragSource_QueryContinueDrag( ByVal sen ...Show All
.NET Development XSLT Irregular child order xslt:foreach
I have a question. I have an XML file which is actually an XML representation of Excel VBA code (but don’t let that out you off!). I am commissioning a program to parse the code into three types of XML element which will be styled in three different colors. If you look at an Excel VBA environment you will see keywords in blue, comments in green and other text in black. I have a fragment of XML thus < xml version = " 1.0 " encoding = " utf-8 " > < vbacodemodule > < line > < keywords > Option Explicit </ keywords > < br /> </ line > < line > < br /> </ line > < line > < ...Show All
Visual Studio 2008 (Pre-release) Buttonquestion
hi, is it possible to create a button that doesn't have a square shape, but for example the shape of an "L" This would help me a lot. tnx in advcance, Kimme Doesn't Expression Interactive Designer have a tool for drawing Paths I don't have the tool installed right now (it doesn't work with the latest WinFX Feb CTP) but I am pretty sure there is a tool for drawing paths of any shape. ...Show All
Windows Forms How to SET the client rectangle of a windows Form?
In a windows form,We can get "ClientRectangle" property, But how to set it Help me! Hello everybody, well, I did following trick: >>>>>>>>>>>>snip>>>>>>>>>>>>>>>>>>> /// <summary> /// Gets the internal spacing, in pixels, of the contents of a control. /// </summary> /// <value></value> /// <returns>A <see cref="T:System.Windows.Forms.Padding"></see> that represents the internal spacing of the contents of a control.</returns> protected override Padding DefaultPadding ...Show All
Visual Studio Express Editions C#.net 2005 application with MS ACCESS db?
hi, I am trying to build a C# win form application that uses MS ACCESS database, I have a login screen, i want to compare the input username and password with the actual username and password stored in ACCESS db, and let user login when they match. I can do this in c#.net2003, but no idea how to do it in 2005, plz help thx ahmedilyas again for ur quick reply~ regarding to the connection string issue, I went into all possible places to find the connection string, which is very inefficient. could u plz advise a better practice to keep track of and retrieve the connection string for my case thx in advance ...Show All
Visual FoxPro report with users parameters
Scenario: ->FoxPro 7 ->1 remote VIEW - called view2 -> 1 form -> 1 report bind to VIEW I have a form and a report and I want that the report shown just customers that are of United States and U.K (for example) . This form have checkboxes with countries names and a variable called xOptions ( that store the options of user) Before shownn the report I want that the user select a checkbox and see just what he selected into the report. Below the code in the procedure INIT of Dataenviroment . SET FILTER TO &xOptions FILTER(&xOptions,view2) How I make it This code don't work! Thanks How I make it This code don't work! After you set or change a filter you must move the record pointer in o ...Show All
Visual Studio Express Editions Dynamic assignment of data type within a structure...?
I'm wondering if there is a way to assign a datatype to a variable within a structure dynamically at runtime. For example: Structure test Dim a as Integer End Structure Is there a way to make variable "a" dynamic at runtime, so that it could be "as Single", or "as Byte" based on conditions at runtime Meaning, each instance of the structure may have variable "a", but representing a different data type... If not, any suggestions on a way to implement something like this I'd like to expand on my question, if I might. Lets suppose I needed to manage a dynamic array of that same structure throughout the course of my application. How would I assigned different types i ...Show All
Visual Studio Express Editions Using TabPages as MDI - need some help please
I am working on an application where I want to use a TabControl with multiple TabPages to display multiple documents. My application starts up with TabPage1 having a certain set of controls (a few textboxes, a datagridview & a button). I want to be able to have an event (a button click perhaps) cause a new TabPage to be added to the TabControl & be populated with the same controls, in the same locations, that are on TabPage1 (which were created at design time). I have pretty much figured out how to add the new TabPages, but here's where I get stuck: 1) How do I duplicate the controls that are on TabPage1 to the new TabPages 2) How do I address the controls that will be added to the new TabPages ie. the DGV that is TabPage1 is call ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Direct Answers For A Beginer
Dear, I Am A Beginer In Game Development, But Professional In C# And C++.Net 2005. I Want To Start Learning 3D Game Development Where I Have 2 Main Questions: 1- C++, C++.Net 2005, Or C# Is The Fastest And The Powerfull Language For Creating 3D Application 2- What Is The Graphic Library I Have To Learn And What Are The Difference Between XNA, DirectX, And XNA Game Studio I Hope To Help Me In My 1st Steps. Thx Alot 1. C++ will be the fastest, if you become an expert in getting every last processor cycle. c# is easier to program but does not give quite as much fine control. 2. DirectX is the underlying graphic API to talk to modern graphics cards - use C++ to code DirectX. XNA Framework is a managed layer over the ...Show All
Software Development for Windows Vista Customizing designer and activity look and feel
Hi, I would like to customize the look and feel of the sequential workflow designer. For example, I would like to 1. hide the title bar containing the caption "Sequential Workflow" 2. hide the footer containing the three buttons "View", "Cancel", "Fault" 3. replace the images on top and bottom of the workflow with my own images. 4. customize the appearance of connector lines 5. customize the appearance of collapse/expand for composite activities (I would like to have the plus button located at another place and use my own images for it) Can you please provide some sample code or links to such code that shows, how to achieve these goals. Thanks for you help. Regards, Mari ...Show All
.NET Development ampersands
I've got some HTML data that I'm trying to read with an XMLTextReader (or a plain XMLReader). When ever it hits an anchor tag where the href contains an &, it crashes. I realize that & are supposed to prefix tokens like < & etc..., but is there a way to have the &s inside tag arguments No. Technically, bare ampersands aren't valid in HTML either, but browsers don't compliain. (The W3C validator, of course, will :) -Ryan ...Show All
Visual C++ How to register Service
Hi, I am trying to install a user defined service in Windows. I have used the following commands : 1. installutil myservice.exe 2. myservice.exe /register In both the above cases, I could not see my service in the service explorer. Can anybody help me out please.. Bindu. Hello Re: How to register Service Such questions are outside the scope of this forum - for the scope of the Visual C++ General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 OTP thanks bite ...Show All
Software Development for Windows Vista Problem in driver development in Vista
Hi, I'm in development of a driver for PCI card in Windows Vista (Build 5308). I faced a problem probably due to its "shadow copy technology". Suppose i have installed my driver on system. And then made some changes and build. whenever i'm going to install this updated version(with respect to build time-stamp) vista is not using the updated version. Its using the very first version(with respect to build time-stamp) installed on the date although it keeps backup of the updated version. I have attempted a number of alternatives: 1) Restored an updated version from "previous versions" tab. Its worked fine only for the next restart. and 2nd time onwards uses very first version of the date. 2) i suppose its due to shadow cop ...Show All
