Programmatically.. Ankush Mehta
Ankush Mehta
Posts
-
Lock a folder/Directory -
Lock a folder/DirectoryHi all, How can i make a folder or directory inaccessible to be edited or viewed of its internal structure? Kindly Guide. Regards, Ankush Mehta
-
Optical Character recognition(OCR)i want to make an OCR application & extract text from an image. i am trying the following approach. 1) i can convert an image to PDF. 2) i can extract text from PDF. So, theoretically, perhaps OCR is possible this way- to convert image to PDF & then convert the PDF into text & do whatever search operations you have to. http://www.altimate.ca/flash/ocrdsktp.htmshows the above approach. However, i can extract text from any normal pdf, it is not happening with a pdf that has been generated from an image.What things may i be missing? Kindly Guide. Ankush Mehta
-
printing .html/htm pageHello all, using a console application i want to print a webpage(html/htm) saved on my disk.How can i do that? i have done a lot of work on it & i am unable to find the solution.I am wondering whether there is a solution to it in vc++.Shellexecute definitely doesn't print in this case.Kindly Help. Regards, Ankush Ankush Mehta
-
Printing.eml (Internet E-Mail Message) Type of fileHello all, I have .eml (Internet E-Mail Message) Type of file on my disk. I want to print it.Do i need to automate outlook express(How??) or is there any other better way.. Regards, Ankush Ankush Mehta
-
Dilemma..VC++ ..Right choice???So buddy you mean right now i should focus myself on vc++.(I am a 2005 passed out comp.engg. graduate working in vc++ 6.0).After i am strong enough, i should move to .net.How much time in vc++ will be okay. thanks for guidance... Regards, Ankush Mehta, erankushmehta@rediffmail.com Ankush Mehta
-
Dilemma..VC++ ..Right choice???well, i would also like to know the areas in which i can make my career using vc++/vc++.net platform. Ankush mehta, Dewsoft Solutions, Mumbai. erankushmehta@rediffmail.com
-
Dilemma..VC++ ..Right choice???Hi all, Please guide me.i am working in vc++ 6.0.Do i need to shift to .net?(i don't have any idea of .net).What are the areas in which i can make my career using vc++ platform.Is my fear about insecurity(if i don't shift to .net) well founded? Regards, Ankush Ankush Mehta
-
Class redefinition errorWhat line i am following................ i heard of namespace.as i am a newbie, i am not sure about this.at the top of my main .cpp file i tried using this: namespace anyname1 { #include "msacc9.h" } namespace anyname2 { #include "excel9.h" } But this again didn't work out... Seeking help......Please.........:(( Ankush Mehta
-
Class redefinition erroryeah, toxcct you are right. Following errors are generated: error C2011: 'FormatConditions' : 'class' type redefinition error C2011: 'Module' : 'class' type redefinition error C2011: 'Modules' : 'class' type redefinition error C2011: '_Application' : 'class' type redefinition These classes exist in both the headers(but they have different definitions.e.g, _Application object is an open access db for access header file while _Application object for excel header file is an open excel).I have used appwizard to generate related files.These headers are provided by msoffice. Any Ideas please...... Ankush Mehta
-
Class redefinition errorwell, please forgive me for asking rather stupid questions. i am a newbie.Let me restate what i have done. the libraries msacc9.olb,excel9.olb provided by ms-office for automation are added to the project.These libraries contain header files msacc9.h & excel9.h. i include these header files at the top of the .cpp file of my application like this. #include"msacc9.h" #include"excel9.h" Now, please give me directions to resolve the clash(classes like _Application are in both libraries) Ankush Mehta -- modified at 6:13 Wednesday 14th December, 2005
-
Class redefinition errorNo, i didn't add any such code.where should i add it.please tell in detail. Ankush Mehta
-
Class redefinition error1)Actually, what i am doing is to integrate two separate Excel & access automation applications into one. 2)First, i finish Excel automation(used excel9.olb(library) & included excel9.h as header file).Upto now it works fine. 3)Now The problem begins. For access automation functionality i use msacc9.olb & include access9.h as header file.As soon as i compile, even before adding any functionality, it shows class redefinition errors for _Application etc. Apparently, these are due to the object models of Excel & Access which have some same class names like _Application etc. which cause the clash. There seems nothing wrong with the code but with the libraries of access & excel which have some same class names. How should i resolve the clash?Please, Please, Please Help!!:(( Ankush Mehta
-
printing webpage in console based applicationPlease Guide how can i print a webpage in a console application. Actually i achieved printing using webbrowser control in dialog based application.Now i want to print in console application. In other words,in dialog based application i used web browser control(Active X component), dragged it on my Dialog form & used its methods to achieve printing. Now how can i achieve printing webpage in console based application.ShellExecute won't work to print a webpage(neither in dialog-based nor in console), it is confirmed. Please Guide... It is a bit urgent:(( Ankush Mehta
-
Little Questionwell, one last question how to typecast to int......plz answer this one sfdougl...:) Ankush Mehta
-
Little QuestionNo errors, But no output also just as with the first shell execute statement i sent:doh:... Ankush Mehta
-
Little Questionwhen i use the copy-paste code line given by you following error is generated.i am using VC++ 6.0. cannot convert parameter 1 from 'char [13]' to 'struct HWND__ *':( Regards, Ankush Mehta
-
Compatibility issue in Office automationWell, let me explain the scenario. i wanted to create an application to print 1) Word Document 2) Text file 3) Excel Sheet 4) Access tables 5) Powerpoint Slide 6) Webpage 7) images(bmp,jpg,jpeg,gif) i initially started with using automation.As an afterthought, i found 1),2),3),7) can be printed using shell Execute. However, for 4),5),6) automation is the solution(that is what i think).Since my application is supposed to run on muliversion, Late binding must be used.As a matter of fact, i have even achieved printing using automation but i don't know if it is early binding or late binding and that is where i don't have any idea buddy...... Ankush Mehta
-
Little Questionthanks sfdougl, 1) Agree 2) Agree 3) Agree 4) Agree,automation is the option in my case because i want to enumerate tables in the database programmatically & then proceed towards printing.i think i am right.plz tell if u have other option to enlist tables in database. 5) it doesn't work in my case 6)I could not manage printing a webpage with ShellExecute.My code is like this:
ShellExecute(NULL,"print",m_FileName,NULL,NULL,SW_HIDE);
7)Prints only bmp.I changed extension to bmp, printed & renamed filename to original extension Please tell me about point 6) after trying it out.Also tell me about point 4) if you have something to tell about it. Regards, Ankush Mehta -
Compatibility issue in Office automationActually you used office 2000 type library.right!Now your application will work fine in all probability for all the later versions.However, try it on a machine with some prior office version(prior than office 2000) & it may fail. To play safe, it is suggested to use as earliest possible type library,probably office 95.However, there is an exception for access 97 which fails if run on access 2000 machine.Moreover, this early binding is not entirely reliable because some methods may be unavailable. The solution is late binding which although cost an overhead , it is for multiversion office automation.One hybrid binding(DISPID binding) is also used. i am still going through it to get more info. I would like anyone to help & shed some light on late binding & hybrid binding(DISPID binding).Looking forward to some ideas, Regards, Ankush Mehta