Check this code. Should it work in php?
$handle = opendir($SourceURL);
if ( !$handle )
{
closedir($handle);
return FALSE;
}
/// Doing some work with $handle
Thanks, Parth
Check this code. Should it work in php?
$handle = opendir($SourceURL);
if ( !$handle )
{
closedir($handle);
return FALSE;
}
/// Doing some work with $handle
Thanks, Parth
Which file viewer are you using ?
Yes, I am talking about command window. It is showing up. I created the app from scratch, so I guess there is some problem with configuration. I did not create forms app using the VS wizard. thanks, parth
One more question: How do I get the resource files to compile as separate satellite assemblies rather than in the exe itself. Right now I have 5 language resources, all of which are getting compiled into the EXE itself. I want them to be separate as they should be. This resources are Form resources. I have named them appropriately with .en-US.resx, .de-De.resx etc names
I created the project ground up from empty one. That's why I am having a command line window along with my form.
How do I turn of command line in C++ managed forms projects from project configuration only, I already have created and compiled the project? I am using VS 2010. But I guess that option should be the same as in VC++ 9. Thanks, Parth
Well, there are several problems with the code if you are working in managed code. You should look up some tutorials. You will have to include the namespace of Memorystream object(I have never used this class). Use gcnew instead of new and use ^ instead of *. :D If you want to create unmanaged app, then I guess you have posted in wrong section. Parth
That worked. Thanks, Parth
Hello, I have used timezoneinfo class in C# and until i know it is part of .net libraries. But I am not able to use it under c++. It returns with error "class not found". Does anybody have any idea about this? Regards, Parth
Yes, I tried that. It is not effective.
Yes, that's an option I am considering right now. But if I could make it draw directly on screen it would have been much more better. Thanks, Parth
This does not work. I tried this one as well as the [DllImport("user32", CharSet = CharSet.Auto)] private extern static int SendMessage( IntPtr handle, int msg, int wParam, IntPtr lParam); [DllImport("user32", CharSet = CharSet.Auto)] private extern static int PostMessage( IntPtr handle, int msg, int wParam, IntPtr lParam); private const int WM_ACTIVATE = 0x006; private const int WM_ACTIVATEAPP = 0x01C; private const int WM_NCACTIVATE = 0x086; /// <summary> /// Subclasses the owning form's existing Window Procedure to enables the /// title bar to remain active when a popup is show, and to detect if /// the user clicks onto another application whilst the popup is visible. /// </summary> /// <param name="m">Window Procedure Message</param> protected override void WndProc(ref Message m) { // check for WM_ACTIVATEAPP and WM_NCACTIVATE if (m.Msg == WM_NCACTIVATE) { // Check if the title bar will made inactive: if (((int)m.WParam) == 0) { xyz += m.Msg + " "; // If so reactivate it. SendMessage(this.Handle, WM_NCACTIVATE, 1, IntPtr.Zero); // Note it's no good to try and consume this message; // if you try to do that you'll end up with windows // that don't respond. } } else if (m.Msg == WM_ACTIVATEAPP) { // Check if the application is being deactivated. if ((int)m.WParam == 0) { xyz += m.Msg + " "; // And put the title bar into the inactive state: PostMessage(this.Handle, WM_NCACTIVATE, 0, IntPtr.Zero); } } base.WndProc(ref m); }
code. Later code actually does the reverse of what I want, but still it does not work. Neither works.
I do not want the window to loose focus at all, because user will be drawing on this transparent window. Isn't there a straightforward way to do it, than to hack/tweak things?
In C#, if I make a transparent windows form using transparency key colored "control", then on clicking anywhere on screen(while application is in focus), transfers focus of the app to the one behind it, which is normal behaviour. If I want the application to retain the focus, is it possible to do anyhow ?
I will also need to draw user's clipped rectagle back to screen, when user is first time taking screenshot for english language. Does a minimized application allow me to draw rectangles back to the screen ? Here is a summary of what I already have found on net: ----------------------------------------------------- Creating a windowless application: Easily with windows forms. Sending events to another application : user32.dll provides findwindow and sendmessage function. Storing the events: I intend to use a sqlite engine. It comes in form of DLL that I can import. You will find tutorials online. What I am looking for now is a way to draw on screen and capture the events: ---------------------------------------------------------------------------- Global hooks might be the solution, if I can draw back a rectangle on the screen at the same time. I also intend to give use an option to choose colors/pen/rectangle/circle so that, anyone can scribble a bit on screen. But it will not be that fancy. Can I draw a user control on screen when application is minimized?
I do not want to go for such complex application, which I have to pay for. I want to keep it simple and customizable. That's why, I am trying to use code from such open source projects and create my own app.
No, I do not know how to create such an application. Let me google it. If you know about any examples or tutorials, Can you give me a link ? Thanks for the suggestion.
No ,it is not purely screen capture. I already found a good application for screen capture written in C#. (Greenshot on sourceforge) But I dont need those many features. I only need to capture the events send it to the software running behind. Take a screenshot and then replay these events again on different localized versions of software to take same screenshots from those versions too.
No It is not a spy application, it is basically screen capture and then replay. I have softwares from which I have to take screenshots. Now these screenshots need to be taken for each and every language the software gets translated in. So instead of doing this manually, I am trying to get it done automated. That's why I need to capture the events send it to the software for english language and then replay it on other language versions.
Hello everyone, I am trying to write a C# application, that does something as follows. It is in two parts. 1) windowless application: I want it to be a transparent application, through which user can see the application behind it but still when it click on the application the tranparent one(my application) receives the event message and stores it. Also that event needs to be sent to the main window of application that is running behind my application. 2) Screen capture. for this I need to be able to draw the area user selects on my application which is transparent. I found couple of tutorials for doing separate tasks of this application in different languages. But could not get started with it. I am completely clueless about how to implement it in C# or C++. does anybody have any idea how to get this done ? Any pointers will be helpful. Thanks, Parth