15,949,686 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Catalin Serafimescu (Top 35 by date)
Catalin Serafimescu
10-Feb-12 17:15pm
View
Try to use Process.Start Method (String, String, String, SecureString, String). You should have username and password, anyway...
Catalin Serafimescu
9-Feb-12 13:30pm
View
Please post the code for impersonation. You might not have a good handle
Catalin Serafimescu
25-Jan-12 8:43am
View
Oh, I understand now. You are trying to run another read on same connection !
Read about MARS: http://msdn.microsoft.com/en-us/library/cfa084cz(v=vs.80).aspx
And don't mess with dtStudent in loop.
Catalin Serafimescu
25-Jan-12 8:26am
View
Paste the new code here.
See this example: http://msdn.microsoft.com/en-us/library/9kcbe65k.aspx. You need to open the connection, though - my bad.
Catalin Serafimescu
23-Jan-12 13:01pm
View
Seriously, don't start with keyloggers or any advanced things. Start with basics, it will help you later.
Catalin Serafimescu
16-Jan-12 9:25am
View
I can't help you with this, but I think you need a public IP address. Replace the computer name with IP address in WSDL bindings and I think it should work.
Catalin Serafimescu
14-Jan-12 12:01pm
View
First read about application design - MVVM, Domain Driven Design. Otherwise you are going to mix data with presentation and business logic and the maintenance/development cost will blow in the sky.
Then start with simple WPF - Visual Studio is enough. If you separate correctly the presentation layer (GUI), then you can skin it nicely with Blend. Otherwise you are going to spend lot of time in learning Blend and fixing GUI problems instead of focusing on application logic.
Catalin Serafimescu
14-Jan-12 11:09am
View
+5
Catalin Serafimescu
13-Jan-12 2:34am
View
"Premature optimization is the root of all evil".
I think you want to say 'my application has a reference to DLL'. I think you open the player in a child form and want to release the libs when you close it. Loading and unloading libraries is time-consuming. I think you should not do this unless you have a very strong reason.
There might be another way, but I'm not too sure and introduces another layer: if your DLL is native (unmanaged), you could write a managed C++ wrapper over it and you load it dynamically, then you release it. It might work.
Catalin Serafimescu
12-Jan-12 16:40pm
View
I suspect there is thread remained alive. Please provide more information about what are you doing.
Catalin Serafimescu
12-Jan-12 16:34pm
View
This involves that forms knows one about another. It's not a good technique, you should review your design.
Catalin Serafimescu
12-Jan-12 16:28pm
View
The server is conceptually separated from host. You write a server and you host it. You can host a WCF server in any process: console/windows app, windows service or IIS. See http://msdn.microsoft.com/en-us/library/bb332338.aspx
How to expose your endpoint it's another matter. You don't actually need IIS to expose a WCF service, but I think you'll need a static IP.
On another topic, you can build a web application to send messages/commands to your service.
It would be useful if you explain what you did.
Catalin Serafimescu
12-Jan-12 16:17pm
View
The objects needs to be marshaled. And you can't do that with any objects. And, compared with 'regular' programming, it's more complicated.
Also, from the name of the DLL I suspect this is some player. Not sure, but I think streaming is impossible between domains. In any case, I wonder why unload the player DLL...
Catalin Serafimescu
12-Jan-12 9:48am
View
http://stackoverflow.com/questions/97433/good-example-of-use-of-appdomain
http://msdn.microsoft.com/en-us/library/system.appdomain.aspx <-- lots of samples
http://blogs.msdn.com/b/cbrumme/archive/2003/06/01/51466.aspx
Catalin Serafimescu
11-Jan-12 13:44pm
View
I can help you with system and application design if you want. I'm very bored..
Catalin Serafimescu
10-Jan-12 8:34am
View
Duplicate question. See http://www.codeproject.com/Answers/311584/Find-tree-view-child-name. You are right about Name.
Catalin Serafimescu
10-Jan-12 8:34am
View
Why are you duplicating questions ? I gave you the solution already: http://www.codeproject.com/Answers/311584/Find-tree-view-child-name
You must add nodes by specifying both key (name) and text !
Catalin Serafimescu
10-Jan-12 6:54am
View
TreeNode.Find needs a key. You are adding nodes with text only, so key is empty.
Just give it a try.
Catalin Serafimescu
10-Jan-12 5:26am
View
Deleted
Use the <pre>BackgroundWorker</pre> to run the compiler (pass parameters, etc...). Listen for <pre>ProgressChanged</pre>
In <pre>DoWork</pre> you create a <pre>Process</pre> (the compiler process) and redirect the <pre>StandardError</pre> and <pre>StandardOutput</pre> (see documentation). Listen for <pre>ErrorDataReceived</pre> and <pre>OutputDataReceived</pre> events using lamdas. When something comes in, call <pre>worker.ReportProgress(some_number, message)</pre>. You will receive the notification in <pre>BackgroundWorker.ProgressChanged</pre> on the GUI thread. Display the message in GUI.
Catalin Serafimescu
9-Jan-12 12:39pm
View
It will take a while, hold on.
Catalin Serafimescu
9-Jan-12 12:10pm
View
In fact, DPI might be different. Or, if app is a WPF it might layout differently the controls if the screen resolution is too small
Catalin Serafimescu
9-Jan-12 10:35am
View
Usually web links are saved in Favorites. User can type CTRL-D and this is all.
Catalin Serafimescu
9-Jan-12 9:50am
View
Sorry, but it does not make sense. Because you need to use only one value as a key, not all data you display in datagrid. Set the CB ValueItem and DisplayItem to columns you want to show.
If you really want to do it your way, you need to implement your own control. But I strongly suggest to review your GUI design.
Catalin Serafimescu
9-Jan-12 7:11am
View
Are you using a font type which is not installed on the other desktop ?
Catalin Serafimescu
7-Jan-12 16:02pm
View
There is no such thing lilke '.net 08'.
Try to install .net 4.0 in the 'other machine'. And check Event Log. Provide any error you might get.
Catalin Serafimescu
7-Jan-12 4:57am
View
You should provide more details. What means 'it's not working' ? What error you get ? It's the service installed ? Did you checked Event Log ? BTW, what's '.NET 2008' ?
Catalin Serafimescu
6-Jan-12 9:52am
View
No, I'm saying that you need to handle the case when the user deletes characters. And this can happen anywhere in text.
Let me give you an example:
user type i, a (has я), type - (has иа), corrects (type Backspace - this is the most used behavior when you do a mistake when typing) => you need to revert back to я.
Catalin Serafimescu
6-Jan-12 9:15am
View
I found akward to obtain [иа]: type i, a, replace i&a with я, type -, replace я with иа. In my case would be: иа = i+a, я = i+a+- & replace.
If you want to keep your logic, then use only the replacement section from my code. It will become a little more complicated, I think.
Homework: handle Backspace & Delete.
BTW, user can move caret and type. Then the select at the end is not OK, but I skipped it for now.
Don't use TextChanged, you will get infinite loop.
BTW, most human friendly solution is to type using Cyrillic on a Cyrillic keyboard
Catalin Serafimescu
6-Jan-12 6:49am
View
I was thinking to write all in Latin and interpret it. Like 'iazik' and 'ia-zik'. I'll have a look
Catalin Serafimescu
6-Jan-12 6:28am
View
I think I understand now. You want to type ia and ia- and display different things in the same text box. I think you can handle the KeyDown event and analyze the input. You can analyze to the last space or you can use RegEx to analyze all text (but this might become slow for big text unless you do the same thing to the last space). I think you realize you need a full dictionary mapping between input and output, right ? I found a bit strange to type Latin and display Cyrillic, but if this is what you want... Let me know what you prefer and I might be able to help you.
Catalin Serafimescu
6-Jan-12 6:04am
View
Well, I don't think you can render same sequence in two ways in the same context. Something must differentiate between the two choices.
Catalin Serafimescu
5-Aug-11 15:10pm
View
CodeDOM is only for .NET-based languages (C# and VB, I think). And it's slow (search google).
For anything custom you need a parser and an interpreter.
Not necessarily useful for this question, but it's good to know available options. BTW, to create a custom language is not trivial, but it can be done, if the project worth it.
Catalin Serafimescu
28-Jul-11 12:43pm
View
What do you mean by 'Embed the Referenced DLL in my Executable file' ? You want to have only one file with everything ?
You can add a post-build step and re-register the dll's on GAC when they are rebuild.
Catalin Serafimescu
12-Jul-11 5:53am
View
A nice analysis about singletons: http://www.yoda.arachsys.com/csharp/singleton.html
Or, a more elegant and flexible way, though complex: Dependency Injection, like Unity ;)
Catalin Serafimescu
10-Jul-11 4:01am
View
Try http://icofx.ro/anifx/features.html or http://www.rw-designer.com/cursor-maker
Show More