Hi, I'm using vs2005, .net 2, C# for windows application. In my application,
I use a C coded file that I use VS to compile into a dll for some of it's
functions. It works on my devvelopment PC. I created a Setup project for
the application. In the file syste, I added the dll. After successful
installation on a target machine, I get error of not able to find the dll
when I run the applicaiton. I checked the program files directory and this
dll is there. Can someone tell me what's wrong here and how can I solve
this?
The dll is just plain C code. I compiled it in VS2005's C++ compiler to
produce a dll. There isn't a interop created with the file name. Here is
how that dll is imported to my applicatinon by the following declareation.
[DllImport("Unit yDecodeAsnUser. dll", CharSet = CharSet.Unicode )]
public static extern DE_ERRORS DecodeAsnGroup( ref Blob blob,
[In, Out]CGroupContextDa ta m);
--
Thanks. 6 1274
"Pucca" <Pu***@discussi ons.microsoft.c omwrote in message
news:8A******** *************** ***********@mic rosoft.com...
Hi, I'm using vs2005, .net 2, C# for windows application. In my
application,
I use a C coded file that I use VS to compile into a dll for some of it's
functions. It works on my devvelopment PC. I created a Setup project for
the application. In the file syste, I added the dll. After successful
installation on a target machine, I get error of not able to find the dll
when I run the applicaiton. I checked the program files directory and
this
dll is there. Can someone tell me what's wrong here and how can I solve
this?
The dll is just plain C code. I compiled it in VS2005's C++ compiler to
produce a dll. There isn't a interop created with the file name. Here is
how that dll is imported to my applicatinon by the following declareation.
[DllImport("Unit yDecodeAsnUser. dll", CharSet =
CharSet.Unicode )]
public static extern DE_ERRORS DecodeAsnGroup( ref Blob blob,
[In, Out]CGroupContextDa ta m);
What happens if you try to register that dll with regsrv32? I know I know,
you shouldn't have to do that. But will happen if you if you tried it?
Mr. Arnold wrote:
"Pucca" <Pu***@discussi ons.microsoft.c omwrote in message
news:8A******** *************** ***********@mic rosoft.com...
>I use a C coded file that I use VS to compile into a dll for some of it's functions. It works on my devvelopment PC. I created a Setup project for the application. In the file syste, I added the dll. After successful installation on a target machine, I get error of not able to find the dll when I run the applicaiton. I checked the program files directory and this dll is there. Can someone tell me what's wrong here and how can I solve this? The dll is just plain C code. I compiled it in VS2005's C++ compiler to produce a dll. There isn't a interop created with the file name. Here is how that dll is imported to my applicatinon by the following declareation .
[DllImport("Unit yDecodeAsnUser. dll", CharSet = CharSet.Unicod e)] public static extern DE_ERRORS DecodeAsnGroup( ref Blob blob, [In, Out]CGroupContextDa ta m);
What happens if you try to register that dll with regsrv32? I know I
know, you shouldn't have to do that. But will happen if you if you tried
it?
regsvr32 (I assume regsrv32 is a typo) on a Win32 DLL ????
Arne
Arne Vajhøj wrote:
Mr. Arnold wrote:
>"Pucca" <Pu***@discussi ons.microsoft.c omwrote in message news:8A******* *************** ************@mi crosoft.com...
>>I use a C coded file that I use VS to compile into a dll for some of it's functions. It works on my devvelopment PC. I created a Setup project for the application. In the file syste, I added the dll. After successful installatio n on a target machine, I get error of not able to find the dll when I run the applicaiton. I checked the program files directory and this dll is there. Can someone tell me what's wrong here and how can I solve this? The dll is just plain C code. I compiled it in VS2005's C++ compiler to produce a dll. There isn't a interop created with the file name. Here is how that dll is imported to my applicatinon by the following declareatio n.
[DllImport("Unit yDecodeAsnUser. dll", CharSet = CharSet.Unico de)] public static extern DE_ERRORS DecodeAsnGroup( ref Blob blob, [In, Out]CGroupContextDa ta m);
What happens if you try to register that dll with regsrv32? I know I know, you shouldn't have to do that. But will happen if you if you tried it?
regsvr32 (I assume regsrv32 is a typo) on a Win32 DLL ????
Arne
I always spell it wrong. I only worked with Com, Com+ and .Net dll(s). I
don't know about a Win32 dll, never had the opportunity to work with
C++, if that's what you're referring to.
Thank you both for the reply. I found the problem is the C-code dll has a
dependency on MSVCR80.dll. Once I copied that to the target PC it ran OK.
--
Thanks.
"Mr. Arnold" wrote:
Arne Vajhøj wrote:
Mr. Arnold wrote:
"Pucca" <Pu***@discussi ons.microsoft.c omwrote in message
news:8A******** *************** ***********@mic rosoft.com... I use a C coded file that I use VS to compile into a dll for some of it's functions. It works on my devvelopment PC. I created a Setup project for the application. In the file syste, I added the dll. After successful installation on a target machine, I get error of not able to find the dll when I run the applicaiton. I checked the program files directory and this dll is there. Can someone tell me what's wrong here and how can I solve this? The dll is just plain C code. I compiled it in VS2005's C++ compiler to produce a dll. There isn't a interop created with the file name. Here is how that dll is imported to my applicatinon by the following declareation .
[DllImport("Unit yDecodeAsnUser. dll", CharSet = CharSet.Unicod e)] public static extern DE_ERRORS DecodeAsnGroup( ref Blob blob, [In, Out]CGroupContextDa ta m);
What happens if you try to register that dll with regsrv32? I know I
know, you shouldn't have to do that. But will happen if you if you
tried it?
regsvr32 (I assume regsrv32 is a typo) on a Win32 DLL ????
Arne
I always spell it wrong. I only worked with Com, Com+ and .Net dll(s). I
don't know about a Win32 dll, never had the opportunity to work with
C++, if that's what you're referring to.
"Pucca" <Pu***@discussi ons.microsoft.c omwrote in message
news:62******** *************** ***********@mic rosoft.com...
Thank you both for the reply. I found the problem is the C-code dll has a
dependency on MSVCR80.dll. Once I copied that to the target PC it ran OK.
--
Which is exactly what you shouldn't have done! If your C++ code depends on
the VC8 runtime, you'll have to distribute this run-time with your
application, or you have to statically link when building your DLL.
Willy.
Hi Willy,
Yes, I already done that, adding that runtime dll in my installation. I
would have liked to static link it but didn't find such option in the project
property Link area. would you know how I can do static link in vs 2005? Or
do you think static Link is a better solution than adding the file to my
installation files ?
--
Thanks.
"Willy Denoyette [MVP]" wrote:
"Pucca" <Pu***@discussi ons.microsoft.c omwrote in message
news:62******** *************** ***********@mic rosoft.com...
Thank you both for the reply. I found the problem is the C-code dll has a
dependency on MSVCR80.dll. Once I copied that to the target PC it ran OK.
--
Which is exactly what you shouldn't have done! If your C++ code depends on
the VC8 runtime, you'll have to distribute this run-time with your
application, or you have to statically link when building your DLL.
Willy.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: JohnC |
last post by:
I have this exact same scenario. It is new and seems to be related to when
we installed Adobe 7.0 Standard/Professional.
We have an MDB on a LAN file server. Using Access 2K and Windows 2K. When
the application is opened by someone, it seems that if one of the Adobe 7.0
(Standard or Professional) users susequently open the application, they get
the error - "...You do not have exclusive permissions to the database.
Changes that you...
|
by: Wayne |
last post by:
This may not be the best group to ask in as the question is about the beta,
if there is a better place please point me to it.
I've had beta 1 installed, after a re-install of the OS this weekend I
installed beta 2. I opened a project that I had written with beta 1 and
tried to compile it, when I compile it I get the error below. I am not sure
what the error means nor do I know how to fix it. Is the
Microsoft.Common.targets file new to...
|
by: Shiraz |
last post by:
Hi
I just made an installer package for an application in .NET which also uses
COM dlls. It seems to work fine on my machine but when tried it on a
co-worker's machine, the application installs, but while running, gives the
following error in the part that must use a certain COM dll:
COM object with CLSID {some hex code} is either not valid or not registered
I know which application is using this dll while the error is generated and
|
by: Keith |
last post by:
All,
I have been told this is an ASP.NET issue and not an IIS
issue, so I am posting this here.
I have a problem with ASP.NET returning an HTTP 500 error
when trying to run ASPX pages on Windows Server 2003
Enterprise Edition Only.
This works on Windows 2000, Windows 2003 Web Edition and
|
by: Joe Ross |
last post by:
I've been working with Microsoft support for over 3 weeks now on an
intermittent General Network Error we're seeing in our production
environment between our ASP.NET application and SQL Server 2000. They are
continuing to work on the issue, but it seems as if our progress is grinding
to a halt. I asked this question on the newsgroups before going to MS but
figured I'd give it another shot now that I have more information.
The problem...
| |
by: pmud |
last post by:
Hi,
I am using a compare validator in asp.net application(c# code). This Custom
validator is used for comparing a value enterd by the user against the
primary key in the SQL database. IF the VALUE ENTERED BY THE USER EXISTS IN
THE DB , then THE ERROR MESSAGE OF THE COMPARE VALIDATOR SHOULD BE DISPLAYED.
For this, I used the reference artiicle
"http://msdn.microsoft.com/library/default.asp?url=/library/en-...
|
by: Benny Raymond |
last post by:
I get the following error message when trying to use the Excel Interop
on my wife's machine however I don't get it on my own - we have the same
version of Office installed - what could be the cause?
************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly
'Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' or one of its dependencies....
|
by: TristaSD |
last post by:
Hi,
Here's a nice footer I get inside every php page I write in wwwroot on
my server. The code gets parsed just fine. I installed php5.2-win32
under W2K Server, IIS 5.0. I've installed php on XP machines before,
no problems there.
Fatal error: Nesting level too deep - recursive dependency? in Unknown
on line 0
Cannot find module (IP-MIB): At line 0 in (none) Cannot find module
|
by: Michael Fay in SB |
last post by:
A month ago I posted:
"I built my application with Access 2003 and made a distribution using
the Microsoft Office Access 2003 Developer Extensions.
(I also install Jet 8 as a follow-on action at the end of the
installation.)
I can install the application on my development PC and on a "bare" PC.
Regardless of the PC where I install, in the installed application (but
not the development version)
File->Export from a Report brings up a...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |