I am working on a project that communicates to an embedded microprocessor through a USB/UART chip. The processor is wired so that it can be reprogrammed through the UBS/UART also. My software is able to open the serial port and communicate with the microprocessor. I open the serial port with the following parameters: Baud 115200, Data Bits: 8, Stop Bits One, Parity: None, and Handshake: None. The problem occurs when the serial port opens: the DTR line goes low momentarily, which causes the microprocessor to reset. The software to reprogram the microprocessor forces the DTR low during the reprogramming process, so we can not just disconnect the DTR line. Basically, my question is this: is there anything in the SerialPort.Open() internals, or the internals of the WinSDK functions that the Open() uses that would explain this?
The only thing I can think of that might be causing this behaviour is that upon ".Open()" being called, the DCB block is being set once per setting in the DCB block. If that is the case, then setting ".DtrEnabled" to true before calling ".Open()" *might* help.
In any case the SerialPort class is just doing P/Invoke calls to the Win32 functions. I wrote my own serial port class in a way that demonstrates asynchronous behaviour. If you would like, you could take a copy of that to test with to see if you can cure this issue.
I am trying to make tool like PE viewer in VC++.NET 2005. After enumerating process module I am using ImageDirectoryEntryToData() function to get Import section. It is working fine but this function has been superseded by ImageDirectoryEntryToDataEx() function. I am able to get import section using ImageDirectoryEntryToData() but not using ImageDirectoryEntryToDataEx(). It gives me NULL every time. Here is my code for getting Import Section of the process.
Colin and Dave are both spot on when they say that we will not write your project for you. It's not fair on you because it only proves that we know how to code. On a slightly different note, it's not a good idea to put your email address in a post. If people want to reply to you directly, they can hit the email link in the window.
Deja View - the feeling that you've seen this post before.
i created a setup file for the application developed by me and installed it in another computer.while installing it asks to install .net framework from the website.
i am using vs2005 ,want to know how this has to avoided. i heard we can include the frame work in setup file itself wats the procedure to do that
can any one help in this problem
No, it can't be done. You have to deploy the framework, or people will have to download it.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Here is a post on having the .net framework install be included in the setup.
It seems that with vs 2005 the setup is improved to be able to check and install the .net framework. It checks the dependance prompts the user to accept the license. Then installs the .net framework. NOTE when it is done it is looking for the setup.msi file so that needs to be there.
Here is a microsoft link on it:
I have it working right now to install the .net 2.0 framework.
I am building a licensing module in my application. the licensing module checks the Date to know if the applications license has expired.I cannot check the System.date because that can be changed in windows. Is there a way to check an unaltered date or timestamp in some way? The application does not have access to the internet.
we can sort this upto a extent
you store the installed date in the resource file and have a another string to store the current system date on that
append the current system date regularly . by using that if system date is changed inbetween the installed date and current date dont allow to open the application.
check if the current system date is less than the installed date then dont allow to open the application.
but if they have maintained the same date ???????????????????? try to sort out this if u got idea please mail me email@example.com
Is there a way to check an unaltered date or timestamp in some way?
No, such a concept doesn't even exist. There is no "alternate" time/date source without checking a standard clock on the Internet. If the user doesn't have an Internet connection, you're out of luck.
Just checking the date/time isn't good enough. You have to get VERY creative at storing and using the date and time information and using it to determine when your app was installed, when the last run was, and what the current date/time is. All I can say is that you have to get VERY creative.
its really fun
if i unplugged the internet every time while i use the application then wat will be the case.
every one cannot be creative they will follow the standard method if u have some idea tell it will be usful . not the exact one but ideas can be shared.
i am not creative but that was my own idea.
we cannot restrict the user more
i crossed across a doubt till now i dint get any solution as i am not good in programming
that doubt is if we install ms word or vs2005 etc it will ask the user to enter the licence code for continuing the installation how its done so i can make my application setup wilth license code
another doubt is if you try to install a software it will ask you for administrative rights without administrative rights that user cannot install the product how to achive this one
till date i am searching for the solution do you have any idea
Last Visit: 31-Dec-99 18:00 Last Update: 14-Jun-21 17:07