|
Hi !
I have several databases (in mdb format) for my MFC project. I decided to put them on a server in the network. The path is like this:
//netbackup/multimedia/erginasil.mdb
The problem is: The server (netbackup)has a password which I have but the users will not have.If I first connect there ,the program runs normally. How can I acces a password protected server in the code. I found in msdn opening a password-protected "file" but I must give the "server password" to connect normally.
Thanks in advence..
|
|
|
|
|
Can you not just share the folder and give the users permissions to access that one folder?
Michael
|
|
|
|
|
No I don't have the right to give permission. I am not the admin of the system. In fact I am building this program for him. And I don't want to tell him "you must give permissions to the other users for this program". Just becaouse this I have to try.
|
|
|
|
|
No I don't have the right for that. I am not the admin. In fact I am developing this program for him and I don't want to say "you must give access to other users for my program".So I have to find.
|
|
|
|
|
How can I implement word wrapping in regular edit controls w/o resorting to subclassing as much as possible.
|
|
|
|
|
Don't use WS_HSCROLL style and multiline edit control will wrap words.
Tomasz Sowinski -- http://www.shooltz.com
- It's for protection - Protection from what? Zee Germans?
|
|
|
|
|
I´m not a socket expert but I´m currently working with sockets and need to ask something to the "socket-addicted-cpians". My question is: Does socket library only works on TCP/IP networks or it works on local networks with other protocols (like IPX and NetBEUI) ?
At my point of view it should only work on TCP/IP.
Thanks
Mauricio Ritter - Brazil
Sonorking now: 100.13560 Trank
My latest article:
Pentominos - A C# implementation of the famous Puzzle Game
|
|
|
|
|
TCP and UDP, as far as I know. That's it.
Michel
If I am wrong or said something stupid, I apologize in advance
|
|
|
|
|
Michel Prévost wrote:
TCP and UDP, as far as I know. That's it.
Nope, it works with all the IP protocols. You can use raw socket to communicate with the other protocols like ICMP.
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
you are right. my mistake. sorry.
Michel
If I am wrong or said something stupid, I apologize in advance
|
|
|
|
|
You are right, it only works with IP networks.
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
My MFC UI program runs a command line executable and I need to retrieve the data that is outputed to the command prompt and put it into my UI.
Any Ideas?
|
|
|
|
|
|
Apropos of this question, does anyone know if VC++ 7 (.NET) fixes _popen so that it works in Windows apps? In VC++ 6 there were some bugs that prevented it from opening the streams properly.
|
|
|
|
|
Hi all,
I'm looking for an API to call the Add Printer Wizard from within my c-code.
I'm running under Windows ME.
Any help will be welcome
Haim
|
|
|
|
|
ShellExecute(
NULL,
NULL,
"rundll32.exe",
"shell32.dll,SHHelpShortcuts_RunDLL AddPrinter",
NULL,
SW_SHOWNORMAL);
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thx U very much.
Its great, and works too !!!!!!
Where did U find reference on shell32.dll??
Haim
|
|
|
|
|
Hi,
I have already connected through windows explorer to a remote machine with some user account of the remote machine.
Now I would like to programmatically find out whether I have connected to that machine already(but I don't know the account by which I have connected).
Is that possible and if yes how?
Thank You.
Yamuna.E.
Yamuna.E.
|
|
|
|
|
without using FindWindow/FindWindowEx API...
|
|
|
|
|
It's easy if you have the process id, which is not the same as the process handle. Just enumerate all top-level windows with <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/windows_7wvn.asp">EnumWindows</a> and compare its process id's (obtained with <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/windows_5y90.asp">GetWindowThreadProcessId</a> ) with the one you have. As for how to obtain the process id from the process handle, the problem is hard to tackle.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks for you help!
I find the way to get the process ID corresponding a process handle.
In Win95/98/Me/2000, some tool help functions ( CreateToolhelp32Snapshot, Process32First and Process32Next ) can finish it.
In NT/2000, look up the register key - HKEY_LOCAL_MACHINE\\software\\microsoft\\windows nt\\currentversion\\perflib - for some information.
|
|
|
|
|
Congratulations! What about bundling everything into a nifty library and posting an article here at CP? Regards.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
With my poor English... Oh, no... forget it!
Here already have some code handle it:
http://www.codeproject.com/system/mytop.asp
|
|
|
|
|
Hi,
in my app I have the following code :
HWND hWnd = FindWindow(NULL, "Any window...");
(...)
char strClassName[64];
GetClassName(hWnd, strClassName, sizeof(strClassName));
Now that I have the handle and the class name of the window, is it possible to get the path of the program that is attached with the handle, like GetModuleFileName(NULL, ...) for my own app ?
Thanks in advance
|
|
|
|
|
It can be done, but involves some amount of work. First, obtain the process id for the window with GetWindowThreadProcessId . Then, use the information contained in MSDN sample MODLIST.EXE Shows How to Enumerate Processes and Modules (Q192986) to enumerate the modules of the given process and its corresponding paths (a process is made of multiple modules, like the main .EXE and the different DLLs loaded). Please note the code differs for 95...ME and NT...XP systems.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|