|
Thanks, but this isn't working (altough i'm using win2k and the newest IDE (.NET 2003)), is there some other way to do this?
|
|
|
|
|
You can try this[^] article.
Or this[^] one.
Sorry, I do not have much time to help you today, but with reading MSDN, code examples from the links I gave and own experiments you should be able to force the 'New Dir' button on the folder open dlg.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
I am writing a network program using winsocket. i use udp protocol.
my question is:
when client send the username and password to server and wait for server reply, how can i deal with time out?
could anyone give me some idea??
thanks.
|
|
|
|
|
Hi,
UPD protocol can't establish chenell and does not guarantee server rceiving of packages, therefore you can just use any predefined "time delay".
(server response time).
Vitali
|
|
|
|
|
thank you
but how can i use predfined "time delay"?
can you plz tell me more?
|
|
|
|
|
it depend only from your project requirements.
i mean that many parameters play role here:
network, software, ...
MS suggest setup timeout 15 seconds.
Vitali
|
|
|
|
|
|
Hi All,
I have posted this question before at least 3 4 times but no luck..anyone please reply..
there are two definitions of new window..i.e.
DISP_FUNCTION_ID(CWebBrowser2, "NewWindow2",DISPID_NEWWINDOW2, OnNewWindow2, VT_EMPTY, VTS_DISPATCH VTS_PBOOL)
DISP_FUNCTION_ID(CWebBrowser2, "NewWindow2",DISPID_NEWWINDOW2, OnNewWindow2, VT_EMPTY, VTS_BSTR VTS_I4 VTS_BSTR VTS_PVARIANT VTS_BSTR VTS_PBOOL)
When i use first def. it works ok and putting cancel=true works and no new window opens. but that breaks th eexecution of program and hence i need to open the same url in parent window..so when i use second definition the function is never called..I want to know whether there is anything wrong with the definition or what..whatever u said must work..but if once the function is called then only i will be able to know that it is working or not..m_pBrowserApp is an object of IWebBrowser2..
virtual void OnNewWindow2(LPDISPATCH FAR* ppDisp, BOOL* Cancel);
// virtual void OnNewWindow2(BSTR URL, long Flags, BSTR TargetFrameName,VARIANT* PostData, BSTR Headers, BOOL FAR* Processed);
Please let me know where I am wrong..
Himanshu
|
|
|
|
|
Hi all,
We are inserting item in a tree. Whenever we insert an item, we use SetItemData(...) to store our custom data and later use GetItemData() to reteive it from the nodes.
The values are correctly retreived in case if there is no child node under a parent node,
but incase of a child the GetItemData() returns unexpected value of the parent.
Please anybody helps,Thanks.
The Phantom.
|
|
|
|
|
Hi,
Set/GetItemData is verified way. It not depend of nodelevel.
I am sure that you simply have confused something in the program.
Vitali
|
|
|
|
|
Check out ItemHasChildren
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
I'm going to convert a program to a library. First, I delete the project(say foo.dsp) which originally create binary exe-file. Second, insert all header/cpp/resource files which are in foo.dsp into the new one.Third, compile to see how thing's going.
To my surprise, many include path errors come out to me.
PS: preprocesser definitions are always the same.
Please give me some help if you could.
TIA
-gusd
|
|
|
|
|
Hi,
If you eant convert App to the static Lib I can suggest
folowing way:
1) Create Lib project
2) Add necessary files from App to the Lib project
while( not success)
3) Compile
4) Do some corrections
end while
Vitali
|
|
|
|
|
Thanks for your advice.
But, I'm wondering whether there's some path variable in the foo.dsp file or not.
do you know that ?
|
|
|
|
|
Hehe,
its may be path variables, Preprocessor defs, and many other conditions.
Nobody can tell more without project files
Vitali
|
|
|
|
|
Thanks any way.
|
|
|
|
|
Hi,
I have a application,where i will display the images. It has a option to zoom the image also there is a scroll bar. Now i want to implement the selection tool,which allows the user to select some part of the image. Is there any sample code to implement this?
Regards
Neha
|
|
|
|
|
Hi,
navigate to the bitmaps section of this site.
there there is a solution.
Vitali
|
|
|
|
|
I have a tree control where i have drag and drop however if you want to drag to something thats scrolled off the screen you have to using the arrow keys or scroll button while still holding the item your dragging my question is how can i make it so when the user drags the mouse to the bottom its starts scroll untill the user stops moving the mouse i tried ScrollWindow But that seemed all screwed up and i tried mapping the OnVScroll but im not really sure what paremeters to pass it can someone pls point me in the right direction thanks
|
|
|
|
|
Hi Marissa,
You can use varuious tecknikues to implement drag and drop,
but in any case you can use
HitTest and EnshureVisible to determine position
and show item in a tree control.
Vitali
|
|
|
|
|
Hi All,
When I am trying to select the value of any of the selected node inside a CTreeCtrl, the NM_CLICK returns the value either previously selected or some other value.
Can anybody tell me how to correctly get the value selected by Left Mouse Click.
Thanks.
The Phantom.
|
|
|
|
|
void CBuilderDlg::OnClickTree(NMHDR* pNMHDR, LRESULT* pResult)
{
TVHITTESTINFO tvhit;
CPoint p;
GetCursorPos(&p);
m_EnvTreeCtrl.ScreenToClient(&p);
tvhit.pt=p;
HTREEITEM hItem=m_EnvTreeCtrl.GetSelectedItem();
tvhit.hItem=hItem;
m_EnvTreeCtrl.HitTest(&tvhit);
hItem=tvhit.hItem;
m_EnvTreeCtrl.SelectItem(hItem);
hItem=m_EnvTreeCtrl.GetSelectedItem();
if (hItem)
{
...
}
}
~RaGE();
|
|
|
|
|
You can use the code snippet, the best way is however to handle TVN_SELCHANGED (so the selection changed message) instead of the NM_CLICK
~RaGE();
|
|
|
|
|
Hi,
you also can use fillowing :
1) TVN_SELCHANGED
2) TVN_SELCHANGING
Vitali
|
|
|
|
|