visual-studio

C# - Debug.WriteLine - is this function ASync?

Hello; I just came across a situation: I was debugging a thread which iterates through a large amount of data. I was using Debug.WriteLine to print which record is being processed. What just happened is that thread has reported that it has processed all records, however, Visual Studio's debug window is still displaying out. I am positiv...

I want to send email to an id at local network

Hi, I want to send email to an id at local network using intranet not internet in C#. Please someone help me if possible. Thanks, Regards ...

Custom path of the user.config

Hi all, I manage my application-settings using the setting-designer in VS2008. "The exact path of the user.config files looks something like this:" <Profile Directory>\<Company Name>\ <App Name>_<Evidence Type>_<Evidence Hash>\<Version>\user.config Is there to a way to customize this path? I would prefer something like this: ...

librsvg library crashing in release mode

Hello, recently I've been trying to write an application that draws SVG pictures. I'm using librsvg library in order to do so. I found a static library file "librsvg-2.dll.a" somewhere and it seemed to do the trick. The problem is that it crashes in release mode on rsvg_init() function call. I have no idea how to cope with that. Perha...

Link a static library to a DLL

I am using Visual Studio 5.0 I have DLL and a static library . My intention is to use a static function that is defined in the static library . I have included the header file in the intended source cpp and also given the path in the project dependencies . Still it gives me linker errors . Following is the linker error error LNK2019...

Visual Studio: Is it possible to define custom functions for use in one's own Code Snippets?

I want to write a Visual Studio snippet which allows me to quickly create a class of the form: public SomeClass { public SomeType SomeProperty { get; private set; } public SomeClass(SomeType someProperty) { SomeProperty = someProperty; } } I want the parameter on the constructor to have the same name as the property, but lower...

rotation, translation in opengl thorugh header file?

i've a header file called base.h which has all initial display and stuff like, my main aim is to simulate a robot with degree of freedom. class center_rods { public: center_rods() { } void draw_center_rod() { glPushMatrix(); glTranslatef(0,1,0); ...

Debugging ASP.Net website and window.onerror

I have a simple asp.net website. In JavaScript, I added a handler to the window.onerror event. When I debug in Visual Studio, their handler seems to override mine. When any JavaScript error occurs, it enters their debugger and my onerror function never gets called. Is there anything I can do to make mine still operate without disabli...

Normal Setups in Visual Studio

Hi All Just wondering if there's a way to make Visual Studio 2008 Express Edition generate normal exe files that are created by the installer for my app? I am sick of the ClickOnce application files. I had all these file associations setup and now that I need to actually have an installer for my apps, the file associations setup in the...

Vertical lines for things like "if statements" in Visual Studio 2008?

Is there an add-on or setting that can add vertical lines that link things like "if statements" in Visual Studio 2008? Thanks ...

msvsmon is locking up my pdbs

During developement of my media center plugin (which has a few custom build steps to gac stuff and such) msvsmon has a rather annoying behaviour. First compilation usually goes well, but subsequent compilations complain about myplugin.pdb being locked Error 1 Unexpected error creating debug information file 'C:\Users\sam\source\m...

IntelliSense in Visual Studio 2010 RC freezing

Every time I try to write something, IntelliSense freezes Visual Studio and I have to wait like 2 minutes for it to show code completion list. The only way I can work with is turning it completly off. **` I've already installed the last IntelliSense patch from Microsoft but the problem doesn't seem to have gotten any better. Anyone...

Is there any way to access a datasource from one project, in another project?

I have access to a database table that has been added as a datasource in project (A). Is there any way to refer to this database table from project (B) WITHOUT adding it to project (B)'s datasource? i.e. ProjB.databasetable.GetDataSetSchema Any ideas would be really appreciated. Thanks guys! ...

How can i get IP Address of my 3G modem?

My GPRS modem has got a sim card. it can connect Web. Web service give it a ip number. i need it. like that: http://www.your-ip-address.com/ How can i do that C#? ...

how can i learn my client ip with .NET?

i need my client ip from whatismyip.com. But Regex pattern is not correct i think? Can you help me this patttern? ...

Compile for x64 with Visual Studio ?

Question: Assume a C++ hello world program, non .NET. With Visual Studio 2005/2008/2010, how can I compile a 64-Bit application ? I have a 64 Bit Windows, but by default, VS seems to compile 32 bit executables... On Linux with g++, I can use -m32 and -m64, but how can I compile a 64 bit solution with Windows ? Is it even possible with ...

Multiline Find & Replace in Visual Studio

Can it be done? We're using either VS2005 or VS2008. I don't mean regular expressions - which have their place - but plain old text find & replace. I know we can do it (at a pinch) with regular expressions using the \n tag but prefer not to get tangled up in regex escapes characters, plus there's a readability issue. If it can't be don...

How do I use Visual Studio 2010 RC 'one click publish' from the command line?

I've got VS 2010 RC running and have two publish profiles set up in it, one for publishing to the staging server and one for the developer test box. It works great but I want to put the deployment to our dev server into our build server and run it on check-in. I'm looking for an MS Build target or a command I can call via MS Build that ...

How can you include/reference a file in a project without copying it to the project directory?

I am writing an application in Visual Studio 2008. I have a help file that I want to be included in the output of my project. I want the most recent version of my help file to stay in a folder that is not my visual studio project directory. For example C:/Helpfiles. I want to include this file in my Visual studio project so that when I ...

How to detect the language version of Visualstudio?

I need to detect the language version of VS and do some action depending on it. How to detect it? Thanks ...