hi friends/seniors
i am stuck on one problem in VB 6.0 and need solution. see if u can help me.
first i describe the problem.
Can u imagin the WinZip scenario. we right click on some file and select in
context menu add to zip.Now if
winzip is not runnig allready new instance of winzip application begins and
u add the file to whatever .zip file.
Now let the application be running and right click on some other file and
again select add to zip. and winZip
automatically detects the previous instance of application and adds ur file
to the last zip. This is exactily what
i need to de but in some other contexts. I am implementing backup system for
LAN/VPN where user can select
files of his interest and those will be added to backup list. I need to back
up these file dynamically as soon as
any of them changes. For this i have have written one activeX
exe component that watches (keeps spying) for any File Changes using
'FindFirstChang eNotification' for every file that
has been added by user to backUp List and as any change notification is
received this component raises event that i
catch in my main application and take back up for whatever file changes.
Now the client needs that if this application is running and user wants to
add some file he should be able to do that
by right clicking and selecting from context say "add to BackUp List". noe
at this if previous instance is running my
main application should stop the spying component and add new file to the
list and restart the spying with new list.
now i explain where things go wrong
my component is working fine. i can stop it anytime through my main
application add new file to list and restart it with
new list, this works fine if user do this through GUI of main application.
But if user tries to this through right click
context menu things go wrong. If previous instance is running then i have to
use subclassing for processing
WM_COPYDATA msg in my main application. The new instance of application just
detects the presence of previous
instance and then sends any command line parameter (the name of the file
that is right clicked) to it using 'SendMessage'
WIN32 api, and then just END itself . Now previous instance of the
application has to process the command line parameter
that is received on WM_COPYDATA msg. This processing works fine as long as
i'm doing any processing/accessing
on my main application's objects (like main GUI form/any modules). like for
refreshing the list view on main form, adding
file name to collection in module. all this is being done with that previous
instance. but the moment it tries to access the
activeX exe component (say for stopping it, rater any dammed access say any
simple property of that component) the
main application's instance crashes. the error that is returned is
"The Exception Floating-Point inexact result"
(Oxc000008f) occured in the application at location 0x77e8f142.
Click OK to terminet the program ....cancel to debug.
Please note that as long as my main application try to access the spy
component through any GUI initiated events this works
fine only when i'm sending msg to previous instance, then that instance is
crashing.
I'm stuck on this. i did all search on net, google and what have u. but no
avail. plz let me know if any of u can give me some
breakthrough. thanks
-deven 2 7242
"devendra pardeshi" <de******@leles ys.com> schrieb i am stuck on one problem in VB 6.0 and need solution.
This is a VB.NET group (see group name). For older versions please turn to
one of the microsoft.publi c.vb.* groups.
--
Armin
Hello,
"devendra pardeshi" <de******@leles ys.com> schrieb: i am stuck on one problem in VB 6.0 and need solution. see if u can help
me. first i describe the problem.
Can u imagin the WinZip scenario. we right click on some file and select
in context menu add to zip.Now if
winzip is not runnig allready new instance of winzip application begins
and u add the file to whatever .zip file.
Now let the application be running and right click on some other file and again select add to zip. and winZip
automatically detects the previous instance of application and adds ur
file to the last zip. This is exactily what
i need to de but in some other contexts. I am implementing backup system
for LAN/VPN where user can select
files of his interest and those will be added to backup list. I need to
back up these file dynamically as soon as
any of them changes. For this i have have written one activeX
exe component that watches (keeps spying) for any File Changes using 'FindFirstChang eNotification' for every file that
has been added by user to backUp List and as any change notification is received this component raises event that i
catch in my main application and take back up for whatever file changes.
Now the client needs that if this application is running and user wants to add some file he should be able to do that
by right clicking and selecting from context say "add to BackUp List". noe at this if previous instance is running my
main application should stop the spying component and add new file to the list and restart the spying with new list.
now i explain where things go wrong
my component is working fine. i can stop it anytime through my main application add new file to list and restart it with
new list, this works fine if user do this through GUI of main application. But if user tries to this through right click
context menu things go wrong. If previous instance is running then i have
to use subclassing for processing
WM_COPYDATA msg in my main application. The new instance of application
just detects the presence of previous
instance and then sends any command line parameter (the name of the file that is right clicked) to it using 'SendMessage'
WIN32 api, and then just END itself . Now previous instance of the application has to process the command line parameter
that is received on WM_COPYDATA msg. This processing works fine as long as i'm doing any processing/accessing
on my main application's objects (like main GUI form/any modules). like
for refreshing the list view on main form, adding
file name to collection in module. all this is being done with that
previous instance. but the moment it tries to access the
activeX exe component (say for stopping it, rater any dammed access say
any simple property of that component) the
main application's instance crashes. the error that is returned is
"The Exception Floating-Point inexact result"
(Oxc000008f) occured in the application at location 0x77e8f142.
Click OK to terminet the program ....cancel to debug.
Please note that as long as my main application try to access the spy component through any GUI initiated events this works
fine only when i'm sending msg to previous instance, then that instance is crashing.
I'm stuck on this. i did all search on net, google and what have u. but no avail. plz let me know if any of u can give me some
Interesting line wrapping...
;-)
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET http://www.mvps.org/dotnet This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Cormac |
last post by:
Hi everyone,
I'm writing Pure Data externals in C++ using Ms Visual C++ 7.0 and
Windows2000. I'm running motions sensor hardware so there's a bit of
real time data processing involved.
When I'm running my objects in Pure Data, I get an assertion failure
after a few seconds of running the motion sensors and I can't seem to
get rid of it. The error occurs in the expression _CrtCheckMemory().
Could anyone provide some possible solutions?
|
by: gemel |
last post by:
I am fairly comfortable with much of the .NET Exception mechanism, but
I'm a bit unsure of some areas.
1. When an exception occurs and the exception is not caught then
Exception processing will continue at the next Catch block up the
stack. When this happens will the 'Finally' block of the original
'Try/Catch' be executed?
2. If I wish to recover from the error that caused the Exception can I
put the Try/Catch in a loop so that I can...
|
by: Tigger |
last post by:
Dear Experts,
I am working on ASP.NET. I have got a problem related to the usage of
Javascript in ASP.NET. Please help. The story is the following:
1) I am developing an ASP.NET application. I need to prompt the users with a
modal box (with "Yes" and "Cancel" button on it);
2) When the user clicks "Yes" button, I need to do some further processing.
If "Cancel" is clicked, of course, stops doing anything;
3) Now the problems are:
-...
|
by: James Radke |
last post by:
Hello,
I have a multithreaded windows NT service application (vb.net 2003) that I
am working on (my first one), which reads a message queue and creates
multiple threads to perform the processing for long running reports. When
the processing is complete it uses crystal reports to load a template file,
populate it, and then export it to a PDF.
It works fine so far....
|
by: Gene Hubert |
last post by:
I'm trying to implement a "floating textbox" in a datagrid and seeing
some odd results.
In my override for DataGridTextBoxColumn.Edit, I create a custom
textbox that inherits from Textbox. I don't call edit for the base
class. I set the CustomTextBox.Parent to
Me.DataGridTableStyle.DataGrid.Parent. The "parent" is a panel that
the datagrid lives on. This seems to allow the CustomTextBox to
capture all the normal edit keys without...
| |
by: Keith Mills |
last post by:
Hello, please find attached a basic outline of what I am attempting to
accomplish... basically I want to create a number of THREADS (which I can do
fine), but I then need a method for them to be able to communicate with each
other, either through a message loop, or some other manner. I ALSO need to
be able to CALL specific functions / subs WITHIN a thread, based on what
another THREAD is doing... here is the attached code... WHEN I click...
|
by: Rahul |
last post by:
Hi Everybody
I have some problem in my script. please help me. This is script file.
I have one *.inq file. I want run this script in XML files. But this
script errors shows . If u want i am attach this script
files and inq files. I cant understand this error. Please suggest me.
You can talk with my yahoo id b_sahoo1@yahoo.com. Now i am online.
Plz....Plz..Plz...
|
by: metsys |
last post by:
We have an ASP.NET 2.0 (C#) application that is divided into multiple
layers. The multiple layers come from having a web project and 2 different
class library projects in the same solution.
I'm having difficulties figuring out the best way to handle (catch)
exceptions in the different layers and then propagating those errors back up
through the call stack to ultimately display something to the end-user.
Note this is an intranet...
|
by: Siv |
last post by:
Hi,
I have a stored procedure that I want to execute and then wait in a loop
showing a timer whilst it completes and then carry on once I get
notification that it has completed. The main reason for this being to stop
the user thinking the application has frozen when in fact it is just waiting
for a long SP to complete. Another reason for doing it like this is that I
also have had a problem in the past where the SP takes longer than the...
|
by: Rex |
last post by:
Re: Looking for Tips/Writeup on overall approach to Exception
Processing
Hi All - I am fairly new to C# and am wondering how to best implement
(overall) Exception Processing within my (reasonably-sized) C# Windows
application. I do have a bunch of somewhat random questions on this
and if you can help me with only one or a few, that would still be
APPRECIATED. Here are my questions:
1. Is it recommended to put all of the "Main" coding...
|
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: 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: 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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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...
| |