473,320 Members | 1,948 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

.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 1502
Is there any IO-related exception thrown ?

Kapil Maheshwari

"Bob Morrow" <bo**********@excite.com> wrote in message
news:um****************@TK2MSFTNGP12.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*************@tk2msftngp13.phx.gbl...
Is there any IO-related exception thrown ?

Kapil Maheshwari

"Bob Morrow" <bo**********@excite.com> wrote in message
news:um****************@TK2MSFTNGP12.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
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,...
8
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...
12
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++...
4
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...
10
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...
6
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...
7
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...
4
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...
8
by: Grizlyk | last post by:
Good morning. Look here: http://groups.google.com/group/fido7.ru.cpp.chainik/browse_frm/thread/7341aba5238c0f79 and here:...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.