|
Yes its a .NET 1.1 program ... Our flagship software is moving over to .NET 2.0 in September,
but I have trouble believing that this issue an issue in 1.1, must be something I am doing.
|
|
|
|
|
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.
Phil
|
|
|
|
|
Hi All,
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.
DWORD aProcesses[1024], cbNeeded;
unsigned int i;
HMODULE hMods[1024];
char modName[255];
PIMAGE_IMPORT_DESCRIPTOR pImportDesc;
PIMAGE_SECTION_HEADER pImageHeader;
PSTR pszModName;
ULONG ulSize;
if(EnumProcessModules(::GetCurrentProcess(), hMods, sizeof(hMods), &cbNeeded))
{
for ( i = 0; i < (cbNeeded / sizeof(HMODULE)); i++ )
{
::GetModuleFileNameA(hMods[i], modName, 255);
ImageDirectoryEntryToDataEx(hMods[i], TRUE,
IMAGE_DIRECTORY_ENTRY_IMPORT, &ulSize, &pImageHeader);
if(pImageHeader)
{
while (pImageHeader->Name)
{
pszModName = (PSTR) pImageHeader->Name;
pImageHeader++;
}
}
}
}
Can I know what is the problem with ImageDirectoryEntryToDataEx() function?
Thanks,
Priyank
|
|
|
|
|
hi,
i am new to this site.i am doing my project on ranking web search resutls based on user interests.if u have the code please mail me to id shruthis9@gmail.com.waiting for ur reply
thanking u,
shruthi
india.
shruthis9
|
|
|
|
|
shruthis9 wrote: i am doing my project on ranking web search resutls based on user interests.if u have the code please mail me
Wait... You want me to do your work, for your project. What do I get for this?
|
|
|
|
|
Colin is correct. That's not how this site works. We'll help you write your own code. We will not write it for you.
|
|
|
|
|
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.
|
|
|
|
|
Then It doesn't remain your project
Develop2Program & Program2Develop
|
|
|
|
|
What does OOPS stands for
Object Oriented Programming S...???????
Develop2Program & Program2Develop
|
|
|
|
|
|
It's what you say when you accidentally erase all your data.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
It is Object-Oriented Programming System
|
|
|
|
|
Jaiprakash M Bankolli wrote: I think it is Object-Oriented Programming System
Yes it is
|
|
|
|
|
hi
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
thanks
with regards
Balagurunathan.B
|
|
|
|
|
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 )
|
|
|
|
|
hi
should we have to deploy the .netframe work separately ? if so i have to first install the .netframe work later have to install my application is`nt it?
with regards
Balagurunathan.B
|
|
|
|
|
It can be done now. Here is an article I wrote on setup project.
http://www.codeproject.com/dotnet/Win_App_Setup_Project.asp[^]
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:
http://msdn2.microsoft.com/en-us/library/aa480239.aspx[^]
I have it working right now to install the .net 2.0 framework.
Ben
|
|
|
|
|
|
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.
Thanks!
Regards
|
|
|
|
|
hi
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 gurunathan.bala@gmail.com
with regards
Balagurunathan.B
|
|
|
|
|
blackbaro wrote: 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.
No, I can't tell you how I do it!
|
|
|
|
|
Dave Kreskowiak wrote: No, I can't tell you how I do it!
|
|
|
|
|
Hey, I thought it was for obvious reasons myself!
|
|
|
|
|
Dave Kreskowiak wrote: All I can say is that you have to get VERY creative.
Pretty much sums it up
|
|
|
|