|
I have a class that works with CPropertyPage classes!
So, the problem is that I need the value of the resource id (IDD) of the property page.
I need the following value:
enum { IDD = IDD_XXX }
How can I get this value at runtime???
I have only pointers to CPropertyPage classes!
CPropertyPage* pPage;
pPage->...
Is there any member function, like pPage->Get??? to get the IDD (resource id) of the property page!
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Personally, I would create my own class derived from CPropertyPage, and override the constructor. You could store the resourceid in a member variable, and then call the base class constructor.
jon
Signature space for rent. Apply by email to....
|
|
|
|
|
I have found a way:
pPage->m_psp.pszTemplate;
pszTemplate:
Pointer to a dialog box template to use to create the page. This member can specify either the resource identifier of the template or the address of a string that specifies the name of the template. If dwFlags includes the PSP_DLGINDIRECT value, this member is ignored.
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Hi friends!
I am using DirectSound for capturing audio. I am using DirectSoundCaptureEnumerate() API to enumerate avialable audio capture dev. I have included dsound.h but still i am getting error that this function is
'undeclared identifier' plz tell me what to do, exactly where to include dsound.h in MFC application confused:
|
|
|
|
|
Which function is undeclared? Post the error messages you get.
Gero
|
|
|
|
|
In the case you have a separate DirectX SDK installed, make sure to add the include and library directories in msdev tool Directories options, in FIRST position.
(otherwise, msdev will compile and link with those from its own installation, which may be too old).
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
please, somebody, help me!
i really need to view in one dialog/view more than one rich edit views. each of them may contain images.
i cannot make CRichEditCtrl to show images and i cannot show more than one CRichEditView in one place (they must locate one under another).
please, if someone has ANY idea how to do this, help me!
Dmitry Timin
|
|
|
|
|
If you find out how to do it, please let me know, or write an article on it, cause im having the same problem!
|
|
|
|
|
Hi all,
My problem is this. I have a user viewing a web page on my intranet and that user has an ActiveX control running on that web page. The ActiveX control needs to get some sort of information about the currently logged in user and to send it to my server and the server must then authenticate that user against the domain.
I don't want the user to have to type in a user name or password, I want the user to view the web page, the activeX control to send some security information (SID?) to the server, the server then validates against the NT domain then the user is automatically logged into the intranet system.
Do you know what sort of information the ActiveX control needs to get and how I could do all of this?
Thanks in advance, Phil
|
|
|
|
|
IE has integreted authentification, unlike Netscape. This should allow you to log, authenticate, certify someone without showing a single box.
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
Problem is I have a Apache web server with J2EE on it on a Tomcat thingy.
My clients are IE.
So you see why I need an ActiveX control to send something to the web server to be authenticated...
Any ideas?
Cheers, Phil
|
|
|
|
|
If you can't rely in integrated authentification (explained here[^]) which to be honest assumes a IE - IIS pair, you may end up doing simple https auto-form submit.
I would see you create a https page (from any web server, like the ones you mentioned), build a form, and use the ActiveX to fill and submit this form. Just a thought.
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
|
Well... no unfortuantly.
Basically the problem is this - the user is logged into his machine at work as per normal then they open their browser and navigate to the intranet web page. Which happens to be served from an Apache web server running J2EE/JSP etc.
Now - as I know the user is currently logged into the domain, why can't that users credientials be sent to the server in order to identify who that user is without the user ever having to enter their user name and password.
You see, once the user logged into the domain when the booted their computer they should have a SID, why can't I then send that SID to the server to verify that user? If so - how?
Phil
|
|
|
|
|
philip andrew wrote:
Now - as I know the user is currently logged into the domain, why can't that users credientials be sent to the server in order to identify who that user is without the user ever having to enter their user name and password.
Because that machine does not belongs to the domain. That would be a huge security breach. If MS allowed what you're saying, as you navigate to any Web Site you could have your username/password stolen.
My latest articles:
Desktop Bob - Instant CP notifications
XOR tricks for RAID data protection
|
|
|
|
|
I'm trying to programatically print an app-generated temporary .txt file, wait until the file has been spooled to the printer, then delete the file. Here's what I'm doing:
generateFile (strFilespec);
long nStatus = (long) ::ShellExecute
(m_hWnd, "print", strPrintFile,
NULL, "", SW_SHOWNORMAL);
if (nStatus <= 32)
displayError();
deleteFile (strFilespec);
Because ShellExecute returns immediately after displaying the (unfortunately modeless) Print dialog, the file gets deleted before the user has an opportunity to respond to the dialog.
I could loop until I detect the absence of a top-level window named "Print" before deleting the file, but that solution reeks of cheddar. I also tried using ShellExecuteEx with the SEE_MASK_FLAG_DDEWAIT flag in the hope that I could the function to behave in a modal manner, but that didn't help.
Any ideas on how to spool a file to the printer in a modal manner would be greatly appreciated. Thanks!
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
You have the WIN32 spooler API here[^], allowing to enum printers and get the list of jobs.
Good luck!
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
Thanks, Stephane. Unfortunately, I don't want to manually print the file (would've used standard MFC in that case). It's actually an .HTML file and I'm using the "print" verb to print it. I have a feeling I might end up using the "wait for window to close" hack.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I didn't say you had to do low-level printing. I thought you could enum the amount of jobs, do ::ShellExecute, then start a loop waiting for the new print job to end.
I agree that waiting for the print window to close may be just enough for your needs.
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
__Stephane Rodriguez__ wrote:
start a loop waiting for the new print job to end.
Good point, although I'd prefer to not have the user wait for a successfully spooled job to end. If they were printing to a network printer, it might take time. Of couse, I could just wait for the job to be queued, and then continue.
But I think I'm going to go take a completely different tack: I'm going to delete the temporary print file(s) when the app starts.
Thanks for your replies, Stephane and Nish!
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Ravi,
This is a guess, so it might not work.
If you use ShellExecuteEx, then SHELLEXECUTEINFO::hwnd holds the handle to any message boxes that the system might produce during execution.
Now you could do something like this :-
while(true)
{
Sleep(1000);
if(!IsWindow(SHELLEXECUTEINFO::hwnd))
break;
}
deletefile(...)
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
Thanks, Nish! Still cheddarlike...
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
|
Fortunately this cheese doesn't belong to the known stinking cheeses. Oh my goddish;P
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|