473,772 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET calls .dll which can't find .ini ?

Frustrating problem. I have a .dll [created in VB6] that is called by all
the .NET programs that we are developing.

The dll reads an .ini file to determine if it should fill a data dictionary
from the development or production SQL Server. If no .ini is found it
defaults to production.

I recently started using a new PC with Win XP. The process works except for
finding the .ini file. I always get the production environment as if the
..ini does not exist. Other developers have upgraded to Win XP and do not
have this problem.

Are there any suggestions? I have reregistered the dll; moved the .ini file
to the C:\ root and to the startup directory of the program I'm developing;
and attempted to step thru the code. I am unable to determine why the dll
does not find the ini file.

Bob
Jul 21 '05 #1
2 1531
Is there any IO-related exception thrown ?

Kapil Maheshwari

"Bob Morrow" <bo**********@e xcite.com> wrote in message
news:um******** ********@TK2MSF TNGP12.phx.gbl. ..
Frustrating problem. I have a .dll [created in VB6] that is called by all
the .NET programs that we are developing.

The dll reads an .ini file to determine if it should fill a data dictionary from the development or production SQL Server. If no .ini is found it
defaults to production.

I recently started using a new PC with Win XP. The process works except for finding the .ini file. I always get the production environment as if the
.ini does not exist. Other developers have upgraded to Win XP and do not
have this problem.

Are there any suggestions? I have reregistered the dll; moved the .ini file to the C:\ root and to the startup directory of the program I'm developing; and attempted to step thru the code. I am unable to determine why the dll
does not find the ini file.

Bob

Jul 21 '05 #2
There is no indication of a problem. The dll is designed to proceed to
Production if the .ini is not found as we do not place it on the client
machine. It's just on the developer so we can test to a developer or
production database.

The only anomaly is the dll doesn't find the .ini file even though it's hard
coded in the program.
Thank you for the response.

"Kapil Maheshwari" <ka************ **@hotmail.com> wrote in message
news:ed******** *****@tk2msftng p13.phx.gbl...
Is there any IO-related exception thrown ?

Kapil Maheshwari

"Bob Morrow" <bo**********@e xcite.com> wrote in message
news:um******** ********@TK2MSF TNGP12.phx.gbl. ..
Frustrating problem. I have a .dll [created in VB6] that is called by all the .NET programs that we are developing.

The dll reads an .ini file to determine if it should fill a data

dictionary
from the development or production SQL Server. If no .ini is found it
defaults to production.

I recently started using a new PC with Win XP. The process works except

for
finding the .ini file. I always get the production environment as if the
.ini does not exist. Other developers have upgraded to Win XP and do not
have this problem.

Are there any suggestions? I have reregistered the dll; moved the .ini

file
to the C:\ root and to the startup directory of the program I'm

developing;
and attempted to step thru the code. I am unable to determine why the dll does not find the ini file.

Bob


Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
3434
by: Gil | last post by:
I am running a C++ process on Solaris that needs to find out how much diskspace is free and used on the system. Is 'system' in stdlib.h the only way to make OS calls from C++? In this case, I will probably be making unix calls like 'df' or 'statvfs' to get the diskspace information and redirecting it to a file, and then opening and reading
8
1523
by: Hagar | last post by:
I am currently learning C++ and am into a project for the end of the semester finals. Everything is rosy except for one feature that I want to include and can't find in my very large and expensive C++ books. Plus, I don't want to ask the instructor because that will give my project away. How do you call an external non C++ program, or possibly a system function? For instance, I have some very good Perl modules from my last class that...
12
3455
by: jrefactors | last post by:
If the C programs have UNIX system calls such as fork(), alarm(), etc.., we should call it UNIX programs, not traditional C programs? We couldn't compile the programs with system calls using VC++ compiler. I need to compile it under UNIX platform. correct? any other alternatives?? Please advise. Thanks!!
4
2474
by: atv | last post by:
Whatis the proper way to handle errors from function calls? For example, i normally have a main function, with calls to mine or c functions. Should i check for errors in the functions called themselves, or should i return a code to main and handle the error there? If i don't return them to main, except for the structure, what use is the main function except for calling functions?
10
2638
by: Brian Parker | last post by:
I inherited a C++ DLL that I need to remotely call multiple times asynchronously. What I have developed is: CSharp web application that makes asynchronous calls to a CSharp Web Service. The Web Service calls the DLL, which does some heavy processing, then sends the results back to the CSharp web application. The problem is that the calls to the DLL in the Web Service are blocking each other. If I send 10 async requests to the Web...
6
1565
by: ian | last post by:
Hi, I keep resorting to com interop calls, for example I needed the location of the carot in a text box and I had to use a win32API call (GetCarotPos??) to do that. It's one example, I could give several more that have come up over the last few months, and it has raised a couple of questions the answers to which could plug a few holes in my knowledge. First, I'm uncomfortable using API calls purely because I don't fully understand the...
7
2865
by: Shak | last post by:
Hi all, I'm trying to write a thread-safe async method to send a message of the form (type)(contents). My model is as follows: private void SendMessage(int type, string message) { //lets send the messagetype via async NetworkStream ns = client.GetStream(); //assume client globally accessible
4
2372
by: Michael | last post by:
Hi, I'm having difficulty finding any previous discussion on this -- I keep finding people either having problems calling os.exec(lepev), or with using python's exec statement. Neither of which I mean here. Just for a moment, let's just take one definition for one of the
8
2742
by: Grizlyk | last post by:
Good morning. Look here: http://groups.google.com/group/fido7.ru.cpp.chainik/browse_frm/thread/7341aba5238c0f79 and here: http://groups.google.com/group/fido7.ru.cpp.chainik/browse_frm/thread/cb014f4ba9df614a Can anybody answer? Who can't read in russian:
0
9621
marktang
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...
0
9454
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,...
0
10264
Oralloy
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...
0
10106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9914
tracyyun
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...
0
8937
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5355
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...
1
4009
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
3
2851
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.