visual-studio-2008

random number in VC++

int randomNumber = (double)rand() / (RAND_MAX + 1) * (10 - 0) + 0; is the code I'm using, it is getting a random number, but is getting the SAME random combination every time? Can anyone see what I'm doing wrong? ...

VS2010's "Public Property <PropertyName> As <DataType> vs. Public var

In VS2008, I used to type Public Property <PropName> As <dataType> and hit the Enter key and the IDE editor would automatically expand it out to a full blown property block. Now, from what I understand, a new feature of 2010 is that the compiler automatically "expands" the short syntax above into the same IL code that you would get ...

How can i use ClearCanvas in remote database?

How can i get data from REMOTE database using OnStart method? protected override int OnStart(StudyLoaderArgs studyLoaderArgs) { ApplicationEntity ae = studyLoaderArgs.Server as ApplicationEntity; _ae = ae; EventResult result = EventResult.Success; AuditedInstances loadedInstances...

C++ errors not shown in Visual Studio C# project

I have in Visual Studio 2008 a .NET 3.5 C# project that uses a dll compiled from a C# project (let's call it dll A). Dll A is using on his turn some C++ libraries. The problem is that when I encounter an error while calling objects from dll A, the application just closes, without showing any error. But I need to know what's the problem,...

Error: operation must use an updateable query

hello, After making the set up of the application(developed using VS 2008 and MS Access) the installation in another system works fine. But whenever I try to change the Password or id(there is a login window which the user need to access to get into the main window) it shows an error sayin "operation must use an updateable query". Can an...

Having trouble compiling with GDI+ (VC++ 2008)

I just simply include gdiplus.h and get all these errors: Warning 32 warning C4229: anachronism used : modifiers on data are ignored c:\program files\microsoft sdks\windows\v7.0\include\gdiplusflat.h 1133 Warning 38 warning C4229: anachronism used : modifiers on data are ignored c:\program files\microsoft sdks\windows\v7.0\include\gd...

Visual Studio 2008 not detecting Errors while coding

Hi, I just installed VS on another PC, but this time, while I am coding, it is not marking syntax errors while I am coding..... I need to press F6 to get the errors. Normally when for example typing the line below, I get 's' underlined saying that there is a mismatch. Any ideas how I can enable this option? string s = 4; ...

How can I make a list in a Repeater Section?

I need to create a repeater section that will show 4 columns - First Name, Last Name, a link based off of stored column data that says. All the data plus some extra not being used is in a players profile. How do I link the data on the code-behind to the repeater control with the databinders? I am using visual studio 2008, VB.NET for ...

Application built using VS2010 does not work in VS-Express2008 - C

Hello, I have wrote an application that consists of two projects in a solution, each project contains only 1 .c source file. I was using Visual Studio 2010 Ultimate but due to the University only supporting 2008 I decided to create a blank solution and copy the source files into the new one. After creating a new solution in VS2008 expr...

C# SerialPort.GetPortNames() behavior

In my C# 2008 application, I use the SerialPort.GetPortNames() function to retrieve the list of currently available ports. What I have noticed is, when ever I plug in a USB device, it's port number i s shown in the list on my Application and when I unplug it and refresh the list, the port number is no longer there. One phase of the appl...

Unable to connect SQL Server instance from Visual Studio 2008 Version 9.0

I am getting the below error from VS on an 32-bit XP Professional server even though I set Tools->Options->Database Tools->Data Connections to "SIDEKICK", which is the name of my computer. In other words SIDEKICK should default to the full SQLSERVER. In other words, I want VS to use SQLSERVER instead of SQLSERVER EXPRESS. And I can ...

Access violation writing location, in my loop

The exact error I am getting is First-chance exception at 0x0096234a in chp2.exe: 0xC0000005: Access violation writing location 0x002b0000. Windows has triggered a breakpoint in chp2.exe. And the breakpoint stops here for(DWORD i = 0; i < m; ++i) { //we are start at the top of z float z = halfDepth - i*dx; for(DWORD j = ...

SetUnhandledExceptionFilter functionality

Hi, Can anyone explain me how SetUnhandledExceptionFilter method works in mini dump?? Thank You!! Regards, Isuru ...

C# Winform : Deployment Problem after using DataRepeater of MS Visual Basics power pack

hi. Microsoft Visual Studio 2008 Service pack 1 comes with Visual Basic Powerpacks which has the DataRepeater control. I used this control in my c# winform application. in my system everything is running fine. now i copied the debug folder to other system which has only .Net Framework 3.5 SP1 installed. in this system is giving me erro...

which .dll files do i need for Windows mobile 6 bluetooth development

Hi everyone, i'm developing bluetooth app on VisualStudio2008 windows mobile 6 sdk.I searched that i will be needing using microsoft.windowsmobile.sharedsource.bluetooth; for C# I don't know what .dll files i need. Could any1 give me a dl link ? if possible some example codes on C# on how to discover other bluetooth devices would be ...

group member dropdown in visual studio 2008

in visual studio is the member dropdown, where you can select all members of the current type alphabetically ordered. is there an option which allows grouping of the members? i.e. all constructors before all methods before all properties before all events before all fields? if there is not, bad for me, i guess—it would really enhance p...

Logging into subdomain with the same credentials in asp.net

Hello friends, I have a portal say 'portal.mysite.com'. I have another portal say 'login.mysite.com'. Could someone tell me how I could use the same login credentials to login into the subdomain? Thanks for sharing your time. ...

Custom Expression in Linq-to-Sql Designer

According to Microsoft: http://msdn.microsoft.com/de-de/library/system.data.linq.mapping.columnattribute.expression.aspx It's possible to add expression to the Linq-to-SQL Mapping. But how to configure or add them in Visual Studio in the Designer? Problem, when I add it manual to thex XYZ.designer.cs it on change it will be lost. //-...

Remote Debugging using Visual Studio - How to overcome a firewall blocking port 135

.Net remote debugging using VS requires port 135 (DCOM) to be opened. Is it possible to change it to another port? Is it possible to tunnel through another port by running bridge on the remote server? Thanks Saar ...

WindowsIdentity.GetCurrent() returns SYSTEM when ran from custom action

I have an install project (running on Windows 7) that launches a custom action at commit which starts the application that was just installed. During the startup of this application I have a method that checks the current user's name to perform some authentication. When launched from this custom action I am getting 'NTAUTHORITY\SYSTEM'...