|
|
Hi,
how i can read/write from/into the serial port with c++.Net, i use vc++.Net 2003.
|
|
|
|
|
The .Net Framework 1.1 doesn't directly support the serial port (It is now supported in version 2.0). You will have to use IJW, P/Invoke or a combination of the two. I believe there are some articles on Code Project that deal with this issue.
-- modified at 16:14 Friday 7th April, 2006
|
|
|
|
|
Hi friends ,
I need one help from you, please help me.
When i create deployment program in .NET, i used script in custom actions (install) for retrieving existence of older version of that product.
If (old version exists)
{
display popup message box with Yes/No button
}
If (user click Yes button)
{
Install new version
uninstall old version
}
If (user click No button)
{
rollback installation from new version
Keep the old version as it is
}
I couldn't get idea to rollback current installation . Please help me.
Is it possible in any other way other than script programming?
Thanks & Regards,Lisa
|
|
|
|
|
Hi All,
Would u tell me
what are the settings needed under WinCE Registry to work the ISAPI extension DLLS?
How to do it?
Thankx in advance,
Regards,
Ramesh.
|
|
|
|
|
Using Microsoft Visual C++ .NET (2003)
I would like to put three windows into a Form.
Each window should be resizable inside the
real estate of the form.
Is the above allowed/supported in the
.NET framework?
Many thanks for any guidance/example.
|
|
|
|
|
|
Thank you Sir.
Will consider it.
Regards.
|
|
|
|
|
I need to process word document (microsoft word 2003) in my .net application. Please let me know are there any framework classes provided by .net
|
|
|
|
|
Visual Studio Tools for the Microsoft Office System,you can get it from Microsoft's website
|
|
|
|
|
I am not able to read & write to serial port in WINDOWS CE using embedded visual c++. i am including the code i have tried.
//writing
DWORD dwError,dwNumBytesWritten;
int rc;
HANDLE hPort;
BYTE B;
TCHAR* pFileName = TEXT("COM1:");
B='a';
hPort =CreateFile(pFileName,GENERIC_READ| GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL);
rc=WriteFile (hPort,&B,1,&dwNumBytesWritten,NULL);
CloseHandle (hPort);
//reading
DWORD dwError,dwNumBytesRead;
int rc;
HANDLE hPort;
BYTE B;
TCHAR* pFileName = TEXT("COM2:");
hPort =CreateFile(pFileName,GENERIC_READ| GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL);
rc=ReadFile (hPort,&B,1,&dwNumBytesRead,NULL);
MessageBox(NULL,TEXT(""+B),NULL,MB_OK);
CloseHandle (hPort);
can anyone please halp me
Thanks for your reply in advance.
|
|
|
|
|
Hi,
hopw every one enjoying
i have a problems and want its solution by all people
first understand the problem
PROBLEM DISCRIPTION
i have two different source code (source file) written in C#. now when i compile the both seperate compiler generates the MSIL files for both. keep in mind untill now these are two different files. no i want that when JIT (just in time compiler) after MSIL generate the NATIVE CODE it should combine both files and generate the single EXE or ASSEMBLY files
SOLUTION
i can use ILMERGER avilable in .Net framework or any other utility.
PROBLEM IN SOLUTION
i have to provide the reference in my file so that it can be merge with the 2nd file like i have to write USING ILMERGER in my one file
now i do not want any kind of reference or even a hint included in my both files they should be independent
plz help me
thanks
regards
ahmed hasan
|
|
|
|
|
In my app, many threads are created by BeingInvoke now. As all these threads are managed by ThreadPool, I can not get info about these backgroud threads.
So I decided to create a thread manager of my own. In this case all the thread will not be run backgroud. What should I be careful with?
Thank you for your advice!
|
|
|
|
|
I have read several articals and started to write my own code.
As I want to keep in track with all the handlers of my threads so as to Abort them when necessary. How to inform my thread manager to remove the handler form thread queue before a thread is sure to finish.
I can pass a delegate to every thread as that the thread can call it just before its end. Are there any other better methods?
Thank you
|
|
|
|
|
I have read the article on the XML editor, and although this uses regular expressions to define tokens, I am wondering if there is a easy way to use Lex and Yacc with .NET 2? I am using VC++ and the 2005 IDE. Any help would be greatly appreciated!
Many thanks in advance.
|
|
|
|
|
|
Is there a .NET framework equivalent of lists, vectors, maps, etc. in the C++ standard library?
Thanks,
--Jordan
|
|
|
|
|
There are quite a lot of different collections, like ArrayList, HashTable, Queue, SortedList, Stack, HybridDictionary, ListDictionary, OrderedDictionary, StringCollection, StringDIctionary, etc., and base classes to easily make specialized collections yourself.
If you use framework 2.0 you also have strongly typed collections like List<T>, Dictionary<T,T>, LinkedList<T>, Queue<T>, SortedDictionary<T>, SortedList<T,T>, Stack<T>, etc.
---
b { font-weight: normal; }
|
|
|
|
|
I have an MDI Parent form with some toolbars docked to all four sides. I found the MDIClient control in its Controls collections, then I removed it and replaced it with a SplitContainer, placing the MDIClient control in Panel1. In Panel2, I placed another control. The SplitContainer is oriented so that Panel1 is above Panel2, so it appears as though the MDIClient control is now above the control in Panel2 (just like VS2005 appears with one form docked at the bottom).
My problem is this:
The SplitContainer appears to be partially hidden by the toolbars that were already on the MDI Parent form.
Any suggestions/ideas???
|
|
|
|
|
Dear snickel65:
Using other gadgets I have the same problem!
(I have three gadget from North to South;
in order to allow the South-est to resize properly
I attempted to use SplitContainer but it does not
work.)
If you find solution, please let me know.
Regards.
|
|
|
|
|
Hello everyone...
Im trying to create an installation wizard for an application that i have written, I know that it could be done using the "Setup n Deployment" project in VS dot net..
All i require to do is, on click of the install wizard icon(that i create using VS DOT NET), a .reg file(that i have created using regedit)should be invoked that will create a button on the IE browser.
can i make this happen?
IS there any installation wizard creation manual/doc/tutorial available?
Pls help me...
Regards
Annie (Jo)
|
|
|
|
|
If you're using VS 2003 it isn't too hard, but if you've upgraded to VS 2005 you can use the Publish feature to create the installation.
Try this link if you're using VS 2005:
[^]
Lost in the vast sea of .NET
|
|
|
|
|
|
Using Microsoft Visual C++ .NET (2003)
I put three "GroupBox" into a Form.
Each GroupBox contains three items,
(ProgressBar, CheckedListBox, ListBox)
and the items are Anchored to the four sides
of the GroupBox. The Items are do resize properly (I think.)
I would like to have the three GroupBox as three
equally sized columns but can not achieve that via Anchoring.
What would be the proper way to size
dynamically the GroupBox to occupy one third of the
window for any window size?
(I hope the items will still resize properly inside
the GroupBox.)
Thanks for any guidance/example.
|
|
|
|
|
Override OnResize and put your logic in there. I would dock one to the right, one to the left and on to fill. Then in OnResize (and on startup probably) I would set the width of the left to one third of the from, the same with the right one and the fillled one in the middlte should automatically occupy the last third.
|
|
|
|