Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
V

varunpandeyengg

@varunpandeyengg
About
Posts
27
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Boost::serialization with unicode values
    V varunpandeyengg

    Hey guys, I am new to boost. I have to work with boost::serialization. My class is having a member that is wstring. This wstring may have unicode values like

    ഡഢണതഥദധന

    [this is just some garbage I tried to test it with...] When I try to add the unicode member to the xml_oarchive, it gives me the following assert

    Quote:

    Assertion failed! Program: ... File: [Some_Path]\Tools\Boost\.../mb_fro...har.hpp Line: 93 Expression: -1 != m_bend For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts

    Following is the code snippet... Help me guys, I am stuck :confused:

    // Boost headers
    #include "boost\archive\xml_oarchive.hpp"
    #include "boost\serialization\list.hpp"
    #include "boost\serialization\string.hpp"

    std::stringstream StringStream;
    boost::archive::xml_oarchive oa(StringStream, flags);
    oa << boost::serialization::make_nvp("Tag", obj_with_wstring);

    //Serialize method of the class with obj_with_wstring
    serialize(Archive & ar, const unsigned int version)
    {
    ar & boost::serialization::make_nvp("tag", m_wstrUnicode);
    }

    C / C++ / MFC c++ help tools xml json

  • Trackbar's Scroll Box Position
    V varunpandeyengg

    Hey Guys, Quick question, I need to find TrackBar's Scroll Box/thumb/slider position in pixels. I need to put a ToolTip on Workaround:- I can get it by doing some math on TrackBar.value Is there any better way? Thanks in Advance... :-)

    C# question

  • Skipping locked section already in use
    V varunpandeyengg

    Thanx a lot... Still, you recommended not to use Singleton. Why? -- Varun

    C# question json

  • Skipping locked section already in use
    V varunpandeyengg

    Quick Q - I have a critical section which is to be executed only once but is invoked by many scenarios. How can I execute this thread proc and skip all the rest of the calls? Thanks in Advance -- Varun

    C# question json

  • Trying to take ownership of a Directory but it fails...
    V varunpandeyengg

    Hey Guys, My requirement is like this - I need to take ownership of some directory and delete it. I used this sample as it is but it fails to give me the ownership in the following scenario. #Case: I create a limited access user say "Limited_User". I created a directory (ownership of the directory will now be with Limited_User) and I set the all the Administrator rights as Denied. Now, from my administrator user, if I am trying to take the ownership again, the function sets its privilege but setting the ownership fails with ERROR_ACCESS_DENIED. This problem is reproducible on XP / 7. Please help me with this guys.... Thanks a lot in advance... -- Varun

    ATL / WTL / STL help visual-studio com

  • Bypass Windows Message other than Open & Close
    V varunpandeyengg

    Due to some limitation of the process, I need to call some functions of main thread plus BeginInvoke isn't performing well. So, I have no choice other than working with Windows Message.

    C# help tutorial

  • Bypass Windows Message other than Open & Close
    V varunpandeyengg

    Hey everybody, I need to show a static Dialog having only a label "Please Wait" before a long process starts. Since both dialog & process are in the main thread, the dialog is frozen. Due to this, till the task is completed, if I click or drag the "Please Wait" Dialog, "End Process" pops in. Thus, I just need to bypass all the WINDOWS MESSAGES other than those needed for dlg.show() & dlg.close(). Please help me. To start with I know how to bypass the messages.

    protected override void WndProc(ref Message m)
    {
    if (m.Msg == WM_CLOSE) // All the messages I need to handle
    base.WndProc(ref m);
    }

    I just want to know what all messages I'll have to bypass. Also, is there any thing easier way to do this. Thanx in Advance. :-)

    C# help tutorial

  • use Nutch to crawl Microsoft Dataset
    V varunpandeyengg

    Hey Guys, I am new to Nutch. I am part of a IR research team & need to create a setup where in I need to crawl Microsoft's Dataset with Nutch. After googling for a while, I didn't get any tutorial or help. Can anyone guide me for the same? I am using Nutch 1.4 on Ubuntu 11.10 & Eclipse 3.7. Till now I am able to crawl public network from my Nutch setup integrated with Eclipse... Is there any tutorial or wiki explaining how I can achieve this - or any other dataset kept on File System? If not, can you help me please.... Thanks in advance.

    Cheers!!! - Varun

    Linux, Apache, MySQL, PHP tutorial com sysadmin linux collaboration

  • List view double click
    V varunpandeyengg

    Hey everybody. I have a very small trouble... List view double click event is getting invoked if I am doing double click on its scroll bar. How to avoid this... Thanks in advance.. -- CHEERS

    C# tutorial

  • CheckBox ListView Multiple Selection Problem c# [modified]
    V varunpandeyengg

    I guess Multiple Selection Property and Check Box property are the for same purpose. To eliminate multiple selection by CTRL Key, we can also use CheckBoxes property. Using both the properties simultaneously conflicts behaviorally. It was my clients requirement to ave Enable /Disable feature in the list itself. Indeed, it wasn't the best way to design by using checked property of ListView for any other purpose. After a long discussion with my team members, we have come to a conclusion that it is better to eliminate Multiple Selection feature from the product. :-| Although, I have a possible solution- Store the state of all the items just before every click and re-apply it after the click. But this might create trouble only if no. of items exceed a few thousand. Anyways, I am still open for better (optimized) solution. Thanks everybody...

    C# help csharp question

  • CheckBox ListView Multiple Selection Problem c# [modified]
    V varunpandeyengg

    Thanks for replying. I know that it is the default behavior of list view with Check box but I need to change that. The solution you gave fails if I select some unchecked Item...

    C# help csharp question

  • CheckBox ListView Multiple Selection Problem c# [modified]
    V varunpandeyengg

    Thanx for the reply... No Multiple Selection property is TRUE... It hardly takes 5 minutes to make this sample... Just Try it... I think this is the default behavior... Am I missing any event that I need to handle??? Please help me... Getting stuck on such a puny issue :-| Full points for anybody who helps... (Silly Bargain :-))

    C# help csharp question

  • CheckBox ListView Multiple Selection Problem c# [modified]
    V varunpandeyengg

    I am trying to develop an application with list view having CheckBoxes and Multiple Selection property as TRUE. Single Selection works perfectly. But when I try Multiple selection, check box of all the currently selected rows get changed on every selection (and sets to not of the check value of the new selection) Am I missing any event that I need to handle??? Please help me guys!!! Thanks in advance... Although I haven't handle any event, I am still giving the code (I think it'll be irrelevant) //////////////// listView Properties/////////////////////////////////// this.listView.CheckBoxes = true; this.listView.FullRowSelect = true; this.listView.HideSelection = false; this.listView.UseCompatibleStateImageBehavior = false; this.listView.View = System.Windows.Forms.View.Details; //////////////////////////////////////////////////////////////////////////// public partial class Form1 : Form { public Form1() { InitializeComponent(); listView.Columns.Add("One", 100, HorizontalAlignment.Left); listView.Columns.Add("Two", 100, HorizontalAlignment.Left); listView.Columns.Add("Three", 100, HorizontalAlignment.Left); listView.Columns.Add("Four", 100, HorizontalAlignment.Left); for(int i = 0; i < 50; i++) { ListViewItem item = new ListViewItem(); item.Checked = true; item.SubItems.Add("Garbage1"); item.SubItems.Add("Garbage2"); item.SubItems.Add("Garbage3"); listView.Items.Add(item); } } } IMP:- This is happening only when I am clicking column other than the first one for selection...

    modified on Saturday, July 9, 2011 5:39 AM

    C# help csharp question

  • string combination
    V varunpandeyengg

    Hey John... Always try to be smart while seeking answers of indirect questions. :cool: You have been already answered :|. BTW In Advance Login system (used in most of the places where you see "User Name" and "Password" currently), the no. of guesses you can make is always limited. So Brute force really shouldn't be your approach. The Probability of you cracking the password is 1/((All the case sensitive alphabet + Numbers + Special Characters) ^ (length of the password - which is unknown). If you are still trying - Read this: - This guess will be +ve if you get the correct password in "almost The Best case" i.e. you must be able to guess it in 3 chances (approx). (Advice) Try something else... Best Super Computers if used will take days to crack one strong password by Brute Force. And yes, Always be ethical!!! PS: - The above message has no relevance to the initial question.

    C / C++ / MFC algorithms question

  • string combination
    V varunpandeyengg

    You are right... I think the intension is a bit shabby... ha ha ha ha. Caught!!! This guy needs to enumerate all possible string. Brute Force with Alpha Numerics takes a lot of time + Ethics please.

    C / C++ / MFC algorithms question

  • Missing COM dll for IE 08 Toolbar Development
    V varunpandeyengg

    So if Developer Toolbar is not an option, what else can I do. I need to create a toolbar for IE in C++ (specifically MFC + COM) I have come across some samples but those samples need their (ready made) helper code to be included. It's is learning adventure for me, so I would like to do every thing myself... Looking for any tutorial. Thanx in advance :-)

    C / C++ / MFC c++ com help

  • string combination
    V varunpandeyengg

    The fastest way what I think will be using TimeStamp. 1) Get the current Time (in Milliseconds ) 2) Append it to string or if comfortable, use the same as a string... UuidCreate() is a good option but fastest will be timestamp + YourSignature -- CHEERS!!!

    C / C++ / MFC algorithms question

  • any way to detect, catch or provent crash from an invalid pointer?
    V varunpandeyengg

    _CrtDumpMemoryLeaks() is provided and works efficiently. check the following link http://msdn.microsoft.com/en-us/library/e5ewb1h3(v=VS.80).aspx[^] -- CHEERS!!!

    C / C++ / MFC help tutorial question

  • CSocket: in which cases that server receives OnClose() event?
    V varunpandeyengg

    Basically OnClose() event is recieved to notify that the connected socket is closed by its process. It can happen due to following: - 1) Network subsystem failed 2) Connection was reset by the remote side 3) Connection was aborted due to timeout or other failure. Try to fit your test cases here... CHEERS!!!

    C / C++ / MFC sysadmin question

  • CRC
    V varunpandeyengg

    You may do some reverse engineering to get String from CRC. Although that's not feasible. CRC produce unique set of bytes for any data (in your case it is string). As you mentioned correctly, it may not be Unique. The process is slow unless you know how to optimize it. One more method is to use MD5 or SHA1. Although the whole purpose of MD5 is to authenticate the data (and it uses Hash function - which may take extra clock cycles), it can also be used smartly to replace CRC. There is a exhaustive list of error-correcting algorithm which I am not mentioning here. Pick any of those according to the importance of the transfered data. (CRC converts data => Checksums so the only way we can get data be CRC is by trial and error) CHEERS!!!

    C / C++ / MFC algorithms help tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups