Kinns's Q&A profile
Visual C++ error C2440: 'static_cast'
hi, i need some help. I'm moving my project from vc++6.0 to 2005 and i have some problems, first i had in my cpp: BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd) //{{AFX_MSG_MAP(CMainFrame) ... ON_COMMAND(ID_BTN_ASINCRONICO, OnBtnAsincronico) ON_UPDATE_COMMAND_UI(ID_BTN_ASINCRONICO, OnUpdateBtnAsincronico) ... //}}AFX_MSG_MAP ... ON_MESSAGE(WM_APP_NOSINCRONICO, OnBtnAsincronico) END_MESSAGE_MAP() and in my .h: //{{AFX_MSG(CMainFrame) ... afx_msg void OnBtnAsincronico(); ... //}}AFX_MSG DECLARE_MESSAGE_MAP() This generates de following error: error C2440: 'static_cast' : no se puede realizar la conversion de ...Show All
.NET Development An error occurs when invoking a win32 API
Dear All, I'm getting this error when I invoke any API function from visual studio 2005 PInvokeStackImbalance was detected Message: A call to PInvoke function 'DubaiLandDesktop!DubaiLandDesktop.frmShutDown::ExitWindowsEx' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. I tried to follow the msdn for solving the problem, but still I cann't Any guide And to add to other co ...Show All
Visual Studio Express Editions Searching for Text
How can I search for Text in TextBox or in Rich TextBox like that Find button in notepad and Wordpad Please help in this and tell me if it just code or if there is a tool to do that. Thanks. Use the 'Contains' or the 'IndexOf' methods of the Text property of the textbox or rich textbox to search for strings. 'Contains' will return a boolean value indicating whether a string contains a particular substring. 'IndexOf' is more versatile & returns the index of the substring. ...Show All
SQL Server Will package work on different CTP version?
Hi There I have created a package in integration services using the June CTP (latest one), i was asked to deploy it on a sql server 2005 instance. On further investigation i realised that the 2005 installation was from the first CTP prior to the one i used to create the package. In configuration manager there is no SSIS it is called DTS server. My question is will my package work 100% if i deploy it to the earlier CTP version of sql server Thanx I don’t think anyone can guarantee there will be no problems going forward, but certainly I am not worrying about it for the reasons outlined above. ...Show All
Visual Studio Print Button Available in Remote but not in Local - WebForms
Hi. I am running an ASPX webform with Report Viewer. I notice that when I use Remote processing there is a print button displayed and is usable. How come Local processing doesn't have this. Is there anyway for me to get a print button there in the reportviewer with Local processing It would really save me alot of work I think. PS: If there is any way to get a print button there in local I would be very appericative. Thanks, Mark edit: ok no one is replying so im guessing this is already answered, or in the documentation.. Excuse my frankness for saying I am too lazy ...Show All
Visual C# To create codeDOM tree
Hi, I need to process a script file which contains statements with respect to user defined script language . To compile the script file , I have planned to use CodeDOM technology. To create the codeDOM tree I have to process the script file. So a lexer and parser is needed is their any option available in .net for this requirement. The lexer and parser are specific to the script you are parsing. There is the ICodeParser interface that parsers can implement to return a CodeCompileUnit from a TextReader but the parser itself has to be implemented. Of cou ...Show All
.NET Development Still cannot sadz
Hi everyone, I am currently developing a rss reader using vb.net windows application for my project. But at school, the codes that i have works. At home it does not!! I am really lost and have no idea what to do with it. Can kind souls please help out. The error: An unhandled exception of type 'System.Net.WebException' occurred in system.xml.dll Additional information: The underlying connection was closed: An unexpected error occurred on a receive. Dim doc As New XmlDataDocument doc.Load(strUrl) ---->> the codes always will generatea error here. strUrl is jus a String containing URL for the xml links ...Show All
Windows Forms How do add an item to a databound combobox
Hi All, I have a combobox which is databound to a dataset. When I call addnew it clears the selection but doesnt add my text. I end up a the original items in the list but an extra blank entry that is linked to the new entry. Danny THis is because the combo box is strictly being used as a selector, not dataentry, you wo ...Show All
.NET Development Refreshing Rows in DataGrid
How to Clear or refresh the Rows in the DataGrid I am having the data filled in my Datagrid and whenever I tried to fill some other data into that Datagrid, the older rows are not getting clear. How to Clear them Can anyone help me I have tried the Code below and still unsuccessfull DataGrid1.DataSource = nothing; DataGrid1.DataBind(); Thanks Heemanshu, Ivan & Bineon for the Help. The problem got cleared with that DataSet1.Clear(); DataSet1.AcceptChanges(); Thanks & Regards Venny ...Show All
Visual Basic Visual Basic Compiler Error Hotfix
Hi all i just want to know when is going to be released the fix for visual basic compiler error &H8013141e& this is already reported in the microsoft productfeedback site. i think this is a very urgent patch that must be released asap and please do not repond that i should go back to vs.2003 because i have lots of code developed in VS 2005 to framework 2.0 .. JSB PS: this error pisses me of, i need to restart VS.IDE every 5 minutes. i think this is too bad for a recent relesase product ( its full of Bugs ). Hi, João, This is a good opportunity (in the ...Show All
Windows Forms Using BeginEdit and EndEdit to edit treenode labe.
Hello! I've got a treeview and a button. When I click the button a new treenode is added to the selected treenode in the treeview. When added I want it to imedietly go into edit mode so the user can write the label. I do this by just running newNode.BeginEdit(); This works. BUT, when I'm done editing and I hit ENTER the label gets blank and I end up with an empty label. I've added e.Node.EndEdit(false) to the AfterLabelEdit event of the treeview but i still get the same empty label. Any ideas what I'm doing wrong (I'm using C#) Yes - that is the problem. Looks like a bug that has been around since 1. ...Show All
Windows Live Developer Forums read am WSDL
i want to read an wsdl file and get the information into a form in my web application y only want the basic items such as the parameters, the clients, the exception on things like that . Please someone who will know how to do it I want to take out from the web service WSDL file the names of the services, the parameters used in the web service (in and out parameters) and the exceptions that the service could have and if. I'm trying to use the library you mentioned me but as far as I look for the correcte value the option for each attribute seem to multiplicate I will really appreciate if you could help me thit that, 'cause i' ...Show All
Windows Forms ClickOnce Exception
We are getting an exception on every build of a ClickOnce deployment. For example when we go from v1.0.0.1 to v1.0.0.2 via ClickOnce, some of the clients trying to download the ClickOnce Installation get the following error dialog: "Cannot start the application. Contact the application vendor for assistance." With the corresponding log file: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll &n ...Show All
Visual Studio Team System I cannot get source code links in FxCopCmd report
I do not have any problem with getting correct link to the source code in "Message Details" box when I am running the analysis from FxCop GUI. However, when I run analysis from command line and then load the report to GUI, the only thing I am getting is <Location not stored in Pdb> The difference between command line and GUI is that I use environment variable to point FxCopCmd to right assemblies. I also load the report to compare, but I do not really see the reason... Any idea why I am having that problem Thank you for helping. We haven't yet committed to a release date for the next version. ...Show All
Windows Forms How to make an mathematical look expression in textbox or lable of Win Form
Hello, I wish to put an mathematical looking expression in Win Form for Lable or other textbox, such as Greek letter, superscript, subscript etc. Could someone please help how to compose that looking. Thank you, James Hi, Have you tried setting the Font property of the Label to "Symbol" That might work for the Greek characters but I am not sure what you can use for superscript and subscript expressions. -Mamta M ...Show All
