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 Andy411 (Top 120 by date)
Andy411
24-Feb-15 7:28am
View
Did you try to comment out the free() or better putting the for-loop with the fre() at the end of you program?
Andy411
19-Feb-15 3:31am
View
Did you try something like https://duckduckgo.com/?q=reading+text+file+in+c%2B%2B
Andy411
9-Jan-15 2:14am
View
Reason for my vote of 2 \n For large amount of data you shuld use streaming and not an byte array.
http://msdn.microsoft.com/en-us/library/ms733742%28v=vs.110%29.aspx
Andy411
9-Dec-14 3:49am
View
Are you sure, that buf is 16 bit long? I would rather expect a byte array as buffer. Same with the first LPVOID parameter. Realy long or better an array of type byte?
Also I guess that buff has to be an array, so short[] buf instead of short buf.
And maybe you should set "enable unsafe code" in the build properties of your project.
Andy411
30-Aug-13 7:36am
View
I just found this http://de.scribd.com/doc/63648056/136/AT-CUSD-Unstructured-supplementary-service-data
Did you play around with differnet AT cmds directly from a terminal program to se the answers from the modem?
Andy411
30-Aug-13 6:19am
View
What kind of answer do you excpect?
Andy411
19-Jul-13 8:31am
View
What did You try yet? Looks like homework.
Andy411
15-Mar-13 9:38am
View
What do you mean with "like outlook way"? Can you access the address lists through the Outlook interface or not? (Microsoft.Office.Interop.Outlook)
Andy411
14-Mar-13 11:21am
View
Well, for me, it looks like your code compiles but the linker throws an error. So it seems not to be a runtime error. Check your linker settings, specially where it can find the "standard" librarys.
Andy411
14-Mar-13 3:29am
View
You're welcome :-)
Andy411
13-Mar-13 9:07am
View
Do you have a piece of code?
Andy411
13-Mar-13 9:03am
View
What is not running? All I see on first look is, that you have a SpeechRecognitionEngine sp in the ctor and you're not using it.
Where do you call the LoadDictationGrammars method?
Andy411
11-Mar-13 12:11pm
View
OK, I understand what you mean. I never did it, however I tried to improve my answer.
Andy411
8-Mar-13 13:51pm
View
This does not work. I wrote this in my question, too.
Andy411
8-Mar-13 10:26am
View
Sorry, but I think, I don't understand your answer. Maybe you could improve your answer by giving a piece of example code. thx.
Andy411
4-Mar-13 11:07am
View
Thx Thomas,
it works and helped me a lot and I could walk a big step forward.
cu
Andy
Andy411
4-Mar-13 4:53am
View
I tried <menu ItemsSource="{StaticResource proxyMenu}">. I get an exception ""System.Windows.Controls.MenuItem Header:_Proxy Items.Count:2" is not a valid value for property ItemsSource"
Andy411
1-Mar-13 9:50am
View
Thx for your comment.
But sorry, I don't understand. It looks like something is missing in your text?
Andy411
25-Jan-13 7:38am
View
What's wrong???
I pressed the reply button in the comment, so I answered the author of the comment ("sisir patro") which included the question about EDMX and the author were you. And the comment is signed with "Thanks kapilonkar". The original question was posted by "kapilonkar". For me it looks, like you have 2 accounts and mixed them up :-) If not, I'm sure that the OP will read it, because he is interessted in the comments to his question.
Nice weekend
Andy
Andy411
25-Jan-13 5:51am
View
Sorry, I have no idea how to include the edmx diagram in doxygen. But if you include the autogenerated files, you should have almost everything. Do you use graphviz ?
Andy411
22-Jan-13 4:55am
View
Good hint, Jochen!
Andy411
22-Jan-13 4:21am
View
What do you mean with "menu options"? AFAIK You have to add the accelerator keys in the menu text by yourself. e.g.: "Save\tCtrl-S"
Andy411
10-Jan-13 2:27am
View
Did you read the documentation for CreateFile?
Andy411
10-Jan-13 2:25am
View
What do you mean with format "G40X56.9808Y98.987" ?
Andy411
8-Jan-13 8:36am
View
Well, I did it the "hard way" and a lot of trial and error. Sometimes this http://regexhero.net/tester/ is helpfull
Andy411
8-Jan-13 8:04am
View
I totally agree. RegEx is not from hell. It's very powerfull and a great tool.
Andy411
24-Nov-12 1:36am
View
If the path is user specific, you can take a look at app.config and Settings in MSDN and Codeproject.
Andy411
23-Nov-12 8:22am
View
I deleted my solution, because it was not the correct answer to your question.
Where did you get the filename from? I mean, are you sure that the string before the / is not a part of the directory?
Andy411
23-Nov-12 8:21am
View
Where did you get the filename from? I mean, are you sure that the string before the / is not a part of the directory?
Andy411
23-Nov-12 7:59am
View
Do you realy mean "cookies" in a windows application and not an in ASP?
If so, maybe you can explain your problem more exactly, please. Do you have code with Session["foo"] inside it and you want to use it in a "normal" windows application?
Andy411
23-Nov-12 5:51am
View
Simple answer: yes!
What did you try yet? What way do you want it? GSM-Modem, service provider,...?
Search on google or Codeproject and you will find many hints.
Andy411
23-Nov-12 4:20am
View
My 5. That's it. Thx a lot. You saved my friday :-)
When I started googling about the subject most examples used fixed arrays. That's why I used fixed and unsafe. I also found some examples with the MarshalAsAttribute but they did not suit my needs. I think I also skipped the ByValArray value during reading the documentation. Now it's more clear to me.
One thing left to me is to pay attantion during construction to initialize the arrays:
Foo f = new Foo()
{
x = new byte[20],
data = new Inner[10],
};
Andy411
22-Nov-12 2:04am
View
AFAIK You cannot access the usb data lines directly. This is only handled by the usb controller.
If you realy want to toggle some datalines the easiest way is IMO the RS232 port. You can use EscapeCommFunction http://msdn.microsoft.com/en-us/library/windows/desktop/aa363254%28v=vs.85%29.aspx to access RTS and CTS
Andy411
21-Nov-12 9:11am
View
If the string has a dynamic length and a variable count of parameters, you should probably consider a different approach. Are the curly brackets {} your tokens? The you could search for all brackets or split the string using String.Split.
Andy411
21-Nov-12 8:12am
View
Well, that would be too much for a comment. Just some hints/thoughts: It is not only a simple dicitonary. In different languages words can have many meanings. e.g German word "vor": "vor 12 Uhr" means "before 12 o'clock"; vor == before
"Ich stehe vor der Tür" means "I'm standing in front of the door"; vor == in front of
You also have to take care of different conjugations and so on.
It's quite complex..
Andy411
21-Nov-12 3:33am
View
Is this one string with CR/LF or do you have seperate strings for each value?
Andy411
21-Nov-12 3:18am
View
thx :-)
Andy411
21-Nov-12 1:58am
View
This is not a solution! This is your question from here http://www.codeproject.com/Questions/496016/Globalizationplusofpluswindowsplusapplicationplusi
Andy411
21-Nov-12 1:56am
View
Sorry, your reply is not clear for me. Is this software located in a micro controller on an usb device?
Andy411
21-Nov-12 1:50am
View
Then you have to develop a translator software. Good luck!
BTW: For me, "localization" or "globalizaiton" means switching the language/culture of the user interface.
Andy411
20-Nov-12 6:37am
View
Do I understand it right: By changing the language in the combobox, the text _in_ the RTF textbox should automatically be translated? So you want to translate individual text given by the user?
Andy411
20-Nov-12 6:30am
View
If you do not know about writing files in C you shuold also ask google. My hints are fopen and fwrite
Do you have any kind of documentation about your USB device?
Andy411
19-Nov-12 5:35am
View
you're welcome
Andy411
19-Nov-12 5:17am
View
I did not know JetBrains dotPeek. Thx for the hint!
Andy411
19-Nov-12 5:09am
View
Thx, too.
Andy411
19-Nov-12 3:55am
View
Thx for the reply.
Well, for me and my bad English it is sometimes difficult to explain things correct. I just tried to clarify the effect and show some possible solution. An additional challange for me is the fact, that C++ is a bit out of focus for me. The C and C++-days are 3 years ago. Since then I programme most of the time in C#.
Andy411
19-Nov-12 2:51am
View
My 5! That's it with using the string class. The little but not less important thing I left out in my solution.
BTW: I don't know, why some idiot voted 1 for your solution.
Andy411
19-Nov-12 2:50am
View
Sorry, I do not understand your hint???
I know, that my solution is not perfect, because I did not use the string class, but I hoped it explains the effect the questioner noticed.
Andy411
19-Nov-12 2:24am
View
Do I understand you right: You have a string like 11/30/2012 and you want to put it in a variable of type DateTime?
Andy411
16-Nov-12 10:02am
View
Out of my experience I full agree with you, that serial communication is often not a simple task. It can become very tricky!
Andy411
13-Nov-12 10:08am
View
How do you read from the modem? Can you post some code? The solutions I know, do it in a loop and/or consuming events like DataReceived.
Is it a console application or WinForm/WPF?
Andy411
13-Nov-12 5:55am
View
Do you have problems parsing the string as a date? Or do you have problems to format it for output as a string?
Andy411
29-Oct-12 3:51am
View
e.g. You can take a look at http://www.codeproject.com/Articles/406096/A-beginners-tutorial-for-understanding-Windows
Andy411
26-Oct-12 3:24am
View
I do not understand the 2 star rating for my answer. Is it wrong? Of course, it's short. But the question is kind of a general question and IMO the OP wants some hints which way he could go.
If someone has a better idea, he/she should post it as an answer.
Andy411
10-Oct-12 7:50am
View
You need something unique at the opening parentesis of the code block you are interested in to find it.
Andy411
10-Oct-12 7:43am
View
Do you have only these two parenthesis { and } ? Then search for the Index of both and copy the part between the indexes.
Andy411
10-Oct-12 6:18am
View
:-)
Andy411
10-Oct-12 1:53am
View
Thx, you have brought me the ToString(string format) method back in mind :-)
Andy411
4-Oct-12 10:18am
View
IMO that is not what the OP wants.
I think, he wants that the controller app can change settings which are read by the service itself during start.
The controller app will write the user settings part of the app.config in the current user directory. But the service has no access to the app.config of the controller app. The service runs as a diferent user (normally SYSTEM).
Or am I wrong?
The service settings need to be in a place, where the service and the controller app both have access.
Andy411
24-May-12 3:58am
View
What does your datestring look like?
Andy411
24-May-12 2:33am
View
Sure, WCF would be an alternative. I only created WCF Solutions in C#. I don't know how tricky it is in C++.net. That's why I suggested writing an own socket communication.
Andy411
24-May-12 2:21am
View
Looks like homework?
Andy411
16-May-12 9:24am
View
Keil has an own forum. I would think about posting your question over there.
Andy411
16-May-12 5:17am
View
Google?
What have you tried allready?
You need the documentation to your RFID capture device. How is it conneted? I²C-Bus, serial, SDI-bus ?
Andy411
16-May-12 1:48am
View
My 5 for the correct answer
Andy411
16-May-12 1:45am
View
Maybe you can explain the solution to help others and also please mark your question as solved.
Andy411
15-May-12 2:18am
View
Thx
Andy411
15-May-12 1:49am
View
Looks like you post it a second earlier ;-)
Andy411
15-May-12 1:45am
View
What is your goal? What do you want to achieve?
Did you take a look at the CurrentCell property?
Andy411
15-May-12 1:37am
View
That's the solution
Andy411
14-May-12 16:01pm
View
Thx for the link to your article. That's my 5 right here. I need to take me a bit time to read it in the next days.
Andy411
14-May-12 15:56pm
View
Thx to everybody voting it high :-)
Andy411
14-May-12 1:50am
View
What kind of error message did you get in point 1)?
At the moment I don't see any reason, why a Windows service should not be able to consume a WCF service.
I did something similar a few years ago and it worked. (Hope it still works, 'cause it was at my old company ;-))
Andy411
11-May-12 4:26am
View
What have you tried right now? Did you already create a WCF Service to play around a bit?
Did you ask google or bing?
What do you mean by "connection database through LINQ"? I guess you want to use the Entity Framework?
Andy411
11-May-12 2:17am
View
Google helps you with this answer:
http://www.developerfusion.com/tools/convert/vb-to-csharp/
Andy411
11-May-12 2:14am
View
What do you mean with "using in loop"?
1) Of course you cannot call this function repeatedly with the same filename. It has to fail, becaus the file is allready open.
Do not forget to close your file with CloseHandle()
2) Try GetLastError() to examine, why the function fails.
Andy411
10-May-12 8:20am
View
My 5 because of the IMO important StringBuilder. Too many developers miss that point.
Andy411
9-May-12 2:09am
View
Well, because I don't know anything about your phone I can only make some guess and give you some more hints:
Can you connect your phone to the pc (USB, RS232)? Than there might be a driver for your phone supplied by the manufacturer. But you propably need a documentation. Hardware would be the cable :-)
In the 1990s I used an analog modem not only to connect to the internet but also as a fax and answering machine connected to my PC. That would be one possible way.
Hardware would be an analog modem.
Andy411
4-May-12 10:19am
View
you're wecome.
Thx for voting
Andy411
4-May-12 8:24am
View
You know that MPG is a compressed format? So further compression might be without effect.
What's about sending only a link to the videos?
Andy411
3-May-12 2:05am
View
My 5
It remembers me, that you could use the gameport as a build-in ADC in the "old days"
Andy411
26-Apr-12 4:09am
View
Thx
Andy411
26-Apr-12 4:00am
View
Add a reference to System.Windows.Forms to your project, when using System.Windows.Forms throws an error.
Andy411
26-Apr-12 3:54am
View
Great idea to do with regex
Andy411
26-Apr-12 3:54am
View
I just recognized it, too. I improved my solution with string instead of charackters to solve this problem.
Andy411
26-Apr-12 2:49am
View
Did you update the servie reference on the clientside? (Project tree: Right click on the service in service references, "Update...")
Where does PersonalDetailsData come from? To debug, comment all out and only return only array.Count(). Just to be sure, that the problem doe not come from PersonalDetailsData. In WCF erormessages are sometimes a bit weird...
Andy411
26-Apr-12 2:33am
View
I'm not sure if I understand you. You want to add controls, e.g. Buttons or TextBoxes, to your form during runtime? This can be done in code behind without XAML.
Andy411
24-Apr-12 6:05am
View
For me, it still sounds like homework. Take a look at the script of your course, talk with other students, tutor...
Maybe you should also take a look at µC programmer forums.
If you want to send AT-commands to a modem, you should also consider to analyze the answers. (OK, ERROR, and many more modem specific)
BTW: 4 days left...
Andy411
24-Apr-12 3:31am
View
Well, 4 month is about 17 weeks. Let's say you work 40h/week and you need to get X$/h. Then it ist X * 40 * 17. In your calculation you also have to take care of tax, maybe rent for your office and so on...
Andy411
23-Apr-12 2:07am
View
Well, sad but true, I've never realy programmed a microcontroller, but I would recognize your code as µC code. You need the documentation for your µC to understand how to work with the build in(?) serial interface. Try google for the type of µC you're using.
BTW: If it's homework, this is the wrong place to ask....
Andy411
21-Apr-12 14:23pm
View
Well, the error message is very precisely, isn't it? Put the dll in the app dir or specify the path.
I cannot give you any code because I don't have it anymore. I left it at my old company. Even if I could, it would be similiar to the code in the tutorial.
I think, the primary purpose of this forum is to give some hints or some links. If people don't read the contents of links, nobody can help them.
And now enjoy your weekend.
Andy411
21-Apr-12 14:15pm
View
thx
Andy411
20-Apr-12 8:43am
View
Please read the 2nd link I've posted in the solution.
If LoadLibrary fails it might be a problem with the correct path to Your DLL.
What does GetLastError tell you, when called after LoadLibrary. That might be a hint.
Andy411
20-Apr-12 8:03am
View
I made a little WinForm app and it works fine...
Andy411
20-Apr-12 7:10am
View
Try:
listBox.Sorted = true;
listBox.Items.Remove("----");
listBox.Items.Remove(" ");
Andy411
20-Apr-12 5:55am
View
Where is the problem? Include the Headerfile with the exported classes/function from the DLL into your exe's source file where you want to call the DLL-function and classes. Then you should be able to compile the code. To link all together, just import the DLLs-lib-File into your exeproject.
And maybe read the tutorial linked above and try a bit googling for detailed examples.
Andy411
20-Apr-12 3:21am
View
You asked allmost the same question yesterday
code to comunicate a laboratory embeded system to computer through astm protocol using C#
Is it so difficult to look at the links other suggested to you? I would start with a simple console or winform app to figure out the communication with the device and then go ahead and find a solution to visualize this data as a webpage.
Andy411
20-Apr-12 3:07am
View
Take a look at
Unicode Programming Summary
and
Teach me what is _T?
Andy411
19-Apr-12 5:40am
View
It's a macro like TEXT
Andy411
19-Apr-12 2:28am
View
OK, I guessed something like that.
I'm not sure if you have the right to access the serial port from your code behind, because you are running with the user credentisl of the ISS. I haven't done that before. You might teke care of that.
Andy411
17-Apr-12 7:11am
View
You should ask the question in the article's forum. Then the author will get an email as signal for a new question and he has a chance to answer.
BTW: Don't post email adresses except you want spam.
Andy411
17-Apr-12 2:12am
View
He wants to read data from the serial port aka RS232 aka COM-Port
Andy411
17-Apr-12 2:08am
View
Which language? C/C++, C# ?
How are your trying to open the serial port?
Andy411
16-Apr-12 9:24am
View
Thank You for your sugestion.
I also thought of an ObservableCollection but then I allways have to update the collection fom the database, including removed and added rows. Also I have to write user changes from the collection to the database.
I'm sure there must be an easier way to solve my problem. Row updates are supported in both ways, only adding and deleting does not wirk as excpected.
Andy411
10-Apr-12 6:26am
View
Why are you shouting?
Andy411
30-Mar-12 7:45am
View
Did I understand it: You only have the year and the week and you want to know exact dates of the week?
Have you looked at
System.Globalization.Calendar
?
Andy411
29-Mar-12 9:31am
View
If they don't have internet, how shall they exchange the database (data file)?
- CD-ROM or USB-Massstoragedevice via courier
- Telephone/Modem
Andy411
29-Mar-12 3:03am
View
Do you men this:
http://ashkap.blog.com/2011/03/sending-sms-via-c-using-way2sms/
? Then you should ask your question over there.
Andy411
29-Mar-12 2:56am
View
What kind of mail server access do you have? POP3 or IMAP?
AFAIK there are no classes in the .Net framwork for POP3 or IMAP, only SMTP is implemented. You could use either POP3 or IMAP to look for new emails but you have to implement one of the protocols.
Andy411
29-Mar-12 2:43am
View
Deleted
Well, if you can access the folder with your explorer via filesahring and remove it, then Directory.Delete should work. If you cannot access the catalina folder from your machine, no other app running on your machine will be able to delete the folder.
Something like a cronjob running on the server would be able to clean up the folder.
Andy411
28-Mar-12 10:11am
View
Is your app running on the client and talking to a server? If so, why do you care about directories on the server? Is your app a kind of remote server tool?
Andy411
23-Mar-12 2:53am
View
Thanks, too :)
Andy411
22-Mar-12 2:47am
View
I like this solution, because you used Linq :-)
Andy411
21-Mar-12 4:12am
View
You added a reference, but did you add the using directive in your cs-file? Usually at the top of the file. Something like using NATUPnP; just below using System;
Andy411
12-Mar-12 11:04am
View
Well, it's not a solution, just a suggestion. For me it looks like, that you should think about a GridView populated with the students instead of creating a user control for each student. But maybe I'm missing something in your description and you have a good reason for your way.
Andy411
7-Mar-12 9:21am
View
double basic = double.Parse(textBoxBasic.Text);
Andy411
7-Mar-12 9:18am
View
Deleted
you should have mention that in your first question
Andy411
5-Mar-12 9:07am
View
Take care of the different date formats, e.g MM/DD/YYYY vs. DD/MM/YYYY, if your app is for international use.
Andy411
24-Feb-12 9:36am
View
Deleted
So then You realy shoul look at the BeginReceive/BeginSend methods of the Socket class
Socket Methods
You alos might take
Using an Asynchronous Client Socket
as a starting point.
Andy411
24-Feb-12 4:47am
View
What do You mean with SocketAsynch? Do You want asynchronous sending and receiving of data? Then You should take a look at the BeginReceive/BeginSend methods of the Socket class
Socket Methods
Show More