seco's Q&A profile
Visual FoxPro combo box inside a cell in grid
hello, i wonder how to integrate the combo box in a cell of a grid. i saw this in one of the existing apps. i want the user to be able to select a record in that combo box and changes the record on the other cells in the grid. can anybody here to please guide me on how to do it. thank you jason what you can do is drag a combobox to a hidden part of the form. and everytime the user would click on a cell in the grid, you would change the coordinates of the combobox and make it visible. Then after the user clicks the combobox, you would transfer the text from the combobox to the grid and thereon make it invisible. ...Show All
Visual C++ Is it possible to consume a VB.Net .dll from C (unmanaged not c++)
I have a VB.Net dll that contains functionality I need to access from a C program. As GetProcAddress won't get me where I need to go (right ) and I cannot create an instance of anything (C not C++) is there a route possible to loading this library I assume that it's not an option to recompile the C code as C++ That would be the easiest route (use the /Tp option). Failing that, you would need an intermediate layer of C++ code compiled with /clr that makes your calls into the VB code. This would contain a #using statement to access the VB assembly/dll and expose global functions visible to the C code. These functions would be declared as extern "C" and could be exported using __declspec(dllexpor ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What units are the x, y, z components of a Vector3 with respect to screen space?
Hi, I've just got hold of the XNA Beta and have a really basic question really. The following vertex VertexPositionColor [] vpc = new VertexPositionColor [1]; Vector3 v1 = new Vector3 (0.0f, 0.0f, 0.0f); is drawn from what I can see directly in the middle of the game window. I tried varying the x and y components of the Vector3 and found that it does not like values above 1.0. I can move it by incrementing the x or y components by 0.1f. And so my question really is how do the units I provide to vertex Vector3s relate to screen space I am used to systems that a) start from the top-left of the window and b) where if you say Vector3(10, 20, 0) would draw the vertex at 10 pixels across, 20 pixels down. Some pointers on t ...Show All
.NET Development Dynamic Assembly Binding... how?
I'm confused how dynamic binding is even possible. If I have 2 DLL's, named Parent.DLL and Child.DLL and child needs to have a reference to parent, well, if I drop all the hard coded references from child to parent and instead throw in a line of code that dynamically binds, isn't my project going to throw a fit when I try to build the Child.DLL and it no longer contains the hardcoded reference to the Parent.DLL It will only throw a fit if your Child.dll contains code that attempts to statically bind to types defined in Parent.dll. But if you've removed all statically bound code, that won't be an issue. Of couse it's not enough just to add a new line of code... Any time you do anything with something from Parent.dll, you'll ...Show All
Software Development for Windows Vista Some sample about AcivityBind and WorkflowParameterBinding
Can u give me some sample about the usage of WorkflowParameterBinding and ActivityBind I can't any theme about this lezi wrote: See this code below: code1: // // CreateBallotForJim // this.CreateBallotForJim.InterfaceType = typeof(CommunicationsWorkflow.IVotingService); this.CreateBallotForJim.MethodName = "CreateBallot"; this.CreateBallotForJim.Name = "CreateBallotForJim"; workflowparameterbinding1.ParameterName = "alias"; workflowparameterbinding1.Value = "Jim"; this.CreateBallotForJim.ParameterBindings.Add(workflowparameterbinding1); 1. code1 bind "Jim" to the argument alias of function void CreateBall ...Show All
SQL Server Oracle DB Update Error With SQL
I keep getting this error when i try to update to an oracle table through SQL: An error occurred while preparing a query for execution against OLE DB provider 'MSDAORA'. OLE DB error trace [OLE/DB Provider 'MSDAORA' ICommandPrepare::Prepare returned 0x80040e14]. This is the code I'm using: ************** DECLARE @cmd VARCHAR(500) DECLARE @Link VARCHAR(100) set @Link = Oracle_DB' DECLARE @Table VARCHAR(100) set @Table = 'Product_table' declare @Factory varchar(3) set @Factory = 'N12' declare @ProdPull varchar(10) set @ProdPull = '10500' declare @Prod varchar(25) set @Prod = ' 44JBGG' declare @WW varchar(6) set @WW = '200704' declare @SchedType varchar(15) set @SchedType = 'SCHED 1' SET @cmd = ' sele ...Show All
Visual C++ Amount of Graphics Card Memory
Does anyone have a segment of C++ code that could return back the amount of memory that is in the video card I'm attempting to adjust the user's graphics settings based on this value. Thank you very much in advance. :-) -Zach P.S. If this thread doesn't belong in this forum, please tell me WHY and I would be very happy. I am looking for a C++ code segment aren't I This is out of the scope of these forums. For more details on the scope of these forums, please take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 OTP Thanks, Ayman Shoukry VC++ Team ...Show All
SQL Server Paging in Stored Procedure
I got this code on internet for Stored Proc paging. This will work if my final result is the order of eployee id. In my case my final result is in the order of emplyee name. What i have to change in below code so i can have paging in SQL plus my order is by name. I dont want to create Temp table. Becuase i think Creating temp table is overhead to sql server and in that case i'll use Datagrid defualt paging and return all rows always.(My total number of rows will not be more than 300 and in 70% cases they are below 100) CREATE PROCEDURE [dbo].[usp_PageResults_NAI] ( @startRowIndex int, @maximumRows int ) AS DECLARE @first_id int, @startRow int -- A check can be added to make sure @startRowIndex isn't > count(1) -- from ...Show All
Smart Device Development Error log of emulator windows mobile 5.0 smartphone
Can I see Event log of emulator like we can see event viewer of our desktop machines. What I have done is install two dll via cab project.When I install the application it give me the message as installation completed.But when I see the registry there is no dll entry present there. How can I view what error goes on during installation Sorry, but there is no end-user facility for viewing logs of VS's deployment steps onto devices or emulators. I'm going to move this post over to the general smart-device forum so the CoreCon team can help diagnose your deployment failure. Barry ...Show All
.NET Development Can i convert ascx page (presentation) to XML style sheet (presentation) through code.
Hi, I have an aspx page.I would like the presentation of the page which has data with some images to be saved as XSLT with same presentation as of aspx page. My aim is to save the content of aspx page with its GUI on local machine using XML. I surfed web but to no avail.I have to accomplish this task throug code only.Can this be done. Regards, Ashwin Hi, Thanks for reply. But,Is it then possible if i have the HTML code for the page and then if i want to show the page using XML and XSLT. My motive is to have the portability of the page . At present, we are storing the page in MHTML which can be saved and taken to any system and viewed.Now, the client wants the page to be stored using XML.Is there any way out ...Show All
SQL Server Connect Problems
I'm using VS Studio 2005 to create a web service that connects to MS SQL Express. I've been able to create, connect and populate the database through the development environment. In the web service I attempt to connect to the database using the following connection string, string strConn = WebConfigurationManager.ConnectionStrings[ "DBPubSub" ].ConnectionString; conn = new SqlConnection(strConn); where my web.config connection string is < add name = " DBPubSub " connectionString = " AttachDbFilename=C:\WebServicesDemo\PubSub\App_Data\PubSubDB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True " When I execute " conn = new SqlConnection(strConn);" the ServerVersio ...Show All
Visual Studio 2008 (Pre-release) I want to make RecentMenuItem.
It made it. However, it doesn't become movement that the focus movement and the AccessKey processing with the cursor key intended. ------RecentMenuItem.cs public class RecentCollection : IEnumerable<string>, INotifyCollectionChanged { List<string> uris = new List<string>(); public RecentCollection() { //TestCode Start Add( @"c:\datas\testdata1.dat" ); Add( @"c:\datas\testdata2.dat" ); Add( @"e:\temp\dummy.dat" ); //TestCode End } public void Add( string uri ) { uris.Add( uri ); RaiseCollectionChangedEvent( new NotifyCollectionChangedEventArgs( NotifyCollectionChangedAction.Add, uri ) ); } public IEnumerator<string> GetEnumerator() { return uris.GetEnumerator ...Show All
Visual C# Syntax error while using a '
Dear All, My problem is very simple. First I have a simple query as below Query1 = "Update tblID " + "Set value='"+value1"'"+ "Where 'table1'.tableName='table1'"; Query2 = "Insert into tableQueries " + "Set query='" +Query1 + "''" ; The problem here is when I run my query which gives a syntax error due to the symbol ' which I used in Query1. So I tried using \' but it doesnt work too. Can somebody pls help me Hi Sorry. I don't look is that valid SQL syntax. You could try this: Query2 = "Insert into tableQueries " + "Set query=\"" +Query1 + " \" ...Show All
.NET Development Xlink - How to use xlink in every browser ?
Hello, I must develop a site in pure XML. I carried out my first pages and I encountered some problems to create links between the pages. I used Xlink for my links, the simple version (http://www.w3.org/TR/xlink/). The links function correctly under Firefox 1.5, but impossible to make them function with Internet Explorer 6 or Opera 9. As that did not function for these navigators, I tried to implement another recommendation of the W3C, events XML (http://www.w3.org/TR/xml-events/). But here still, I did not succeed in obtaining functional links. The code is not interpreted as it should in Javascript. Here the code which I used: example.xml < xml version="1.0" encoding="ISO-8859-1" > < xml-sty ...Show All
Windows Forms How can I make columns in listbox?
I want to have a listbox which haves three columns. I couldn't find how can I do it If you want distinct columns then try this link... http://www.codeproject.com/cs/combobox/multicolumnlistbox.asp However, a listview(in report view setting) is already sufficient for this scenario. If you just want to remove the vertical scrolling, you can set the MultiColumn to TRUE. ...Show All
