I'm using a ContextMenuStrip for multiple controls and I'm trying to figure out the best way to get the control that was actually clicked on to open the Context Menu. The sender just gives the ToolStripMenuItem reference, which has an Owner property that references the ContextMenuStrip, but I cannot figure out how to tell which control ...
I want to build a library (poco-1.3.6p2-all, for what it's worth) for x86. I just set up a new (clean) Windows 7 64 bit machine and I installed Visual Studio 2008 Standard. Nothing installed up to now on this box has had an installation error.
The same library has built flawlessly on a Windows XP 32 bit system with VS 2008 Standard ins...
I have a solution that links to several library projects located elsewhere on my hard drive (outside my solution folder).
I would like to change things so that these project folders are now inside my solution folder.
So far, I have copied the project folders into my solution folder. Taking a look at the .sln file for my project, I noti...
I'm an IT Professional with a background with developing ASP/VBscript/SQL web applications. I want to take some training and get up to speed with Visual Studio 2008 and C# so that I can take over a project at work and make updates/bug fixes in house rather than calling in a third party.
The web application I'll be working on was develo...
I have an unsorted list of strings. I can place these items in an array, List, SortedList, whatever.
I need to find the fastest way of looking up a string in this list. Am I better off dumping the list into an array, sorting it, then implementing binary search? Or does the framework provide a way to do this?
Thanks
P.S. Using VS200...
Is there anyways to have a define increment every time you use it?
For example
int a = ADEFINE;
int b = ADEFINE;
a is 1 and b is 2.
...
I did write some apps in the past that used access en sqlserver databases. These databases come with wizards however to help you create a connection to it.
Now, I want to add a new db connection in the Server explorer of visual studio 2008 to SQLite. I referenced the System.Data.SQLite assembly from phxsoftware. I am able to select the...
I started studying DLL's with implicit linking. I don't really fully understand how it works. Please correct me where I'm wrong.
I failed to compile the next code(3 modules):
MyLib.h
#ifdef MYLIBAPI
#else
#define MYLIBAPI extern "C" __declspec(dllimport)
#endif
MYLIBAPI int g_nResult;
MYLIBAPI int Add(int nLeft, int nRight);
...
I am trying to separate Swapchain and Window creation from D3D10 device creation in my rendering framework meaning that I can't really use D3D10CreateDeviceAndSwapChain. I am running into an unexpected linker error when trying to build my test app.
I am including DXGI.h and linking to DXGI.lib as well as D3D10 libraries but nothing else...
I just reinstalled vs2008 and accidentally selected Web Developer instead of C# Developer the first time it ran and now all my key bindings that I was used to are wrong. How do I change it to C# Developer?
I tried devenv /resetsettings, but it only reset my fonts and other settings.
...
I'm using VS2008 w/ TFS. I have a commercial package that is a .NET dll and two other dll files that .NET dll uses. I want these files to be separate from the projects that use them.
I can easily make a reference in my C# project to the .NET dll and indicate "copy" so that it gets copied to the output (bin) directory to be used from the...
I'm new to domain driven design but want to learn it and use it for a new application.
I will be using Entity Framework for data access.
The basic layout so far is:
ASP.NET MVC and other clients (mobile
devices etc.)
|
Webservices
|
Domain Model (Services, Repositories, Aggregates, Entities and Value Objects)
|
Data Ac...
Hi
I am trying to publish my site from Visual Studios 2008 Web Developer SP1. I do first a clean build then I rebuild it.
I then go and try to publish it. I get one warning that seems to make it fail
Warning 1 Error updating JScript IntelliSense: C:\Users\bob\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\25YI0...
Not sure of the appropriate title, but it stems from this discussion:
http://stackoverflow.com/questions/620137/syntax-of-new/620402#620402
On Visual Studio 2008, when I run the following code:
struct Stan
{
float man;
};
int main()
{
Stan *s1 = new Stan;
Stan *s2 = new Stan();
}
Examining the locals, s1 has an uniniti...
Hi,
In my web application (Dotnetnuke 5) site, for development purposes I made a virtual directory under the main website.
As a result, in my solution I have the main Web site as well as the virtual directory website which is actually a folder inside this main web site.
Now I want to have this as a virtual directory because I want to ...
Say I have the following
int num = 40 + str2Int("30");
Is there anyway with visual studio 2008 to tell what Str2Int is returning without stepping into the function and going to the return?
...
Possible Duplicate:
Access Denied in SQL 2008 EXPRESS
I have create my code in order to write images in a remote sql server
All the details of accessing and writing are fine until now, including the system account right now i'm in the command of:
SqlFileStream = New SqlFileStream(filePathName, fileToken, FileAccess.Write)
an...
Maybe a strange question, but is there a way to do a copy while paste? eg.
you have a mapper where you want to switch mapping direction:
object1.MyProperty = object2.HisProperty;
to
object2.HisProperty = object1.MyProperty;
I know you can to this with som regex gymnastics in an external editor, but if you do this with regular copy...
I recently added a static lookup array to one of my classes, like:
// MyClass.h
class MyClass
{
static MyClass const s_fromIndex[1500];
public:
MyClass(size_t arg1, size_t arg2);
static MyClass fromIndex(size_t index) { return s_fromIndex[index]; }
}
// MyClass.cpp
MyClass const MyClass::s_fromIndex[1500] =
{
MyClass...
Today i was debugging some lines of code and i noticed a very weird behavior:
a declared variable should get a value returned from a method. The method returns properly (as expected) the value, but hovering over the variable name (after the assignment) returns ... absolutely NOTHING.
Even writing the variable's name in the watch windo...