Software Development Network Logo
  • Windows Vista
  • VS Team System
  • Game Technologies
  • SharePoint Products
  • Visual Studio
  • IE Development
  • Visual C#
  • Smart Devicet
  • Windows Forms
  • Visual FoxPro
  • Visual C++
  • SQL Server
  • Visual Basic
  • Microsoft ISV
  • Audio and Video

Software Development Network >> Loopsludge's Q&A profile

Loopsludge

Member List

KenJoh
Vlad Shimov
boonukem
kalai
rad9k
vbjunkie
Amit Singla
Saravanan.Chinnusamy
Bennu Phoenix
Gaurav_tech
jeRKer
Ceres629
Randall Stimson
arit
Eudi
Opfer
WangJiping
Granada
George Waters
WBAS
Only Title

Loopsludge's Q&A profile

  • .NET Development Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral,

    Hi,   I have wrote a windows application which accesses Sqlexpress database and also text files. The app works fine on my machine but its giving the following error when i run it on other machine.   "Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."   System.InvalidOperationException was unhandled   Message="An error occurred creating the form. See Exception.InnerException for details.  The error is: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed." &nbs ...Show All

  • SQL Server SQL Server performance being a problem.

    I'm porting over a C# web application from MySQL to SQL Server, and so far I've gotten it up and running, but the performance is just terrible! I'm using the following script to connect to the database... <source> string TheConnectionString = "Server=PETER\\SQLEXPRESS;Database=Frostwinds;Trusted_Connection=Yes;"; MySQLConnection = new SqlConnection(TheConnectionString); MySQLConnection.Open();</source> .. and takes seconds to complete. Any ideas why performance is soo bad bass_player wrote: Are you saying that the opening of the connection is the one taking time Yes. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Not Using Vector2 in my 2D Game Engine

    I just recently changed, oh, about a 1000 lines of code in my game engine. Instead of using Vector2 for things like position and size, I decided to use floats instead. Does anyone else use Vector2's as their main position and size data types in their 2D game Right now, I have the code for both versions, and I'm trying to make entirely sure floats are the way to go before throwing one of them away. Any comments Really, I think the best way to answer this question is to ask what other 2D libraries are using out there. Considering compatibility among components, using what is most popular in other component libraries may be the most important thing to consider. Noone wants to use one component that is float-based along with anothe ...Show All

  • Windows Forms DataGridView with dependent ComboBox columns

    Question: How do I correctly setup the binding for a DGV that has two ComboBox columns, where one determines possible values of the second What I'm doing: I have a DataGridView which contains two ComboBox columns bound to an IList<Items>. The columns are setup like below (other columns ommited): // Setup Size Column DataGridViewComboBoxColumn colTwo = new DataGridViewComboBoxColumn(); colTwo.DataSource = _sizeSource; colTwo.DataPropertyName = "Size"; colTwo.DisplayMember = "Description"; colTwo.ValueMember = "This"; colTwo.Name = "Size"; _dgvPipePricing.Columns.Add(colTwo); // Setup Schedule Column DataGridViewComboBoxColumn colThree = new ...Show All

  • Smart Device Development Listbox messages under CF 1.1 in VS2003

    Hi, is there a way of filtering the messages related to a listbox I added a message filter (IMessageFilter) to my application, which allows to filter messages like WM_KEYUP, WM_KEYDOWN, WM_CHAR but i don't see messages like LB_SETCURSEL or LB_SETSEL They reason why i'm asking is that i should be able to prevent the user to change the index in the listbox. I tried setting the "enabled" property to false, But then the forecolor changes to grey, which is not acceptable by the costumer as it is diff. to read in the sunlight! I also tried overriding the " SelectedIndexChanged" event, and set the selectedIndex back to what it was ... but then i see a small index change, causing the selected item to ch ...Show All

  • .NET Development Remote Log On

    Hi, I don't know whether my question is taboo or not in this forum. However below is the problem that i currently have: I'm currently building an application that having an function of remote login similiar to Windows' Remote Desktop using C# (Socket programming). But currently, i'm just developing for LAN connection that is within an organisation only. I'm having a hard time figuring out how to do this function. Some suggest to use Windows Service. But i don't really understand how am i going to connect this Service with the remote machine application and also at the same time interact with local machine application. I'd really appreaciate if anyone can give me a hand or enlighten me on this parti ...Show All

  • Visual Basic live video from webcam ? - VFW WDM DirectX/Directshow?

    I have spent the last several days searching the internet for the best way to add live video from different USB webcameras. In my search I discovered using VFW with the capCreateCaptureWindowA Lib "avicap32.dll" and the showmessage from Lib "user32.dll" runs into two problems: 1. VFW is an old standard that is going away and 2. that it always brings up a dialog for selecting the video source device because it uses a wrapper for the webcamera and can only wrap one camera at a time. I have looked at sample applications like AMCAP and others that use the avicap32.dll with the same problems. I also had trouble finding any good information on using WDM or directx/directshow becuase the only information seemed to be in libraries th ...Show All

  • Visual Basic Connection string for databases added to application

    All, I'm wanting to add a local database to my application e.g. an access database that the application can use. When I mean local I mean its part of of the application so that only the application can see and use it. All good so far because I've added one. However, when I look at the connection string from the datasource wizard it includes the path of the database is (e.g. C:\MyApp\MyProject\MyData\MyDB.mdb etc) However if I copy this string to store and use in my ado.net code (as a connection string parameter) it would be invalid when someone installs the application in a different directory or drive. (e.g. if a user installs their application on drive E: ) My question is when I add an .mdb file to my application is there a way I can ...Show All

  • Visual C++ win32 combo box

    I have a combo box called IDC_COMBO_PROF1 on the About box of the Wizard Win32 app in Visual Studio 2005. I want it to have 3 entries, "Admin; Office; Shop" I can't find where to add these entries or how to do it in code. Can anyone help I assume this is a native win32 application, which isn't using MFC. If you want to do this programatically, I'll give you a couple of clues. Check the reference of the CB_ADDSTRING message, and consider using it in whichever function handles the WM_INITDIALOG message from your about box. My friendly suggestion, however, is that you get a good book on Windows GUI, such as Programming Windows by Charles Petzold ( http://www.amaz ...Show All

  • SQL Server The AcquireConnection method call failed with error code 0xC0202009.

    I've seen the previous threads on this (although maybe not all of them). However, i don't think I'm getting the error for the same reason. The full error I'm getting is: - Pre-execute (Error) Messages Error 0xc0202009: {F1B3B35C-FAE3-48F6-A169-4E4D8D99F9B6}: An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available.  Source: "Microsoft JET Database Engine"  Hresult: 0x80004005  Description: "Unspecified error".  (SQL Server Import and Export Wizard)   Error 0xc020801c: Data Flow Task: The AcquireConnection method call to the connection manager "DestinationConnectionExcel" failed with error code 0xC0202009.  (SQL Server Import and Export Wizard)   Error 0xc004701a: Data Flow Task: ...Show All

  • .NET Development Fatal Flaw in the Large Object Heap?

    Hi All, After playing with the GC I find the following interesting. The problem domain I typically work in requires the allocation of very large arrays for image processing. We have discovered some issues when our processes are long running. We run out of memory and can not reclaim it. Our only recouse is to restart our processes. In an effort to discover why I uncovered the following: The LOH (Large Object Heap) is never compacted. I think this is a fatal flaw in the GC. I understand MS stated reason for this, but shouldn't there be someway to compact the LOH if necessary, at least a method call that forces the issue Does anyone know of anything that can be done Any workaround is better than killing the process... Here is a demo ...Show All

  • Visual Studio Express Editions lmao

    Went to this site and obtained the vbsetup http://msdn.microsoft.com/vstudio/express/vb/download/default.aspx Everything seems to set up correctly, in the c:\program files\microsoft visual studio 8\ folder there is a \Microsoft Visual Basic 2005 Express Edition - ENU folder, and a \VB folder, with others. There is no program group created, no desktop icon, no quick launch icon. How do I start this thing thanks, very much for any help it should be in the start/program menu group - tried repairing the installation to see if it repairs it, in case it didnt install interestingly, the file is only 2.82MB which is not the full thing, could be why   correct location: http://msdn.microsoft.com/vstudio/expr ...Show All

  • Visual Studio 2008 (Pre-release) A Service With zero Security

    Hi dear I am building a service that will be used over internet and there is no security required. As service requires AtomicTransaction so i have to use wsHttpbindings. and has to configure the WS-AT in MSDTC with certificates i dont know how it authenticates the client but have idea that it might be doing authentication that will be a overhead for the service i want to make it simple and fast and want to remove any kind of security. Regards So may i move to netTcpBinding to avoid securities. would it involve WS-AT or should use MSDTC directly without the use of WS-AT as it supports OleTrx as transactionalFlowProtocol. Please Comment. ...Show All

  • Windows Forms Issue using MSAccess AutoNumber ID and BindingSource.AddNew / CancelEdit

    Hi, I have a strange issue involving a MS Access DB with tables using an AutoNumber pkid and the Visual Basic BindingSource.AddNew command. Please keep in mind that I am an experienced Access and VB6 user, but this is my first major .NET project. I have a database with a similar structure to the MS Access Northwind database, in that it has a customers tables, a table similar to the orders table, and similar relationships throughout. In my application, my customer Add/Edit/Delete/View screen is comprised of many text boxes and few option buttons etc. These are all databound. I used the Visual Studio.NET Datasource wizard to create a datasource from my Access DB, and I dragged the appropriate fields from the datasource window over to t ...Show All

  • Visual Basic [OTP] asp.net with c#

    what is state management How many types of state management and Explain with examples Two things wrong here. One, this forum deals with VB.NEt and Not C#, so your off topic on this forum. Two, questions on ASP.NET development are best asked in the forums at the asp.net site - forums.asp.net Posting your question here will get you a better more relevent answer. ...Show All

©2008 Software Development Network