|
How uses ATL to establish to have the doc/view style ActiveX control. Best, may provide an example.
I want to establish treectl in the left side, right side establishes listctl. A little likes the windows explorer.
alantop
|
|
|
|
|
How access Safearray to be quicker in ATL?
alantop
|
|
|
|
|
|
But, I didn't find a quicker accees the method.
alantop
|
|
|
|
|
well i am hello world newbie in aTL.I am using VS.net 2003 for practise.I am wondering why so many imports are required for a hello world type of program.These are generated from ATL wizard.
import "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\prsht.idl";<br />
import "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\mshtml.idl";<br />
import "c:\program files\microsoft visual studio .net 2003\vc7\platformsdk\include\dimm.idl";<br />
import "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\mshtmhst.idl";<br />
import "c:\program files\microsoft visual studio .net 2003\vc7\platformsdk\include\docobj.idl";<br />
import "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\exdisp.idl";<br />
import "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\objsafe.idl";
|
|
|
|
|
I am trying to add WTL support to the WinAPI DLL project.
I was write in the stdafx.h:
#include <windows.h>
// C RunTime Header Files
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include <atlbase.h>
#include <atlapp.h>
extern CAppModule _Module;
#include <atlwin.h>
#include <atlgdi.h>
#include <atlmisc.h>
Compiler messages was:
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\WinSock2.h(1149) : warning C4005: 'BIGENDIAN' : macro redefinition
c:\MyProjects\TQPS\402Headers_Libs\Win\XTPLAT40.H(148) : see previous definition of 'BIGENDIAN'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlcore.h(246) : warning C4002: too many actual parameters for macro 'LoadResource'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlcore.h(246) : error C2589: '(' : illegal token on right side of '::'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlcore.h(246) : error C2059: syntax error : '::'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MsXml.h(1932) : error C2059: syntax error : '('
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MsXml.h(1933) : error C2238: unexpected token(s) preceding ';'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\PropIdl.h(915) : warning C4002: too many actual parameters for macro 'Create'
and so on... There was 75 errors. That is the problem? The same includes in a blank WinAPI project are working well.
Could anyone help me?
|
|
|
|
|
Hello dandy_andy!
You have make like this:
CAppModule _Module;
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
{
HRESULT hRes = ::CoInitialize(NULL);
ATLASSERT(SUCCEEDED(hRes));
hRes = _Module.Init(NULL, (HINSTANCE)hModule);
ATLASSERT(SUCCEEDED(hRes));
}
break;
case DLL_PROCESS_DETACH:
{
_Module.Term();
::CoUninitialize();
}
break;
}
return TRUE;
}
PM
|
|
|
|
|
Hi,
I'm pretty new in programming in c++.net, and I was wondering if someone could help me out.
The goal is to control Abobe Acrobat so that it displays a pdf file in my own c++.NET application. I have found an example in the Acrobat SDK called ActiveView which is exactly what I want to achieve, but I have really no idea how it works.
Can anybody give me an explination of how it works, or how to make a start?
thanx!
Bas
|
|
|
|
|
|
Hi,
I developing a component using ATL. This component is suppose to generate events. The wizard generated the Proxy Class implementation of Events (CProxy_xxx).
I am trying to Fire an event using this class implementation.
But I am recieving 0x8002802B ( -2147319765 ) TYPE_E_ELEMENTNOTFOUND error.
I am passing two parameters which are of type IDispatch*
The client used is VBScript.
Does someone here has any idea about what possibly would have gone wrong?
Thanks for looking into this.
S o h a i l K a d i w a l a
modified 21-Apr-21 21:01pm.
|
|
|
|
|
hi there,
im using ado in vc++ for access db
i have used this query but it shows
"data type mismatch in critria expressing"
SELECT * from FDetails where ddate = '05/29/2006'
ddate is datetime field
any one has solution for this problem
regards,
Gan
|
|
|
|
|
Maybe
SELECT * from FDetails where ddate = "05/29/2006"
or
SELECT * from FDetails where ddate = #05/29/2006#
I believe this is not a post for the ATL/WTL/STL group...
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
HI
ya its working.
I had not got any response from ADO GROUP hence i posted here
thank you
|
|
|
|
|
Something like this:
SELECT * from FDetails where to_char(ddate, 'mm/dd/yyyy') = '05/29/2006'
|
|
|
|
|
Hi
Gan,You have not any mistake in the query, But problem may there if your format in oracle registry is different.check the registri.
For urjent you can find by using like statement for date field.
Thanks
Pramod.
Pramod Kumar Dhal.CMS Computers ltd.,Mumbai.
|
|
|
|
|
Hi,
I have an Window which has Edit Controls.
How do I change the font for an edit Control?
I am unable to trap the Backspace key for the Edit Control. When ever I press Backspace on the Edit Control, the backspace is caught by the parent window. Can anyone tell me why?
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
On setting the font: look up the WM_SETFONT message. You don't mention what libraries you're using but some libraries will have wrapper functions which send this message for you.
Steve
|
|
|
|
|
Hi.
Thanks for your reply. It is indeed the WM_SETFONT message. I am using WTL 7.0 so I could do it with SetFont() .
One queston which I would like to ask is, How do I change the Height of an Edit Control? Well, I am using SetWindowPos , but the height is not being set accoring to what I give the SetWindowPos function. Does the Edit Control have any other means by which its height can be changed? Also you may be thinking that the height of the control will not be smaller than the height of the font. Let me assure you that I have changed the height of the font using the SetFont() method.
Any suggestions?
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
SetWindowPos should work just fine. e.g.
::SetWindowPos(hWnd, NULL, 0, 0, 100, 100, SWP_NOZORDER|SWP_NOMOVE);
Steve
|
|
|
|
|
Hi Stephen.
Stephen Hewitt wrote: SetWindowPos should work just fine. e.g.
Well, SetWindowPos is not doing the Trick. That's why I asked!
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
Did you:
1. Pass the correct window handle. To check you can do something like call GetWindowText with the HWND and make sure its the correct control; or you could use Spy++.
2. Did you pass the correct flags to SetWindowPos ?
Steve
|
|
|
|
|
Hey Stephen,
I am sure you aren't gonna believe this but I have been a #$%^#$ Ass . I wasted one whole day trying to figure out why SetWindowPos is not working and I found the culprit. The culprit is ME. Instead of passing the Height and Width to the SetWindowPos function I was actually passing the position for the right and bottom corners of the control relative to the Left and top positions.
It was something like, if the top of the control is 20 then to get a height of 20, I was passing Top+20 to the Height argument. How silly of me.
Anyways, thanks a lot for your support. I really appreciate it.
Thanks once again.
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
I want to apply HTML hooking from my ATL project.
I seen articles from MFC examples,
i don't know how to use them in ATL.
If someone has idea then please reply.
|
|
|
|
|
What do you mean by "HTML hooking"?
Steve
|
|
|
|
|
IE events and/or javascript?
--
100% natural. No superstitious additives.
|
|
|
|