Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
ActiveX for VB -> Problem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Hans-Thomas Götz  
View profile  
 More options Jan 24 2002, 5:22 am
Newsgroups: comp.os.ms-windows.programmer.controls, microsoft.public.platformsdk.com_ole, microsoft.public.platformsdk.component_svcs, microsoft.public.win32.programmer.ole, microsoft.public.windows.inetexplorer.ie5.programming.activexcontrol, microsoft.public.window
From: "Hans-Thomas Götz" <htgo...@web.de>
Date: Thu, 24 Jan 2002 11:18:59 +0100
Local: Thurs, Jan 24 2002 5:18 am
Subject: ActiveX for VB -> Problem
I am developing an ActiveX-Control with Visual C++ ( i don't use ATL or
MFC ) for Visual Basic. I have only little experience with ActiveX-Controls
and no experience with VB. The ActiveX-Control-part works well with the
ActiveX-Control-Test-Container, but it hangs with VB if i add a
command-button to the form. The problem is, that when VB wants to save the
control it keeps calling the IPersistStreamInit::Save() function and it
doesn't stop. Here is how i implemented the IPersistStreamInit::Save()
function:

HRESULT STDMETHODCALLTYPE ImplIPersistStreamInit::Save( /* [unique][in] */
IStream *pStm, /* [in] */ BOOL fClearDirty )
{
 char   dummy[ 10 ] = { 0 };
 ULONG   NumBytesWritten = 0;

 EDM_DebugMessage( "IPersistStreamInit-Interface: called Save." );

if ( pStm != NULL ) {
  // actually write some dummy data to the stream
  pStm -> Write( ( void* ) dummy, 10, &NumBytesWritten );  // write 10 bytes
  AdviseHolder -> SendOnSave();
 } else {
  return( E_UNEXPECTED );
 }

 AdviseHolder -> SendOnSave();

 return( S_OK );

}

What am i doing wrong? Is there some documentation like "Programming
ActiveX-Controls for Visual Basic in C++" What are the equirements a
ActiveX-Control must meet to work with VB. Because it works with the
Testcontainer i assume that i have to meet some special requirements for VB.

Thanks in advance for the help.

Thomas


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "ActiveX for VB -> Problem ( update )" by Hans-Thomas Götz
Hans-Thomas Götz  
View profile  
 More options Jan 24 2002, 7:25 am
Newsgroups: comp.os.ms-windows.programmer.controls, microsoft.public.platformsdk.com_ole, microsoft.public.platformsdk.component_svcs, microsoft.public.win32.programmer.ole, microsoft.public.windows.inetexplorer.ie5.programming.activexcontrol, microsoft.public.window
From: "Hans-Thomas Götz" <htgo...@web.de>
Date: Thu, 24 Jan 2002 13:22:53 +0100
Local: Thurs, Jan 24 2002 7:22 am
Subject: ActiveX for VB -> Problem ( update )
Last thing i discovered is that vb doesn't create an advisory connection:
"AdviseHolder -> SendOnSave()" does nothing at all!!! Well, that may be the
problem about the saving, but why doesn't vb create an advisoryx
connection???

Thanks for the help.

Thomas

"Hans-Thomas Götz" <htgo...@web.de> schrieb im Newsbeitrag
news:a2on5g$ben$03$1@news.t-online.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "ActiveX for VB -> Problem" by Eric Sassaman [MS]
Eric Sassaman [MS]  
View profile  
 More options Jan 29 2002, 1:50 am
Newsgroups: microsoft.public.platformsdk.com_ole, microsoft.public.platformsdk.component_svcs
From: "Eric Sassaman [MS]" <eri...@online.microsoft.com>
Date: Mon, 28 Jan 2002 22:47:41 -0800
Local: Tues, Jan 29 2002 1:47 am
Subject: Re: ActiveX for VB -> Problem
Hans-Thomas, please note that Microsoft is not monitoring this newsgroup any
longer. This newsgroup may be deleted at a future date.

We highly recommend you post to microsoft.public.win32.programmer.ole
as the best place to discuss any COM or OLE programming issues. MSDN
managed newsgroup users need to post future questions there as well.
Thanks!

--
Eric Sassaman
Microsoft Support
This posting is provided AS IS with no warranties, and confers no rights.

"Hans-Thomas Götz" <htgo...@web.de> wrote in message

news:a2on5g$ben$03$1@news.t-online.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »