|
basementman wrote: ActiveX Documents are a little-used technology that appeared in the mid '90s to allow embedding other document types within an application. For example, when you click a link in IE that loads an excel or word document, Excel or Word runs inside the IE application.
Thank you.
-Prakash
|
|
|
|
|
The Plugins are kind of viewer, which can load any special document and display it.
The behave is little different from other Active X Controls.
I am looking for any reference sample.
|
|
|
|
|
When using an application through automation you may not wish for error messages to appear, this being because if an error occurs your application would hang waiting for you to deal with the dialog box prompted by that error. This seems to be something to do with the modality of error messages. Is there something i can set prior to say calling CWinApp::OpenDocumentFile(filename); so that an errors generated by this call do not stop the application from continuing. I'm ok if the error message means that the application crashes or fails or whatever, i just want to provide that option to the user so that they can deal with the error themselves...does that make sense and is that possible (i'm thinking its gotta be!)
Thanks
Will
|
|
|
|
|
Is the dialog box that you are talking about is related to ASSERT dialog box?
If yes, build in Release version, In release version you wont see the ASSERT dialog box.
-Prakash
|
|
|
|
|
no its not, so that doesnt solve the problem
|
|
|
|
|
Can you type out the message that you see in the dialog box?
btw, it is not worth ignoring any error.
may be we can identify the problem and solve it permanently.
-Prakash
|
|
|
|
|
I dont wish to ignore the error, i just dont want a dialog box telling me there is an error, this is to be used under automation, i just wish to have the option. The error displayed is
"an unknown error occured while accessing C:\myfile"
But i created this error myself, the file is corrupt and is meant to be, i just dont want the dialog box telling me
Will
|
|
|
|
|
I have written COM objects, but I never pop messages from the COM Object. The com object should always return an error using the HRESULT return value. The client should deside wheahter to show the dialog or not or take appropriate action against the error.
You say that you are poping the error, so it is doing what it is intending to do.
may be you need to change the design a little bit but a correct design solves the problem.
Hope I helped you.
-Prakash
|
|
|
|
|
I am developing a win32 based application which acts as interface between two applications. The Interface application has to act as a service application. Is there any option to make the interface application as an service or develop the entire application as windows service application. Can you help me by giving your suggestions.
chandu
|
|
|
|
|
the easiest way is to create a new VisualStudio project using 'ATL COM AppWizard', and then select 'Service' as server type. Wizard will create everything for you.
if you want to do it manually, you will have to adapt your application to conform to the rules of
SCM[^].
more details here: Services[^]
|
|
|
|
|
|
Where can I get the winfax.h & winfax.lib files for sending the FAX using the FAX API.
aasstt
|
|
|
|
|
|
HI Friends,
Will anyone please tell me how i can use my C++ modules/Interfaces in .Net.
I want to use them in C#.
Thanks,
Sumit
Sumit
|
|
|
|
|
what exactly do you mean by c++ modules? if you mean dll, you will have to use P/Invoke (import functions through DllImport attribute). if you mean COM libraries, you just have to add a reference to it, VisualStudio will use tlbimp.exe to create an RCW[^]
|
|
|
|
|
Sumit Kumar Khatri wrote: I want to use them in C#.
COM/ATL is Key to success there buddy
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I have some questions about userland hooks and this article Process-wide API spying - an ultimate hack by Anton Bassov.
QUESTION 1:
why "ProxyProlog" + "Prolog"? Why not just "Prolog" - ie. eliminate "ProxyProlog" and jump directly to "Prolog" intead?
QUESTION 2: The following code in DllMain of the injected Dll? Is there any place where we can download the source?
<br />
IMAGE_DOS_HEADER * <br />
dosheader=(IMAGE_DOS_HEADER *)hMod;<br />
<br />
IMAGE_OPTIONAL_HEADER * opthdr =<br />
(IMAGE_OPTIONAL_HEADER *) ((BYTE*)hMod+dosheader->e_lfanew+24);<br />
<br />
IMAGE_IMPORT_DESCRIPTOR <br />
*descriptor=<br />
(IMAGE_IMPORT_DESCRIPTOR *)(BYTE*) hMod +<br />
opthdr->DataDirectory[ IMAGE_DIRECTORY_ENTRY_IMPORT]. <br />
VirtualAddress;<br />
<br />
while(descriptor ->FirstThunk)<br />
{<br />
char*dllname=(char*)((BYTE*)hMod+ descriptor ->Name);<br />
<br />
IMAGE_THUNK_DATA* thunk=( IMAGE_THUNK_DATA*)((BYTE*) hMod +<br />
descriptor ->OriginalFirstThunk);<br />
<br />
int x=0;<br />
while(thunk->u1.Function)<br />
{<br />
char*functionname=(char*)((BYTE*) hMod +<br />
( DWORD)thunk->u1.AddressOfData+2);<br />
<br />
DWORD *IATentryaddress=( DWORD *)((BYTE*) hMod +<br />
descriptor->FirstThunk)+x;<br />
x++; thunk++;<br />
}<br />
<br />
descriptor++;<br />
}<br />
<br />
struct RelocatedFunction{DWORD proxyptr;<br />
DWORD funtioncptr;char *dllname;char *functionname;};<br />
<br />
BYTE* ptr=(BYTE*)HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,32);<br />
RelocatedFunction * reloc=(RelocatedFunction*)&ptr[6];<br />
DWORD addr=(DWORD)&ProxyProlog;<br />
reloc->proxyptr=addr;<br />
reloc->funcname= functionname;<br />
reloc->dllname=dllname;<br />
memmove (&reloc->functionptr, IATentryaddress,4);<br />
ptr[0]= 0xFF; ptr[1]= 0x15; memmove(&ptr[2],&reloc,4);<br />
DWORD byteswritten;<br />
WriteProcessMemory(GetCurrentProcess(),IATentryaddress,&ptr,4,&byteswritten);<br />
QUESTION 3:
What header do we need to include?
Thanks in advance. Thanks!
-- modified at 3:35 Tuesday 3rd January, 2006
|
|
|
|
|
You can ask the question to the author himself.
You can find this place just below the article you are talking about, ie the end of the article.
Jesus Loves You and Me <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Owner drawn wrote: You can ask the question to the author himself.
You can find this place just below the article you are talking about, ie the end of the article
yeah well. I did. No one is answering.
|
|
|
|
|
I create a application Of MFC AppWizard(exe),its type is "Dialog Based".There is no error in compiling.But it present a assert bug when execute programme:
File: dlgdata.cpp
Line: 624
What happens in my application? Anyone who can help me.
|
|
|
|
|
Try to stack trace in debug mode and find out from where did it originate or from which function in your app did it start. It will help you and us.
Jesus Loves You and Me <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
-- modified at 3:12 Tuesday 3rd January, 2006
|
|
|
|
|
It seems that you are trying to call some data exchange function while control is not yet created (e.g. you can't do that for a control in dialogs constructor, because control is not yet created). could it be that you are calling UpdateData(TRUE) in dialogs constructor? if so, try to move that code to WM_INITDIALOG handler (OnInitDialog). however, this is just a wild guess without your code.
|
|
|
|
|
|
I want to implement a PDF Image file as multipage where each page consists of one image.Can you send the source code for the above.
Thanks & Regards
Ramnath
Ramnath Panda
|
|
|
|
|
I think you will need to save your image files as TIFF files first, then they will be easy to concatenate, and then convert to PDF . LibTiff does that. Search for LibTiff and download it. It has various tools to concatenate tiffs , convert to pdf etc.
You did not mention to convert what format files to PDF . If they are tiff files, then half the work is done. If they are another format, then you could use CxImage (search for it on this site) to convert them to tiff first, then use LibTiff on them.
this is this.
|
|
|
|