|
You can use ifstream for that purpose. Check the doc here[^] for complete information.
More specifically, I suggest the use of the read function. There is an exemple of how to use it here[^].
|
|
|
|
|
Kennis wrote: I am a C++ beginner, it is so harsh to start it
You will definitely have to work through a real beginners course.
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
hi every one
how can i create a kernel mode service?
i am searching for article or sample code about it.
plz help me
|
|
|
|
|
Two points:
1) "kernel mode" and "service" do not go together - services usually run in the local system account which is NOT the same as kernel mode
2) Try something radical like searching the articles here on CP with the word "service" - first result is a nice beginner's article
Judy
|
|
|
|
|
i've written an article about it. the source code registers a kernel mode driver and starts it. have a look at it.
http://www.codeproject.com/KB/system/interrupthook.aspx
Don't try it, just do it!
|
|
|
|
|
Hi Frienz,
I have developed one Image Viewer ActiveX control in vc6. It working fine in IE and Its not working in other browsers like
Mozilla, Netscape. I came to know that I need to write Plugins for working ActiveX controls in Mozilla Firefox etc.
So Can you please tell me how to write Plugins for ActiveX control to work in Mozilla Firefox.
Waiting for your valuable reply
Regards
Trinadh
|
|
|
|
|
IE and Firefox are two different engines. How do you expect something that you developed for IE to work on Firefox? For Firefox development, search google for "firefox addon development".
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Hi All,
I am using VC++ Simple Application.I want to knnow the information about my internet connection. Information like Connected State , Speed, No of packets sent and received.How can I get these all??
And one thing I have got the connection status througth InternetGetConnectedState() function. But how can I get other information. Are there any Structure or APIs to do so??
Any suggetion will be hertly appreciated.
Thanks in advance.
Ashish Bhatt,
System Developer,
Avinashi System Pvt. Ltd.
|
|
|
|
|
If you want to have more control for Internet connection Send/Recv/Timeout,... On your system you have a tools its name is Performance it shows detaily of system but you can see source code of performance at the MSDN.
|
|
|
|
|
Thanks for reply.
Can you provide some URLs so I can easily go througth them if possible.
Ashish Bhatt,
System Developer,
Avinashi System Pvt. Ltd.
|
|
|
|
|
I think it was on the example of MSDN,did you have MSDN on your system? also other exmple on the example of MSDN was PVIEWER (I think) of course its about processes and threads.
|
|
|
|
|
Ya I have MSDN on my PC.Sorry, but I am not getting you perfactly ,how can I find this example on MSDN??
Ashish Bhatt,
System Developer,
Avinashi System Pvt. Ltd.
|
|
|
|
|
If you search on the MSDN site you can find it I found performance but its with C# here[^] and also I think you can find it here[^].
|
|
|
|
|
Sorry for the silly questions but actully I want to calculate the speed of internet connection.
If you have any idea than please tell me.
Ashish Bhatt,
System Developer,
Avinashi System Pvt. Ltd.
|
|
|
|
|
For speed I dont know but I think performance has counters for it I found perform and pviewer on the example of MSDN on the CD (I found it on the Old example of MSDN) but I cant send it for you because its size is 3MB and If I want to send it for you I will be need to 13 minutes (without Timeout.)
|
|
|
|
|
ashishbhatt wrote: I want to knnow the information about my internet connection. Information like...Speed
Look into GetIfEntry() and the Win32_NetworkAdapter class.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
there is a problem in the case of Arabic and any other bidi text, there are situations (especially when using weak characters) where an implicit bidirectional ordering is insufficient to produce understandable text. To deal with these cases, a set of directional formatting control characters are defined to control the ordering of characters when rendered
you can see it in
http://www.microsoft.com/middleeast/msdn/Control.aspx[^]
have any body information or sample code for this problem?
|
|
|
|
|
I have a form which is of CFormView and i am trying to implement a OnOK() function. but its not getting triggered. what can be the reason? cant we use OnOK function is CFormView Class? if not is there any other option?
|
|
|
|
|
OnOK is member of CDialog.
if you wana stil use it with same name
add entry in message map for your button
|
|
|
|
|
HI................
How to call Matlab functions in VC++ plz help me..
#sanroop#
|
|
|
|
|
|
How to Change the image in the Tabs of a CPropertySheet
wqewqqeweqwrwerewrwe
|
|
|
|
|
|
thank you..
wqewqqeweqwrwerewrwe
|
|
|
|
|
You're welcome I glad it solved your problem.
|
|
|
|