Click here to Skip to main content
15,918,178 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: two dialog boxes in single application Pin
CPallini13-Apr-09 9:08
mveCPallini13-Apr-09 9:08 
Questionfile searcher in vc++ ? Pin
ashish8patil12-Apr-09 23:22
ashish8patil12-Apr-09 23:22 
AnswerRe: file searcher in vc++ ? Pin
Divyang Mithaiwala12-Apr-09 23:29
Divyang Mithaiwala12-Apr-09 23:29 
GeneralRe: file searcher in vc++ ? Pin
ashish8patil13-Apr-09 1:20
ashish8patil13-Apr-09 1:20 
AnswerRe: file searcher in vc++ ? Pin
_AnsHUMAN_ 12-Apr-09 23:44
_AnsHUMAN_ 12-Apr-09 23:44 
GeneralRe: file searcher in vc++ ? Pin
ashish8patil13-Apr-09 1:19
ashish8patil13-Apr-09 1:19 
QuestionDriver problem Pin
trioum12-Apr-09 23:01
trioum12-Apr-09 23:01 
QuestionAccess non-exposed port. Pin
Comp_Users12-Apr-09 22:56
Comp_Users12-Apr-09 22:56 
Hi,

I am working on VS 2005 on Vista platform.

I have an mobile data card which exposes an Modem Port and this port appears as an device entry under "Modems" in the Device Manager.

In addition to this, the device has another port which i figured out by scanning through the registry and this port does not appear in the device manager.
This port appears in the list of available ports displayed by HyperTerminal and also in PortMon and I can connect and talk to the device via HyperTerminal.

But in my application when I try to do an CreateFile with that port name, the call fails with GetLastError() returning 2.

    TCHAR szPortName[MAX_PATH]=_T("");
_tcscpy(szPortName, _T("\\\\.\\"));
_tcscat(szPortName, _T("COM6:");    //assume the non-exposed port is COM6.

HANDLE hDeviceFile = CreateFile(szPortName,
    GENERIC_READ | GENERIC_WRITE,
    0,
    NULL,
    OPEN_EXISTING,
    0,
    NULL);
DWORD dwReturn = GetLastError();


Is there something wrong in the CreateFile() function call above.
Or is it that Vista allows only ports that are expose/displayed in the Device Manager for an Device to be used by an application?
AnswerRe: Access non-exposed port. Pin
Comp_Users13-Apr-09 0:25
Comp_Users13-Apr-09 0:25 
QuestionHow do I get windows password policy? Pin
cozyu12-Apr-09 21:48
cozyu12-Apr-09 21:48 
AnswerRe: How do I get windows password policy? Pin
David Crow13-Apr-09 3:51
David Crow13-Apr-09 3:51 
GeneralRe: How do I get windows password policy? Pin
cozyu15-Apr-09 16:16
cozyu15-Apr-09 16:16 
QuestionAny software that gives me source code of a dll Pin
002comp12-Apr-09 21:39
002comp12-Apr-09 21:39 
AnswerRe: Any software that gives me source code of a dll Pin
_AnsHUMAN_ 12-Apr-09 21:46
_AnsHUMAN_ 12-Apr-09 21:46 
AnswerRe: Any software that gives me source code of a dll Pin
Rajesh R Subramanian12-Apr-09 22:28
professionalRajesh R Subramanian12-Apr-09 22:28 
AnswerRe: Any software that gives me source code of a dll Pin
enhzflep13-Apr-09 22:28
enhzflep13-Apr-09 22:28 
Questionmemory leak in Visual C++ 2008(win32 app+DirectX9) Pin
akira3212-Apr-09 21:26
akira3212-Apr-09 21:26 
AnswerRe: memory leak in Visual C++ 2008(win32 app+DirectX9) Pin
Rolf Kristensen13-Apr-09 12:52
Rolf Kristensen13-Apr-09 12:52 
QuestionList Box Pin
MsmVc12-Apr-09 21:07
MsmVc12-Apr-09 21:07 
AnswerRe: List Box Pin
_AnsHUMAN_ 12-Apr-09 21:29
_AnsHUMAN_ 12-Apr-09 21:29 
AnswerRe: List Box Pin
David Crow13-Apr-09 3:53
David Crow13-Apr-09 3:53 
Questioncan anyone explain this piece of code? Pin
Rakesh512-Apr-09 20:40
Rakesh512-Apr-09 20:40 
AnswerRe: can anyone explain this piece of code? Pin
Rajesh R Subramanian12-Apr-09 21:01
professionalRajesh R Subramanian12-Apr-09 21:01 
AnswerRe: can anyone explain this piece of code? Pin
_AnsHUMAN_ 12-Apr-09 21:26
_AnsHUMAN_ 12-Apr-09 21:26 
AnswerRe: can anyone explain this piece of code? Pin
Emilio Garavaglia13-Apr-09 0:13
Emilio Garavaglia13-Apr-09 0:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.