|
pandit84 wrote: #import(..\..\..\MSADO15.dll);
You're expecting #import to work in an IDL file? Don't think so - I think you want import "MSADO15.idl";
pandit84 wrote: But i need to do #import inside a library block
(This is required for passing an argumnet to fun(RecordSetPtr *ptr) )
Really? This IDL seems to compile and build fine, even though the itnerface is outside the library declaration:
import "oaidl.idl";
import "ocidl.idl";
import "MSADO15.idl";
[
object,
uuid(7CD26371-4A6B-4234-A024-6690A53CA450),
nonextensible,
helpstring("Itest Interface"),
pointer_default(unique)
]
interface Itest : IUnknown
{
HRESULT GetCount([in]_Recordset* rs, [out]int* num);
};
[
uuid(D39DD965-FC96-4C0A-AA62-CA3F5F117685),
version(1.0),
helpstring("cccc 1.0 Type Library")
]
library ccccLib
{
importlib("stdole2.tlb");
[
uuid(F8AAE058-76E9-4F2C-995A-FB5B6565CED6),
helpstring("test Class")
]
coclass test
{
[default] interface Itest;
};
};
A quick test indicates that putting the interface definition inside the library definition makes little to no difference to the generated code.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi,
I have developed an application using MFC dialog based application in visual studio 2005.
I am trying to paint the title bar of my application.I have included the OXCaptionPainter
Class in my project and other related include files(OXDllExt.h, OXCaptionPainter.h, OXRegistryValFile.h, OXMainRes.h, OXHookWnd.h, utbstrop.h, UTB64Bit.h).
but Build fails showing the following error.
**********************************************************************************
1>Linking...
2>c:\program files\microsoft platform sdk for windows server 2003 r2\src\mfc\afximpl.h(145) : error C2011: 'CPushRoutingFrame' : 'class' type redefinition
2> c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxpriv.h(747) : see declaration of 'CPushRoutingFrame'
*************************************************************************************
Kindly help me to use this class of Ultimate ToolBox 93.
Thanking in advance
NamitaS
|
|
|
|
|
|
Hi
I included OXCaptionPainter.h file in MainDlg.cpp class of my project.
The header files in the COXCaptionPainter.cpp class are included as below:
#include "StdAfx.h"
#include <shlwapi.h>
#include "OXCaptionPainter.h"
#include "UTBStrOp.h"
#include "UTB64Bit.h"
#include "WTypes.h"
#ifndef __OXMFCIMPL_H__
#if _MFC_VER >= 0x0700
#if _MFC_VER >= 1400
#include <afxtempl.h>
#endif
#include <..\src\mfc\afximpl.h> ********** I suppose something wrong in this line.
#else
#include <..\src\afximpl.h>
#endif
#define __OXMFCIMPL_H__
#endif
#ifndef OXCP_NO_SAVESTATE
#include "OXRegistryValFile.h"
#endif // OXCP_NO_SAVESTATE
Thanks and Regards
Namita
|
|
|
|
|
Did you check my link ?
So, do you or not have include guards in your OXCaptionPainter.h header file ?
|
|
|
|
|
I am sorry I had not seen the link earlier.
No, I did not include the gaurds in OXCaptionPainter.h file.
Is this the cause of error that I am including the OXCaptionPainter.h file twice. First time in MainDlg.cpp and
second time it is included in OXCaptionPainter.cpp.
Thanks again
Regards
Namita
|
|
|
|
|
NamitaS wrote: Is this the cause of error that I am including the OXCaptionPainter.h file twice. First time in MainDlg.cpp and
second time it is included in OXCaptionPainter.cpp.
Was it a question ? Anyway, the source of your error is that you didn't put include guards in your header file. The purpose of include guards is to protect against multiple inclusions. It would be really a hassle if you had to make sure your file is included only once...
|
|
|
|
|
Thanks a lot sir.
I really appreciate that you invested your time to look into my problem.
Thanks
|
|
|
|
|
Hi,
i have an ActiveX dll(using ATL) in webserver and i included it in my html page(using object id and codebase) ..
and when client requests for that html the dll gets installed(registered) with his permission but the issue is it"s getting successfully installed and registered on Admin machine..but in non-admin machine even the message box that prompts to install dll is not displaying.....is there any limitation for non-admin...
when i tried to register the dll using regsvr32 in nonadmin it works fine but i was unable to do it(Install and register dll) thru html...
I searched for implementing REGfreeCOM but i couldn"t get how to achieve the same....
|
|
|
|
|
|
this is nmea protocol and google map sync program
don't chage the value ..
<a href="http://www.yunpil.net/web1.zip">down</a>
|
|
|
|
|
yunpil wrote: this is nmea protocol and google map sync program
don't chage the value ..
what you mean to say?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Could you please provide a dictionary in order to decipher you post?
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
gps=Graphic Programming System!
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
GPS=Grand Parent's Suggestions.
BTW good THHB's action.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
|
Hi All
I am useing COleDateTime to get current time.Code is here
COleDateTime m_Date;
CTime time = CTime::GetCurrentTime();
CString cdate;
cdate=time.Format(_T("%d %b %Y"));
I have also one more CString oldetime="29 Jan 2009".Now i want to use "TimeSpan".How can i use time TimeSpan ?Plz help me
|
|
|
|
|
Use the operators that are overloaded in CTimeSpan class.
operator + – Adds and subtracts CTimeSpan objects.
operator += –= Adds and subtracts a CTimeSpan object to and from this CTimeSpan.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Thanks for reply.It's working.But CTimeSpan
CTimeSpan timeSpan = time- oldetime;
long day = timeSpan.GetDays();
How can i convert long day values in int or SCtring.Plz help me
|
|
|
|
|
See CString::Format function to convert long value in CString form.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
|
My code segment is as
TCHAR ProxyHost[20];
strcpy(ProxyHost, m_proxy_host_ip);
I am getting an error like
'strcpy' : cannot convert parameter 1 from 'TCHAR [20]' to 'char *'
How can I solve this? Plz help me.
Thanks
|
|
|
|
|
CString Management[^]
Read this article rather than posting your questions related to type conversions.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
I have read that article. But not getting any help regarding this problem.
Can u please tell me the solution?
Thanks.
|
|
|
|