I am accessing Files, folders, drives over network. Through SHBrowseForFolder I get the path over network. The problem arises when I check the path for validity with CFileFind.
Assume that there is a pc with name PCabc over the network, and it has a folder in one of it's drive with name FOLDER1, which is sharable, with the same name.
The path I recieve is \\PCabc\FOLDER1, Now when I pass it through CFileFind::FindFile() and CFileFind::FindNextFile(), the path is rejected. However if I take a folder say SUBFOLDER1 in the share FOLDER1 (which is also the exact name of the folder), I get no problem, ie, the path \\PCabc\FOLDER1\SUBFOLDER1 gives me no errors. It is accepted by CFileFind.
Can you suggest me what should I do to get the path for the shares which will be accepted by CFileFind.
1) Expose the SQL server to the internet and connect via the IPAddress as usual (Security NIGHTMARE)
2) Use RemoteDataAccess (requires IIS server and code changes)
3) Write your own Web server service that will authenticate the client and pass the SQL Statements on to the database behind the firewall.
I guess this question will be easy for the windows expert on the CP, but I'm stuck with it.
Basically I enumerated all the processes on the system with PSAPI.dll's EnumProcesses.
Now from each process's HANDLE, I'd like to get a handle to its main window's HWND, in order to send messages using SendMessage.
How can I do that?
I'm pretty new to multimedia programming, have a task here that need expert guidance from you all .
What I'm trying to do is to embed a mpeg 4 player into a MFC program I'm doing.
I'm pretty lost as to how to get started, I've read that DirectX is pretty useful for multimedia application in VC++. Should I focus on DirectX? Does it support Mpeg 4?
bankman wrote: Should I focus on DirectX? Does it support Mpeg 4?
Probably not and No. I would do a search for ActiveX controls that serve that purpose. There are a couple of direct show media applications that will play your format provided you install a mpeg4 codec. A quick search on the internet and I found one at http://ffmpeg.sourceforge.net/[^]
yes, i'm agreed the above's suggestion, but here
i'll give you suggestion that you should learn the
skills and technologies that were existed from current
all around world resources, so we all shoule learn 'get something'
behaviour to build our other more important projections,
these are bricks!!
Use GetSel to retrieve the caracter number.
Make a loop on LineFromChar with parameter the character number, which you decrement until LineFromChar changes.
Then, the first number minus the final one should give you the pos.
i=(i<j?i:j); //our start point (this gets the current char index)longint counter=m_RichEditCtrl.LineFromChar(-1); // gets the linewhile(m_RichEditCtrl.LineFromChar(i)==counter) // reverse parse until line changes
longint pos=counter-i; // that's your pos.
Got used that Microsoft Word underlines the errors in red?
Nice isn't it?
Well, when editing my C programs, the editor didn't do that. What a bore.
So, I decided to add that feature to the editor. It is very simple:
After some period of time has elapsed since the last key was pressed, save the text in a temporary file, and call the compiler to compile that file. Save the output of the compiler and parse it.
Do messages like "undefined symbol "xxx" appear?
If yes, store the line and position of the offending symbol, and when that line is displayed in the editor, underline the symbol with red.
Want to see it in action?
Download the editor with the associated compiler (no charge, no registration, no questionnaire to fill, no popups) from:
It is a nice feature, that doesn't hide the fact that it is not Visual Studio of course. Maybe because of its small size this algorithm is at all doable. The compiler is small and very fast. So fast that can be used as a background compiler, running most of the time behind you when you type.
Is C outmoded?
Yes, of course. C will be always outmoded because it is not fashionable. As languages come and go away, C remains. If you write in C there is a bigger chance that your code will run in the unknown machines of the future.
You probably know C. It has be cloned a thousand times, in all tones, even in the C Sharp scale.
The whole download is 3.5 MB. And there is packed a system with all the headers and import libs to use the full Win32 API. The editor, including the debugger, the project generation facility, a versioning system, a software metrics module, an object code analyzer, etc, is 700K.
Including a spell checker for C.
I noticed that the latest versions of Visual Studio show the current function at the top right corner of the window. Lcc-win32 has been offering this since 1999 but it shows it at the bottom right corner.
But this is publicity, and is therefore biased. Look for yourself, and tell me if you like it.
If you want to provide a tool, write an article and post it under the "Free Tools" section. This forum is for asking questions.
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
Yes. As the above poster suggested, please write an article and post it in the free tools section. That way your article will get seen by more users. A post in a forum will only be good for a few days because no one will scroll ahead more than a few pages of posts.
I want to add the flexibility to my application to allow the user to write and use custom functions within the application. The functions would be added to a library. I don't want to write an interpreter. One thought I had was to let the user write C functions and write them to a dll source file, then my application could shellexecute a compiler and linker to generate the dll. The application could then turn around and call the dll function. All of this would be transparent to the user.
Now for the question. Can the VS C command line compiler and linker be shipped with my app?...I think I already know the answer, it would have to be licensed.
Is there a suitable free-ware compiler and linker that I could use?
Is there another way to skin this cat?...I don't want to try a VBA interface, but that might accomondate the largest audience.
A working Program is one that has only unobserved bugs
I thought I wanted a career, turns out I just wanted paychecks
The lcc-win32 compiler system does just that. Many people use it exactly for that. Their users type a function, then it is compiled to a dll and loaded into the system.
Lcc-win32 has also the possibility of loading an object file "on the fly", not a Dll. This eliminates a lengthy link step, and links the code "live" to the system. But that algorithm has other drawbacks. The dll way is more portable and is not so much longer to perform.
The interesting thing is that your users will say they want to debug their functions. The lcc-win32 system features a debugger too.
No, the VC compiler cannot be shipped with your product, unless you bundle in a copy (license) of VC.
A few options include:
1) gcc compilers (free)
3) embed your own macro language (I have done this in the past and you will want to avoid this if at all possible!)
4) programmatically post the user-entered code to a service on your web site, compile it and return the DLL as the result (or error page)