|
Then I guess you need to try contacting one of the authors of those packages.
Veni, vidi, abiit domum
|
|
|
|
|
really why those authors disclose their logics..
it means codeproject not help me for this...
|
|
|
|
|
Le@rner wrote: it means codeproject not help me for this... No, it means we don't have the answer.
Veni, vidi, abiit domum
|
|
|
|
|
can u please suggest me any other option or way to move on.
|
|
|
|
|
The only thing I can suggest is more Googling, and maybe some initiative. You also need to consider why passwords exist; if it was easy to crack them then there would be no reason to use them in the first place.
Veni, vidi, abiit domum
|
|
|
|
|
hi all,
is there any option to know the office file is password protected or not?
thanks in advance.
|
|
|
|
|
Try opening it?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
I m using excel and word automation to open files is there any other method to chk file without opening the file is password protected or not.
coz other than excel and word files I m not able to open using automation....
and also if the file open function is inside the loop of random password generator and try with every new password to open the file the program becomes slower.
please help me,
|
|
|
|
|
Le@rner wrote: if the file open function is inside the loop of random password generator and try with every new password to open the file the program becomes slower. If you do not know the password then maybe you are not supposed to be opening the file.
Veni, vidi, abiit domum
|
|
|
|
|
yes file is not open and return exception of wrong password until the correct password is generated.
that's y I m taking help for another approach..
|
|
|
|
|
Le@rner wrote: ...return exception of wrong password until the correct password is generated. That seems to be the answer to your "is there any option to know the office file is password protected or not" question.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
not I m trying to open the file with different password if password is correct its open otherwise its generate the exception...
in my question "to identify the file is password protected or not" I m want to chk just before open the document.
|
|
|
|
|
In object-oriented languages, the term "interface" is often used to define an abstract type that contains no data, but exposes behaviors defined as methods. A class having all the methods corresponding to that interface is said to implement that interface. Source: WIKIPEDIA
I do not understand that how certain interfaces of Media Foundation APIs are getting created and working. Take IMFSourceReader for example. I understand that it gets created using MFCreateSourceReaderFromXXXX functions. But just a function call and nothing else?
- It should not be working in the first place.
- What class creates and implements it in the system?
Thanks for any info.
|
|
|
|
|
It's not an interface that gets created, though an interface will be made available for you to call, its an object that implements the interface that gets created, in this case an object implementing the IMFSourceReader interface. The object created just exposes the interface to the outside world as a known means of using it but when you call a method (or function) on the interface, the call is immediately passed on to the object to carry out the actual work.
|
|
|
|
|
Hi all .
step 1: create new project on visual studio (project1.exe)
step 2: create WinUtils.h and WinUtils.cpp on project1.exe and main1.cpp
step 3 : add new project (project2.exe) and create main2.cpp
Now I want to use WinUtils.h and WinUtils.cpp on project2.exe
example
//-----------------main2.cpp--------------------
#include "../utils/WinUtils.h"
int main()
{
bool value = WinUtils::isWin64bit();/ function static
return 0 ;
}
//--------------------------------------------
when i build code ,I saw error:
+ error LNK2001: unresolved external symbol "public: static int __cdecl WinUtils::Is64BitOS(void)" (?Is64BitOS@WinUtils@@SAHXZ)
+ fatal error LNK1120: 1 unresolved externals
I make sure that isWin64bit() function is "public static"
Please help me this problem .because my code has very much h and cpp files.
Thanks
Thong LT
modified 18-Dec-13 11:49am.
|
|
|
|
|
Did you add the file "WinUtils.cpp" (and optionally WinUtils.h) to the new projects?
Including the header file will make your project compile , but when linking will fail if the code is not there.
I'd rather be phishing!
|
|
|
|
|
Thank Maximilien,
I didn't add this file . I will add this file.
How to have any ways ? . if we don't add WinUtils.cpp and WinUtils.h inside new project.
I know will dll , lib files we only use configure but we don't need add h and cpp file inside new project.
Thanks
Thong LT
|
|
|
|
|
If the code WinUtils.cpp will be used as a library, then it would be a good thing to either build them as a DLL or a static library (.lib).
After that, you will only need to have the header file (WinUtils.h) and you will link with the library.
I'd rather be phishing!
|
|
|
|
|
If you don't put the cpp file, it won't get compiled, therefore the object doesn't exist. Header file is simply a reference, it doesn't produce an object.
|
|
|
|
|
Thanks all friends .
My code now run well .
I have some error and how to fix .
+ fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
Configuration Properties\Gerenal\Use of MFC and select "Use MFC in a Shared DLL"
+ error LNK2001: unresolved external
Configuration Properties\Linker\input\Additional dependencies\ Then go to the end and type ";ws2_32.lib".
or use code:
#include <shlwapi.h>
#pragma comment(lib,"shlwapi.lib")
#include <shlobj.h>
// Link with Iphlpapi.lib
#pragma comment(lib, "IPHLPAPI.lib")
Thong LT
|
|
|
|
|
Are you asking a question? ...I'm not sure what you're saying.
|
|
|
|
|
Hi friends,
Am developing MFC server client application. Initially it is working fine but after some time it throw some error below see that
_CRTIMP void _cdecl _CrtDbgBreak(
void
)
{
DebugBreak();
}
call stack not shows any previous function.
I couldn't find exact location. Please help me.
Thanks
|
|
|
|
|
Such an error is usually caused by a buffer overrun on some stack-based variable.
The reason it doesn't show a call stack is that the stack has been corrupted due to the program writing to locations it shouldn't be writing to.
The way I would track this down is to look at all the locations where you use stack-based memory buffers such as strings, and examine the code for what could cause an overrun.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Memory leaking problem is quite common....I suggest you to use some good C writer books to handle these problems.
|
|
|
|
|
Before you are starting the debug session from VS:
- Ctrl+Alt+E (Exceptions Dialog from the Debug Menu)
- Check the all boxes there in
- F5 (Start)
The Debugger will stop exactly at the "bugged" line
They sought it with thimbles, they sought it with care;
They pursued it with forks and hope;
They threatened its life with a railway-share;
They charmed it with smiles and soap.
|
|
|
|