|
Hi
Is there any way by which i call adobe plugin *.api files in my vc application and call its functions.
|
|
|
|
|
I don't think so. Because Adobe provides SDK mainly for creating plugins for adobe acrobat itself. Only Acrobat is able to know/process the exported functions in the *.api files. I think acrobat SDK doesnot provide any API to process the exported functions in *.api which we can use from our own applications.
...always be cool
|
|
|
|
|
Actually I have loaded the *.api file by changing its name to *.dll. I got a pointer to first function ( called in the plugin by acrobat) PlugInMain().
The difficulty is that I dont know wat the parameters ?
Any help will be greatly appreciated..
Thanks in advance..
bye
|
|
|
|
|
Whether how to know belongs HWND to CScrollView or to a derivative class?
Best regards,
Eugene Pustovoyt
|
|
|
|
|
HWND is a handle you cant determine to which class it belongs too. You can somehow determine to which thread it belongs too.
Still Alive!!!
Thank you God.
|
|
|
|
|
Strictly saying, HWND cannot be "derived" from CScrollView , because HWND points to a Win32 entity, while CScrollView is a MFC class.
If you want to resolve, whether the window has scrollbars, use
if (GetScrollInfo(hWnd, ...) == TRUE)
Or, if you have the CWnd -class of the window, use simpler
if (wnd->IsKindOf(RUNTIME_CLASS(CScrollView)))
Robert-Antonio
"I launched Norton Commander and saw, drive C: on the left, drive C: on the
right...Damn, why I need two drives C:??? So I formatted one..."
|
|
|
|
|
if (wnd->IsKindOf(RUNTIME_CLASS(CScrollView)))
Tnat's all I need. Thank you very much.
Eugene Pustovoyt
|
|
|
|
|
wnd is not a handle to the window it is an object of CScrollView your question was wrongly framed.
Still Alive!!!
Thank you God.
|
|
|
|
|
I wrote follow ...
CScrollView * pScroll = (CScrollView*)CScrollView::FromHandle(hWnd);
if (pScroll->IsKindOf(RUNTIME_CLASS(CScrollView)))
Thank you again.
Best regards,
Eugene Pustovoyt
|
|
|
|
|
This method should work, but only in the UI thread of your app:
CWnd *pWnd = CWnd::FromHandle(hwnd);
if (pWnd->IsKindOf(RUNTIME_CLASS(CScrollView)))
{
}
Roger Allen - Sonork 100.10016
Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...
|
|
|
|
|
Thanks Roger for addition.
Eugene Pustovoyt
|
|
|
|
|
Please help me I lost my night sleep. Tell in simple code.
From my VB client I am passing simple string "Siddharth", to a win32 dll function GetUserName(DATATYPE)(if DAtatype is BSTR or wstring tell me how to convert it into string in dll function declaration). My program should run in 98 as well as NT. I am trying lot of examples but they all are for long. When I convert it to string nothing works out.
VB client
Dim x as string
x = "String"
GetStringFromVb(wstring *)
end
Win32
GetStringFromVb(wstring*)
{
vector MyString;
MyString.push_back(wstring);
{
//..Lot of string manipulation
}
}
One more issue. in the win32 DLL.h if I declare stl parameter, it is not accepted by the compiler.
|
|
|
|
|
Widebytetomultibyte will help you convert wstring to string.
But since the input is from VB i guess it must be BSTR
so to convert BSTR to string
put USES_CONVERSION as the first line in the function
and when you want to convert BSTR to string
use this macro OLE2A to finish the job.
Still Alive!!!
Thank you God.
|
|
|
|
|
Bulls eye boss, in identifying the problem. Really U are great. I am trying it. Will get back to you.
One point I want to clarify USES_CONVERSION is not included in Index part of MSDN. Nor OLE2A
|
|
|
|
|
SiddharthAtw wrote:
Really U are great
humm, ab chane ke jhad pe mat chada.
Still Alive!!!
Thank you God.
|
|
|
|
|
Meri kya aukaat ki guru logo ke chana ka Jhad par chadao. It gave me breather, believe me.Right now experimenting with the issue.
|
|
|
|
|
Mr.Prakash wrote:
humm, ab chane ke jhad pe mat chada
jhad chana chane ka jhad chakkar ke hai
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
include atlconv.h for uses_conversion stuff
also you can refer this link for futher understanding
USES_CONVERSION[^]
its not a complete doc but its good to understand and about the link in MSDN
try searching it, i guess its in of the knowledge base article.
Still Alive!!!
Thank you God.
|
|
|
|
|
During write IIS Filter, I want to find and send message to other windows, but I find the ::FindWindow and ::PostMessage seems does work inside IIS Filter codes. I think maybe they work in different desktop. Would you please tell me how can I make them communicate? Thanks a lot!
|
|
|
|
|
Have you tried checking the option to allow the WWW service to interact with the desktop? This would be in the controlpanel/services applet.
onwards and upwards...
|
|
|
|
|
I have an unmanaged MFC project that I am referencing from a managed MFC project. The unmanaged project builds successfully, but the build of the managed project fails during the link because it cannot find the external symbols from the unmanaged class. In what directory should the dll file be placed for the unmanaged project? The intellisense operates correctly referencing the unmanaged class within the source for the managed class. However, the linker is not finding the external symbols for the compiled class. Any suggestions?
|
|
|
|
|
|
Hi !
(calling an ActiveX thing from Delphi 7)
Any clues as to why I am getting the following error msg ?
error msg; Undeclared identifier: 'Layer2'
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<Script
procedure TMinMap.MGMap3onMapLoaded(ASender: TObject;
const Map: IDispatch);
var
Layer2: String;
begin
Layer2 := 'Streets-All-With Names';
TMinMap.Layer2.setVisibility(true);
end;
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Thanks, Cliff
|
|
|
|
|
woah! what language is that? Greek?
Still Alive!!!
Thank you God.
|
|
|
|
|
Greek would possibly be easier !
It's a messy post, but between the<<<<<<<<<<<<'s
is a piece of Delhpi 7 script that is trying my patience. There isn't a Delphi forum here so. . .
|
|
|
|