Wolfgang Kamir's Q&A profile
Visual C++ fatal error LNK1313
Hello all, While building Vc++ solution i am getting the following error even after included the specified lib file in project properties setting page. Error 6 fatal error LNK1313: ijw/native module detected; cannot link with pure modules e:\RnD\AStream0612\AStream0612\libxvidcore.lib 1 Please me to solve this problem. Thanks and regards Amar. Hello What you are trying to do is unsupported, see http://msdn2.microsoft.com/en-US/library/ms173727.aspx . Do you need to compile your the file with /clr:pure Thanks Damien ...Show All
Windows Forms DataGridViewCell BackColor Setting
Hi, Trying to use a data grid object to change the back color of a single cell, it seems the change of color does not happen for the first generated event. The change of style statements are placed within the CellValueChanged event. Though, the change of color would happen if the event is fired for the second time. // C++ Sample MyDataGridViewObject[e->ColumnIndex, e->RowIndex]->Style->ForeColor = Color:::Yellow; Is there another way to do this If there is a need for refreshing the cell immediately after the style change code, what else rather than the Paint(...) method could be used. Regards, Reza Bemanian you can set the cell color in form load: Me .DataGridView1.Rows(1).Cells(1) ...Show All
SQL Server Table Constraints to XML in T-SQL
Hi, I am DB programmer, Could you please help me in getting Table Constraints to XML in T-SQL with out data. ...Show All
.NET Development WebRequest what's being send
Hi, I'm looking for a sample code which gets the information that being send from a web site when post (HttpWebRequest). I'm working on a windows application that uses Httpweb classes or WebBrowser control, sends logon credentials to a secure aspx website (https) , after successful logon, post some data with all cookies and gets result. I've tried lots sample codes without any success. so now i'm looking for a way to snip what's being send with webrequest. Please give some sample code. Thanks, Antony RizwanSharp wrote: You can use ethreal or any other Network monitorng tool to trace all this! Not with HTTPS traffic, though. :) Antony: Is there an HTTP versi ...Show All
SQL Server Grant Database Access
I am setting up report services after I installed the report server add-ins on sharepoint 2007. at first step, Reporting services integration, I put report server web service URL -- http://ssrsdev1/reportserver authentication mode -- windows authentication it went OK. at second step, Grant Database Access, I put ssrsdev1 for server name (default instance) and then click OK and then I put the user name (a member of local admin group on ssrsdev1) and password, but I always got errors says: Unable to log on with the given username and password. what wrong here what should I check I am sure the user and password is right and I can log on to ssrsdev1 physically with admin right without any problem. thanks for any thought on this. zwp ...Show All
Visual Studio SqlReader as datasource for ReportViewer control
Is it possible to use SqlReader as datasource for ReportViewer control Can you show me an example in C# please Here you go: http://www.sharpdeveloper.net/content/archive/2007/06/09/how-to-use-sqldatareader-plus-source-code.aspx That is probably what you are looking for. If not, let me know and I'll try to get it for you Sameer ...Show All
SQL Server Can't connect to MySQL 2005 Express
I'm trying to upsize an Access database to SQL 2005 Express. When I follow the wizard and I've tried all ways of connecting to the database I get the following error Connection failed SQL State '01000' SQL Server Error 53 [Microsoft] [ODBC SQL Server Driver][DBNETLIB] ConnectionOpen()). Connection failed SQL State '08001' SQL Server Error 17 [Microsoft] [ODBC SQL Server Driver][DBNETLIB] SQL Server does not exist or access denied I've tried using local host and typing the exact server connection string from the SQL Express Management tool and nothing is working How come I can't do this Everyone says this is easy and straight forward -- not for me. The most common cause of this is using the w ...Show All
Windows Forms upload xml files into sql server
I receive xml files onto the network share every day. These are customer addresses. What is the best way to upload these data from each xml file into the sql server table Should I just loop through each file and for each file go through the elements and pull out the data and insert into sql server table You will have to for regular XML files. If the XML is in a dataset compatible format, you can load the file to an XMLDataDocument. This object has a Dataset property that you can use just like any other standalone dataset object. ...Show All
SQL Server Reusing package configuration in child packages
I currently have multiple (parent and child) packages using the same config file. The config file has entries for connections to a number of systems. All of them are not used from the child packages. Hence, my child package throws an error when it tries to configure using the same config file because it can't find the extra connections in my connection collection. Does anyone have any ideas on the best way to go about resolving this Is multiple config files (one for each connection) the only way Sachin Darren Looks like that might very well be the way to go then. I wonder if there is any way to include other config files into a single file, but that's for another day. Thanks for the prompt ...Show All
Visual C# In that case...
Does anyone know the best way to create hot keys for menu items in an mdi parent form programmatically Struggling a bit with this one. For example, ctrl + n - fires an event. You can use this as well : protected override bool ProcessCmdKey( ref Message msg, Keys keyData) { if (keyData == ( Keys .Control | Keys .N)) { ... } return base .ProcessCmdKey( ref msg, keyData); } But for a menuItem the above might be the thing to do. ...Show All
Visual Basic sum of table colomn to a label
i am trying to do the following pseudo code 'search the database in table accountInput 'get the sum of all records for collomn acct1 where usr = michael 'show the sum in form home on label1 'if no records in usr = michael then set the label1 to 0 can anyone please help. the following code is how i am accessing the database Dim constr As String = "Provider=Microsoft.Jet.Oledb.4.0; Data Source=|DataDirectory|\KeoFlexDB.mdb" Dim conn As New OleDbConnection(constr) Dim dt As New DataTable() Dim cmd As New OleDbCommand() conn.Open() cmd = New OleDbCommand(m"Select sum(acct1) from accountInput where usr = Michael", conn) if cmd = "" then acct ...Show All
Visual C++ ATL Stock Properties
Hi. I'm developing an ATL Control, (Composite Control), and now I want to add a stock propertie, ie BackStyle. How could I do that . Because there's not options for stock properties right clicking in the class view, (I'm using VC 6.0). At the time of add an ATL Object, there is a wizard that offer to add some stock propertie, but I did'nt in that moment, and now I need some of them. Thank you. These forums are specific for VC2005 issues. For VC6.0, please use the newsgroups at http://msdn.microsoft.com/newsgroups . OTP Thanks, Ayman Shoukry VC++ Team ...Show All
Community Chat LED connected to parallel port and flashing Morse Code!
Hello everyone! I connected an LED to my parallel port yesterday..Then, I created a program in C# to control it. The program makes the LED flash morse code. I really enjoyed making it! Check it out on my blog: http://ashishrd.blogspot.com . If you can't find it on that page..go here: http://ashishrd.blogspot.com/2006/11/morse-code-converter.html . Hope you find it interesting. I'd love to hear your comments. :) Ashish Hey robinjam. Glad to know that you found it interesting. Now, I've actually made a program which decrypts the message being flashed from my LED. It's not a real-time decryptor, it works on recorded video. I'll see if its possible to make it work as a real time morse code decoder! That would be awesome. Ashish ...Show All
Windows Forms Toot text Help for a button?
Hi I recognize the ability to set tool text help on a button in a tool strip BUT . . . is there any way to set tool text help on a normal button I've got a button on a form that has an image, no text. Can I set tool text help for it If so, how Hi, from your Toolbox, drag a ToolTip control to your form. Then check your button's properties - you'll find a new property called ToolTip on toolTip1. Set its text and that's it. Hope this helps, Andrej ...Show All
Visual C# single instance classes vs. static classes
I was wondering what to do when you have a class that is certainly going to be single-instance. Should I make it static or make it normal and just use one instance What are the disadvantages of static classes (when you need only one instance) I use a Single Instance class whenever the initialization is heavy and it could be disposed or cleaned up any time, so when it isn't needed all the time. In most cases you can just create a static class that only provide some static information and methods. It is more a emotional thing, is technical espect there are no limitations, but rember that static methods are thread safe! A Single Instance class can make the using code look better: ActiveDataSes ...Show All
