I have a class in an Excel file and my boss wants me to create that class into a COM DLL. I don't want to have him walk me through the entire process because he's quite busy.
Can any of you point me in the right direction and help me out with this?
...
I've made a C# class library and am trying to use it in another project. I followed these instructions but am getting the following errors:
The type or namespace name 'TF2Reader' could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name 'Log' could not be found (are you missing a...
My ultimate goal is to list all active fonts on a windows computer. For example, if you start WordPad or Word, you will see them all. Some of these fonts comes from the windows\fonts folder, but not all. Some are registered dynamically using the gdi32.dll call AddFontResource(...). Now, you would think C# had support for retrieving this ...
I'm working on a utility for SharePoint. It's an app that works for both SharePoint 2007 and 2010. When I have a reference to the 12.0.0.0 version of the SharePoint.dll, the app works for SharePoint 2007, but not for 2010. If I reference version 14.0.0.0 of the dll, then the app works great for 2010, but not for 2007.
I can easily te...
Hi,
I'm trying to deploy an application written in wpf c#. I use an external library (irrklang). I added a reference in visual studio to that dll (it is placed in the same folder as the executable). It shows up in my application files, I deploy, install on a different machine and I get the file not found exception. I looked up the exe f...
Hi,
I do have a class which looks like below:
//.h file
class __declspec(dllimport) MyClass
{
public:
//stuff
private:
static int myInt;
};
// .cpp file
int MyClass::myInt = 0;
I get the following compile error:
error C2491: 'MyClass::myInt' : definition of dllimport static data member not allowed
what should I d...
Hi,
I have a COM Component DLL.
I can use this DLL in VB.NET.
But I must configurate Project Properties Compile Settings.
I write "Win32=True" to "Custom Constant" area and application succesfully run.
But I Cant find this configuration for C# application.
How can I do?
...
I have a Winform App that we uses internally that I publish through ClickOnce with SQL Express 2005. The app also references a couple of Microsoft.SqlServer dll's. I am trying to figure out how the Specific Version settings work. I have SQL 2008 installed on my machine they have 2005.
If I select Specific Version = false will it ca...
I have two C++ COM projects in Visual Studio. In ProjectA I define InterfaceA in MIDL. In ProjectB I would like to define InterfaceB which inherits from InterfaceA. Is this possible to do without importing IDL or H files from ProjectA?
Here's how the code is laid out, which might be clearer. The libraries are large so I put things in se...
Hello,
I am receiving an error that says "The application was unable to start correctly (0xc000007b). Click OK to close the application." When I attempt to run a program I have compiled with Visual Studio 2005.
When I run the windows program "depends" on this executable, I see a TON of DLLs which are listed as "x86" dlls. These all ap...
Hi,
I am trying to create a DLL to use it with Java JNI. I am using Netbeans C/C++ plugin to create the dll.
but after compile i am getting the following error (.o objects already created)
any idea? am i missing something?
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .clean-conf
make[1]: Entering directory `/c/p...
This is probably trivial - I almost feel embarrassed to ask, but I am new to this.
So I downloaded a library that uses JNI and I need to store the .dll library in my PATH. What is my PATH and where can I find it?
...
The LoadLibrary function is returning to me the error code 182. From MSDN:
ERROR_INVALID_ORDINAL: "The operating system cannot run %1"
Does anyone have a better description of what this error is?
...
I am including a library in my application, and it's copying 7 dlls with the same path as the exe.
But I want to put these dlls in a sub folder.
When I put the dlls in a subfolder the application doesn't see the dlls.
So is there any configuration that describe where should the application look for its dlls?
Also is it possible ...
i am using some libraries and i added a reference to that library dll and i set the "Copy Local" to true.
but i want to change the location of the dll to be a subfolder in the exe folder and not with the exe.
how is this possible?
thanks
Update:
i used the following Post-build event [as Jon Skeet recommended]
move /y $(TargetDir)\Syst...
Hi;
I am a modeler who programs...I would never call myself a programmer, yet I program in C# and in FORTRAN. I have a FORTRAN model that I have connected to some C# code through a dll. I have found that I must have a common block in order to keep the variables in memory in the dll. I have also found that I cannot use more than one in...
Hello community,
I am building a DLL that is used by Office. When Office runs with it, I would like to identify where it is located. Is that possible?
ex. of code within the DLL when it is run within Office:
// should return C:\tmp\officeaddin.dll,
// currently C:\Program Files\Microsoft Office\Office 12
MessageBox.Show(Application.S...
I'm working on creating an app that will parse MSDN articles for meta-information such as the article title and other articles that are in the same collection. This app also has a GUI front-end.
I'm interested in making this program more modular by separating the front-end from the back-end and the back-end into two parts -- one that ha...
Hi I want to play a WMV (Or Video File ) in C# Application..
I Have made software in which when i click file then File menu opens then i select the media file but then when i click on play then file should be played..
so please guide me...
and if any dll is required then please tell me ...
thanks in advance
...
I created a dll with VS C++ (of course as a dll project) with the following code of the header file:
#pragma once
#include <iostream>
#include "..\..\profiles/ProfileInterface.h"
using namespace std;
extern "C" __declspec(dllexport) class CExportCoordinator: public CProfileInterface
{
public:
CExportCoordinator(void);
virtual ...