|
lol, ehhhhhhh, he was just giving you an idea for how it would work. I'm pretty sure there is an article around the site that has details about port scanning, just search and ye shall find.
|
|
|
|
|
Hey,all...
My current Win32 application would do some background job while Windows enters the "screensaver" status, and it would shows a top-most dialog outside the screensaver's screen for displaying the working status and progress.
But now I encounter a problem: while the option "On resume, password protect" is set on the screensaver setting dialog in Win2K/XP, the dialog box on my application cannot be showed outside the screensaver screen, but if this option is not set, it do.
Does anyone can tell me how to solve this problem? Thanks!
|
|
|
|
|
The screen saver runs in its own desktop, so windows created by programs running as your account are not visible. It's the same with the Winlogon desktop (the one you see after you stop the screensaver), it's a separate desktop and your windows won't appear there either.
--Mike--
I'm bored... Episode I bored.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
thanks!
So, how can I do that?
|
|
|
|
|
You could write a screensaver that displays your progress.
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
Can any one suggest a good Vector Graphic library?
better open source
Thanks!
|
|
|
|
|
SVG. Try googling for "libSVG" and you'll probably find something.
|
|
|
|
|
Hi
I have successfully built a Win32 Static library. I test this by adding the *.lib name to my link option in the project setting but when i try to use the class in the library in the test program, it always give me errror say "Undeclare identifier" whether i know firmly that it is nothing wrong with the declaration. I know that the linking process is ok, but what else did i miss ??
Regard,
|
|
|
|
|
Post the exact error message you're getting and if it's referring to a line in your program, that bit of code as well.
he he he. I like it in the kitchen! - Marc Clifton (on taking the heat when being flamed)
Awasu v0.4a[^]: A free RSS reader with support for Code Project.
|
|
|
|
|
Hello,
you have to include the header file where you declared your class you want to use everywhere you plan to use that class. This is needed to make the class known to your application.
|
|
|
|
|
dear all,
i'm using Windows Xp pro with NTFS partition.
i've used LogonUser to get a token of a user and then I use the token in CreateProcessAsUser(...). I use flag LOGON32_LOGON_INTERACTIVE SO THERE IS NO NEED TO DUPLICATE THE TOKEN.
I've also set the reqd. previliges in the system.
but still when i try to execute a process, i get an error -> Access Denied (5).
I also tried to use function ImpersonateLoggedOnUser(..) (which was successful) but still I get the same Error while using function CreateProcessAsUser(...) after using ImpersonateLoggedOnUser(...) and the process is not executed.
I've even tried setting priviliges by code and manually in the OS
But still I found the same Error (error number 5).
In VB also i get the same problem.
is it a bug!!!!!!!!!!!
any ideas!!!!!!!!!
thanx,
<marquee>rishabhs<marquee>
|
|
|
|
|
plz...............................................
respond
|
|
|
|
|
I'm not even sure where to begin, I highlighted in red the section where I believe it blows up....
#import "Tester.tlb"
using namespace Tester;
class CTestDlg : public CDialog
{
DECLARE_DYNAMIC(CTestDlg);
friend class CTestDlgAutoProxy;
public:
CTestDlg(CWnd* pParent = NULL);
Tester::_Numbers *com_ptr ;
CoInitialize(NULL);
<font color="red">Tester::_NumbersPtr p(__uuidof(Tester::_Numbers));</font>
com_ptr = p;
long i = com_ptr->GetDay();
The message that pops up says: "Runtime Error! The application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information." Where does and error message like that come from?
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
Try:
Tester::_NumbersPtr p;
p.CreateInstance(__uuidof(Tester::_Numbers));
Dave
|
|
|
|
|
Nick Parker wrote:
Tester::_NumbersPtr p(__uuidof(Tester::_Numbers));
Should be
Tester::_NumbersPtr p(__uuidof(Tester::Numbers));
The constructor always takes the CLSID of the class not IID of the interface.
The mistakes made in this API make me realise that Microsoft has become big enough that it can shelter morons. If anyone working for me wrote anything this bad and tried to release it, I would kill them and display the body as a warning to the rest of the team. - Christian Graus about C# - GDI+
|
|
|
|
|
Rama Krishna wrote:
Should be
Tester::_NumbersPtr p(__uuidof(Tester::Numbers));
I tried this and it looks like this now:
CoInitialize(NULL);
Tester::_NumbersPtr p(__uuidof(Tester::Numbers));
com_ptr = p;
long i = com_ptr->GetDay();
AfxMessageBox(i);
However it throws an error in appui1.cpp . What file is this, I have never heard of it.
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
>>AfxMessageBox(i);
AfxMessageBox takes the ID of the string resource not a number. So you need to wrote code like :-
long i = com_ptr->GetDay();
char sz[32];
itoa(i, sz, 10);
AfxMessageBox(sz);
The mistakes made in this API make me realise that Microsoft has become big enough that it can shelter morons. If anyone working for me wrote anything this bad and tried to release it, I would kill them and display the body as a warning to the rest of the team. - Christian Graus about C# - GDI+
|
|
|
|
|
How to get the free video memory?
|
|
|
|
|
Take a look on the DirectDraw / DirectX SDK!
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Thanks Daniel.
But, I'm using Win32 and DirectX 8.1 SDK.
DX API GetAvailableTextureMem() returns an estimate of the amount of available texture memory.
I want to know the actual size of the video RAM of installed graphic card.
|
|
|
|
|
Take a look on the IDirectDraw7::GetAvailableVidMem function.
IDirectDraw7::GetAvailableVidMem:
The IDirectDraw7::GetAvailableVidMem method retrieves the total amount of display memory available and the amount of display memory currently free for a given type of surface.
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Thanks Daniel^^;;
(Why is this omitted in DirectX 8?)
|
|
|
|
|
John Seo wrote:
Why is this omitted in DirectX 8?
I doun't know ! Ask Bill !
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Hi :
I need some help. What I am trying to do is to have a common dialog that can be used from any class, a good example would be a file browser or print dialog.
Suppose I create the dialog template ( through resource editor ) , and the wizard creates a class Dlg.cpp and Dlg.h.
I have a derived button class ( call XButton ) that if double clicked, should open up this dialog. Naturally, I have to include Dlg.h - but it gives me the following errors :
c:\windows\desktop\vc++\x\mynewdlg.h(21) : error C2065: 'IDD_DIALOG123' : undeclared identifier
c:\windows\desktop\vc++\x\mynewdlg.h(21) : error C2057:
It seems that I can only include this Dlg.h to files that source in resource.h - which well, makes sense since IDD_DIALG123 is defined in there.
How do I work around this ?
Any suggestion will be appreciated.
|
|
|
|
|
hi,
i had a similar problem previously, I guss in your resource.h you don't have your dialog id and a value assigned to it. If it does then is your classwizard using the dialog for yourdlg.h and .cpp files. If yes then do one thing note the number from the resource.h file for your dialog and write it into the place IDD_DIALOG123 in enum { IDD = IDD_DIALOG123 }.
hope it solves ypur problem.
cheers,
Himanshu
|
|
|
|