473,385 Members | 1,357 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,385 software developers and data experts.

using vfoxpro dll in clickonce project

Hi all, first some history: i'm developing an application who access
foxpro databases using VfpOledb provider... but this cause a headache
when i delete rows cause some tables call triggers... to fix it... or
to find other way i make a dll class in vfpro in order to use some
database and execute some delete sql.

function execSql(string database,string sqlSentence);

this its ok... but my click once project need to register it... how can
i do that?... in first try i put the compiled dll file into Resources
env and write to windows\system32 clien hard disk and calling
Console.WriteLine("regsvr32 c:\windows\system32\dllFox.dll");

but that doesn't work... my program just copy the file...
its clear that i need to involve more in that... but im overtimed, can
any one help me... thanks in advance...

Oct 27 '06 #1
2 1686
Hi Celerno,

Aside from your question about registering the DLL, what sort of triggers
are firing and how have you written the DLL code that it can delete rows and
not fire the triggers?

--
Cindy Winegarden MCSD, Microsoft Most Valuable Professional
ci***@cindywinegarden.com
"celerno" <ce*****@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
Hi all, first some history: i'm developing an application who access
foxpro databases using VfpOledb provider... but this cause a headache
when i delete rows cause some tables call triggers... to fix it... or
to find other way i make a dll class in vfpro in order to use some
database and execute some delete sql.

function execSql(string database,string sqlSentence);

Oct 30 '06 #2
Hi Cindy, thanks for your response...
My fox database is firing the delete trigger... and i need it.
my original problem is an oleDb limitation... Oledb not support delete
trigger.

In order to evade this problem i build a single vfox class, heres the
code:

DEFINE CLASS IventaDB AS Session OLEPUBLIC
FUNCTION doNonQuery (strSentence as String, rutaDb as String)
result="ok"
try
OPEN DATABASE &rutaDb SHARED
strSentence =strSentence
&strSentence
CLOSE DATABASES
CATCH TO errorRes
result=errorRes
ENDTRY
RETURN result
ENDFUNC
ENDDEFINE

And my actual problem is that i can't isolate my vfoxDll generated and
the host machine says need to register it... and when i build my
project on VS2005 i have a warning

Warning the 1 assembled one to which reference becomes
"c:\project\bin\debug\Native.EysComunicaWin.manife st" applies to a
processor different from the one of the application. EysComunicaTray

there's one Solution named EysComunica.
there's two Projects
- EysComunicaTray is an WinForm Application.
- EysComunicaWin is an Class Library Application.
EysComunicaWin has a reference to Interop.COMvfoxDLL.dll and has set
"Isolated" property value to True.

im installing using clickonce technology, is required.
Cindy Winegarden wrote:
Hi Celerno,

Aside from your question about registering the DLL, what sort of triggers
are firing and how have you written the DLL code that it can delete rows and
not fire the triggers?

--
Cindy Winegarden MCSD, Microsoft Most Valuable Professional
ci***@cindywinegarden.com
"celerno" <ce*****@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
Hi all, first some history: i'm developing an application who access
foxpro databases using VfpOledb provider... but this cause a headache
when i delete rows cause some tables call triggers... to fix it... or
to find other way i make a dll class in vfpro in order to use some
database and execute some delete sql.

function execSql(string database,string sqlSentence);
Nov 1 '06 #3

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

Similar topics

11
by: moondaddy | last post by:
I have a .net 2.0 smarclient app and am trying to deploy it to IIS where users can access it from. I created an application folder in IIS where I'm trying to deployee to. 1) When the...
1
by: moondaddy | last post by:
I have a sample vb .net 2.0 winforms app and am using Oneclick deployment to a remote server. All of the files (DLLs, EXEs, manifests, configs, etc.) seem to get deployed to the target folder on...
1
by: Daniel Knöpfel | last post by:
Hello Im triying to create an installer using ClickOnce and visual studio 2005. This works fine on my computer, but as soon as i start the created installer on another pc I get the following...
1
by: moondaddy | last post by:
I need to have multiple deployment profiles for a .net 2.0 winforms project. This is my requirement: 1) Re-use same project for multiple ClickOnce deployment profiles. 2) Each profile will...
21
by: Al Christoph | last post by:
I posted this last week end in the MSDN forums. No luck there. Let's see what the experts here have to say:-)))) I have a rather convoluted project. The distributable will come in eight...
2
by: Michael D. Reed | last post by:
I am using ClickOnce to distribute a program. It works well except for one detail. When a new version is installed, the program does not initialize properly immediately after the update. The...
0
by: vovan | last post by:
My current VB6 application uses something similar to ClickOnce technology for automatic upgrades. User starts on his (her) workstation not the application itself, but the utility which compares...
5
by: DCDev | last post by:
I have a solution with multiple projects. One project is a windows forms project. I have report files (.rdlc) in a separate project that are built as "Content" with the "Copy Always" option....
1
by: =?Utf-8?B?S2VuIExlbWlldXg=?= | last post by:
I've deployed, successfully, several Clickonce applications. The problem I have is the negative reaction to my software when a user attempts to open a file and no association exists between the...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.