|
|
Hi,
When I use "PathFileExists()" in my MFC code, it is giving me Linking error as follows,
Linking...
aDlg.obj : error LNK2001: unresolved external symbol __imp__PathFileExistsA@4
Debug/a.exe : fatal error LNK1120: 1 unresolved externals
Is ther any Library/ Header File for it?
Best Regards,
Aniket
|
|
|
|
|
#include shlwapi.h
and to your project
import shlwapi.lib
|
|
|
|
|
Hi,
Thanks for your solution. Now PathFileExists" is working.
Aniket
|
|
|
|
|
_access(..., 0) is one way.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
I can program to read a text document file (*.txt) , but cannot program to read a document file (*.doc) or rich text document (*.rtf) or adobe reader file (*.pdf) .
How to do it by using VC6 and C# ?
Please help me . Thank you a lot
imagic
|
|
|
|
|
|
You have to use automation for that (at least for doc and rtf files). Search on google.
|
|
|
|
|
thank you all for your replies. i am looking for a way to find x,y coordinates for a scanned image with a resolution of .001". For example, if i have a bitmap that is 10" X 10", and there is an image on my bitmap located at (x,y), how do I get the values for those coordinates?
thanks for any advice
|
|
|
|
|
a dialog based application :
BOOL CxxxDlgApp::InitInstance()
{
..............
CTnlDlgDlg dlg;
m_pMainWnd = &dlg; ???(why here the handle of dlg is 0x000000 ,if i want to use it here how to do ?)
int nResponse = dlg.DoModal();
..............
}
|
|
|
|
|
The windows hasn't been created at this time. This is done in the call to DoModal .
Steve
|
|
|
|
|
My 5.
Maxwell Chen
|
|
|
|
|
I have created a multidocument project,and I use memory DC to draw a color map.I found that sometimes my memory doesn't work.This case offen occurs when i use another memory dc or do some operations.But if I restart the computer,the programme will work well?What's the problem?
|
|
|
|
|
DC is windows resource (which accupies memory) you are acquired to draw something and after finish drawing u need release that resource back to windows.
|
|
|
|
|
If It possible i need the implementation of RSA in C++
|
|
|
|
|
|
So Dose It True ?????????????
i write this code to find this formula when the number is too big
result = pow( base , power ) % mod
long MODLD( long base , long power , long mod )
{
long result = base ;
long i = power ;
if( i % 2 != 0 )
{
i-- ;
}
for( ; i > 1 ; )
{
result = ( result * result ) % mod ;
// cout<
|
|
|
|
|
What is the problem?
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Stephen has proved something to your question yesterday ...
Maxwell Chen
|
|
|
|
|
How I Can Read Hexadecimal Number
From File in C++ ,
if the file contain data like this
0x12
0xEF
and so on ..... doh:
|
|
|
|
|
|
Is there a way to test if a user has read or full access to certain registry entries? Will the return value of RegOpenKeyEx tell me this? Thanks!
|
|
|
|
|
|
Would you mind showing how to use this function? I'm using RegOpenKeyEX to get a handle to the key. Since RegGetKeySecurity requires a security descriptor, is there a way to get it from the handle? Thanks!
|
|
|
|
|
The RegGetKeySecurity function retrieves a copy of the security descriptor protecting the specified open registry key.
LONG RegGetKeySecurity(
HKEY hKey,
SECURITY_INFORMATION SecurityInformation,
PSECURITY_DESCRIPTOR pSecurityDescriptor,
LPDWORD lpcbSecurityDescriptor
);
Parameters
hKey
[in] Handle to an open key for which to retrieve the security descriptor.
SecurityInformation
[in] Specifies a SECURITY_INFORMATION value that indicates the <code>requested security information. </code>
pSecurityDescriptor
[out] Pointer to a buffer that <code>receives a copy of the requested security descriptor. </code>
lpcbSecurityDescriptor
[in, out] Pointer to a variable that specifies the size, in bytes, of the buffer pointed to by the pSecurityDescriptor parameter. When the function returns, the variable contains the number of bytes written to the buffer.
The above documentation clearly says how to do it. Did you look up the docs? Look at the statements marked in red.
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|