|
bugwee wrote: Well, thanks guys. I'm not familiar yet with C++, i'm more on c# and just having a project that needs to be written in c++.
funny but not that much.
This is my first c++ project. Today is just my second day working with c++.
You know, i didn't except that the existing project is a non clr project. i just found out after getting some errors when building with the changes.
Anyways, i appreciated with your time replying with my post.
|
|
|
|
|
enhzflep wrote: Are you looking for notification of a change to a file/folder?
something like that. but my problem is how could i use a .net framework or managed libraries on a non clr apps.
|
|
|
|
|
bugwee wrote: how could i use a .net framework or managed libraries on a non clr apps. You can't, and why would you want to? The rule is simple: CLR, or non-CLR, you cannot have both.
Use the best guess
|
|
|
|
|
Okay. Thanks for answering the question.
If you'd like to watch for file system changes, you don't need to use .NET - you can do it with plain win32 stuff.
See here and here.
Both offer essentially the same answer, though the second one offers alternatives for OSX, Linux and Qt too.
Make it work. Then do it better - Andrei Straut
|
|
|
|
|
If you are writing pure C++ then forget all about .NET and use the proper libraries. If you are adding a wrapper class to use some .NET features then just make the whole thing CLR aware. Trying to do it in the way you describe is just making things more difficult for yourself and achieves nothing.
Use the best guess
|
|
|
|
|
Thank you for your input Richard. Therefore i gonna forget .Net and focus on writing pure c++ .
|
|
|
|
|
hello,
Is there way to disable Cut,Copy,Paste,Rename and Delete operation for a particular file with (.extension)
in windows ...
please Reply me ....
|
|
|
|
|
These operations are specific to applications, not files.
Use the best guess
|
|
|
|
|
ok how can i achieved this one
|
|
|
|
|
Copy, paste etc., are implemented in many different ways by application programs, and there is no common point at which you could disable them.
Use the best guess
|
|
|
|
|
It is not clear, hat do you want. Do you want to change behavior of all programs, running under Windows? It is rather problematic (and what would be the reason for it?). But, if you write you own code, you may change behavior of edit control for example- all of what you need is to replace its own WindowProc by your own one, which gulps some messages and calls old WindowProc for all others. It is a way to get a non-editable edit window. Use GetWindowLong() to get address of old WindowProc and SetWindowLong() to replace it with your own one.
|
|
|
|
|
You did not mean to post this to me.
Use the best guess
|
|
|
|
|
|
Is this of any help?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Is it possible to develop a multi platform applications in vc++. If yes then what i have to do for that.
|
|
|
|
|
You would need to ensure that you do not include any code that is platform specific. For example you would not be able to use any of the Windows SDK code if creating a UI, but would need one of the general libraries such as Qt[^].
Use the best guess
|
|
|
|
|
You cannot (directly)
Visual Studio will only target the Windows OS (create executable for that specific OS).
You will have to create different project on the OS you also want to release your application (linux, mac, ... )
Generic C++ code can be easily made to be portable (compilable) on all compilers on all the platforms you want to support.
OS dependent code will need to be written for each platform (mostly UI, filesystem, ... )
There are toolkit for UI and filesystem that are cross-platform (QT, for example) that will let you write most of the code on one platform and rebuild the same code on the different other platform you want to support (I'm not expert, you will have to look that up).
You will need to have a development environment for each platform you wish to develop for.
Nihil obstat
|
|
|
|
|
Thanks max. I also searched a lot on this topic i think i have to develop my application on QT.
|
|
|
|
|
I was asked to build a MFC appliation, which will execute a window Command line when you type a window Command line & press "Eter".
But i don't know how to handle Enter key event in multiline Edit control.
Please help me! Thanks so much!
|
|
|
|
|
I don't have a copy of MFC to try this but I would imagine you would want to add a handler to your edit control to capture key presses. OnKeyDown() [^] or OnChar() [^] may be the best ones.
Use the best guess
|
|
|
|
|
Your description indicates that your edit control will only contain a single line of text but uses the multi line style to allow entering long lines without scrolling parts out of view.
If this is true, create the control without the ES_WANTRETURN style. Then pressing ENTER behaves like with other controls of a dialog: The keypress is passed to the default push button of the dialog. The handler for the default button can then get the text from the edit control and execute the command.
|
|
|
|
|
If you want to capture Enter key or some other keys, you might want to use keyboard hook with SetWindowsHookEx. Do some searching and you may find many examples or articles about using hook.
|
|
|
|
|
can you give me a project of VS 2010 C++ to hook WM_CLOSE message on all process?
Thank you!
~Peter
|
|
|
|
|
Try the articles section, you will find samples on Windows Hooking in there.
Use the best guess
|
|
|
|
|
can u give me the link.
thank you very much!
|
|
|
|