Toni Greco's Q&A profile
Visual C++ mangled name
Is there any API to retrieve the address of a method (private/public) using the mangled name. the method is supposed to be a class member. we can know the mangled name from the .map file in VC++ 6.0 Please also suggest a method of using this in GCC. Shouvik wrote: So what i thought is VS2005 is a manged C++ code so it makes necessary arrangements to know the Address of the caled method but in VC++6.0 i need to supply the address explicitly. Hence what I planned is to create a .def file and give alias names to the various mangled formats( <meth>@class@@...) and retrieve the address. Then use this address to call the methods explicitly. That's a common misconception. As Mike points out, there's nothing f ...Show All
Visual C# handling relationships in oledb
Hey, Lets say I have a simple database like: [Table1] ID (primary key) Name Phone [Table2] ID (primary key) Date (primary key) Text and I set a relationship in Access between the ID fields of both tables in a one-to-many relation from Table1 to Table2. How can I take advantage of this relation in my c# code For example, given only one ID, I can get access to both Table1 and Table2 fields Thanks unfortunately this is the way of doing so I believe. It's pretty simple to create a relationship in a dataset. Take a look at the datarelation class: http://msdn2.microsoft.com/en-us/library/system.data.datarelation.aspx Does this sound like what you are after to "take advantage" of the relatio ...Show All
Smart Device Development Smart Device Programming Working example
Hi, I try to write a simple application with winform and web service for smart Device ( Pocket PC 2003 SE) in VS2005. In the toolbox, I could not find any object such as textbox, button or label controls at all. I downloaded some examples application for smart device in Microsoft website and none of them are working ( may be I do not know how to configure to make those work). Do you have any simple working example like "Hello Wolrd" for me to take a look Regards, JDang JD said: I could not see any objects in Toolbox right now. I'm not very clear what your problem is but this maybe happens because you are not in designer view of the project. You cannot ...Show All
Visual Studio Unresolved Assembly System.IdentityModel required for System.ServiceModel
I am preparing the documentation for my webservice created using WCF and .NET3.0 stuff. But when i execute the MRefBuilder command with all the .dlls and with /dep: it is throwing me a error saying "Unresolved Assembly System.IdentityModel". This namespace is registered in GAC but, i dont find a physical copy of the file in my harddrive. With that error it generates Reflection.org and when we move forward and execute the next command XSLTransform command then it throws a .NET framework error and asking me to debug the code. MRefBuilder 1.dll 2.dll /dep:.\ref\*.dll /dep:C:\winnt\Microsoft.NET\Framework\V2.05...\*.dll /dep:C:\Winnt\Microsoft.NET\Framework\V3.0\Windows Communication Foundation\*.dll [Error]: Unresolved Assemb ...Show All
Visual FoxPro Views
I am trying to write a VFP Remote View that selects data from a Microsoft Database, unfortunately some of the mssql fields are reserved word (IN FOXPRO) so the VFP will not allow me to inlude these fields in the view. For example this remote query pulling data from MSSQL by a foxpro view select table1.pers_name, table1.pers_address, table1.values from table1 returns an error because of the word Values is a reserved word in foxpro. Is there a way to get around this. This is tricky if you create the remote view in the designer because it cannot interpret the solution (which is to enclose the names in "[" "]"): You can do it in code like this: CRE ...Show All
Visual Studio Tools for Office Problem in Creating Excel Addon using .Net assemblies (multiple references)
Hi all, I am able to re-use a "standalone" .Net component in Excel VBA. However, there is problem if the .Net component further refers to another .Net components. There is a class CompVB which is a VB.Net component with a public method AddOne() to incremnet the input number by "1". There is another CompCS which is a C# component with a public meth AddTwo() which invoke the AddOne() of CompVB and then further increment the input number by "1". My target is to make the CompCS become accessible in Excel VBA environment. I try to generate the ".tbl" file by "regasm.exe" but there's Automation error. It stated that a file could not be found but I don't know which file it is. ...Show All
Visual Studio where to get the plugin
hello, I can't find the VSS 2005 plugin for Visual Studio (I had it before but now I can't remember how I did it before I formatted).... I have a home server with VSS on it.... I commit my changes to it... formatted last night and can't remember how I got VSS plugin for Visual studio... thanks The easiest solution is to do a repair install of VSS 2005. That should ensure that all of the MSSCCI DLLs are registered and registry values are written correctly. If you need to fix the plugin installation manually, follow the steps from these threads: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=298607&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=259526&SiteID=1 ...Show All
Audio and Video Development Playing sounds from markup
How would one go about playing sounds in markup Specifically, I want to trigger audio from a focused state without passing an event to script. I understand that I can create a wav object, but how is the object sent to Player.audio.effect in markup Thanks! Is the player unabled to play sound effects if the disc isn't AACS protected I'm accessing the .wav file from the script it works good in the emulators but not on the real player. Using 1536kbps 16bit 2ch 48khz PCM wav's and no luck also not with a the mono version. ...Show All
Smart Device Development How to pass arguments in InvokeAction
Hi all !!! I want an explanation about passing arguments in the IUPnPService::InvokeAction . Because I'm building a UPnP AV control point and my boss want me to implement Browse action. Thanks evryone for the help. Hoi Le Saint! Did InvokeAction also worked with output values Could you please post some example code Thank you. ...Show All
Visual Studio Invalid DOS Path: T:\VSS\activity.log
Hi all, I have Visual Source Safe 2005 installed locally on my PC and the srcsafe.ini and database (etc) are all located on a LAN server. I am attempting to add files by dragging and dropping from Windows Explorer into a folder in Source Safe. Every time I add a new file I get the error message "Invalid DOS Path: T:\VSS\activity.log". T:\VSS\activity.log is the server path to the srcsafe.ini file, the activity.log, and so on. I have read/write/access permissions to T:\VSS and I am able to actually get to T:\VSS via explorer and modify and save activity.log manually. This is driving me nuts, as I am trying to add a whole heap of files into Source Safe (its not connected to Visual Studio by the way) and having to click ...Show All
SQL Server Dataset Distinct Query
I am trying to build a report with a prompt to select building. It all works fine except I in the prompt building is list as may times as there is data for it. I want it to only display once, but not effect the other data is there a way I can query this I have my 2 datasets and my parameter set up to display building to select from. My issue is I get multiple values in the Select Value Prompt. It will pull the correct data I just want to clean up the Select Value Prompt. Example: of prompt list Building 1 Building 1 Building 1 Building 2 Building 2 Dataset 1: Select Building, First, Last From Table Dataset 2: SELECT Building, First, Last From Table WHERE (Table.Building = @Building) ...Show All
Visual Studio 2008 (Pre-release) updating resources propagates down but...
It appears that this call System.Windows. Application .Current.Resources.MergedDictionaries.Add(_themes[ value ]); triggers some event that updates all application windows and their controls. However, I have a few other WPF controls loaded through ElementHost. Those don't get updated by the above command. How can I trigger an update on those (They do read the application resources when they are created.) I guess they would need to reload their styles. ElementHost has a StyleChanged event but I don't know how to trigger it externally. Any help would be appreciated. ...Show All
SQL Server Need to get separate pages for each person..help
I'm fairly new to RS and have a problem. I have a query that pulls information on people, courses they have taken, their score and so on. I have a date parameter setup so I can run it by year. Everything works ok on the query side, I get all the information I need on all the people and the courses they have taken. However, when I run the report, I do not get a separate page for each person and their relative information. The first page shows the first name and the rest of the 700 pages list all the courses and other information, with no break. How do I render the report so that I can get a separate page(s) for each person and their specific info I can glady provide more info/code if need be. Bill ...Show All
SQL Server SQL 2000 Replication Status Question
Hello, I'd like to be able to poll a SQL 2000 subscriber database to obtain the current replication status. For example, I'd like to know when the subscriber is sitting idle (e.g. "waiting for changes..."), when it is actively replicating (e.g. "applying script..."), or when it is in an error state (e.g. "The Merge Agent failed..."). I realize I can query the table MSmerge_history which contain a comments and error_id field that may be useful. However, there is no status field that I could easily code against. Does anyone have any ideas Isn't there a runstatus column in MSmerge_history See BOoks ONline for the possible values, i think 1 = start, 2 = succeed, 3 = in progress, 4 = idle, 5 = retry ...Show All
Software Development for Windows Vista Visual Basic 2005 + directshowlib.net
Hello, Beginer here.. Using VisualBasic2005 Express and the Directshow lib from sourceforge Im trying to Hook up the IVMR interfaces to the vmr9 Object and seem to hit a wall. How do I set them, in particular, the IVMRMixerControl9 Any Ideas Thanks ___________________________ Public Class Form1 Dim graph As FilterGraph Dim monitor As IVideoWindow Dim mech As IFilterGraph2 Dim master As IMediaControl Dim posi As IMediaPosition Dim Mixer As IVMRMixerControl9 Dim Mixcon As VideoMixingRenderer9 Dim f As IVMRMixerControl9 Dim mpin As IMixerPinConfig2 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load &n ...Show All
