eric_1234's Q&A profile
Visual C++ C++/CLI code porting problem
I'm trying to port a C++.NET (managed extensions) application to C++/CLI. However I'm not very strong with the syntax yet. What I'm trying to do is to create a wrapper for a C Dll file. To do this I'm using DllImport but I failed to found documentation on it's use. There are some problems due to changes of the syntax but I couldn't find out why yet. The C++.NET line looks like this: [DllImport("my.dll", CharSet = Ansi, CallingConvention = Cdecl, EntryPoint = "#10")] static MY_STATUS CPPInit(MY_HANDLE *pLmxHandle); The idea is to pass a reference of MY_HANDLE to the function which initializes it. One problem is that the key ...Show All
Windows Forms Need practical examples of row validation and error handling on DataGridView
I need a practical example of row validating and error handling for the DataGridView. My DataGridView is bound and some cells are required. None of the examples I've seen on MSDN show 1) how to determine which required fields were not supplied and 2) how to give the user an intelligent message informing them of all the rows they need to enter and 3) keep the user on the row so they don't loose their edits. It seems the row validation event and other row/cell events fire even when the grid is not fully populated (such as when the grid is loading) and thus some columns that usually exist don't and exception ...Show All
Visual C++ Linking problem with WinSock2?
F:\PSDK\Include\WinSock2.h(112) : error C2011: 'fd_set' : 'struct' type redefinition F:\PSDK\Include\winsock.h(54) : see declaration of 'fd_set' F:\PSDK\Include\WinSock2.h(147) : warning C4005: 'FD_SET' : macro redefinition F:\PSDK\Include\winsock.h(88) : see previous definition of 'FD_SET' F:\PSDK\Include\WinSock2.h(156) : error C2011: 'timeval' : 'struct' type redefinition F:\PSDK\Include\winsock.h(97) : see declaration of 'timeval' F:\PSDK\Include\WinSock2.h(212) : error C2011: 'hostent' : 'struct' type redefinition F:\PSDK\Include\winsock.h(153) : see declaration of 'hostent' F:\PSDK\Include\WinSock2.h(225) : error C2011: ...Show All
Visual Studio Express Editions Moving the record pointer
I have used foxpro for 15 years and have just downloaded the express editions for vb and sqlserver. In foxpro, when the record pointer in the controlling table moves the linked tables automatically move to the child records. I haven't been able to see how it's done with sql express and vb.net. I'm sure it must be a simple task, but for the life of me I can't see it. I think this is what you are looking for: "How to: Display Related Data in a Windows Application" http://msdn2.microsoft.com/en-us/library/57tx3hhe.aspx Steve Hoag Visual Basic Express ...Show All
Visual Studio Tools for Office Unable to create Word template project
Hello All, When i started learning VSTO i was happy to create my first word template application but i don't know suddenly what happend and now I am unable to create work template project. Whenever i am creating new project it is giving "Project cann't be created" although it is creating the directory on the given path. Plz tell me what do i do what causes it for not creating the project Best Regards Kausar It could be that the VSTO installation got corrupted somehow. This is NOT something we have seen frequently so I can't say exactly what might be the reason. Coul ...Show All
SQL Server Modify the expression to be valid
I pass in a variable SourceServer to my package via the command line. In our production environment we are seeing: The expression "@[User::SourceServer]" on property "ServerName" cannot be evaluated. Modify the expression to be valid Is this just because the evaluation takes place prior to the command line parameters being set and I need to turn off validation Thanks, Chris Chris, Are you running RTM ...Show All
Visual Studio Express Editions Retrieve data from Excel and store it in Access through VB
Hi, I am using VB express 2005 to create an interface to retrieve data from Excel spreadsheet then store it into my Access database. I am able to retrieve data and store it in a dataset then display it in a dataGridView. But I am not sure how can i store the data into an Access database. I tried to connect VB to Access by opening a connection and then create a table in Access. I created a DataGridView and bind it to this table. I can do normal insertion, deletion to the table. But when i change the content of the dataGridView to my spreadsheet by writing some code then do the normal save as usual, the content in the ...Show All
SQL Server Best way to do this
Hi Group, I need to incoporate reporting services into my ASP.NET application. Should I: 1. Use the ReportViewer control to map to my Server or 2. Add a reference to the web service Which is the 'best' option What are advantages, disadvantages, drawbacks of either one Thanks!! Hi, Check this link out to help you decide which one better to use. http://www.devx.com/dotnet/Article/30424/1763 . Hth, Michael Castillones ...Show All
Visual C++ use mannaged classes as a friend
Hello everyone how can i correct this code segment public __gc class a { } ; public __gc class b { . . friend class a ; //Error } ; Friends of managed types are not supported. The CLR type system does not support this concept. Ronald Laeremans Visual C++ team ...Show All
Windows Live Developer Forums Will # of votes per time avail be considered?
Will the time an app has been on the site be considered when tallying the votes An app that's added late in the game won't have a chance to gain votes like the older entries yet may actually be more popular with less time to prove it. Thanks in advance! I am quite sure this is NOT the case. 1) It doesn't say anything about this in the rules. 2) Check out this thread , where Scott tells us about the advantage of submitting your application as early as possible. If you've been working on an app for the contest and were holding off posting it until you had it completely perfected - Go ahead and post it now. You will be able to g ...Show All
Visual Studio Team System Protocol violation - can I change how sensible the test shall be to protocol errors?
I get this error when running a test on a web page that I have no possibility to change: RequestFailed: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF Is it possible to configure how the test shall handle this so the test will not fail Sten, this sounds like a bug so I'm going to need some more info to track it down. What's the request like that's causing this error Are you using non-ASCII characters in a custom header value or in the URL Josh ...Show All
Visual Basic access class dll members
I wrote a Class Library DLL. To check it I wrote a Windows app and referenced the DLL. I wrote "dim obj as new Class" which found the class ok. But I can't get any members by obj. I can see the members in Class View. I can take out the reference to Class and just add in the existing Class.vp and I can get the members from it. How come I can't do this with the DLL This is my first time to try this. Thanks for any help. Ensure that the Class is Public as well as the members. Public Class Foo ... Public Property ... End Property End Class ...Show All
Visual Studio Express Editions Using "Enter" Key in a form
By default, the Enter Key presses the last button used on my form (a calculator). I need the Enter key to stop doing that and to run a procedure instead: If "Enter" is pressed DoSomething() End If Any suggestions on how to do this AND override its normal function Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click OtherControlName.Focus() ' Button1 stuff here... End Sub ...Show All
Visual C++ Microsoft Visual C++ Runtime Library error question
I recieve this error when I launch Internet Explorer - version 6.0 OS Windows XP Home edition 2002 Service Pack 2. Error is as follows: Microsoft Visual C++ Runtime Library Runtime Error! Program C:\Program Files\Internet explorer\iexplore.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. I am not certain where to post this question and problem. Your assistance is greatly appreciated. Currently, I am using Firefox as my back-up web browser. had the problem with runtime error, removed google tool bar, ...Show All
Windows Forms Generating thumbnails from video file
After looking around, and not finding any fairly easy solution, we resorted to using the program 'SnatchIt!' - by using its command line functionality The software is unpredictable. Anyone have any ideas, we looked into directx sdk, windows media sdk, no easy solution so far Well, after weeks of looking, I just happened to find what I was looking for today. Looks like I need to use IExtractImage in the ...Show All
