visual-studio-2008

problem with exporting a customized form from dll

I'm working on an application so i have write an dll which contain a form with some additional work and methods. so in the beginning of my program the thread launch this form (from my dll) to get some informations and then hide it and initialize some components and the application form and then show it. when the thread come the line wher...

Intellisense fails for boost::shared_ptr with Boost 1.40.0 in Visual Studio 2008

I'm having trouble getting intellisense to auto-complete shared pointers for boost 1.40.0. (It works fine for Boost 1.33.1.) Here's a simple sample project file where auto-complete does not work: #include <boost/shared_ptr.hpp> struct foo { bool func() { return true; }; }; void bar() { boost::shared_ptr<foo> pfoo; pfoo.get()...

XPCE Prolog command causing error in VS2008 C++

Upon loading into a C++ program a Prolog program that contains the command 'send' (xpce graphics), I get error messages of type: Syntax Error: Operator Expected. Here is an example command that causes the errors: send( Dialog, append, button(continue, message(@prolog, clear_my_blackboard)) ), I used to get the same errors when I us...

Recommended Offline Form Format

Hi, I would like to ask for a recommendation on offline form format which user can bring around. Once done, they will upload the file to the server and data will be extracted from there. We are currently looking at Word and Excel 2003 since all users have it on their machine but it seems that using interops on server is something to avo...

problem with treeview

I want to configure the tree view component so that would be the topmost parent node would have no chex box and all the others had. ...

Choosing VS2008 .Net 3.5 and .Net 3.5SP1

here is the problem. I have one PC using VS2008 (SP1 ) and another PC using VS2008(normal). I want my .Net projects to be editable in both these PC's. So naturally my projects use .Net 3.5 by default and not .Net 3.5 SP1. So, Is there a way I can fix my VS2008 (SP1) version to stick to .Net 3.5 and not .Net 3.5 SP1. In project propertie...

problem with closing application

i create my own dialog form with two buttons (ok, cancel) and checked list box. i want to get all selected strings in first form which shown second form. for that purpose i do function GetSelected which return CheckedIndices->GetEnumerator() of my list box. now i want to deselect all strings on pressed cancel button. And deselect all st...

remote debug unmanaged code

Hi. I have a process that contains C# code, C++\CLI code and native c++ code. Now, I'm trying to remote debug my process, and I can go to the statements of my C# code and my C++\CLI code, but I can't reach my native code. When I try to hit a breakpoint in my native c++ source file, I get the "No symbole have been loaded" error. I tried ...

Adding data into tables includes foreign keys but which new row created Entity Framework ?

Addding data into kartlar table (RehberID,KampanyaID,BrimID) is ok. But which Kart'ID created? I need to learn which Id created after adding data (RehberID,KampanyaID,BrimID) into Kartlar? public static List<Kartlar> SaveKartlar(int RehberID, int KampanyaID, int BrimID, string Notlar) { using (GenSatisModuleEntities genSatisCtx = ne...

visual studio 2008 regions equivalent for javascript

visual studio 2008 allows c# code to be segregated into regions is there an equivalent for javascript? ...

How to write linq query in Entity Framework but my table includes foreign key?

I have a table it includes 3 foreign key field like that: My Table: Kartlar ID (Pkey) RehberID (Fkey) KampanyaID (Fkey) BrimID (Fkey) Name Detail How can i write entity query with linq :? select * from Kartlar where RehberID=123 and KampanyaID=345 and BrimID=567 BUT please be careful I can not see RehberID, KampanyaID, BrimID...

Creating a simple VS2008 visualizer inside autoexp.dat (problem with casting).

I have a large project of mixed C/C++. I've created a simple visualizer for the ICU UnicodeString class as follows... [inside autoexp.dat] icu_4_2::UnicodeString { preview ([$c.fUnion.fFields.fArray,su]) } ...and that works fine. Inside the debugger wherever I see the object I now see the text inside in the preview line. ...

Issue with reading an image using "cv::imread" function in OpenCv

Hi, I have got a problem with some basic OpenCV code. Here is my code: cv::Mat src; src=imread("Calibration.bmp",0); if (src.empty()) cout << "Cannot load image" << " "; else cout << src.cols << " " << src.rows << " "; Unfortunatelly cv::imread returns NULL matrix with any kind of input image (I have tried .bmp, .jpg). The ...

How to open an existing project in .net c# in Visual studio 2008

I already have a project folder, with relevant files inside. I need to change the working directory in Visual studio to this project folder, I just can't find how to do it in Visual studio. It seems I can only create a new project or open a solution file, but not set the working directory to the folder I want and start work on existing ...

GetDirectorySize exceptions

i want to create functions what get the folder size. I write small function: private: unsigned long long GetDirectorySize(String^ path) { unsigned long long size = 0; DirectoryInfo^ diBase = gcnew DirectoryInfo(path); if (!diBase->Exists) return 0; array <FileInfo^>^ files; array <FileSystemInfo^>^ files2; try { ...

.config file not loaded from working directory

I am new to using .config files, having worked on apps that use .INI files and the registry until very recently. I am seeing a behavior in VS2008 that I would not anticipate, and wonder if it is the expected one. When I configure the Working Directory setting in the VS2008 IDE for my Foo.exe application, I would have guessed that Foo.ex...

Change TFS Work Item Type

Is it possible to change the type of a TFS work item? For example, I have a Bug I would like to change to a Change Request. ...

Error when using DevEnv command line, but not using IDE

I recently upgraded my VS2005 projects to VS2008, I can compile all of my projects using the VS2008 IDE and they all compile w/o any errors. However when run DevEnv from the command line to build my projects the first line of the output file is Package 'Microsoft.VisualStudio.TeamFoundation.VersionControl.HatPackage, Microsoft.VisualSt...

How do I redirect output from the Visual Studio debugger?

In Visual Studio 2008, I can specify a message to be printed when a breakpoint is hit (by right-clicking the breakpoint and choosing 'When Hit...'). When the program is run, these messages appear in the Output Window. I would like to know, is there any way to redirect them to a file? Specifying >file.txt as a command argument to the pro...

Visual Studio 2008 compiles anything in C++ file?

I noticed today that a source code file in a project was compiling even though it had junk at the top of it. It got me wondering what all would pass without error through the compiler. Here is an example of code that will not generate any error messages: what kind of weird behaviour is this??? #include "stdafx.h" // what is up? int...