|
|
How must i set the parameters for the function FindFirstFile() if i want to get the shared files which are located at a remote machine!!
I have tried FindFirstFile("\\\\machnine\\*",&data);
and FindFirstFile("\\\\machnine\\",&data); and
FindFirstFile("\\\\machnine",&data);
and much more else but i have always got the error code ERROR_INVALID_NAME!!
Please help me!!!
|
|
|
|
|
If you are using a UNC name it must be fully qualified.
FindFirstFile("\\\\machnine\\share_name\\*.*",&data);
|
|
|
|
|
Can I have my VC6 still installed on my computer and install Visual Studio .NET on the same computer without any kind of trouble!?!?!?!
------------------------------------
Rickard Andersson, Suza Computing
ICQ#: 50302279
I'm from the winter country SWEDEN!
------------------------------------
|
|
|
|
|
Yes, but don't come looking for me if it doesn't work.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Yes! I wondered the same thing after installing VS.NET on my new HDD and watching it kill all my old code. Not wanting to distribute the version 7 .DLLs on my webpage for the next version of my program anyway, I installed VC6 and it's co-existing perfectly, much to my surprise actually. So I can pick up where I left off without having to fix a million broken things, and I can still use ClassWizard.
- Jason
(SonorkID 100.611)
"The sort of guy who'd give the kid an extra scoop of ice cream free if he was an ice-cream man"
- Nish, on Chris Maunder
|
|
|
|
|
I've never had problems installing both.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179:BestSnowman
†
|
|
|
|
|
I need to create an visio-like userinterface, (especially resizing and moving objects) Does windows provide any scaling or moving functions which can be used ?
|
|
|
|
|
GDI+ does.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
|
|
|
|
|
I deleted to source files from my project directory thinking that would remove them from the project. Now the darn thing won't compile. I keep getting "fatal error C1083: Cannot open source file: 'D:\Projects\My Proj\IntDlg.cpp': No such file or directory
What do I do now!?!
Why not throw away a dime?
I throw away ten pennies all the time.
|
|
|
|
|
Using the File View portion of the Workspace toolbar, simply highlight the offending source files, and hit the Delete key. This will remove the files from your project, and they will no longer be compiled. Hope this helps.
|
|
|
|
|
D'uh! I can't believe I forgot that! Oh well. This is my first day programming VC++ again for a few months. Thanks for the help.
Why not throw away a dime?
I throw away ten pennies all the time.
|
|
|
|
|
Also remember to remove all #includes to the deleted files
Nish
The rumours that I am an AI bot are absolutely false. These rumours have been propogated by *them* to focus all the attention on to me, while *their* bots take over the planet. Thank y%%%% Divide by zero. Cannot proceed. Abort(y/y)?
|
|
|
|
|
Do you needs those files. Look in the recycle bin.
Or go into your project and click on the file in your project view, and hit hte delete key to delete them from the project.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
Check the recycle bin just in case VS is nice enough to copy it there for you.
Failing that...
Go to VSS or whatever you're using as a source repository and get the latest version.
Failing that...
Go to your trusty backup (CD, tape, floppy, etc) and get the last backed up version.
Failing that...
Get typing! Dialogs don't just write themselves!
J
|
|
|
|
|
I need to write a system try app that performs single frame capture on a right mouse click. It also has to run under Windows 98.
The system try stuff I knwo myself. For the right mouse click, presumably I need a mouse hook, because the app won't have focus (in the tray). For the difficult bit, presumably I need to use DirectX (specifically DirectShow?). Anyone got any ideas, sites, source code that could help me out (with the mouse hooking and DirectX specifically)?
Derek Lakin.
I wish I was what I thought I was when I wished I was what I am.
Salamander Software Ltd.
|
|
|
|
|
You mean of the screen ? No DX required.
CWindowDC dc(NULL); // You now have the entire screen in a device context
You can now blt the contents of this DC into another to get a bitmap of the screen in a format you can work with, without drawing to the screen itself....
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"But there isn't a whole lot out there that pisses me off more than someone leaving my code looking like they leaned on the keyboard and prayed that it would compile.
- Jamie Hale, 17/4/2002
|
|
|
|
|
Sorry, my original post wasn't clear enough. I mean frame grabbing from a video capture card with a camera attached to it.
Derek Lakin.
I wish I was what I thought I was when I wished I was what I am.
Salamander Software Ltd.
|
|
|
|
|
Ah... then you need DirectShow. I know John Simmons has done some of that stuff, maybe he posted an article, or some code here while he was trying to get it to work ?
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"But there isn't a whole lot out there that pisses me off more than someone leaving my code looking like they leaned on the keyboard and prayed that it would compile.
- Jamie Hale, 17/4/2002
|
|
|
|
|
Hi,
I have an MFC dialog app with a single form (the main dialog). I would like to put up a modal dialog for login credentials AFTER the main dialog as been painted to the screen.
In other words,
1) the user double click the icon for my app,
2) the main window is painted,
3) then the login dialog appears centered OVER the main window.
Where should I put the code for this login dialog? If I put it in the OnInitDialog() of the main window the login dialog appears BEFORE the main window is painted.
Thanks guys!
|
|
|
|
|
Do it the first time WM_WINDOWPOSCHANGED is sent to your dialog.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hmm, I just tried that but it pops up BEFORE the main diag is painted. I want to do it AFTER the main dailog is already up.
|
|
|
|
|
Aren't you by chance confusing WM_WINDOWPOSCHANGED with WM_WINDOWPOSCHANGING ?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Joaquín,
No, I did not confuse WM_WINDOWPOSCHANGED with WM_WINDOWPOSCHANGING. I implimented it as you asked but it pops up my login dialog BEFORE the main one.
|
|
|
|
|
Don't cry man
Are you doing your stuff before or after calling the default CDialog::OnWindowPosChanged implementation?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|