Click here to Skip to main content

Comments by Nish Sivakumar (Top 200 by date)

Nish Sivakumar - 17 Aug '12 - 11:23 View
No problem.
Nish Sivakumar - 17 Aug '12 - 10:42 View
See http://www.codeproject.com/Articles/62934/Many-to-One-Local-IPC-using-WCF-and-NetNamedPipeBi
Nish Sivakumar - 14 Aug '12 - 13:46 View
I just verified that it works as expected in Windows 7 64 bit using VC++ 2010.
Nish Sivakumar - 14 Aug '12 - 13:36 View
--- It's called a loop. Come now, Richard. Poor comment given the OP's requirement.
Nish Sivakumar - 14 Aug '12 - 9:01 View
No problem, you are welcome.
Nish Sivakumar - 13 Aug '12 - 16:18 View
Hey SA, he means a form (Winforms project). And as far as I can tell, I've told him what he needed below.
Nish Sivakumar - 13 Aug '12 - 16:17 View
Baskaran, your question has been answered, right?
Nish Sivakumar - 13 Aug '12 - 13:55 View
No problem.
Nish Sivakumar - 13 Aug '12 - 13:49 View
I guess it should be the same approach. Your 2 top-level forms should both be marked as mdi forms. That allows them to contain child forms.
Nishant Sivakumar - 18 Nov '11 - 14:11 View
VS 2010 has a drop down to set this. Can also be done from the properties dialog.
Nishant Sivakumar - 18 Nov '11 - 12:47 View
Compile the app explicitly as 32 bit (or 64 bit as the case might be) to match the targe OS.
Nishant Sivakumar - 18 Nov '11 - 11:21 View
You are releasing a debug-mode binary. You need to make a release-mode build and then distribute those files (/bin/release). The debug mode binaries are only meant for dev/debug/test work.
Nishant Sivakumar - 18 Nov '11 - 11:10 View
That's possible. I'd not have installed a dev preview on a regular dev machine (I usually use a VM for that).
Nishant Sivakumar - 18 Nov '11 - 11:07 View
Ok, good luck then. It may be a corrupt installation.
Nishant Sivakumar - 17 Nov '11 - 19:01 View
I agree. Based on the curent version of the question, whether data is not found or whether data exists, he wants to show an error message box. So he might as well skip the DB query and just show a messagebox.
Nishant Sivakumar - 17 Nov '11 - 15:49 View
Use a free email client, set it up to use your mail server, and try to send a few emails out. This will tell you if the problem is with your mail server/config.
Nishant Sivakumar - 17 Nov '11 - 13:46 View
Good detailed response. My 5. Needs a bit of formatting though.
Nishant Sivakumar - 17 Nov '11 - 11:45 View
Since that's a new question/topic, I'd suggest that you start a new thread for that. Keeping track of opened files in your application.
Nishant Sivakumar - 17 Nov '11 - 10:54 View
Yes it can handle non-empty folders. The call will fail if a file is in use (same as when you delete from Explorer)
Nishant Sivakumar - 17 Nov '11 - 10:51 View
The form that contains the PictureBox control. I don't have any sample code right now.
Nishant Sivakumar - 17 Nov '11 - 10:37 View
Good answer. My 5!
Nishant Sivakumar - 16 Nov '11 - 14:28 View
Thanks SA!
Nishant Sivakumar - 15 Nov '11 - 18:17 View
SA, he says he is using Winforms.
Nishant Sivakumar - 10 Nov '11 - 10:34 View
LOL :-)
Nishant Sivakumar - 6 Nov '11 - 16:52 View
I reckon he's already Googled and thinks that we can't give him any Google search keywords that he has not already tried.
Nishant Sivakumar - 3 Nov '11 - 7:48 View
You'll need to step through the code that fires the events and see what's causing it to not fire.
Nishant Sivakumar - 3 Nov '11 - 7:47 View
Wow, sweet!
Nishant Sivakumar - 2 Nov '11 - 16:37 View
If the event is not firing when it should, it may be because you are using the component incorrectly or perhaps even a bug in the library. Either way you should probably ask the guys who wrote/sold this component. They'd know best how to resolve this.
Nishant Sivakumar - 2 Nov '11 - 16:25 View
You're welcome.
Nishant Sivakumar - 2 Nov '11 - 12:07 View
Put a breakpoint and trace through the code.
Nishant Sivakumar - 2 Nov '11 - 12:04 View
No, the HTTP headers.
Nishant Sivakumar - 2 Nov '11 - 12:02 View
Add the user from computer-A as an user on computer-B. How you do this depends on the OS you are on.
Nishant Sivakumar - 2 Nov '11 - 12:02 View
As an examaple, if computer-A is called MachineA and the user is say John, then on computer-B, you would need to add MachineA\John as an allowed user and set rights accordingly.
Nishant Sivakumar - 1 Nov '11 - 9:39 View
You're welcome.
Nishant Sivakumar - 31 Oct '11 - 16:01 View
No, it will not. Since those are not HWND-controls. The OP must have been mistaken.
Nishant Sivakumar - 31 Oct '11 - 15:51 View
Voted 5. Good alternate technique (Ctrl-A/C).
Nishant Sivakumar - 31 Oct '11 - 15:41 View
Thank you, Espen!
Nishant Sivakumar - 31 Oct '11 - 15:33 View
Voted 5 as well. We posted at the same time I guess.
Nishant Sivakumar - 31 Oct '11 - 15:32 View
Interesting link - had not heard of that before. Voted 5!
Nishant Sivakumar - 31 Oct '11 - 15:32 View
Yeah, MSDN is not easy to search huh? :-)
Nishant Sivakumar - 31 Oct '11 - 15:31 View
Thanks.
Nishant Sivakumar - 31 Oct '11 - 15:11 View
There is no portable approach to these things, since C++ is agnostic of the file system (mostly).
Nishant Sivakumar - 31 Oct '11 - 14:58 View
Check my updated answer.
Nishant Sivakumar - 31 Oct '11 - 14:52 View
It's an out param, so null is fine here.
Nishant Sivakumar - 31 Oct '11 - 14:51 View
Verify that you are passing in the right HWND.
Nishant Sivakumar - 31 Oct '11 - 13:56 View
Interesting!
Nishant Sivakumar - 31 Oct '11 - 13:53 View
You are welcome. Hopefully you got something out of this discussion. I was a little disappointed that I could not help you pinpoint your exact error. Oh well.
Nishant Sivakumar - 31 Oct '11 - 13:51 View
Try opening the log file in a different editor. It may just be a case of Notepad misinterpreting the text as Unicode.
Nishant Sivakumar - 31 Oct '11 - 13:50 View
And since it's a u_long, that'd be 0xffffffff which is 4,294,967,295 (maximum value). So 6-9 digits seem okay to me.
Nishant Sivakumar - 31 Oct '11 - 13:48 View
Based on the TCP header from http://en.wikipedia.org/wiki/Transmission_Control_Protocol, 32 bits.
Nishant Sivakumar - 31 Oct '11 - 13:44 View
Good alternatives. My vote of 5.
Nishant Sivakumar - 31 Oct '11 - 13:44 View
I would consider source code to be a "tool" of sorts too when I refer to it as 3rd party, but you may be right SA :-)
Nishant Sivakumar - 31 Oct '11 - 13:43 View
Yes but my point was that the u_long returned may be corresponding to some arbitrary Unicode character and thus the text file interprets it incorrectly as a character (when it is not).
Nishant Sivakumar - 31 Oct '11 - 13:38 View
It is possible that tcp_header->seq_number is returning an invalid value. And thus ntohl will return some random value too.
Nishant Sivakumar - 31 Oct '11 - 13:34 View
I meant your response was certainly valid. The OP was quite vague in his description.
Nishant Sivakumar - 31 Oct '11 - 13:32 View
Yes it certainly was. I am just better than most people at figuring out what people are trying to say :-)
Nishant Sivakumar - 31 Oct '11 - 13:19 View
Thanks SA!
Nishant Sivakumar - 31 Oct '11 - 13:15 View
The get-method in the property.
Nishant Sivakumar - 31 Oct '11 - 13:11 View
Edited your question so it's easier to understand.
Nishant Sivakumar - 31 Oct '11 - 12:48 View
Unlikely that you can do all of it in C#. You'd need to write a low-level keyboard driver in C. You could then manage that driver from C#.
Nishant Sivakumar - 31 Oct '11 - 12:33 View
I approve and endorse this reply! :-)
Nishant Sivakumar - 31 Oct '11 - 11:58 View
Heh :-)
Nishant Sivakumar - 31 Oct '11 - 11:58 View
Good idea!
Nishant Sivakumar - 31 Oct '11 - 11:58 View
Or just edit your OP.
Nishant Sivakumar - 31 Oct '11 - 11:53 View
Voted 5. I endorse and recommend this answer. [I am going to use this as my approval template text from now on]
Nishant Sivakumar - 31 Oct '11 - 11:52 View
Ok, this is getting to be like one of those Friday night thriller movies now. No one knows what's going on :-)
Nishant Sivakumar - 31 Oct '11 - 11:51 View
I agree, specially if he just has plain text data.
Nishant Sivakumar - 31 Oct '11 - 11:49 View
Voted 5. I endorse and recommend this answer. ;-)
Nishant Sivakumar - 31 Oct '11 - 11:47 View
I don't get what this has to do with ini files at all. But see the example code from : http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx
Nishant Sivakumar - 31 Oct '11 - 11:41 View
:-) Had some free time while waiting for a big download to finish (images for a project).
Nishant Sivakumar - 31 Oct '11 - 7:36 View
Good link, hopefully it will resolve the OP's issue. My vote of 5.
Nishant Sivakumar - 31 Oct '11 - 7:33 View
Thanks.
Nishant Sivakumar - 31 Oct '11 - 7:33 View
Thanks.
Nishant Sivakumar - 29 Oct '11 - 17:55 View
Not to my knowledge. Try that forum I linked to - that's your best shot.
Nishant Sivakumar - 29 Oct '11 - 17:29 View
If you mean this -> http://www.erain.com/products/zam3d/DefaultPDC.asp It's a commercial lib, not free. They may have a trial available though - so you may want to check with them directly.
Nishant Sivakumar - 29 Oct '11 - 17:21 View
Try this link : http://windowsclient.net/learn/video.aspx?v=294834 It's a video tutorial that may help you.
Nishant Sivakumar - 29 Oct '11 - 16:49 View
Post about that error in a separate question. I am sure someone here will help you out.
Nishant Sivakumar - 29 Oct '11 - 16:46 View
Thank you!
Nishant Sivakumar - 29 Oct '11 - 10:10 View
Comment to OP : You have thanked everyione for their input, but sadly you have not considered following any of the advice. You absolutely need to get a good C++ book and learn some fundamentals before you write any more code. [this is in response to your latest answer which a mod may delete soon]
Nishant Sivakumar - 29 Oct '11 - 10:09 View
You have thanked everyione for their input, but sadly you have not considered following any of the advice. You absolutely need to get a good C++ book and learn some fundamentals before you write any more code.
Nishant Sivakumar - 28 Oct '11 - 20:10 View
What I meant is that it's better to rely on data binding here. Because here I've made several assumptions about the Xaml. If you ever change the Xaml in future that code will break. But if you bind to a proeprty then it will continue to work.
Nishant Sivakumar - 28 Oct '11 - 19:20 View
No problem. I should have seen it as an obvious typo, so I need some coffee too I guess :-)
Nishant Sivakumar - 28 Oct '11 - 19:16 View
I assume it was a typo for WebForms. If so, ignore my previous comment.
Nishant Sivakumar - 28 Oct '11 - 19:15 View
Ok you have tagged the question as ASP.NET. Now you state that it's WinForms.
Nishant Sivakumar - 27 Oct '11 - 12:31 View
gcc supports it too. But do check the docs for compatibility: http://gcc.gnu.org/onlinedocs/gcc/Structure_002dPacking-Pragmas.html
Nishant Sivakumar - 27 Oct '11 - 11:44 View
And no. 4! :-)
Nishant Sivakumar - 27 Oct '11 - 11:43 View
Sorry :-)
Nishant Sivakumar - 27 Oct '11 - 11:43 View
My 5. Nice to have people back your answer up *grin*
Nishant Sivakumar - 27 Oct '11 - 11:43 View
Dude, 3rd guy to post the same thing :-)
Nishant Sivakumar - 27 Oct '11 - 10:59 View
Thanks.
Nishant Sivakumar - 26 Oct '11 - 12:56 View
Yes, that's exactly how most common password implementations work.
Nishant Sivakumar - 26 Oct '11 - 12:25 View
Password verification is done by hash comparison.
Nishant Sivakumar - 26 Oct '11 - 11:36 View
Excellent answer. 5!
Nishant Sivakumar - 25 Oct '11 - 14:36 View
Thanks SA.
Nishant Sivakumar - 25 Oct '11 - 14:36 View
Should not be stored at all except as a hash of some form.
Nishant Sivakumar - 25 Oct '11 - 7:46 View
Good alternate solution (what the OP originally wanted). Got my 5!
Nishant Sivakumar - 25 Oct '11 - 7:45 View
Thanks SA.
Nishant Sivakumar - 10 May '11 - 12:10 View
Not sure I understand this. If you let the user pick a folder, surely you know the full path for it (including the drive).
Nishant Sivakumar - 10 May '11 - 11:34 View
Well, that makes it crazier huh? Although you could do it after the move. See my alternate way.
Nishant Sivakumar - 10 May '11 - 11:33 View
There's an alternate way which I'll post as an alternate solution.
Nishant Sivakumar - 10 May '11 - 11:11 View
Yeah, check my updated answer.
Nishant Sivakumar - 10 May '11 - 8:22 View
Good answer. Voted 5!
Nishant Sivakumar - 1 May '11 - 10:03 View
:-)
Nishant Sivakumar - 1 May '11 - 10:00 View
Sorry. Corrected! Check again.
Nishant Sivakumar - 1 May '11 - 9:56 View
Thanks Tarun!
Nishant Sivakumar - 1 May '11 - 9:56 View
My vote of 5!
Nishant Sivakumar - 1 May '11 - 9:27 View
Thanks SA!
Nishant Sivakumar - 30 Apr '11 - 17:48 View
Thank you, SA!
Nishant Sivakumar - 30 Apr '11 - 15:58 View
Excellent response. My vote of 5!
Nishant Sivakumar - 30 Apr '11 - 15:42 View
My vote of 5!
Nishant Sivakumar - 30 Apr '11 - 15:42 View
My vote of 5!
Nishant Sivakumar - 30 Apr '11 - 12:54 View
No, not you. I meant Albin. And Krishna is not omnipresent, if so he'd have been there for the WC finals and he clearly wasn't! *grin*
Nishant Sivakumar - 30 Apr '11 - 12:37 View
Dude, you are everywhere huh? SO, CP, and MSDN? :-)
Nishant Sivakumar - 30 Apr '11 - 12:36 View
Good answer, my vote of 5!
Nishant Sivakumar - 30 Apr '11 - 12:36 View
Good answer, my vote of 5!
Nishant Sivakumar - 30 Apr '11 - 12:36 View
Good answer, my vote of 5!
Nishant Sivakumar - 30 Apr '11 - 12:36 View
Good answer, my vote of 5!
Nishant Sivakumar - 30 Apr '11 - 12:35 View
Good answer, my vote of 5!
Nishant Sivakumar - 30 Apr '11 - 12:28 View
My vote of 5, good answer.
Nishant Sivakumar - 30 Apr '11 - 11:03 View
No problem.
Nishant Sivakumar - 29 Apr '11 - 22:42 View
My vote of 5.
Nishant Sivakumar - 29 Apr '11 - 9:12 View
Thanks!
Nishant Sivakumar - 28 Apr '11 - 17:03 View
Already saw it, voted 5 too. Up to the OP to think of these approaches though.
Nishant Sivakumar - 28 Apr '11 - 17:02 View
:-)
Nishant Sivakumar - 28 Apr '11 - 17:00 View
Voted 5!
Nishant Sivakumar - 28 Apr '11 - 16:30 View
My vote of 5!
Nishant Sivakumar - 28 Apr '11 - 16:25 View
Yeah, and a good book will really help a lot. That said, feel free to ask questions here. It's good to see someone trying stuff out on their own.
Nishant Sivakumar - 28 Apr '11 - 16:24 View
Ok, I am really confused here. That page I linked to clearly shows the function signature as int CALLBACK WinMain( __in HINSTANCE hInstance, __in HINSTANCE hPrevInstance, __in LPSTR lpCmdLine, __in int nCmdShow); but you are using a different signature. Surely you get what I mean here!
Nishant Sivakumar - 28 Apr '11 - 16:23 View
Thanks (comment threading is all messed up)
Nishant Sivakumar - 28 Apr '11 - 16:23 View
Thank you, Albin.
Nishant Sivakumar - 28 Apr '11 - 16:09 View
You're welcome.
Nishant Sivakumar - 28 Apr '11 - 16:07 View
My 5 too.
Nishant Sivakumar - 28 Apr '11 - 16:03 View
Just a dummy function I used in the example. You can declare these globally too, no need to make them locals if you prefer them to be globals.
Nishant Sivakumar - 28 Apr '11 - 15:56 View
Manfred has updated the code to make it more obvious.
Nishant Sivakumar - 28 Apr '11 - 15:55 View
The int z was just an example. You would need to define members based on your scenario.
Nishant Sivakumar - 28 Apr '11 - 15:54 View
In C (not C++) a struct must have at least 1 member.
Nishant Sivakumar - 28 Apr '11 - 15:54 View
My vote of 5!
Nishant Sivakumar - 28 Apr '11 - 15:53 View
My vote of 5!
Nishant Sivakumar - 28 Apr '11 - 15:52 View
My vote of 5!
Nishant Sivakumar - 28 Apr '11 - 15:48 View
My vote of 5!
Nishant Sivakumar - 28 Apr '11 - 15:46 View
My vote of 5! Sometimes this sort of thing just needs to be said!
Nishant Sivakumar - 28 Apr '11 - 15:45 View
My vote of 5!
Nishant Sivakumar - 28 Apr '11 - 15:44 View
My vote of 5!
Nishant Sivakumar - 28 Apr '11 - 15:44 View
My vote of 5!
Nishant Sivakumar - 28 Apr '11 - 15:42 View
Good answer, AS. My vote of 5.
Nishant Sivakumar - 28 Apr '11 - 15:38 View
Ok, I've said this many times in this thread, but your WinMain sigtnature is wrong. Please see http://msdn.microsoft.com/en-us/library/ms633559(v=vs.85).aspx
Nishant Sivakumar - 28 Apr '11 - 15:37 View
My 5 too. Good answer.
Nishant Sivakumar - 28 Apr '11 - 15:36 View
You're welcome!
Nishant Sivakumar - 28 Apr '11 - 15:36 View
Thank you, SA!
Nishant Sivakumar - 28 Apr '11 - 14:50 View
Thanks!
Nishant Sivakumar - 28 Apr '11 - 12:48 View
Yeah, source code has the rest of it but it's probably for VC6. Wrote it a long time ago and never really updated it. Thanks SA!
Nishant Sivakumar - 28 Apr '11 - 12:43 View
:-)
Nishant Sivakumar - 28 Apr '11 - 12:33 View
Heh :-) Good thing for me, my son's 3. Not old enough to wreck cars :-)
Nishant Sivakumar - 28 Apr '11 - 12:12 View
Thanks Joan.
Nishant Sivakumar - 28 Apr '11 - 12:03 View
Decent response. My vote of 5!
Nishant Sivakumar - 28 Apr '11 - 11:57 View
You are welcome!
Nishant Sivakumar - 28 Apr '11 - 11:42 View
Thanks SA!
Nishant Sivakumar - 28 Apr '11 - 11:38 View
I was just kidding, SA! :-)
Nishant Sivakumar - 28 Apr '11 - 11:35 View
Fixed now :-)
Nishant Sivakumar - 28 Apr '11 - 11:35 View
I meant your vote of 4 above to Abhinav but your comment was 5 :-) (btw I was just kidding you). And seems you have fixed that now.
Nishant Sivakumar - 28 Apr '11 - 11:24 View
Thanks!
Nishant Sivakumar - 28 Apr '11 - 11:09 View
I gave you a 5 (a real 5, not an SA-5 which is usually a 4) *grin*
Nishant Sivakumar - 28 Apr '11 - 11:02 View
Thank you, Joan.
Nishant Sivakumar - 28 Apr '11 - 11:00 View
C#, it's Microsoft Sans Serif, 8.25pt
Nishant Sivakumar - 28 Apr '11 - 10:55 View
Voted 5, proposed as answer.
Nishant Sivakumar - 28 Apr '11 - 10:52 View
Voted 5 (actually a 5, and not a 4 as some people do) ;-)
Nishant Sivakumar - 28 Apr '11 - 10:51 View
>> My 5. << His post has a single 4. So you changed your mind? :-)
Nishant Sivakumar - 28 Apr '11 - 9:08 View
Thanks Olivier.
Nishant Sivakumar - 28 Apr '11 - 9:07 View
Well then when you round back, round back to 4 digits. You cannot get back data that you've lost.
Nishant Sivakumar - 28 Apr '11 - 9:02 View
Post your code (just WinMain).
Nishant Sivakumar - 28 Apr '11 - 9:00 View
Yeah you'll need separate assemblies that link to specific interop versions. And maybe a common assembly that can then act as the sync-ing point.
Nishant Sivakumar - 28 Apr '11 - 8:57 View
Thank you!
Nishant Sivakumar - 28 Apr '11 - 8:09 View
If you think your question has been answered, please accept one of the answers in this thread as the accepted answer.
Nishant Sivakumar - 28 Apr '11 - 8:07 View
Cool. Good to hear that!
Nishant Sivakumar - 28 Apr '11 - 8:07 View
Thanks :-)
Nishant Sivakumar - 28 Apr '11 - 8:06 View
You are welcome.
Nishant Sivakumar - 28 Apr '11 - 8:04 View
Thanks SA!
Nishant Sivakumar - 27 Apr '11 - 18:36 View
See my alternate answer.
Nishant Sivakumar - 27 Apr '11 - 16:39 View
Corrected again (this time to "use")!
Nishant Sivakumar - 27 Apr '11 - 16:34 View
LOL :-) BTW I meant "use" not "sure".
Nishant Sivakumar - 27 Apr '11 - 16:21 View
Thanks :-)
Nishant Sivakumar - 27 Apr '11 - 16:06 View
See my updated answer.
Nishant Sivakumar - 27 Apr '11 - 15:41 View
A good lower level approach, but sometimes that's just what's needed. My vote of 5.
Nishant Sivakumar - 27 Apr '11 - 15:33 View
Voted 5.
Nishant Sivakumar - 27 Apr '11 - 15:26 View
Yeah, it would seem that there are no public libraries yet (none that are popular anyway). There are apps that do it but their authors have not revealed their methods :-)
Nishant Sivakumar - 27 Apr '11 - 15:24 View
Good response, voted 5.
Nishant Sivakumar - 27 Apr '11 - 15:10 View
Thank you, Espen!
Nishant Sivakumar - 27 Apr '11 - 8:56 View
Well that's wrong. I linked above to the WinMain documentation which shows the correct signature.
Nishant Sivakumar - 26 Apr '11 - 19:58 View
What is your current WinMain signature?
Nishant Sivakumar - 26 Apr '11 - 19:06 View
Use this signature for WinMain: http://msdn.microsoft.com/en-us/library/ms633559(v=vs.85).aspx
Nishant Sivakumar - 26 Apr '11 - 19:06 View
In your project Linker settings, select Advanced and set Entry Point to wWinMainCRTStartup.
Nishant Sivakumar - 26 Apr '11 - 18:23 View
I went with the most common choice (WinForms). But yes, it's a guess on my part :-)
Nishant Sivakumar - 26 Apr '11 - 18:21 View
Good answer, SA. Voted 5.
Nishant Sivakumar - 26 Apr '11 - 18:20 View
Thank you, SA!
Nishant Sivakumar - 26 Apr '11 - 16:58 View
Decent suggestion, voted 5.
Nishant Sivakumar - 26 Apr '11 - 16:14 View
Glad to hear that, and you are most welcome.
Nishant Sivakumar - 26 Apr '11 - 16:03 View
Thanks Espen!
Nishant Sivakumar - 26 Apr '11 - 15:56 View
I tried that code in VC++ 2010 and compiled as "C" (not C++). Code compiles fine.
Nishant Sivakumar - 26 Apr '11 - 15:49 View
A char represents a single character. C does not have a string type. In C, a string is represented by a char*. Pointer to character.
Nishant Sivakumar - 26 Apr '11 - 15:48 View
Thanks!

Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid