|
|
Hi Kenia,
The WebBrowser control provides a managed wrapper for the WebBrowser ActiveX control.
This page may help you.
http://msdn2.microsoft.com/en-us/library/w290k23d.aspx
--
Catherine Sea
Dynamsoft Corporation
www.dynamsoft.com
the leading developer of version control and issue tracking software
|
|
|
|
|
Hi Catherine,
Thank you so much for your reply. I think the page will help me.
Thanks again,
Cheers,
Kenia
|
|
|
|
|
Hello everybody!
I'm having a project:"Comunication between 2 PC by RS232(COM)".
I have not yet source code about this project!
I've just need a program in which I can comunicate between 2 PC by RS232 (send file or chat).So if everybody here have source code or a program about my project,please share it to me! Thanks very much!
Thanks for reading my message!
Regards,
|
|
|
|
|
COM stands for Component Object Model here.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Hello,
Can anyoNe give the example by using ApplyTemplateType()... method.
(means to draw a chart by chart template method)
(this shd b in C# n using COM)
thanks..............
|
|
|
|
|
Hi everybody, recently i have problem of software development
my Question is that.
- How to call Dot net Web-Services in php/Java ?
Advance Thank
|
|
|
|
|
Hi,
There is an article about Accessing a .NET Web Service using Apache/SOAP and Java.
http://my.execpc.com/~gopalan/dotnet/webservices/webservice_java_client.html
Hope it helps.
----
Catherine Sea
Dynamsoft Corporation
www.dynamsoft.com
the leading developer of version control and issue tracking software
|
|
|
|
|
Dear All,
Unable to convert CString to BSTR! Am I a stupid?!
I have an interface method which needs to convert CString to BSTR and return BSTR to caller.
AllocSysString of CString is not copying the data to BSTR.
STDMETHODIMP CTP_Interface_ErrorCode_Wrp::GetAdditionalDataFlag(BSTR *AddDataFlag)<br />
{<br />
AFX_MANAGE_STATE(AfxGetStaticModuleState())<br />
<br />
<br />
CString temp = pTP_Interface_ErrorCode->GetAdditionalDataFlag();<br />
*AddDataFlag = temp.AllocSysString();<br />
<br />
return S_OK;<br />
}
Any one please help me.
Thanks very much, Nani
|
|
|
|
|
|
Hello,
I want to know about charts....
How to draw Cutomized charts in Excel 2007.......(Using C# 2005 using COM)....
By using ApplycustomType() but how to use it in for Excel 2007...
Thanks..
Waiting for reply
|
|
|
|
|
while compiling My ComClient Iam getting this error .
error C2259: 'CComObject<class CComClient>' : cannot instantiate abstract class due to following members:
warning C4259: 'long __stdcall IDSNInfo::SetEngineInfo3(unsigned short *)' : pure virtual function was not defined.
what might be the error. Iam compiling in Unicode Relese Minsize.
|
|
|
|
|
Hello Krishnatv,
Check out the parameter to SetEngineInfo3(), i.e. type unsigned short*.
See whether this parameter corresponds with the parameter type declared in the IDL file.
- Bio.
|
|
|
|
|
HI Lim Bio Liong
Thanks for your great suggestion.you are right my SetEngineInfo3() parameters are different in .h file and IDL file.
Now I solved, Thanks once again.
Bye,
Krishna.
|
|
|
|
|
Hello Krishnatv,
Congratulations and best wishes to your project.
- Bio.
|
|
|
|
|
I need to pass user defined COM class through COM interface. I passed its interface as I can not pass its coclass. Please correct me if I am wrong.
The code was compiling. Now the problem is I have some data types in the coclass and can not use them from interface.
Could you please let me know how to solve this.
Here below is the code:
STDMETHODIMP CTP_Interface_Wrp::GetObligorInputData(ITP_CompInputData_Wrp *pVal)<br />
{<br />
AFX_MANAGE_STATE(AfxGetStaticModuleState())<br />
<br />
<br />
pTP_DLL_Interface->GetObligorInputData(pVal->pTP_CompanyInputData);
return S_OK;<br />
}<br />
Actually pTP_CompanyInputData is member vairable of TP_CompInputData coclass. This can not be accessed from its interface class ITP_CompInputData.
modified on Tuesday, January 08, 2008 10:43:01 PM
|
|
|
|
|
I fixed the problem by type casting interface with its coclass.
((CTP_CompInputData_Wrp*)pVal)->pTP_CompanyInputData
Please let me know if this is the right approach.
|
|
|
|
|
Interfaces will understand the data types, those are standard, or defined in .idl.
Search for UDT in COM, you will get lot of articles, telling how to achieve it.
|
|
|
|
|
I have created a class library in C# .Net 2005. I'm not able to create an instance of C# interface class in VC++/or COM dll. It gives an error
0x80040154 "Class not registered"
I also tried registering using regasm. It gives the message Types registered success
I'm not sure if i'm doing it right. Your help will be appreciated. I have attached the code snippet
C#
AssemplyInfo.cs
[assembly: ComVisible(true)]
[assembly: Guid("A4B0A925-5F27-42f3-B8D0-028248A7C210")]
ProcessClass.cs
amespace analyst1
[Guid(ProcName.InterfaceId)]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
public interface INewInFace
{
[DispId(1)] void BatchStart();
}
[Guid(ProcName.ClassId)]
[ClassInterface(ClassInterfaceType.None)]
public class ProcName : INewInFace
{
internal const string ClassId = "0129FAAF-456E-4e4b-9A72-9685841EAB66";
internal const string InterfaceId = "A2F72F34-0340-49f5-8FDF-7A23A74CC370";
internal const string EventsId = "46C617A1-C148-4c9a-B064-285892110FC4";
public void BatchStart() { }
}
VC++ code
#import "..\\analyst1.tlb" no_namespace named_guids
the follwoing line gives error message "Class Not registered"
INewInFacePtr cp (__uuidof(INewInFace));
|
|
|
|
|
Member 4219419 wrote: INewInFacePtr cp (__uuidof(ProcName));
The interface INewInFace is not a class therefore it's not surprising that you get Class Not Registered.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
Hi All,
Anyone having idea about alternate technology for COM or how COM can be used on MAC OS?
Thanks
Suraj Gupta
|
|
|
|
|
Can any body tell me please the meaning of "class ATL_NO_VTABLE abcclass"
vikas da
|
|
|
|
|
tasumisra wrote: Can any body tell me please the meaning of "class ATL_NO_VTABLE abcclass"
Documentation [^] can.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
ATL_NO_VTABLE is a macro which tells the compiler (if supported) not to generate a vtable for a class. For the Microsoft compiler it expands to __declspec(novtable) .
The Microsoft compiler implements virtual function calls as indirect calls through a table of function pointers, called the vtable. It locates the appropriate vtable through a hidden member in each object of the class called the virtual function pointer or vfptr. In each class's constructor (where the class or any of its bases have virtual functions), the vfptr is initialised to point to that class's vtable. Because C++ says to run each constructor, from base to most-derived class, in turn, at the beginning of executing each constructor the vfptr points to that class's vtable. Ultimately, when all the constructors have run, it points to the most-derived class's vtable.
Calling an abstract (pure virtual, with no implementation) function from a constructor is not allowed. There are conditions - such as if you call a non-virtual function from a constructor which in turn calls an abstract function - where you can accidentally do this. To fail cleanly, Visual C++ generates an R6025 error, 'pure virtual function called'. A pointer to the function that implements this occupies the abstract function's slot in the vtable.
If a class is never actually used as a concrete class, that is, no objects are ever created of that class, only of derived ones, the vtable will never be used and is therefore redundant. To save the cost of setting the vfptr unnecessarily, __declspec(novtable) tells the compiler not to generate this code. In addition, if the compiler and linker options are correct (/Gy for the compiler, and /opt:ref for the linker), the linker will discard the vtable if it's not otherwise referenced. If you do use the class as a concrete class, though, the vfptr will still be pointing to the last base that wasn't marked, or if all bases are marked __declspec(novtable), it will be uninitialised and you'll probably crash or corrupt memory.
ATL does not directly construct objects of your class. Instead, the OBJECT_MAP macros declare instantiations of CComObject using your class (where the template derives from your class). Therefore if you only use your classes with these macros, ATL_NO_VTABLE is safe.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
Hello everyone,
I am a php developer, but need to interface a dll with my php project. The code for calling the dll function is given on this site
http://www.rtslink.com/visualbasic.html[^]
I created a 'Standard exe' in the vb6 'New project' menu. Then i simply copy pasted this code on there. When i run the code i get an error ->
'Constant /fixed length string, array, user defined types and declarations are not allowed as public member of the object modules.'
I am not getting a single line of code. Can some one please point out the error and decipher the code for me.
Regards,
Chaitannya
|
|
|
|