Log in to SQL Server in C #

I'm a beginner programmer with C#. I'm trying to develop an application that it connects to a database and do the typical operations like insert, delete, update and get. I'm getting a error with the database connection. I'm working with SQL Server 20

error C1075 when using Opencv_2.4.9 with Visual Studio?

After linking libraries from openpc 2.4.9 with visual studio 2010, I build and ran a program and got this error message. error C1075: end of file found before the left brace '{'at ' c:\users\iggy\documents\visual studio 2010\projects\open_cv_test\ope

How do you know where your solution comes from?

I have a VB.net solution that I made a complete copy of and placed on a different drive and now I cannot tell which solution I have been working in. Is there a way I can tell where my solution was opened from?In the Solution Explorer pane, right clic

Unable to load .dll?

I made an application using c#.net 2.0 and linq but as we can't use Linq cause it was introduced in framework 3.5, i add some references of dll of version 3.5 and linq started working fine. when i made the setup and installed it, it is working fine o

GetWindowText with char []

I am quite new to Windows programming. I am trying to retrieve the name of a window. char NewName[128]; GetWindowText(hwnd, NewName, 128); I need to use a char[] but it gives me the error of wrong type. From what I read, LPWSTR is a kind of char*. Ho

Creating image access points

I maybe just going about this the wrong way I don't know. I have a PNG and it is 1000x1000 pixels. I is shaped like a pentagon and in each section I have a box. What I want to do is have each box that is part of the PNG to be a clickable box. I have

Qt and visual studio 2010 error

after building Qt using Visual Studio command prompt , my configure string: configure.exe -release I try to test my first hello world application #include <QtCore/QCoreApplication> #include <iostream> int main(int argc, char *argv[]) { QCoreAp

The files could not be found in the workspace

I am using Visual Studio 2010 professional with TFS as a source control and everything was working fine. In morning I came I opened my solution and it opened as Offline. I tried going online, and it says "Workspace for this solution could not be foun

Visual Studio - Web Development and Debugging

I'm doing some web development and when I push the debug button it starts off with the selected tab and it is really annoying because it will throw errors because those pages are not meant to be ran at first. Is there a way to have visual studio alwa

c # reports a null object when it is not

When I run in debug mode my program, it pops a NullReferenceException on an object which isn't null - it appears as defined in the Locals view. The object in question is SFML.Graphics.Sprite, and only one of it's fields is null (myInverseTransform),

What is the maximum size for a declaration on the stack?

i am using visual studio 2010. i have a three dimensional structure array which, i think, gives me the wrong error. The array is defined from #define BUCKETS 2048 #define B_ENTRIES 4096 typedef struct fpinfo { unsigned long long offset; unsigned long

cxcore210d.dll was not found

i've the following code that processes an image. it uses opencv. i've installed and configured opencv as described but my application can't find cxcore210d.dll. my linker->input->additional dependencies is set to include cxcore210d.lib;highgui210d.l

Can not use external credentials with a C # console application

Ok I have tried all the suggestions below but still no joy. im now trying a console application, and let me explain exactly what im doing. I create a new console project in VS 2010 I add a number of references (dll's) some that aren't mine such as Ca

Invalid solution file Visual Studio 2010 and SourceSafe 2005

I recently re-built my development machine. On this new machine, VS 2010 can no longer open sln files directly from SS 2005. These are valid 2010 solutions (orginally created witih VS 2010) that worked fine until I re-built my machine. The message I

Can I run a program from Visual Studio without high permission?

Okay, so originally I was going to ask about dragging and dropping in Windows 7. I found the answer I was looking for here: C# Drag drop does not work on windows 7. Basically it says that since I'm running Visual Studio (and subsequently, my program)

The operating unit tests more than five cores in parallel

I've followed the instructions on http://blogs.msdn.com/b/vstsqualitytools/archive/2009/12/01/executing-unit-tests-in-parallel-on-a-multi-cpu-core-machine.aspx to the letter and I can execute tests in parallel. So far so good. Now the problem: I can'

Correction of indentation in Visual Studio when pasting e-book

Every time I paste code from an Adobe reader eBook into Visual Studio it ends up looking like the image below. The only way I know to fix it is to go on each and every line and manually tab/backspace it all back in order. Source formatting does nothi