|
Thanks . obviously you cannot give the network path in the APi. I gave CSIDL_DRIVES i am getting notifications from all the local drives. but if i connect to a network system and perform file operations I am not getting the notification.
|
|
|
|
|
I have created one Combo box and one List Box in the dialogbox in Visual Studio.
I am working in Visual C++.NET framework.
now I want to access these controls in to the file, then how do I get the control over them? means objects?
and in the list box I have a browse button also, on clicking that button the folders (As in windows) shoulds be opened. Can anyone sent the code for that?
Thank you
|
|
|
|
|
i did not get the first part of ur question.
anyways, here is the code to display the open dialog box.
NOTE:
this is vc++ SDK (win32) code. i dont know whether u can use the same code in vc++.net
but i think there would only be minor differences.
OPENFILENAME opn;
TCHAR lpszFile[255];
TCHAR lpszFileTitle[255];
HWND hWndOwner; // handle of the owner window.
HINSTANCE hInst; // instance handle of the application.
opn.lStructSize = sizeof(opn);
opn.hwndOwner = hWndOwner;
opn.hInstance = hInst;
opn.lpstrFilter = "All Files (*.*) ";
opn.nFilterIndex = 0;
opn.lpstrTitle = "Open Dialog";
opn.Flags = OFN_EXPLORER;
opn.lpstrFile = lpszFile;
opn.nMaxFile = 255;
opn.lpstrFileTitle = lpszFileTitle;
opn.nMaxFileTitle = 255;
GetOpenFileName(&opn);
Deep George Zachariah.
|
|
|
|
|
oh sorry,
i did not go thru ur question properly..
use the ShellExecute/ShellExecuteEx
Eg:
ShellExecute(handle, NULL, <fully_qualified_path_to_folder>, NULL, NULL, SW_SHOWNORMAL);
or
ShellExecute(handle, "open", <fully_qualified_path_to_folder>, NULL, NULL, SW_SHOWNORMAL);
To explore a folder, use:
ShellExecute(handle, "explore", <fully_qualified_path_to_folder>, NULL, NULL, SW_SHOWNORMAL);
To launch the Shell's Find utility for a directory, use:
ShellExecute(handle, "find", <fully_qualified_path_to_folder>, NULL, NULL, 0);
for more info:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecuteex.asp
i am not so sure if v can use "CreateProcess()" to open folders.
if yes, use CreateProcess().
Deep George Zachariah.
|
|
|
|
|
hi,
i need to access menu (resource) stored in a .ocx file which is loaded in my application.
the purpose is to disable (gray out) a menu item in the pop up menu.
the component which is pulled into my application, has a treeview in it.
when i right click a node in the tree view, it gives me a pop up menu.
now, my problem is: i want to disable one menu item in this popup menu.
i am subclassing the components (tree control) window proc.
i am able to handle messages such as WM_RBUTTONUP/WM_CONTEXTMENU, etc.
but, to disable the menu item i need the menu handle.
how do i get the menu handle ??
i tried using HMENU hMnu = GetMenu(hWnd);
and also did a HMENU hMnuParent = GetMenu(GetParent(hWnd)); where hWnd is the tree control handle.
but, i could not get the menu handle.
how do i get this.
do i need to use the FindResource/LoadResource/LockResource set of API's ???
but, i dont know the name of the resource (menu)
then, how do i use FindResource to locate the resource ??
can someone help ??
thanks.
Deep George Zachariah.
|
|
|
|
|
I am trying to use the function, PathFileExists to check if all dependency files are existing, so that if not i could quit my application informing the user about the missing module. But it worked for the first 3 compilations. Later, the linker gives me the following error.
error LNK2001: unresolved external symbol __imp__PathFileExistsA@4
fatal error LNK2001: 1 unresolved externals
Error executing link.exe
What exctly is the problem? How would I resolve this?
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
I think you changed your build configuration, so you need to put it again for the linker:
shlwapi.lib
this is this.
|
|
|
|
|
That's Exactly what the problem was, and is resolved. I opened the page to reply myself, but you were too fast! Thanks for your kind reply (5/5).
Regards,
Rajesh R. Subramanian.
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
hi
i want to make a worker thread s that in my application one function can be used everytime
can u help me
|
|
|
|
|
|
can u give me an application ,that can explain me how to make it ,
i know that using AfxBeginThread i can make it , but i dont know exact procedure
thanks in advance
|
|
|
|
|
cancerion wrote: can u give me an application ,that can explain me how to make it ,
See which would help you from this list[^]
Regards,
Rajesh R. Subramanian
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
|
Click Here^
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1"> --[V]--
|
|
|
|
|
Is there any way to override Default printer setup Dialog in order to add user defined additional options.
|
|
|
|
|
Check for the KB Article No. : Q132909 in MSDN.
This has got step-by-step information on how to do it.
|
|
|
|
|
hai everybody, i don't have much knowledge in dll creation. so i need your help. i have a VC (SDK) program, which is used to get the information from the user and it will create a cpp file and header file. now i want to create a dll or Lib file using that cpp and header file in that same program (at run time only).
For Example, i have to get the user info from the user. so my program will Generate cpp & header file. so that cpp & header file is like:
class UserInfo<br />
{<br />
protected:<br />
char[20] name;<br />
int age;<br />
char sex;<br />
public:<br />
};
how can i do?. pls help me.
Bagavathikumar
|
|
|
|
|
I create a modeless dialog in the application first, then create a modal dialog whoese parent is the modeless dialog, then close the application, there is an error in the modal dialog's message loop.
|
|
|
|
|
followait wrote: there is an error in the modal dialog's message loop
I hate it when that happens.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
In my dialog,there is a CListCtrl (named m_ListCtrl) with Report style and LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES style,but there is no row:m_ListCtrl.GetItemCount=0,I move the mouse freely in my m_ListCtrl,How can I get the row-index,column-index and the rectange located by (row-index,column-index)Cthanks!
|
|
|
|
|
Sorry to bother you people. I am just looking for a way to change function prototypes based on the MFC version. Ideally I would be able to write something like this:
#ifdef ((mfc7))
#endif
If replying by email, send to mcondra@yahoo.com
Thanks, -M
-- modified at 21:19 Tuesday 13th December, 2005
|
|
|
|
|
use _MFC_VER
#if _MFC_VER == 0x0700
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
mcondra wrote: If replying by email, send to mcondra@yahoo.com
definitely not !!!
why would we use email when we have a so good forum where anybody can share ideas and solutions ?
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VisualCalc 3.0]
|
|
|
|
|
Hi,
The problem I have got is, when I disable a button, by clicking on it, it still holds the appearance of having the default button indicator, i.e. it has a thin black line around it.
This results in a trapped keyboard interface.
Can someone tell me how I can lose this indicator of the disabled button, and shift it to another control.
Thx
|
|
|
|
|