Daapower's Q&A profile
.NET Development Marshal.Copy(IntPtr to IntPtr) why is it missing :( in CLR
Hello, I am striving after Marshal.Copy(IntPtr src,IntPtr dest) implementation! I need a platfrom independent functionality of block copying in unmanaged heap. The requirements exclude the use of unsafe pointer like operations as well as invocing Win32 specific functions. So far I am doing with by allocating a byte[] in managed heap and twice calling Marshal.Copy. (sorry but do not have the code sample handy) It is highly inefficent first beacu ...Show All
Windows Forms DataGridView
Ok. On my DataGridView object I have my SelectionMode Property set to FullRowSelect. What I want to know is when a user selects the row of his or her choice, for the word inside the row to be displayed in a textbox. Can someone tell me how to do this What do you mean by "cell row text" Can you give me an example Setting the edit mode to edit on enter will push the cell's text into the text box. ...Show All
Visual C# How to retrieve email attachments programmatically?
Dear Experts, I am trying to develop a Windows Service that continues to listen to a particular email address (POP3 client, e.g. MS Outlook Express). When an email message is received, I need to check if there is any attachment, if yes, then I have to retrieve that attachment for processing. I don't have any idea on which APIs that I could use. Could you please advise Many thanks for your help. Tigger Mayb ...Show All
Visual Studio How to pass Report parameter in ReportViewer Control
Hello Friends, I am using VS2005. how to pass the Report parameter in the reportviewer control I am using ther Remote mode for the report. till now i know that i can set the parameter is using the bellow method. This SetParamters method only accept the parameter like Microsoft.Reporting.WinForms.ReportParameter type. this .reportViewer1.ServerReport.SetParameters(). But can't findout how to pass that parameter in the method. please help me. Nil ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Updating textures with SetRenderTarget
I'm working on the terrain rendering technique which involves displacement mapping. I have a couple of textures that are, logically, the mip-map of the terrain. Now, I have to update them all, from the biggest to the smallest, and to do so I do the following: device->GetRenderTarget(0, &oldRT); device->GetDepthStencilSurface(&oldDSS); device->BeginScene(); for (i = 0; i < levels - 1; i++) { // // Set the current texture as d ...Show All
Visual C++ How to manage WM_KEYUP and WM_KEYDOWN
Hi, i have noted that if I have many buttons ore other elements in a Dialog, when you develop a MFC application, I won't be able to manage WM_KEYUP or WM_KEYDOWN, because they look like disabled. What do i have to do thanks a lot. PS: if my question is incomprehensible, i can give you a code sample. See http://www.codeproject.com/dialog/pretransdialog01.asp FilippoPPoppiliF wrote: ...Show All
Windows Forms listviewitem backcolor problems
I'm having a bit of a hard time with the framework listview right now, and I can't seem to find anyone else having the same problem, so here's a thread to discuss it. In my application, I am setting the backcolor property of specific listviewitems in a listview to convey some state information. I'm not having problems changing the colours, (forecolor or backcolor), but for two circumstances where the listview doesn't seem to be behaving th ...Show All
SQL Server Rounding number with ending equals 5
Hi, How do I round when number is ending with 5 for example: When the number next to number 5 is an even number 24.5 = 24.0 round down 0.245 = .24 round down 1265 = 1260 round down when the number next to number 5 is an odd number 23.5 = 24.0 round up 0.235 = .24 round up 1755 = 1760 round up Thanks in advance! You can use the round function. ...Show All
Visual Studio Express Editions Membership Provider..?
Hi. I created an Login-Form in Visual Basic.NET Express edition. Now I want, that the Application validate the typed username and password in the login-form with an online MySQL database. I already found an tutorial from MS, but it wasn't usefull, becouse i needed MS Visual Studio. Can anyone help me Micronax What did the tutorial use that is not in the express edition, was it the database explorer You should find code to connect to mySQ ...Show All
Windows Forms ReInstall ODBC(win2000 server)
I Use The Win2000 Server And Sql 2000 Server.When I Open My ODBC From The Control Panel,Iget A Get A Massage That The ODBC resource DLL Is a different version then The Administrator .EXE File,And I Need To ReIinstall The ODBC Components To  ...Show All
.NET Development How to seach through XML and return only requested/matching nodes
I have an information collection consisting of a dozen or so tags (name, style, location, description, date created, etc) with their accompanying content for a catalog of about 200 items. (this catalog will never grow to over 1000 items). I am learning XML/XLST in general and especially dotNet's implementation of them, and where I would usually just use SQL queries to a mdb file to pull/return only the requested entries, I would like to build ...Show All
Visual Basic Creating DLL for Excel using VB express 2005
I would like to create functions in Visual Basic Express 2005 and use them within Excel 2000. I have done this in VB5 but am clueless on how to do it with the VBX platform. regards, S. ...Show All
Visual C++ Dialog boxes as controls
I have a dialog-based application where I have created a blank dialog as a main dialog window. Let's call it MainDlg. I also created a resource template for a dialog that it is to be used as a control. This control is a tester and I plan on having two of them in the client area of MainDlg. Using the class wizard, I created a class for this dialog called CTesterDlg. I created two member variables of type CTesterDlg in MainDlg , m_dlgTester1 ...Show All
Visual Studio VS2005 June CTP install problem
Hi, VS2005 June CTP installation is giving me a lot of problem. It is not installing with SQL Server 2005 (April CTP). If I install SQL 2005(April) first then VS2005 June CTP (without SQL Express) doesn't install. And if I install first VS2005 June (without SQL Express), then SQL server doesn't install. And also VS2005 june ctp is not installing SQL Express as well even in the absense of SQL 2005 April. Any help will be grately appreciated ...Show All
.NET Development execute scalar daab 2.x
Hi All, Ok so I am about to pull my hair out! Using vs2005 and ent lib 2.0 I want to retrive a single value using the execute scalar method : Public Function GetWhseStockId1() As Integer Dim _Pstldb As Database = DatabaseFactory.CreateDatabase() Dim i As Integer Dim strCommand1 As String = "SELECT IdWhseStk FROM WhseStk WHERE WHStockLink = 5774 and WHid =68" Dim dbCommand As DbCommand = _Pstldb.GetSqlStringCommand(strCommand1) i = CI ...Show All
