|
Hi there,
I'm interested in making a MS GINA replacement and using CryptoAPI. Can anyone tell me is it possible to use CryptoAPI calls before the user log in? Thank you very very much.
Also appreciate for any pointers.
Will
|
|
|
|
|
You can use almost all API's so I guess you can use the CryptoAPI from the GINA.
The problem, from a GINA dll, is often that a specific service not has started yet, and therefore you cannot do some things, so wait a bit and try again.
I have noticed a major difference between Win2k and WinXP when working with a GINA dll, there's things that is not started up in XP before the user logs on.
I mean, I have developed a GINA that uses voice auth. to log the user on. On Win2k it works fine, but XP reports that there are no soundcard present. The sound drivers don't get loaded before the first person logs on. (That makes it kinda difficult to record the users voice )
I use a virtual PC when developing GINA dll's, then I can do remote debugging, and actually single-step through the logon procedure
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
one simple Q:
does .net use a lots COM ?
if so, i will not touch it.
thx
includeh10
|
|
|
|
|
And by the way what is wrong with COM?
|
|
|
|
|
Friends,
I want to use USES_CONVERSION macro and A2W/W2A macros in my Console application using Visual C++ 6.0. Can anyone tell me that in which header file these macros are declared ??
I am doing same in Visual C++ .NET and including header file atlbase.h and my program works normally.
But strange that whenever i include this header file in my Visual C++ 6.0 app, the compiler starts giving me errors in this headerfile. I am copying the first error below:
VC98\ATL\INCLUDE\atlconv.h(125)error C2440: 'return' : cannot convert from 'const char *' to 'const unsigned short *'
This should be noted i want to make both programs i.e VC++ 6.0 sample and VC++ 7.0 sample as UNICODE apps, and i have latest platform SDK installed.
|
|
|
|
|
Have you defined both UNICODE and _UNICODE macros?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
USES_CONVERSION;
BSTR b = T2OLE("blbla");
http://www.exontrol.com
|
|
|
|
|
in my app, i need to run netscape browsers, of course, i need to find its exe file first.
i find the browser is really silly.
in version 4.5, it is named "netscape.exe" and in version 8.0, it is "netscp.exe".
if u have other versions of the browser, please let me know its exe name.
thx
includeh10
|
|
|
|
|
Netscape Version 6.0:
Netscape\Netscape 6\netscp6.exe
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
I want to add some text to the end of a text file. The problem is that instead of adding, the program deletes the previous text and than writes the new text at the beginning of the file. What am I missing? Here's the code:
CStdioFile file;
file.Open("myfile.txt", CFile::modeCreate | CFile::modeReadWrite);
CString line = "bla-bla";
file.SeekToEnd();
file.WriteString(line);
file.Close();
|
|
|
|
|
CFile::noTruncate
Roger Allen
Sonork 100.10016
Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
|
|
|
|
|
Hy everybody!
I have a litle problem here in my program, and I wondering if anyone could help me. Here it goes.
I have an application (my own, my precioussss ), and when I make use of an Dll or something else that create another dialog (invisible, I think) for making an connection or something, my application loses his focus
Does anyone knows how can I make my application don't loses his focus in this situation?
thanks for your attention,
cheers!
Ricky
|
|
|
|
|
I would simply call SetWindowPos to make the main dialog have the focus again.
But perhaps you can also use a special window style or just SW_HIDE to make the main window not losing the focus.
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Hello,
I'm making a wizard and on one of the pages the user should select a filename.
I could integrate a button which says 'select filename', make a CFileDialog variable and call DoModal and copy the selected name back into a field, but what I really want to do is display the CFileDialog as the content of my CPropertyPage instead of in a seperate window, of course without the Ok and Cancel buttons.
I searched for any pointers in Google and msdn but couldn't find anything that helps me going in the right direction.
Does anyone of you have any pointers or links to an example?
Wim
|
|
|
|
|
I'm afraid that the answer is that you can't do it. You can't contain any of the common dialogs in a property page, because they're implemented as modal dialogs, not modeless child dialogs. The 'select filename' button that launches a separate CFileDialog is your only option.
(This question is answered in the "Visual C++/MFC Frequently Asked Questions" article by Stingray Software in the MSDN Library, title "How do I embed a common dialog in a property page?")
"We are the knights who say Ni" (The Knights Who Say Ni)
|
|
|
|
|
But.. you can embed a common dialog inside another dialog and then call it...
And if you can do so, you'll be able to use the newly created dialog as a property page (This is only a suposition)...
Here's how to do it: (following the sample in the book) and referring to embed the common dialog inside a normal dialog...
- Create a new dialog.
- insert a group control where you'll want to get the common dialog inserted.
- change it's ID to: stc32(=0x045f)
if you cannot do it, contact me, I'll email you a sample (not in a property page but inside a dialog), the conversion should be easy...
Remember... I'm not sure if this work inside a property page, but it seems that it should do it...
Hope this helps...
|
|
|
|
|
I have to perform find operation in an ADO
recordset using complex WHERE clauses.
I have found that Find function doesn't support
complex WHERE clauses.
Which function have I to use ??
Which is the best way to perform Find operations
with complex WHERE clauses ???
Thanks a lot !!!
|
|
|
|
|
Create new recordset using your WHERE clause.
Pavel
Sonork 100.15206
|
|
|
|
|
I've done as you say...
but now I have a problem with WHERE condition...
I wrote:
CADORecordset l_Recordset;
l_Recordset = CADORecordset(p_pDb);
l_cstrSearchString = _T("SELECT * FROM MY_TABLE Field1 = '") + p_rcstrSelName + _T("' Field2 = '") + p_rcstrSelDate + _T("'");
l_Recordset.Open(l_cstrSearchString, CADORecordset::OPEN_TABLE);
When I execute this operations.. it says that there is an error in FROM position...
Can you help me ???
|
|
|
|
|
am i missing something here ? i don't see any where clause in your code :
"SELECT * FROM MY_TABLE Field1=..."
^
|
|
|
|
|
Hello,
I'm not familiar with your CADORecordset class, but two things stands out right away:
1. Your SELECT statement seems to be missing the 'WHERE' and 'AND' keywords.
'SELECT * FROM My_Table WHERE Field1='string1' AND Field2='string2'
There doesn't seem to be any spaces between the field filters.
Make sure that the SQL statement is valid.
2. The CADORecordset::OPEN_TABLE enumerator tells me that you are trying to open the table directly (ADO::adCmdTableDirect). This will fail if you pass an SQL string instead of the table name. Try ADO::adoCmdText, (equivalent in CADORecordset).
---
happy hunting
|
|
|
|
|
Elloh
I work with a CTreeCtrl, one root: #childs en #leafs/child.
Everytime i click on the tree, i validate if we are talking about root, child or leaf. When it's a leaf, i put some text in a textbox. Works all fine.
Made a button 'Update'. When i click on that button, it checks if the current textbox is empty or not. If it's empty i delete the child, when the parent has no childs left, i delete the parent too. This works all fine if i press the button. But i alsoo want the 'onkillfocus' on that button, it does the same action. Done that, not prob.
But when i click on the treelist, the onkillfocus of that 'update' button reacts, then it checks if editbox is empty or not. But the problem is:
the editbox has already been changed because you clicked somewhere else, other information in it. The code of 'Update' action checks the current selection, but it now has changed and it wants to change for example the other leaf. (because i clicked on another leaf on that tree, it changes selection and my routine checks the current selection, need to have the 'old' selection).
Greetings
Jens
|
|
|
|
|
I've written a Wizard based app using MFC6 on Windows2000. If I run (release version)it on Win95 and Win98 everything is fine. If I run it on my PC with Windows2000 it is fine, but if I run it on two other Windows2000 PCs is get an erro messagebox saying....
app.exe - Entry Point Not Found
The procedure entry point SetHandleContext could not be located in the dynamic link library KERNELL32.DLL
Anyone got any ideas what I'm doing wrong please? Thanks
I feel like I'm diagonally parked in a parallel universe
Jeremy Davis
http://www.astad.org http://www.jvf.co.uk
|
|
|
|
|
Could be something wrong with one of the following dll's.. (Got that from one of the links below)
Winsock.dll
Wsock32.dll
Ws2_32.dll
Ws2help.dll
http://searchwin2000.techtarget.com/tip/1,289483,sid1_gci809680,00.html?FromTaxonomy=%2Fpr%2F5e3
http://www.jsifaq.com/subh/tip3900/rh3919.htm
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
Hello,
In MDI project, i work with CHtmlView and i want to add scrollbar to my childs windows.
so i do :
BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style = WS_VSCROLL | WS_HSCROLL |WS_OVERLAPPEDWINDOW;
m_HScroll.Create(SBS_BOTTOMALIGN ,CRect(0,0,0,0),this,ID_HSCROLL);
}
int CChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
m_HScroll.SetScrollRange(0,50,TRUE);
m_HScroll.SetScrollPos(0,TRUE);
}
When the prorgram start, i have scrollbars in my child window, greats !
I can detect :
void CChildFrame::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
void CChildFrame::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
but when i do a m_HScroll.SetScrollPos(10,TRUE); the ScrollBar don't move it is always in the left.
the user can use the scrollbar (it always stay in left position), i can detect when the user click on it and i can move my view, but i can't move my scrollbar.
if i do m_HScroll.SetScrollPos(10,TRUE); and int toto = m_HScroll.GetScrollPos()
toto == 10 !
but "at the screen" the scrollbar stay in the left.
Have you any idea ?
PS: excuse for bad english
|
|
|
|