|
Hi All,
I have a C# application in development (using WPF UI) All is working as expected when Debugging in Debug/Release modes. Starting these different versions directly from the Bin\Debug or Bin\Release also works as expected.
As part of the preliminary testing before I give this to anyone else for more testing I built an installer version using Inno Setup (I'm using VCSharp Express). The installer is also doing its thing properly (as far as I can tell). All the applications bits and bobs are present and in the right places and the application starts and performs its checks and reports back as it was designed to do so.
The UI Comprises 2 main views, one of which contains a DataGrid and a TreeView for browsing the machines directories. If I start the application using the Desktop ShortCut icon created by the installer, this browser view doesn't work ... if I launch the same .exe (contained in Program Files directory) the browser view works ...
The VSExpress lack of JIT Debugging is really a PITA now, and I'm really not sure why launching the same .exe two different ways should make any difference.
If anyone has any ideas of things to check i'd really appreciate it.
Cheers,
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
It turns out that my install scrip wasn't configuring a Start In location when it created the Start Menu/Desktop short cuts ...
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
Hi
i want to detect some shapes(include numerical or alphabetical characters) in any image by Image Processing Algorithm, but i need a full article about this, can anyBody help me ?
thanks
|
|
|
|
|
What you're mentioning is called OCR -Optical Character recognition-.
Try This article[^]
You may find several open source projects at code.google.com[^] Including Tessact & another one called OCRopus. Unfortunately both are in C++ code, not in C#.
For C# OCR capabilities you may search for commercial/Free libraries on Google[^]
Regards
|
|
|
|
|
thanks Nader
you mean that i search about OCR technology (like this[^]) ?
|
|
|
|
|
hi all,
I want to open microsoft outlook from c# windows application,(and i will pass the To email, subject, content as parameter)....
please help me how can i do that??/
thanks all
|
|
|
|
|
You could use mailto , it works with Process.Start which is nice, and you even use it exactly the same as in html.
Example:
string subject = "?subject=My Subject";
string body = "&body=The first paragraph.%0A%0AThe second paragraph.%0ANew line.";
Process.Start("mailto:cheese@sandwich.com"+subject+body);
You don't need to split up the string, it just makes it a little easier to manage.
Oh yeah, and just a simple title like "open outlook with c#" would have been nice, we alread know you want help and I've no idea what the hell those extra E's are for, infact all those axtra letters are going to get you less help.
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
Couple things. First, pick a better subject line. Secondly, get rid of the , and last of all, you may want to look into the Office Interop Library about working with Outlook in C#...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi to all the CodeProject gurus. I'm quite new to OOP and C#, and when I face a new design problem I wonder if there could already be a "standard", commonly used way to solve it, but I don't have enough experience with C# to find it
The problem: I'm writing a class which parses incoming data bytes from the serial port looking for messages of a particular communication protocol. So, my parser works inside the SerialPort DataReceived event, processes all the incoming data and, when a new message is found, should be able to communicate it to the client application.
My questions is: Is there a commonly used approach to pass data to the other classes, in this kind of situations?
I was geared towards using a Queue of messages, so that new messages are added to the queue from the parser - myQueue.Enqueue(message) - and "consumed" by the application, which sits in a loop like:
while(true)
{
if(myQueue.Count != 0)
{
message = myQueue.Dequeue();
}
Thread.Sleep(10);
}
Is there any better way? And is this thread-safe? I remember that DataReceived works in a different thread from the main application, so I'm not sure about the call to myQueue.Count .
Thanks in advance and kind regards,
Andrea
|
|
|
|
|
I think this approach is Ok, but polling the queue every 10 ms is not a good idea, instead you can create a event in parent class (which holds serial port), the client(the one which is having while loop) can register for it, as soon as the data comes in SerialPort DataReceived event trigger the custom event to client class!
|
|
|
|
|
Thank you for the suggestion, I ended up with an event driven approach as you suggested, and I'm passing data from the serial port event to the main thread using a mailbox based on an AutoResetEvent.
Regards,
Andrea
|
|
|
|
|
Winform program,
How to complex sort of the treenodes?
such as, friends list of IM, the friends online are top always.
even according to the status of different(online or offline) sort of Text.
How do such a tree control with C# in WinForm?
|
|
|
|
|
You have to do the sorting yourself by associating a comparer with the tree nodes. You could also do this by not sorting at all and adding tree nodes in the correct order.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
yes, i think the best way is that you add the information to you ListView sorted, not to add them then acting the sort.
you have to propose a void refreshScreen() method for this that refreshes the ListView and imports the updated status.
so, clear your ListView and them add the sorted information.
|
|
|
|
|
im trying to get the dropped path for hrs but didnt get anything that can do, when i drag item from listview and drop to anywhere, i want the path of that place, any idea how?
thanks
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
|
no thats not i need, i want to extract the file to somewhere else in hdd in any folder, like Desktop, those articles dropping only in the app or ordering the rows, i want something like Rar, that we can drop the compressed selected files anywhere in hd
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
i just know that this is not an impossible one (who doesn't? ). try to catch the answer and post your results to this post and learn us, too.
thanks
|
|
|
|
|
yes only if i get the solution xD i'm searching on this around one and half day but didnt find anything yet
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I read with great interest the article on Building a Generic Range Class[^] (and this second article[^] on the same subject).
I learned more thinking about and designing objects like that than all the dogs-are-animals-porche-is-a-car-has-an-engine books on OOA/OOD put together.
Does anyone know of any other Classes/articles on similar concepts I can study/incorporate into my programs? I'm looking for tool-box type classes that would be used in virtually any application. I'm more interested in middle-tier classes that work with general programming constructs rather than classes that help with GUI's and databases and such.
I hope my question makes sense.
|
|
|
|
|
Like this? http://www.codeplex.com/NGenerics
|
|
|
|
|
I want to insert code snippet for Console.WriteLine().
I type the characters cw and pressing ENTER or TAB. But nothing is happening.
When i type the characters cw intellisense shows me that this is code snippet for Console.WriteLine(), but either by pressing TAB or ENTER i can only see cw written.
Yes, i can explicitly invoke the "insert snippet" menu and select my snippet. But i want to insert snippet quickly during coding without invoking menu. Please tell me how to do so ?
Imtiaz
|
|
|
|
|
After typing "cw", hit tab two times.
|
|
|
|
|
Excellent, like the original poster I'd never understood how to do that. It's so easy when you know how!
Alan.
|
|
|
|
|
Yes, it's very easy. The most used one by me is "prop" for creating a property structure.
|
|
|
|