|
I don't know it is fully possible or not with another API..
DeviceIOControl(). This API is used for similar type of work, even file related. Check MSDN for more detail.
I think it would be only help that I can do. Let me know if you get any direct method(by e-mail).
Regards,
Sumit Kapoor
+91-98-990-59818(M) Delhi >> INDIA
sumit_kapoor1980@rediffmail.com
Never consider anything impossible before trying to solve that..---Sumit Kapoor---
|
|
|
|
|
Because of the HAL, I think you'll need to create a device driver if you want that level of access.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Respected All
Regards!
I already sent my problem to the forums but no reply till now now i am going to explain a bit more my problem.
" I loaded a bitmap in the form of Electric Circuit from my VC++ program and that bit map has some Resistors and Voltage, when I execute the program the bitmap became load and voltage from battry came Randomly after every one second by settimer() function and according to voltage the current is calculated from V=IR formula , now i want that when current flow through the circuit(which is not real , here i just show on bitmap that current s flowing) exceeds from certain limit the Resistor(which is on bitmap)change his color to RED, GREEN etc at run time.plz help me while doing so.
Best wishes.
David
david
|
|
|
|
|
Load bitmaps which represent your resistor in different colors, and draw it on your background bitmap.
Could you post some code which show what you have already done ( in a new thread, this one is too old) ?
~RaGE();
|
|
|
|
|
Hi,
Any one can suggest how to do this.
I am using a list control with ICON property. I want text lables to be displayed right side of the icon. Now they are displayed below the icon as default property.
Thanks.
|
|
|
|
|
without cookies, I just click a button from my program ,and then the program load the username and password from a local file,then open an ie to show the web page that logon already?
Is this possible? Thank you all here.
Thank you very much.
|
|
|
|
|
Buy a Microsoft fingerprint reader, it will do all that for you, and looks cool on your desk.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I do that for some websites.
I use a Proxomitron filter that inserts my username and
password as 'value' arguments in the appropriate
fields of the login . It also adds a javascript
function ( formsubmit()--which automatically submits the
form ) and inserts an "onload" call to formsubmit() it
the tag.
You could probably do it with GreaseMonkey or Privoxy too.
Steve T
|
|
|
|
|
Whoops, sorry. Though I was in the lounge.
Didn't realize this was a C++ question.
Steve T
|
|
|
|
|
I have several .vbs files that do that for various Web sites that require authentication. I don't know how to do that with VC++, however.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Any one can help me, using API, to change the background and font color of the static text control.
I try to use: SetDCBrushColor (), SetBkColor() with handle to the static text control which is retrieved from GetDlgItem().
But nothing happen.
Thanks for your help.
|
|
|
|
|
You need to create an owner drawn control for this. Or download one, there are plenty about.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Try with WM_CTLCOLOR[^]handler
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
I'm developing an application using MFC. I've implemented Context Sensitive
Help using HTMLHELPW function.
On the right click of the mouse on any of the controls a help message is
displayed.
The problem I'm facing is :- Whenever a user randomly right clicks on
several different controls an Debug Assertion Failure message is displayed
and the execution of the application is broken.
On deugging the application it is found to break at Wincore.cpp file.
I'm providing the Lines of code in Wincore.cpp where the failure occurs:
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
In debug window it displays:
Unhandled exception at 0x7c34055c (MFC71UD.DLL) in Application.exe: User
breakpoint.
File: wincore.cpp
line 880
Any idea how this problem can be resolved?
Thanks
|
|
|
|
|
topagarwal wrote:
...an Debug Assertion Failure message is displayed...
And what is the line # and file of that assertion?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
File: wincore.cpp
line 880
|
|
|
|
|
In VC++ v6, I do not see an assertion on line 880 of wincore.cpp. Are you using some other version of VC++?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
|
Check this[^]
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
|
how to convert bitmap in bytes code
|
|
|
|
|
GetObject[^]
The BITMAP[^]structure has a pointer to the bitmap bytes, once GetObject has filled it in. If it does not work, you need a DIBSection, create one and copy your image onto it, then you can pass that HBITMAP to GetObject, or if you called CreateDIBSection[^]yourself, you'll already have a pointer to the bytes.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Use the function GetBitmapBits() which returns the the bits in an Byte array
or u can read a bitmap like any other ordinary file.
|
|
|
|
|
Respected all
Regards
I have a problem in VC++.
" I have a Bitmap in the form of Electric Circuit and i did programming for it when current flowing through it it shows the calculated current from V=IR formula,in this i took the volatge as random value after one second change his value and with this all the current that flows throgh the circuit changed his value from the above formula.
But now i want that when current exceeds from some limited value the Resister coming in the remaining circuit change his color and again reset when current
kindly guide me.
Best wishes.
David
|
|
|
|
|
Is it possible to use VC++ to activate a button in a web browser automatically. I hope this is clear. sorry for bad english.
I want to run a VC++ program to automatically cliack a button in a web browser. thanks
thanx
|
|
|
|