Re: Drag and drop and IAsyncOperation problems

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: nikos (umeca74_at_hotmail.com)
Date: 04/05/04


Date: Mon, 5 Apr 2004 11:37:38 +0100


"Highlander" <highlander1976@mail.ru> wrote in message
news:ulc0NBuGEHA.3360@TK2MSFTNGP12.phx.gbl...
> My program stores documents in the database so I think that optimized move
> is not the case.

that is true when copying files _out_ of your database
when you accept files on the other hand, there's no stopping you
deleting the original files/documents, no?

> Did I choose the correct way of transferring data object to the spawned
> thread
> (CoMarshalInterThreadInterfaceInStream/CoGetInterfaceAndReleaseStream) ? I
> also make AddRef to data object in the main thread and release it after
> EndOperation() in the spawned thread.
>

I am not that familiar with IAsyncOperation, sorry
in general, if by the end all your object references are released
you don't have any problems with lockings
(Have you tried calling EndOperation from the main thread,
sending some custom message when the threaded operation finishes?)

> IAsyncOperation->GetAsyncMode() returns TRUE but not VARIANT_TRUE

that's life! :)
the good thing is that in C++ both values pass the if() test



Relevant Pages

  • Re: Drag and drop and IAsyncOperation problems
    ... > My program stores documents in the database so I think that optimized move ... that is true when copying files _out_ of your database ... > also make AddRef to data object in the main thread and release it after ... (Have you tried calling EndOperation from the main thread, ...
    (microsoft.public.win32.programmer.ui)
  • Re: Design problem : security layers
    ... the front end only gets information from a Data object. ... How that information got put into the Data object it totally irrelevant to the JSP. ... The way I have layered the classes, I can switch database technologies by simply re-writing ONE set of classes in the "backend", and setting a configuration file. ... the servlet performs some sort of action. ...
    (comp.lang.java.programmer)
  • Re: Mixing Oil and Water ?? (PHP with UML & Unit Testing)
    ... any database driven project could have its data model ... > described with UML artifacts and you can use data object classes to ... > schema of the database to store your application entity data objects, ...
    (comp.lang.php)
  • ODBC Deployment
    ... Trying to develop some code to open a dBase IV database using a Data Object. ... Also, if ODBC is to be used, how does the programmer know what ODBC drivers are on the user's target machine, and if not, how is the appropriate ODBC driver deployed? ...
    (microsoft.public.vb.database.dao)
  • Re: Migrating VSS Database and users
    ... It won't work by copying files from the old database. ... rights.dat (which holds rights assignment per user per project). ... I've tried moving the Users folder, and copying the users.txt file, but ...
    (microsoft.public.vstudio.sourcesafe)