Wojteq's Q&A profile
Windows Forms access to Setup1.Version
I would like to read the version property in the build project properties from within my application during run time. Does anyone know how to do so I want access to the Setup.Version project added to my Solution. The Applic ...Show All
.NET Development Restrict access to assembly
Hi All, I have a question in regarding restricting assemblies calling. Let me give a brief description. I have a .exe that would load and use multiple dlls. I am now loading these dlls by reflection. All these dlls would implement an interface, whereby the .exe would identify them. So now, my question is, how can i control, which dlls that the .exe can call What i meant is, I would want to track how many new dlls is created, I would probab ...Show All
.NET Development Video/Audio streaming in .NET C#/C++/VB possibility?
Hi there, I was googling, however unfortunatelly could not find anything useful in terms of Video/Audio Streaming (webcam to webcam) using .NET C++/C# or VB. I need to develop an application that will allow for cam-to-cam video/audio streaming, if possible any links or hints will be great. Thank you There is nothing inherently built into any concept of streaming. When a producer produces content, a subscriber ...Show All
SQL Server An error has occurred while establishing a connection to the server. error: 40
hi i got the following error message while connectiong to my sql server 2005 NB :i am connecting from the same pc where sq server is installed. An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connectio ...Show All
Windows Forms DGVComboBoxColumn gives ThreadStateException
I'm having a problem when selecting cells in a DataGridViewComboBoxColumn. Each time a cell is selected I see the following error: "DataGridView Default Error Dialog: System.Threading.ThreadStateException: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that you Main function has STAThreadAttribute marked on it. ..." Firstly, I don't use any Main() methods in my application.  ...Show All
.NET Development C# with MySQL
string conString = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=test;UID=;PASSWORD=;OPTION=3"; string sql="SELECT * FROM person"; OdbcConnection con= new OdbcConnection(conString); try { OdbcCommand com= new OdbcCommand(); com.CommandText=sql; com.CommandType=CommandType.Text; con.Open(); OdbcDataReader myReader=com.ExecuteReader(); while (myReader.Read()) { Consol ...Show All
SQL Server search char in String
Hi Is there any function to seperate a sting (VARCHAR) into two based on a character in the string (e.g. '-'). In short is there "InStr" or "split" type function in T-SQL If not what is the alternative I have a column called "Range" (VarChar) in the table which has ranges like 1-14 or 15-49 etc. I need to select records by compare a variable (numeric) against these ranges. So for instace if the variable has 15 its in range ...Show All
Visual Basic Connecting .VB Local App to SQL 2005 across internet.
Is the connection I am creating in my vb local application to the SQL database secure Does this connection get encrypted by default I'm using the Dataset Designer but I don't see anything concerning the Transport level of the connection itself. I did find the DSACryptoServiceProvider RSACryptoServiceProvider but I'm wondering if this is what I need to do to create a secure connection to the datbase over a public network. ...Show All
Windows Forms CheckedListBox items
... are just a grouped ObjectCollection, doesn't allow you to specify DisplayMember and ValueMember properties to have underlying data values recorded instead of the full-text description one usually displays to users. What's a good hack to workaround this CheckedListB ...Show All
SQL Server update first row of a group of record
I have a table as shows here: col1 col2 1 rec1 * 2 rec1 3 rec1 4 rec2 * 5 rec2 6 rec2 and now I need to update the field col1 of the first records with different col2 value. that means I need to update the col1 filed of the * marked record. any suggestion about how to do it with SQL server 2000 thanks a lot. You need a unique column to ...Show All
SQL Server Restore Master Key
Do we need to know the database master key password inorder to restore the same from a Master Key backup What if the scenario is like, I have Master Key backup file but do not have the password specified at the time of creation Any help is appreciated. satya Thanks I needed just a clarification. We are actually trying to develop an implementation strategy for encrypting data in SQL 2005. satya ...Show All
Visual Studio Express Editions Is The OOP Microsoft.VisualBasic.IIf Equivalent To the Procedural If Then?
so I guess the thread was locked due to thinskinned vb'ers, unfortunately bronco has a fantastic question in his last post and it certainly warrants discussion. . . This Particular Microsoft.VisualBasic.IIf Is extremely important to me.... If Microsoft.VisualBasic.IIf is Equivalent to the Procedural "Classic" If then.... If it is Equivalent I can Transist to Pure OOP by using Descision Tables, Boolean Algebra and other CS tec ...Show All
Visual Studio Team System Can't connect to the tfs
hi, in our project we work (five users) with the team foundation server (RC). All is good and we haven't problems at all. In that time a colleague ask me, whether he could connect to the server. i said to him that the only thing he has to do is to install the team explorer and connect to our project server. He get the following error even though he works in the same domain. Error: TF31002: Unable to connect to this team found ...Show All
Visual Basic For...Next Loop gives error "Index is out of Range"
I am new to VB.Net Programming and I am using VS 2005. I have a listbox that gets filled with some data from a typed dataset and I want to give the user an oppotunity to remove a selected item from the listbox before going on with the application. So I created a For...Next loop to loop through the items in the listbox and find the one that is selected and remove it , depending on which Item I pick I get a error saying that the index is out of ra ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creating Mesh from my own
Hello again. In order to have a "clean" code, I'd like to work only with Meshes. I have some x files, but other objects I like to build myself using vertices and index buffer Is there anything to know about this Thanks, Steve You're in luck here... I wrote some code to create an ID3DXMesh from scratch a few weeks back. Needed a way of procedurally generating some terrain and then feeding it into the various D3DX ...Show All
