Click here to Skip to main content
15,916,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Library Error Pin
sweep12318-Dec-03 3:31
sweep12318-Dec-03 3:31 
GeneralRe: Library Error Pin
John M. Drescher18-Dec-03 3:50
John M. Drescher18-Dec-03 3:50 
GeneralRe: Library Error Pin
sweep12318-Dec-03 4:32
sweep12318-Dec-03 4:32 
GeneralRe: Library Error Pin
John M. Drescher18-Dec-03 5:42
John M. Drescher18-Dec-03 5:42 
QuestionAFX_MANAGE_STATE(AfxGetStaticModuleState()) problem??? Pin
YaronNir16-Dec-03 22:35
YaronNir16-Dec-03 22:35 
QuestionHow to access Cell Phone (ie: Nokia) via Irda from PC ? Pin
Ivan Budiono16-Dec-03 22:12
Ivan Budiono16-Dec-03 22:12 
AnswerRe: How to access Cell Phone (ie: Nokia) via Irda from PC ? Pin
Peter Molnar17-Dec-03 12:50
Peter Molnar17-Dec-03 12:50 
GeneralRe: How to access Cell Phone (ie: Nokia) via Irda from PC ? Pin
cofst26-Dec-03 16:17
cofst26-Dec-03 16:17 
Hi Peter, I'm a begginer in this, i know that this section is For C++ only, but I have the same problem to comunicate to my cell phone, and I'm very confused now.

I have already try CreateFile,ReadFile,and WriteFile Function as you tell us on this message board.
I try those using Visual Basic by declaring CreateFile Function with kernel32.dll as the library.

the problem is there is no file created when the programm's running, even on my drive C:\.
this is my code.

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
CF=CreteFile("C:\tester.txt",GENERIC_WRITE, _
FILE_SHARE_READ,0,CREATE_NEW,FILE_ATTRIBUTE_ARCHIVE,0)

if CF<>-1 then
'write file function
else
msgbox "Error Message"
end if

CloseHandle(CF)
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

I have try to change the first parameter with "\\.\c:\tester.txt" or "\\.\irda1\tester.txt" but the result is same, there's nothing happen.

I hope you can give me a sugestion or maybe you can tell me where i can find the example programm in VB or VB.NET

Thank you Very Much!!! and im sory, my english is not very good;P
GeneralRe: How to access Cell Phone (ie: Nokia) via Irda from PC ? Pin
cofst28-Dec-03 20:50
cofst28-Dec-03 20:50 
GeneralRe: How to access Cell Phone (ie: Nokia) via Irda from PC ? Pin
Peter Molnar29-Dec-03 9:52
Peter Molnar29-Dec-03 9:52 
GeneralRe: How to access Cell Phone (ie: Nokia) via Irda from PC ? Pin
cofst4-Jan-04 16:14
cofst4-Jan-04 16:14 
GeneralRe: How to access Cell Phone (ie: Nokia) via Irda from PC ? Pin
Peter Molnar4-Jan-04 18:41
Peter Molnar4-Jan-04 18:41 
GeneralCalling C++ code from C Pin
peterchen16-Dec-03 22:04
peterchen16-Dec-03 22:04 
GeneralRe: Calling C++ code from C Pin
Prakash Nadar16-Dec-03 23:49
Prakash Nadar16-Dec-03 23:49 
GeneralRe: Calling C++ code from C Pin
peterchen17-Dec-03 8:12
peterchen17-Dec-03 8:12 
GeneralRe: Calling C++ code from C Pin
Anthony_Yio17-Dec-03 0:39
Anthony_Yio17-Dec-03 0:39 
GeneralRe: Calling C++ code from C Pin
John M. Drescher17-Dec-03 4:21
John M. Drescher17-Dec-03 4:21 
GeneralRe: Calling C++ code from C Pin
Prakash Nadar17-Dec-03 16:03
Prakash Nadar17-Dec-03 16:03 
GeneralRe: Calling C++ code from C Pin
Dinesh Ahuja17-Dec-03 16:45
Dinesh Ahuja17-Dec-03 16:45 
Generalid3 tag for wma file Pin
qdping16-Dec-03 22:01
qdping16-Dec-03 22:01 
GeneralDerived CFrameWnd and attaching a View with it. Pin
Dinesh Ahuja16-Dec-03 21:59
Dinesh Ahuja16-Dec-03 21:59 
GeneralI really need help here! guru plz help Pin
YaronNir16-Dec-03 21:48
YaronNir16-Dec-03 21:48 
GeneralRe: I really need help here! guru plz help Pin
sam India16-Dec-03 22:06
sam India16-Dec-03 22:06 
GeneralRe: I really need help here! guru plz help Pin
YaronNir16-Dec-03 22:13
YaronNir16-Dec-03 22:13 
GeneralRe: I really need help here! guru plz help Pin
sam India16-Dec-03 22:48
sam India16-Dec-03 22:48 

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.