|
Because I work for company A who wrote the application for company B. Now A is telling B that we need to rewrite/redesign the application?
|
|
|
|
|
Don't try to con your employers into letting you re-write it in .NET by telling them VB6 is no longer supported; tell them the truth and inform them of the costs, benefits, and dangers then let them make the decision. Another aspect is that you need not port the whole application at once. You could test the waters by making a new component or recoding an existing one using .NET and use interop. In my opinion this is the best approach.
Steve
|
|
|
|
|
VB6 IS no longer supported. I'm a moderator on the MSDN forums, and we lock VB6 questions and tell them to find help elsewhere.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
My intention was NOT to suggest that VB6 was supported, it was in response the following comment from the OP:
"My motiviation for moving the application to .Net is to redesign/rewrite the application (it is not a large app, it should only take 2 months to rewrite). My problem is I can't go to the business and say the current application is a mess and needs to be rewritten, but I can say VB6 is no longer supported by Microsoft. But I need to provide more reasons for upgrading."
I have underlined bits to make my point clearer. Hopefully what I meant when I said, "don't try to con your employer" is now a bit clearer.
Steve
|
|
|
|
|
mr_12345 wrote: What are some reasons that could be used to entice the business to upgrade?
Everybody else is doing it.
(Might seem like a joke at first, but it isn't.)
----------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
|
|
I am trying to process code when the Enter key is pressed. For some reason it only works if shift + Enter is pressed.
Here is my code:
colCNa.TextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(OpenCollection_EnterKey);
...
private void OpenCollection_EnterKey(object sender, System.Windows.Forms.KeyEventArgs e)
{
if(e.KeyCode == Keys.Enter)
{
...
}
}
I also tryed this using Keypress and KeyChar == (char)13
Thanks for any feedback.
RABB17
|
|
|
|
|
Hi there,
I'm looking for a .NET based sample application which is using the SkyWave
API functionality to get the tracking data (position data) from the SkyWave server.
Is there anybody here to know such this sample application?
I've asked it from SkayWave support center (support.skywave.com) but their supports are not too good.
Thank you in advance.
|
|
|
|
|
Hi
I am creating a bitmap on the fly serverside (c#) and sending it down the response to appear on the browser - pretty neat I reckon....but....my client (the guy who's paying, not the browser) now wants co-ordinate info about the image displayed during a mouse over event. Basically, it is a line graph, with 10 x 1 pixel wide lines. He wants to move his mouse over a line and for me to display the info. I have all the info, but I don't know how to detect what is under the mouse point without using an image map - just getting the colour would suffice.
Can image maps be created dynamically...or...is there a way to get a list of pixels along a path? I could then store each pixel colour that I have drawn in a container and do it that way...or...can you think of an alternative?
Cheers
Regards
Angel
*********************************************
The sooner you fall behind, the longer you have to catch up.
-- modified at 10:27 Thursday 8th June, 2006 - typos and grammar!
|
|
|
|
|
Hi All!
How can i localize tte CryctalReports in Visual Studio 2005?
I add this code to my project:
Thread.CurrentThread.CurrentUICulture = new CultureInfo("ru");
CultureInfo cifo = Thread.CurrentThread.CurrentUICulture;
CrystalDecisions.Shared.SharedUtils.RequestLcid = cifo.LCID;
and create CrystalDecisions.Windows.Forms.resources.dll in this way http://marian.ideaz.sk/crystal
but it does not work.
Thanks in advice.
|
|
|
|
|
hi frenz,
i need a answer from u guys, i want to know how to convert apublic assembly to private and viseversa,and some sample code,
thanks
laxman.
|
|
|
|
|
What's a private assembly? For that matter, what's a public assembly?
|
|
|
|
|
Private assembly is the assembly deployed in application directory or in subdirectory.
Public (or shared) assemblies are those installed in GAC.
To convert private assembly to shared - sign it with the key and deploy into the GAC.
To make a public assembly out of shared – copy it into the directory where your app resides then delete it from the GAC.
Best regards,
-----------
Igor Sukhovhttp://sukhov.net
|
|
|
|
|
SerialPort.GetPortNames() gives you just the port names line "COM1","COM2"
I need the full name that is provided by the device manager like: "CP2101 USB to UART BRIDGE CONTROLLER (COM2)".
The reason for this is that I need to select a port with a specific device driver.
Can someone post a C# snippet?
|
|
|
|
|
The requirement is to delete a line from a text file without resorting to a temporary file.
Presently, this has been implemented using the FileStream class and its Position member. Say for instance if there are 10 lines in the text file and the 5th line is to be deleted. The lines 6-10 are re-written from the 5th line, thus shifting these lines one line upwards. And the 10th line is overwritten by writing spaces to it.
This has avoided the use of a temporary file. But this is unnecessarily creating a blank line towards the end of the file.
I did not find any solution to delete the line altogether. Is there any way to do it.
Please Help.
|
|
|
|
|
You could read the file into a string or string array, remove the unneeded line, and then write the string/string[] back into the file.
Josh
|
|
|
|
|
The text file can be huge. It can have around 500000 lines, each line having a minimum character count of around 44.
What can be done in this case?
|
|
|
|
|
That's still not big. We post process text files with 1M+ lines. Granted this is C++ using STL containers, but the principle is the same. Read the whole lot in, process it, dump it all back out.
500000 * 44 - approx 20 Mb? Not a massives burden on desktops these days (unless my maths is as good as my C#!).
Regards
Angel
*********************************************
The sooner you fall behind, the longer you have to catch up.
-- modified at 11:29 Friday 9th June, 2006 - typo
|
|
|
|
|
Good Morning!
Just a fundamental question.
Where constants are created? On heap / stack or does it depend on the type ( int on stack / string on heap)?
Apreciate any link with info.
Thanks,
JG
|
|
|
|
|
Only value types and strings can be const members of a type. Those values are baked into the code which uses them. For example:
// field in MyClass
public const int CI = 2;
// code in method somewhere else
int j = MyClass.CI;
// Compiler emits IL equivalent to this
int j = 2;
Josh
|
|
|
|
|
I couldn't find a link at hand, but I think I can offer some hints. Please do check if there is another source of information.
All constants are allocated on the stack. Actually, .NET only has two types of objects, value type and class type. .NET heap only stores class type objects (including arrays), which are garbage collectable. All value types are allocated on the stack. Even pointers. This might sound strange, but it isn't. Lets see this example:
String^ str = gcnew String(L"ABCD");
What actually happens is that str^ handle is allocated on the stack, but the object is allocated on the .NET heap. A handle is still of a value type. It would be clearer if I rewrite it this way:
String^ str;
str = gcnew String(L"ABCD");
Also, constant string L"ABCD" is allocated on the stack:
String^ str = L"ABCD";
Hope this helps.
- It's easier to make than to correct a mistake.
|
|
|
|
|
Jun Du wrote: All value types are allocated on the stack.
That is not true. If a reference type (class) has a value type field, that value type object will be created on the heap - inside the reference type object. Also, arrays (which are reference types) can contain value types as elements, in which case they will be created on the heap.
Josh
|
|
|
|
|
You're right; I overlooked fields inside a class.
- It's easier to make than to correct a mistake.
|
|
|
|
|
Hello,
I am very new to MessageQueuing. I have 2 computers (XP SP2) using MSMQ. Desktop1 hosts a private queue. Desktop2 has to listen to messages arriving to the queue hosted by Desktop1.
The program running in Desktop2 uses .NET framework 2.0. It creates a System.Messageing.MessageQueue object, sets its path to refer to the queue in Desktop1 and calls BeginReceive method to start listening for messages. When the BeginReceive method is called, it gets a MessageQueueException saying "Remote computer is not available".
Desktop2 has symantec firewall installed. The symantec intrusion detection has stopped a request from going out of desktop2 to desktop1 when it calls BeginReceive method. The symantec log file says "Attempted Intrusion 'MSRPC_MSMQueryProp_BO' from your machine against Desktop1.ad2.prod, Intruder: Desktop2". The symantec intrusion detection software did not let the Desktop2 establish the link to listen for message arriving to the queue in Desktop1.
Is there a way I can fix this issue. If symantec software looks at it as an illegal request, is there a way i can make this request properly so that symantec does not block it?
Please let me know if this is not the appropriate forum for this and direct me to a different one.
Thanks.
Vidhya
|
|
|
|