Ren Yi's Q&A profile
.NET Development _CONTEXT struct in winnt.h with x64?
Hi all Still working with my 64-bit researching and conversions, now I've found myself stucked on an error where the _CONTEXT struct in Winnt.h is involved. The following two fields are only long in that struct, but as you probably know a pointer in x64 is 64-bit and not 32... So, I'm afraid of that the previos cast from Context.Eip and Context.Ebp to a pointer would not work so very well... Eip Ebp So, how to workaround this problem I've tried ...Show All
.NET Development is it possible to specify "local" as the datasource rather than hard code it?
I have problem of deploying the application and database to a client server. i was previously seeking help in sql server replication forum, and now the problem is identified: my connection string is coded to development server's name, and that's probably why the application won't work when the application is installed on client server and the database is restored on client server. please read this post first http://forums.microsoft.com/MSD ...Show All
SQL Server How to access report parameters in custom code
Hi, Below is a custom code function for my report. At bottom is the expression that calls the custom function. When I run the report I get an error message: "There is an error on line 3 of custom code: Reference to a non-shared member requires an object reference." If I take out the lines that try to access the report parameters then there is no error. Can report parameter be set/read from the report's cus ...Show All
Windows Forms How activate a ChildForm, with a menuItem?
Hi! I have a MDI application. With a menuItemA open the FormA, with a menuItemB open the FormB,..... 1. I open FormA 2. I Open FormB 3. I Open FormC 4. How I can, return FormA in Code Hi Serghio, Take a look at the following art ...Show All
Windows Forms Using the windows Forms (c#) Handle property in a win32 DLL
I have a win32 DLL that exposes a method that takes an HWND (m_hWnd from C++) as a parameter. This method is going to do some openGL / directX drawing using that HWND parameter. Can the Handle property of a windows form be used with that method I must be missing something then. I still just get a blank windows form, as if no win32 interaction was taking place at all. How did you get the Handle property ...Show All
Microsoft ISV Community Center Forums Problems with BSM
Hi! Now we're trying to deploy a BSM-project. There're some comments and maybe questions. First of all I want to notice bad work with localized systems. English version of BSM requests 1033-folders. But russian version of SharePoint doesn't contain this folder (only 1049). As result some pages looks incorrectly (e.g. there's a problem with css in the page filter editor). The second problem is that the page filter doesn't work with me ...Show All
Windows Forms Message Box extension
Hi, I need to have a dialog box that return a value. Like the Inputbox or the Message box does. Currently I make a global variable or a Variable in the caller Class (window Form) than make a instance of mydisloag box and that dialog b ...Show All
Visual Studio Express Editions How can I prevent the first picture from disappearing?
I have a picturbox with a background picture. I add a picture with a transparent background. No problem, the background remains. I add a second picture with a transparent background. The first picture disappears, happily the background does remain. How can I prevent the first picture from disappearing I am not sure what you are doing. If you have a PictureBox and set the BackgroundImage and then the Im ...Show All
Visual Studio Team System How to get the name of a .vb file
Hi Guys, I developed the rule below to get the name of all *.vb files that are inside a projet and wanna verify if the name has an especif construction. But, when I debug the rule method, I get the name of the .dll of the project and not the files inside it. How can I verify each file in a project I am analysing in fxCop the project dll. Is it correct Public Overloads Overrides Function Check( ByVal Modulo As Microsoft.Cci.Mod ...Show All
.NET Development ReadStartElement not as expected...
I would have expected the following code to have 'xr' pointing to the "node" element, but instead it is at "a". Any ideas why This seems to be inconsistent... XmlDocument doc = new XmlDocument (); doc.LoadXml( "<node><a/></node>" ); XmlReader xr = new XmlNodeReader (doc.DocumentElement); xr.ReadStartElement(); Regards, Fil. a reader is l ...Show All
Visual Basic Difficulties with Data Adapter Configuration Wizard (error)
Whenever I try to use the Data Adapter Configuration Wizard (the OleDBDataAdapter) from the toolbox I get the following error... "An unexpected error has occurred. Error Message: Object reference not set to an instance of an object. Call Stack: at Microsoft.VSDesigner.Data.VS.VsConnectionManager.CheckConnection(Int32 index, ProviderNameInfo nameInfo) at Microsfot.VSDesigner.Data.VS.ConnectionPage.InitIn ...Show All
Visual C++ merging native C++ stack trace and .NET stack trace in an exception.
In our old version of our software we had a but of functionality that detected an unhandled exception and output a crash log file that we could interpret (using the pdb file) to get the callstack for the exception. Now our software uses both managed and native code. Their exceptions are fairly mutually exclusive as far as I can see. Has anyone come up with a way of merging the callstacks ofthe native and managed parts Regards Jero ...Show All
Windows Forms WaitCursor and form disable
Hi I got an application with a lenghtly task in managed C++. I wish to disable the form to prevent user from doing anything and have a waitcursor (hourglass) when the task is running. this->Cursor = Cursors::WaitCursor; this->Enabled = false; the task this->En ...Show All
Visual Studio 2008 (Pre-release) Getting the service claims in the client code
How can I obtain the service claims in the client code, namely If transport security is used, the claims associated with the SSL server certificate If message security is used, the claims associated with the security context established Thanks for the reply. Were can I find some documentation regarding the Message Inspectors Thanks Pedro ...Show All
Visual FoxPro Excel Automation - Charts.
Hello Guys The code below works fine (complete code). The problem is, how can one set the number of rows in the following lines. These two lines sets the chart data parameters. Although one can use "oSheet.UsedRange.Rows.Count" but how to encorporate it in the code. Please complete the following 2 lines. oExcel.ActiveChart.SetSourceData(oSheet.Range("A2:A16,E2:E16"), xlColumns) oExcel.ActiveChart.SeriesCollection(1).XValues = "=History!R2C1:R16C ...Show All
