|
If you want to get access to the logon screen you must perform this inside a GINA.DLL. programatically it's impossible to get access to the logon screen if you don't do it from that DLL.
You can create a gina dll and make this... take a look at the msdn for more info.
(I've never done it, but I have readen something because some time ago I was interested in something similar...)
Hope this helps...
|
|
|
|
|
My project has been "hanging" lately on rebuilds using VS6... Like right now, it's:
Generating Code...
Creating library...
And no CPU is being used in task manager?!?! If I Cancel build, it locks up and I can't terminate the process via the task manager because it thinks the program is being "debugged" So the only thing I can do is kill the power
I am using VS6 SP3. I can't use SP5 (or 6?) because some of our libraries expose many bugs in those SP's. Anyone have a clue?
P.S. I'm compiling across the network. I'm going to try to copy the project to my local machine next. But our network is fine, and plenty fast...
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
It's not a COM project that you are compiling is it?
Michael
Life’s not a song.
Life isn’t bliss.
Life is just this.
It’s living. -- Buffy the Vampire Slayer: Once more, with feeling
|
|
|
|
|
No. I'm using this zip library[^] and some 3rd-party ActiveX controls[^]. Strangly enough, it seems I have winamp playing and outlook open when it will do it.... I copied the project to my local machine and deleted all the .obj stuff and the .ncb file, rebooted the machine, and the rebuild worked. I feel it's just a matter of time before it does it again...
What's the deal with COM prj? Can it be related? Does ActiveX use COM at all (i wouldn't think so)? Also, why would it be so wishy-washy? You would think if something's wrong, it would hang all the time... I'm keeping track of the clues. Does anything sound fishy to u?
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
I had a similar problem when the compiler tried to register the COM project. I had some dodgy code in the COM objects start-up code which prevented the COM object being registered by the compiler. Took me an age to fix it.
Although by the sound of it, it's more likely to be something else.
Michael
Life’s not a song.
Life isn’t bliss.
Life is just this.
It’s living. -- Buffy the Vampire Slayer: Once more, with feeling
|
|
|
|
|
Using VC6, SP? (probably 3, I'm not sure).
If we compile too much modules of our application with debug (/Od /Zi), then we get a floating-point invalid operation in a specific routine of our application. Recompiling that routine without debug (or with debug) does not seem to help.
Only if we recompile everything without debug again (/Ox /Oy-) the application runs correctly again.
If it crashes it always crashes in the same location, and it would even crash on the following source then:
double d1;<br />
double d2;<br />
d1 = 0.0;<br />
d2 = d1 + 1.0;
I've now upgraded to SP5 (hope the problem doesn't occur anymore), but I would like to know if this is a know problem or if anyone of you have encountered this problem too.
Btw, how can you see which Service Pack of Visual C++ is installed? Our system manager couldn't find it out either.
Thanks.
font color=#ff0000>Enjoy life, this is not a rehearsal !!!
|
|
|
|
|
[also posted in the COM forum - not sure which forum is more appropriate]
Hi all,
Can anyone point me in the right direction of information about using the Excel grid in a VC++/MFC app? I'm just looking to get the grid on a view / dialog, maybe manipulate some rows / columns (via code), etc.
Is this even doable?
Dylan
"In meetings, the person who is least competent usually does the most talking. Talking is a direct substitute for competence, at least in the minds of other people. Five minutes after you leave a meeting, you won't remember what anyone said but you will remember who did most of the talking. Withing a day your mind will translate that into a notion that the talker was unusually knowledgeable" - Scott Adams, Dilbert and the way of the weasel
|
|
|
|
|
Why not use this[^]?
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
I've been given the task of "evaluating the feasability of using Excel's grid" to work with our app. It's part of a larger grid evaluation thingy I've been tasked with, so I really need to get to grips with using Excel from VC for this one. I did find this[^], which is a nice starting point
Dylan
"In meetings, the person who is least competent usually does the most talking. Talking is a direct substitute for competence, at least in the minds of other people. Five minutes after you leave a meeting, you won't remember what anyone said but you will remember who did most of the talking. Withing a day your mind will translate that into a notion that the talker was unusually knowledgeable" - Scott Adams, Dilbert and the way of the weasel
|
|
|
|
|
Well, good luck. I take it "they" realize Excel needs to be installed on each machine your app will run on... BTW, I once was considering the same thing and after perusing the same MSDN article, I thought: "If all I'm doing is providing excel functionality, why not just use excel (and heaven forbid: VBA )?" But hey, it's all about the right tool for the job.
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
Try this: http://www.codeproject.com/com/xoffice.asp
Beware though, there are problems if the user has Norton Antivirus installed - see the comments.
--
The Obliterator
|
|
|
|
|
Hi,
I have a dialog implemented using the CPropertySheet. To this I add as two pages two diff dialogs. I want the whole thing to be colored diff(grey is boring)
To change the color of dialogs, I can override the WM_CTLCOLOR.
I tried the same with propertysheets, but it fails to change the color.
Any suggestions are most welcome.
Regards,
Deepti.
|
|
|
|
|
Hi,
I have a dialog in that i have a picture box,at some point of time i just want to display only the picture box.
I tried with SetForegroundWindow().But it didn't help me.
Regards
Neha
|
|
|
|
|
Are you running under W2K or XP? MS changed the behavior of SetForegroundWindow(). What you need to do is attach to the thread that has the foreground and switch from there. Check out
http://www.mooremvp.freeserve.co.uk/Win32/framed_tip033.htm
for a workaround.
D
|
|
|
|
|
I have a dialer that has to enumerate the ISDN modem on a computer. It works fine if i compare the szDeviceType with "isdn" on Win2k. But when I try to test it on win98 it shows the device as "modem" to my dialer even it is isdn. So how can i make sure tht the device is ISDN and not modem even windows is telling me its a modem. I know its not modem but ISDN but windows 98 thinks its modem and so shows 2 modems for both the channels.
how to verify a devide for being isdn or modem.
In my dream, I was dorwning my §orrow§
But my §orrow§, they learned to §wim
|
|
|
|
|
I want to create a wave file manually in my project (not by quicktime or anyother software) . If anyone can send me the resulting code i will be grateful.Wave file in VC++.
Hamza.
hamza
|
|
|
|
|
Hamza wrote:
If anyone can send me the resulting code i will be grateful.
No one answered you, maybe because you're asking WAY too much,
Have you been doing research, didn't you search for "wave file write", or "wave file format header" ?
Have you searched for samples, technologies, demos... ?
Help us help you by working on your side !
Max.
|
|
|
|
|
Hi,All
RecordCount Property giving me -1 value
Please read my code and give me where i am doing wrong;
and also please comment on my Code(if their any mistakes)
Thanks in Advance..
/////////////This is my code To Test the Function////////////////////
_RecordsetPtr pRst;
CString strTemp;
pRst.CreateInstance(__uuidof(Recordset));
pRst=GetData(1);
if(pRst!=NULL)
{
int nCount=(int)pRst->RecordCount;
strTemp.Format("%d",nCount);
AfxMessageBox(strTemp);
}
else
{
AfxMessageBox("Recordset null");
}
pRst.Close();
pRst.Release();
////////////////////////////////////
///////////////////This is my funtion which will return me Recordset object///////////
_RecordsetPtr GetData(int nType)
{
CString strType;
strType.Format("%d",nType);
try
{
//COM Library Initialization
if(FAILED(::CoInitialize(NULL)))
{
//Log error
return NULL;
}//if(FAILED(::CoInitialize(NULL))
//Open the Connection
m_hr=m_pConnection.CreateInstance(__uuidof(Connection));
if(FAILED(m_hr))
{
::CoUninitialize();
//Log error
return NULL;
}
m_strCnnString=GetConnectionString();//It will give me the Connection String
_bstr_t cnnString(m_strCnnString);
_bstr_t bstrEmpty("");
m_hr=m_pConnection->Open(cnnString,bstrEmpty,bstrEmpty,adConnectUnspecified);
if(FAILED(m_hr))
{
m_pConnection.Release();
::CoUninitialize();
//Log error
return NULL;
}
//Get the Command objet
m_hr=m_pCommand.CreateInstance(__uuidof(Command));
if(FAILED(m_hr))
{
m_pConnection->Close();
m_pConnection.Release();
::CoUninitialize();
//Log error
return NULL;
}
m_pCommand->ActiveConnection=m_pConnection;
m_pCommand->CommandText="Sp_GetData";
m_pCommand->CommandType=adCmdStoredProc;
//Append the Parameters to Command object
//Type Parameter
m_pParam=m_pCommand->CreateParameter(_bstr_t("Type"),adInteger,adParamInput,4,_variant_t(strType));
m_pCommand->Parameters->Append(m_pParam);
m_hr=m_pRecordSet.CreateInstance(__uuidof(Recordset));
if(FAILED(m_hr))
{
m_pConnection->Close();
m_pConnection.Release();
::CoUninitialize();
//Log error
return NULL;
}
//Execute the SP
m_pRecordSet->CursorType=adOpenStatic;
m_pRecordSet=m_pCommand->Execute(NULL,NULL,adCmdStoredProc);
return m_pRecordSet;
}//try block
catch(_com_error &comExcep)
{
//Handle the error
}
catch(CException * GenExcep)
{
//Handle the error
GenExcep->Delete();
}
//CleanUp the objects
if(m_pCommand!=NULL)
{
m_pCommand.Release();
}
if(m_pConnection!=NULL)
{
m_pConnection->Close();
m_pConnection.Release();
}
::CoUninitialize();
return NULL;
}
//////////////////This is my StoredProcedure /////////
CREATE PROCEDURE [dbo].[Sp_GetData]
(
@Type[int]
)
AS
Begin
SELECT
Data1,
Data2,
Data3
Data4,
Data5
FROM
tblTestData
WHERE
(Data1=@Type)
End
GO
////////////////////////////////
anju
|
|
|
|
|
from msdn:
Use the RecordCount property to find out how many records are in a Recordset object. The property returns -1 when ADO cannot determine the number of records or if the provider or cursor type does not support RecordCount. Reading the RecordCount property on a closed Recordset causes an error.
Basically, what you need to do is set the CursorLocation property of your recordset to adUseClient before opening it.
#include <beer.h>
|
|
|
|
|
|
hi,
I want to know what tech. does applications like MSN Messenger, Yahoo
Messenger, NetMeeting etc uses to enable voice conferencing over Internet.
What programming APIs are available to develop Voice conferencing over
internet
|
|
|
|
|
|
Please could someone help me (really desperate)???
I need to write an application with simulates the windows logon screeen.
I need to enter a username, password and domain. Then it needs to validate this info from a server (permissions, privileges, groups etc..).
Does anyone have any ideas or sample source code.
I would be eternally grateful if anyone could help me out with this prob.
Thankyou for your t
Richard
|
|
|
|
|
You need to write your own GINA dll. Do a search on msdn for the word "gina.dll" and you'll get enough results to get you started.
|
|
|
|
|
Thanks Steve.
I will look into it.
Hopefully this will start me in the right direction.
Cheers
|
|
|
|