alan666's Q&A profile
Windows Forms webbrowser remove frame
is it posible to remove the 3d borde of the webbrowser i understand that that can be done with an active x or soemthing like thta.. and there is an article about this on codeproject.. but right now their site doesnt work for me.. any help i`m more than glad to do that Code Project and the error is: An invalid VARIANT was detected during a conversion from an unmanaged VARIANT to a managed object. Passing invalid VARIANTs to the CLR can cause unexpected exceptions, corruption or data loss. this is when i try to navigate somewhere.. ...Show All
Visual Studio Team System Retain data during Deploy or Writing Schema changes
We have a database project where changes to tables are constant. When the changes are saved we (the developers) need to deploy or write the schema changes to our local database to work against. This worked fine until we started have lots of test data. With the test data is a pain because if you deploy you lose your data and you can't Write Schema changes to table which have data in them. Besides manually scripting each table, is there a way to retain data while deploying or writing schema changes How is everyone else handling this Hi Darin, I've started using VS Team System a couple weeks ago and DB Pro as well. We have had the same interogation and started making some tests. What we get is that th ...Show All
Visual C++ wide characters
#include "stdafx.h" #include <iostream> #include <string> int main() { std::cout << "Please enter your first name: "; std::string name; std::cin >> name; std::cout << "Hello, " << name << "!" << std::endl; return 0; } wchar_t where do i put this in for wide characters like japanese thanx If you need your program to compile both for ANSI and UNICODE, you can utilize TCHAR and define a string of your own: typedef std::basic_string<TCHAR> tstring; ...Show All
Visual Basic Can Anyone add control in TreeView Control?
Hey all .net programmers.. I am thinking about Tree View control which contains controls. any idea After reviewed this link: http://www.codeproject.com/Purgatory/Button_TreeView_Control.asp Clearly it is possible... Anyone scene this implemented so we can add a user control and not just a button Could use the help.... Felice ...Show All
SQL Server timeout errors, and General Network Error messages
Hi We have a VB6 app, with SQL2005 database, SQLOLEDB driver We have it installed at many clients and normally works fine. We've migrated one client from SQL2000 to SQL2005 and had to move the database to a new machine. It's now running SQLExpress sp1, on a Win XP sp2 machine The clients now frequently get either a) SQL timeouts or b) Runtime Error’2147467259 (80004005) [DBNETLIB][Connection Read(recv()).]General network error. Check your network document Errors I suspect it is something to do with connections not be released (even though we explicitely free them in the app). Where do I look Thanks Bruce Which version of Windows are you using Keep in mind that WIndows XP P ...Show All
Visual C++ ASSERT error on Visual Studio .NET 2003
I have a dialog mfc application with a main dialog. With a button in the main dialog I launch a second dialog. All the controls in this second dialog worked fine. But for some reason everything went wrong. I placed a list box for example on the dialog and I added a control variable for it and I called it NameList. Then I have a piece of code in the dialog NameList.ResetContent(); It compiles fine with no problem, then when I run my application and launch the second dialog it works great. But as soon as the NameList.ResetContent(); code executes I get the assertion error. Here is some details about the error: afxwin2.inl line 698 (The code on line 698 are given below) _AFXWIN_INLINE void CListBox::ResetContent() { ASSERT(::Is ...Show All
Visual Studio Express Editions User Guide download
During the download of VB Express I declined the User Guide due to its 290meg size. Now I need to know more I can't locate the download for this. Can anyone give me a URL to locate the download, or do I have to re download the entire program again While trying to uninstall the original I realised that there was an opportunity to add or remove components which gave me the choice to download the library, which I did without having to download all the other components. Thanks for your help ...Show All
.NET Development StringBuilder(string) constructor bug or undoc behavior
If you attempt to create a new StringBuilder by initializing from a string that contains a null character, only characters just before the null are copied into the StringBuilder. Since both StringBuilder and string support embedded null characters, and the documentation doesn't mention this, I expected the full string to be copied in. It doesn't seem reasonable to have to write a loop to append the characters from the string into the StringBuilder. A character with the Unicode (or ASCII, depending on what you are doing) value of 0. For example, "a\x0Q" is a string with three characters, the second of which is the null character. There appear to be a number of funny behaviors with the null character - if you load the abov ...Show All
Software Development for Windows Vista COM functions don't return HRESULT values?
Following is a method to init TV capture device. but I don't know what has caused a very strange thing. Anywhere an HRESULT return value is expected, I cannot see a value. I debug it in Visual studio and set breakpoint, and I cannot see any value for hr. see note in the code, FAILED(hr) is true and it comes to "return hr;" but it doesn't really return, it goes on to the following code. What's the possible cause HRESULT TVControl::InitDevice() { ICreateDevEnum *pDevEnum = NULL; IEnumMoniker *pEnum = NULL; // Create the System Device Enumerator. HRESULT hr = CoCreateInstance(CLSID_SystemDeviceEnum, NULL, CLSCTX_INPROC_SERVER, IID_ICreateDevEnum, reinterpret_cast<void**>(&pDevEnum)); if(FAILED(hr ...Show All
Visual Studio How to change password while access vss 2005 via internet?
1. I am access vss 2005 via internet, but I can't find any where to change my password. can you help me 2 .And there is another stange things, I check out a file and made some change, then I find the change is not necessary, so I select "Get latest version" from right pop menu, but I found I can't get the latest version from server. can anybody tell me the reason. You can not change VSS password using Internet plug-in. Internet plug-in is only supported in Visual Studio but not in VSS Admin (Here is where you’d change the password) or VSS Explorer. If you are not using SSL then your Windows Login credentials will be used and VSS password will be ignored. If you w ...Show All
Visual Basic System.Drawing and Scaling.
I've been experimenting with graphics and I want to scale image up and down. I've done this with graphics and scaling transforms and I have a problems. The resuls are beautiful interpolations but that not what I am looking for. In its displays, Photoshop displays pixels, not magnified interpolated contents. As best I can see and guess, in Photoshop when you are looking at an image displayed as 200 percent of its original size, it's look to me as if one pixel is replaced by four identical pixels (two on a side). Is there a way to do scaling in this manner instead of all the interpolation ReneeC wrote: Your answers had nothing to with my questions. at all. What it is that I am doing has nothing whats ...Show All
SQL Server Moving SSIS Package
Hi, I have to move my SSIS Project from Machine1 to Machine2 in a Development environment.when i open the Project in Machine2 .i have to restore all the connections in the connection manager. even after restoreing the connection sucessfuly .the package looks perfectly with out any error.but when i run the package.i am getting the following error [Connection manager "Srv1.DBTest"] Error: An OLE DB error has occurred. Error code: 0x80040E4D. An OLE DB record is available. Source: "Microsoft OLE DB Provider for Oracle" Hresult: 0x80040E4D Description: "ORA-01017: invalid username/password; logon denied ". How to solve the problem. Thanks Jegan Are you using Window ...Show All
Smart Device Development Switching form Focus
I'm using the sub below to call a new form and display it. The new form (form2) has a text box and a button. When the button is clicked I want the form to go away and have the code pic up where it left off on my main form (display the msgbox after frm2.showdialog). All I have on the button_click event now is ME.hide. The form (form2) disappears but so does my app. The name of my mainform is mxev. I've tried MXev.visable=true .bringtofront . show and .showdialog but no luck. The app is still running but I cant see it. Thanks DASHLEY Private Sub DisplayQuestion( ByVal Thequestion As Integer ) Dim form2 As New Form2 Form2.Label2.Text = Thequestion Form2.ShowDialog() MSGBOX("form ...Show All
.NET Development Thread Ending Problem
aHi folks, I'm having a problem with a Thread where it doesn't seem to be ending when I ask it too. The application continues on after the main thread ends (you can see this in Task Manager). This doesn't seem to be happening just when I exit the program, but also when I specifically signal the thread to stop. Here's how I start the thread: thread = new Thread( new ThreadStart( this , &Form1::ThreadMethod)); thread->Start(); This is how I'm stopping the thread: thread->Abort(); Is there something I'm doing wrong here In this case, it's perfectly fine to blast the thread even if it's in the middle of a lengthy operation, so brute-force clobbers will work here. Any ideas It ...Show All
Visual Studio Tools for Office Unpublishing an Visual Studio created Outlook Add-in
Hi All, I created and published a Visual Studio for Office Outlook menu item via Visual Studio. My testing of the functionality is complete and I now want to remove, i.e., unpublish, the Outlook menu item. I originally published the item via the Visual Studio > Build > Publish "" menu item. I have been unable to find a document that describes how to unpublish an Outlook add-in. Can someone point me to a document that describes how to do this or could walk me through the process of unpublishing an Outlook Add-in Thanks in advance, Steve Darryn, I thought that was probably the case. This is my first publish so I'm not familiar with the files that need to be removed or ...Show All
