|
|
Hi,
I wanted to get all applications in the task manager with the names as displayed in that.
For eg. If i opened a movie from quicktime, i wanted to know the name of the file which is opened.
pls guide.
Thanks
|
|
|
|
|
Maybe this [^] will help.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
|
|
|
|
|
Hello Friends
I was using DirectshowBaseclasses samples from Windows7.1 sdk with VS2010. But After upsating on Windows8.1 with Vs2013, I am not able to find samples in Windows8.1 sdk to use directshow base classes. Basically, I am looking for CBaseVideoRenderer.
If these classes are changes to some other location, please let me know if anybody using it.
Any Help will be Appreciated.
Thanks & Regards
Yogesh Sikri
|
|
|
|
|
Hello, DirectShow on Widows 8 and up are deprecated, you can continue to use source from SDK 7.1,
but pay attention, for example, DirectX are not hardware accelerated, for new project you must use
use Microsoft Windows Media Foundation new from win7
Ciao
Carlo
|
|
|
|
|
Hi,
Everytime I use ShellExecute to open a web page I lose the focus from the parent program (caller if the ShellExecute). Is there any way to open the page silently in the background or to regain focus back to the caller ?
Regards,
sdancer75
|
|
|
|
|
Try this: BringWindowToTop[^]
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Hi,
No, it didn't worked. Googleing on the net, I think that the problem is more complicated than just calling one Win32 API function.
Regards,
sdancer75
|
|
|
|
|
How are you calling ShellExecute() ?
"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
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Hi,
I am calling ShellExecute like that :
ShellExecute(NULL, "open", strURL ,NULL,NULL,SW_SHOWMINNOACTIVE);
Where strURL is the URL address to open.
Regards,
sdancer75
|
|
|
|
|
Have you tried other values for nShowCmd ?
"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
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Hi,
Thank you for your reply.
Yes I have already tried
SW_SHOWNOACTIVATE ,
SW_SHOWNORMAL ,
SW_SHOWMINIMIZED ,
SW_SHOWMINNOACTIVE and
SW_SHOWNOACTIVATE without any success.
Regards
sdancer75
|
|
|
|
|
Hi,
I found out accidentally, that using the SetWindowPos to the MainFrm window inside the OnCreateClient it solves the problem. It seems that setting the attribute that does not change the Z-Order of the main window keeps it always in the top.
SetWindowPos(NULL, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_FRAMECHANGED);
What do you think ?
Regards,
sdancer75
|
|
|
|
|
Hello,
Quick prerequisite: I'm graphic designer and I have no idea about programing.
Long story short I want to modify some graphic files but they are encrypted. I already have the code in C for decrypting them but I have no idea how to make it into working program. Also I have no idea about C language syntax so I'm not sure if I need to modify this code so I can show the program files I need to decrypt. I would be very grateful if someone could help me with this.
#include <stdio.h>
int main (int argc, char **argv)
{
FILE *inp, *outp;
int i;
char sig[] = "CF10", *ptr;
if (argc != 3)
{
printf ("usage: decode [input] [output]\n");
return -1;
}
inp = fopen (argv[1], "rb");
if (inp == NULL)
{
printf ("bad input file '%s'\n", argv[1]);
return -2;
}
ptr = sig;
while (*ptr)
{
i = fgetc (inp);
if (*ptr != i)
{
printf ("input file sig is not 'CF10'\n");
return -2;
}
ptr++;
}
outp = fopen (argv[2], "wb");
if (outp == NULL)
{
printf ("bad output file '%s'\n", argv[1]);
return -2;
}
do
{
i = fgetc(inp);
if (i != EOF)
fputc (i ^ 0x8d, outp);
} while (i != EOF);
fclose (inp);
fclose (outp);
printf ("all done. bye bye\n");
return 0;
}
modified 22-Oct-14 11:46am.
|
|
|
|
|
What development environment will you be using? Visual Studio?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
To be honest I have no preferences and I can be flexible. I doubt I'll use C again in my life. I have acces to Visual Studio but isn't it only for Visual C++, C$ and VB?
|
|
|
|
|
Well you'll have to choose one before someone can help you make a program.
C code will compile in a C++ environment, so Visual C++ is OK.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Makes total sense. Let's make it Visual Studio Express 2013 for Desktop to be precise then.
|
|
|
|
|
Ok I figured out the easy part (how to compile C code in Visual Studio). But now there are two problems left:
a) When I try to compile the code from my first post i get this error: "
Error 1 error C4996:
EDIT: Ok I've dealt with this one by adding _CRT_SECURE_NO_WARNINGS to Preprocessor Definitions!
b) When I deal with the bug above how to modify code so I can "show" the program which files I want to decrypt?
|
|
|
|
|
It looks like the code is written to accept the names of the files to decrypt on the command line. So you might invoke the program by entering "program /file_to_decrypt.txt", or something like that.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Yup I did exactly that. Topic can be closed. Thx for your help!
|
|
|
|
|
Glad you got it working.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
I have one last question about the software. How should I modify the code so instead of decrypting the files I can encypt them again using the same "CF10" signature. Thanks in advance.
|
|
|
|
|
That would not be a simple change. You'd have to rewrite the whole thing.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Apparently #define VERSION does not simply replace the VERSION with literal 1.0.0 but the 1.0.0 is analyzed by GCC compiler.
Did some search and found that certain "tokens" have special function in #define.
Did not quite get which tokens, period is one of them, but like to know if this is something new or specific to GCC ( used by Arduino IDE).
Of course it works "normal" if the token is enclosed in parentheses as a string.
Any comments will be appreciated.
Cheers Vaclav
PS What is the correct name for "the stuff" after #define and VERSION?
|
|
|
|