Can we compile C library as .Net dll (containing and opening access to all C libs functions) by just compiling cpp project containing code like
extern "C" {
#include <library.h>
}
with /clr:pure argument with VS? (VS10)
Or we should do something more trickey?
...
Hi,
I have a project A linked to a project B. B is compiled into a .dll while A is the main program and compiled into a .exe
The compiling of the projects is done without any issues, but when I run the program, I get a pop-up window saying "This application has failed to start because B.dll was not found. Re-installing the application...
Hey all,
So I found a great little EXE command line app (we'll call it program.exe) that outputs some data I would like to manipulate with C#.
I was wondering if there was a way to "package" program.exe into my visual studio project file, so that I could hand my compiled application to a co-worker without having to send them program.ex...
I'm making a C# application in Visual Studio and am wondering if there is any way to view every method that returns a specific type?
For example, I want to know which methods return an "AsymmetricAlgorithm" object.
...
I am having a problem with VS2010 randomly disabling certain keys like my arrow and backspace keys when editing files in stored in VSS. It seemed to have just started happening the other day, but simply restarting VS would fix the problem and it may come back a day or two later. Now I restart and it lasts maybe 10 minutes or until I op...
I have a COM project that contains a number of IDL files, some of which are imported into other ones. How does Visual Studio decide which ones to compile (using MIDL) first?
I want to control the order. I have a master IDL file which contains my library declaration with several imports, and I get a build error if it is not the first one...
When linking an executable, if it does not make reference to any of the symbols in one of the DLLs on the link line, will it still depend on that DLL at runtime?
To make the question concrete, suppose I am building an application from Visual Studio project foo.
Under Project Properties > Linker > Input > Additional Dependencies I have ...
It just occurred to me, after years of closing these two windows after a debugging session, that there may be a way to turn them off. I generally have the output window open while debugging and only check the error list periodically for warnings, and can always get to them if I want them anyway. Hoping someone else may know of a way to...
Hi,
I installed Intel Parallel Studio v1.0, and now Visual Studio 2008 is not stopping on breakpoints. I can set them, but it skips right over them, and never breaks.
Any ideas?
...
Visual Studio 2010 - release - takes about 5 seconds to open a xaml file.
It does it on some machine, not all of them!
.cs files open instantly. It only happens to XAML.
We tried the following, unsuccessful:
Run VS as Administrator
import user settings from a machine that didn't have the problem
clear the borked registry using cclea...
I am using Visual Studio 2008.
I have xml files and corresponding xml schemas for validation.
When I modify any of schema files and save it VS automatically generate a header file,*.dll files and some garbage from it.
But I don't want this.
How can I stop this behaviour?
...
I have been able to build my windows form application that access databases in SQL Server. All parts of the application are able to access the server apart from the part where one can back up/restore a database. In this part I can not access the databases on the server and have come to believe it is because of these warnings. What do the...
I'm writing managed code, and I'm using managed bindings (qt4dotnet) for an unmanaged library (Qt). Now and then, I get an AccessViolationException coming somewhere from Qt, but I don't know how to debug that. I don't even get a stacktrace further than the managed/unmanaged boundary (meaning I don't know what part of Qt crashed on me).
...
I am trying to create a new ADO.NET connection string using the 'Add Connection' dialog. I click the 'Change' button to change the selected 'Data Source' but can't see the desired data source in the list of registered data sources.
Now, I know I need to update the machine.config file 'DbProviderFactories' element with the appropriate e...
Is there a way to unit test WaitHandle.WaitAll() when using Visual Studio's built-in unit testing solution. When I try and run a test that uses this function within Visual Studio the test fails and when examining the test results the following error is displayed:
WaitAll for multiple handles on a STA thread is not supported
I'd like...
I'm running some code to get a publishing page at a certain url. In some cases the page will exist and in most it won't.
Sometimes when the page doesn't exist, the following line of code just sits there being executed:
PublishingPage pubPage = pubWeb.GetPublishingPage("http://some/long/url.aspx");
There is no exception being thrown ...
Please help I am pulling my hair out over this:
I have a Visual Studio ASP.NET MVC solution in which a project references a third party DLL, log4net in this case. My solution tree is as follows:
GenericLibrary
MyApp.NHibernate
MyApp.Library
MyApp.WebUI
MyApp.WebUI is the main start-up MVC web project and has references to GenericLib...
i dislike below methods. Because more fields (suchas 150 fields) it is not good method. There is any SetValue method to add datato sql linqtosql for submitchanges?
MyClass c = new MyClass ();
c.FirstField = "bvnvb";
c.......
c...
c...
// Too many rows there is...
...
I have created this datastructure:
class Event
{
public:
Event(EVENT_TYPE type, void* pSender = 0, int content1 = 0,
int content2 = 0, int content3 = 0, int content4 = 0);
~Event(void);
// ... some functions
protected:
EVENT_TYPE itsType;
void* itsPointerToSender;
int itsContent_1;
int itsContent_2;
...
I have a solution made up of multiple projects which have various dependencies on each other. When I build the project/solution, it creates the DLL assembly files in the Project\bin folder(s) as it should. But when I run the program, it copies everything to the temporary files folder and runs it from there:
C:\WINDOWS\Microsoft.NET...