Nate00's Q&A profile
Visual C++ Client in VC8 that uses DLL compiled in VC 7.1
Hello, We are using VC 7.1 to compile our DLL, and we tried to use it under VC8. Everything works, as we make no use of STL objects in our API, except that our exception hierarchy derives from std::exception. Then, when our DLL throws an exception, the whole program crashes. What are the available solutions to correct this I currently see 2 : Compile the DLL in VC8, but this requires to ship 2 versions, and we have plugins, so we would have to ship 2 versions of each plugin too. Rejected. Make our own base exception class, independent from std::exception, but this requires client code to catch std::exception and our own exception base class. This might be acceptable, but not ideal. Is there any better solution Thank you v ...Show All
SQL Server Data flow task multiple destinations
Hi, The further i get with doing my current SSIS package the more i am starting to wonder about best practices and performance. My current package loops through CSV files in a specified location and extracts events from these files. Each file contains multiple events which are a mixture of different types. Depending on the event there are a different number of comma seperated values. In the package i firstly set each event to one column seperated by a comma delimeter. I then create an array for the event which is split by the delimeter. In a script i weed out all elements of the array that are common to all events and set the remaining events to another array. After some processing i come to my conditional split transformation which splits ...Show All
.NET Development DataView bug in ADO.NET?
Hi, I have an application in which i think there is a bug with the DataView. It is when i am using Find() method. I add a new row to the DataView and when i use the Find() method with the Rows Id it returns -1. If i add a second row it will find the first row but not the second. This always happens, when using Find() for the last row added to the DataView i get -1 as the result. I have verified that the Id exists in the DataView. I also found some posts on forums that Find() only works if you have ApplyDefaultSort = true or if you are sorting by the primary key field, so i tried this but it is still not working. Has anyone had this error or does anyone know how to fix it Thanks ...Show All
SQL Server like keyword que
I have a table say tbl1 id col1 col2 1 hello hi 2 aaa bbb 3 kkk lll I want to write a proc which has a parameter @val and I want to select records from tbl1 based on either col1 or col2 like @val the query describes better than my writing select * from tbl1 where col1 like %@val% or col2 like %@val% but this is killing the performance of the procedure, can I write it in different way How can I improve it Thanks If, on the table, you have an index (other than a clustered index) that can be used to satisfy the query (i.e. a covering index) then SQL Server will choose to scan this index rather than either the table or the clustered index. This may bring p ...Show All
Microsoft ISV Community Center Forums TranslationToolTip in Word 2007
Hello, I wonder if there is a way to get the value when you change the TranslationToolTip control gallery in the Ribbon in Word 2007 (control placed in Revision tab, group Proofing). I tried to find any property in VBA to get the language selected (or none) but I didn't find anything interesting. Any ideas to get this value Thanks a lot. Jerome. ...Show All
Visual C++ Statusbar Updation in Multithreading Environment..
Hai, Iam using SDI application. I have to update status bar text in a thread, running in Application class. code as follows, ///////////////code in main class////// HWND Sts = m_wndStatusBar->GetSafeHwnd(); ///////////////code in Application class////// extern HWND Sts; //////////////////code in the thread CStatusBar* pSts = (CStatusBar*)CStatusBar::FromHandle(Sts); pSts->SetWindowText("Waiting for File..."); Everything work fine, is this the right procedure to update the Status bar or to pass message to mainframe to update Thanks in Advance. Generally, CWnd-derived classes should be accessed only from the thread which created them. Classic way is to send/post message to the wind ...Show All
Visual Studio Express Editions MessageBox Issue
Hey, Still pluggin away here and learnin.....New question/error. When I attempt to use MessageBox.Show I get the following error: Error 1 'Show' is not a member of 'MessageBox'. I understand that it should work like: Result = MessageBox.Show(Message, Caption, Buttons) But it is not....Is this an Issue in VB Express How do I solve this Thanks in advance LDavis501 Most dialogs will have a yes/no , okay/cancel associated with them. That is why the code I posted is the preferred way to talk to this type dialog. If MsgBox( "Yes or No" , MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then ' some code here End If 1. Dim statements are not required, 2. All t ...Show All
Software Development for Windows Vista Printing a Canvas
Here is a code snippet that demonstrates several issues I am having creating an XPS document from a canvas and its children. The canvas is displayed on screen and eventually I wish to print the display. // First I find the displayed canvas I wish to print Canvas c = FindElement(g, "ProductBar" ); // I setup my XPS document and writer string fullPath = "c:\\temp\\pudding.xps"; xpsd = new XpsDocument(fullPath, FileAccess.ReadWrite); XpsDocumentWriter xpsdw = XpsDocument.CreateXpsDocumentWriter(xpsd); // Next, I found that I had to give all the elements unique names to stop XpsDocWriter routines // from complaining about duplicate names. // Is this strictly necessary i nt i = 0; UniqueElementName ...Show All
Visual Basic Help Please
I am the registrar for a large conference and am having trouble with the coding in an Access 2000 database. This code is meant to pull the registrations into the attendee table so I can produce Confirmation Letters, but it isn't working It does run the WORD mail merge function, but it isn't pulling the registration information, so the letters are missing this very important information. Can anyone look at this code and tell me where the snafu is and how to fix it I don't write code. Thanks, Laura Beginning Code: Code for Process Confirmation Letters….. Option Explicit Option Compare Database Private Sub Form_Activate() Dim dao_confirm_wsp As DAO.Workspace Dim dao_confirm_rs As ...Show All
SQL Server T-SQL Code help
Hi, When I execute the following procedure, SQL Server creates an error called 'must declare @table variable'. So I did not overcome this error. Would you please help me CREATE PROCEDURE erase @column nvarchar(25), @erasable nvarchar (25), @table nvarchar(25) AS delete from @table where @column=@erasable Hi I don't quite follow what you mean. Basically the code that I posted (and oj) simply builds a dynamic SQL String and then executes this string. If the dynamic string was a SELECT statement then when the string is executed the results would be displayed. If you modify the stored procedure that I gave you and commented out the Exec (@SQLString) part and added: Print @SQLString You would see the string that was created ...Show All
Visual Studio Express Editions Visual web express database help.
Hi, I'm doing a team project for a course in college where we have to implement the backend client software for a make believe website. We decided, on suggestion for a few professors, to use visual web express because it has the database features already built in. The problem is that none of my team has ANY background in database. I've learned how to show the contents of a few my tables but I still have not mastered everything. The software needs to be able to add new products and edit current products. How can I make changes to the database through the backend client web page Are there any good tutorials out there Thanks I appreciate the help As you are using Visual Web Developer (VWD) I would ...Show All
SQL Server environment variable
hi, can you show me how to get the value of an environment variable from a script task thanks! Public Class ScriptMain Public Sub Main() Dim home As String = System.Environment.GetEnvironmentVariable("HOMEDRIVE") + System.Environment.GetEnvironmentVariable("HOMEPATH") Dts.Variables("MyDocuments").Value = Path.Combine(home, "My Documents\") Dts.TaskResult = Dts.Results.Success End Sub There is a sample package that illustrates the method in action here - Environment Variables- Raw Files ( http://wiki.sqlis.com/default.aspx/SQLISWiki/EnvironmentVariables-RawFiles.html ) ...Show All
SQL Server Deploying Report Builder to Windows 2000 machine - Reference in the deployment does not match the identity
Trying to download ReportBuilder on a Windows2000 machine is returning this error: ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * Activation of http://****/ReportServer/ReportBuilder/ReportBuilder.application resulted in exception. Following failure messages were detected: + Reference in the deployment does not match the identity defined in the application manifest. Everything works fine on a WindowsXP machine. We downloaded .NET framework 2.0 to the machine so that's not the problem. ...Show All
Windows Forms Is it possible to hide the tabpages?
there are many tab page i want to hide tabpages. if i select the TabPages heading in the combobox then this page are visible how can i do this thanks ...Show All
Architecture Single framework for windows forms and web app?
A business requires same application with two interfaces: i. Web Application for customer orders ii. Windows Forms version for customer orders + additional functionality (for use by sales/corporate users to take phone orders + access to additional screens) Environment: Visual Studio 2005, SQL Server 2005 .NET Framework 2.0 Is there a framework that can been used for developing both Widnows forms and Web apps Thanks in advance! Thank you very much for all the feedback. Came across CSLA: http://www.lhotka.net/Area.aspx id=4 Looks like this would meet the client requirements. Will be trying it out shortly. Thanks again for the inputs. ...Show All
