|
Are you wanting to access those shares via UNC?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Yes that's correct, I would like to access it by UNC. Currently we have a batch file that calls some executable nfs.exe ( I think it's a hummingbird's ) which mounts unix shares, which allows us to see those shares from a windows box.
|
|
|
|
|
alchong wrote: Yes that's correct, I would like to access it by UNC.
You appear to have two separate issues here. Mounting shares (using nfs.exe), and accessing them using UNC are not the same thing. For the former, see here. For the latter, unless otherwise indicated, the Win32 API recognizes UNC.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks for the quick reply, I was thinking about just invoking the executable from an app. I curious if anyone knew if there were any standard WIN32 API that was available.
|
|
|
|
|
alchong wrote: I curious if anyone knew if there were any standard WIN32 API that was available.
Probably, but without knowing what nfs.exe was doing internally, I wouldn't know. You might could use depends.exe to open nfs.exe and see what functions it is importing from the Win32 API. That would give a big clue.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
Are you wanting to rename the file?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
You have to provide more information. What do you mean by "identity"? By what or whom was the file "banned"?
"It is better to remain silent and be thought a fool, than to open your mouth and remove all doubt."
--Groucho Marx
|
|
|
|
|
|
I have lots of dialogs in my application and these dialogs are used with 1600 1200 resolution. Now, this application is ready to use but i want to run it with different resolutions. I wrote an different application(or function or class with function) to do this and it sets all of controls' size of a dialog as resolution but for only one dialog. How can I apply this solution for all my dialogs? For example May all of my dialogs inherit from my new class(is it a good solution) or what else? Please help.
|
|
|
|
|
The solution is really up to you. How many dialogs do you have?
There are several articles on codeproject dealing with resizable dialogs - they should give you a headstart. But they will require work for every dialog.
I don't see any other way though - how a dialog stretches / shrinks will be very dependent on the job it's doing. ie, You may have a bos asking for some text, with an OK button. You want the text box to change in width, but not the button.
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
I think you can use of WM_SIZE.
|
|
|
|
|
I found that early that it's a b-itch to try to find ways to automatically resize dialogs and move controls in a
natural ways ( looking good in different resolution). I tend to make certain the dialogs work in the smallest
resolution supported.
BUT :
If you find a way to way to generalize a behaviour to resize your dialogs that can work for any dialog in your
application, then having a base class that does the resize is a good way to do it.
Good luck.
|
|
|
|
|
mehmetned wrote: I have lots of dialogs in my application
So then that is the actual problem, however I suppose I should assume that for one or more reasons you are not interested in solving that problem. Therefore I would have you look at this.[^] I don't know if I ever tried to use it in Dialogs, probably not since Dialog based apps are lame. However I used it often in MFC View based applications and it works perfectly. It may or may not help you and your thousand dialog problem.
led mike
|
|
|
|
|
I use a toolbar and a richedit control in a dialog to do some text edting.
A common scenario is:
the user select some text, then go to the toolbar to click some button.
But my problem is that as soon as the user click the toolbar, the selection in richedit control disappear, which make the user puzzled.
How can I keep the selection visible even if the focus is not in the rich edit?
|
|
|
|
|
The rich edit inherits most of its styles from normal edit.
Try using the ES_NOHIDESEL style, and see if it helps.
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
Hi you all,
I am writing a multi-threaded program that will have to run continuously. Since the program uses a lot of memory allocations (next to my own allocations, MFC will also do some of that when using CStrings and all that) I want to be able to monitor the program's memory usage at any one given time. Does anyone know of a way to request the total amount of memory used by the program through some C++ statement(s), so that I can report this usage in a tracefile while the program is running.
Any ideas are highly appreciated.
Regards,
William Engberts
|
|
|
|
|
|
|
One way would be GlobalMemoryStatusEx() . Another is here.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I have an application developed on VS6 that I used to connect to an SQL Server 2000 without problem.
Due to some system upgrades, now I have to establish the connection to an SQL Server 2005 at the same database.
The connection string remains the same: "DSN=DSN_NAME;UID=user_name;PWD=password"
At the OpenEx function of the CDatabase object I get the following error:
"Unhandled exception in myexe.exe (DSSENH.DLL): 0xC0000005. Access Violation."
Does anyone know anything about the issue?
Thanks in Advance
|
|
|
|
|
sirtimid wrote: At the OpenEx function of the CDatabase object I get the following error:
"Unhandled exception in myexe.exe (DSSENH.DLL): 0xC0000005. Access Violation."
Does anyone know anything about the issue?
Have you stepped into the OpenEx() call to find the offending statement?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Yes I have...the error was in line:
AFX_SQL_SYNC(::SQLDriverConnect(m_hdbc, hWnd,
(UCHAR*)T2A((LPTSTR)(LPCTSTR)m_strConnect), SQL_NTS,
szConnectOutput, _countof(szConnectOutput),
&nResult, wConnectOption));
in the Connect function of CDatabase class.
|
|
|
|
|
So are the arguments being passed to SQLDriverConnect() and AFX_SQL_SYNC() valid?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
As much as I see, there is no argument with unspecified value. They all have a valid value.
|
|
|
|