Solved

Is there any restriction on characters used in CMapWordToPtr key value?

Posted on 2007-11-21
7
225 Views
Last Modified: 2013-11-20
What are the unacceptable characters in the key?
Thanks
Eugene
0
Comment
Question by:shiffin
  • 3
  • 2
  • 2
7 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20330218
characters?
Word means a 16-bit integer, not a string at all
Maybe you need CMapStringToPtr, unique forbidden character is null (ascii 0)
0
 

Author Comment

by:shiffin
ID: 20330250
I am sorry. It was CMapStringToPtr
Thanks
Eugene
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20330275
Then you have the answer. Unique restricted character: ASCII 0
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 86

Expert Comment

by:jkr
ID: 20330420
The same restrictions as for CStrings apply. What chracter/string is giving you trouble?
0
 

Author Comment

by:shiffin
ID: 20332427
I think I am doing a different mistake
Inside loop, I remove some keys. I think this is the problem. Is it?
Eugene
    pCurVal= myMap.PGetFirstAssoc( );

    while (pCurVal != NULL)

    {

           pCurVal= myMap.PGetNextAssoc(pCurVal);

           if(OnSomeCondition){

            delete myMap.pointer

             myMap.RemoveKey("xxx")

           }

    }

    if(myMap.IsEmpty())myMap.RemoveAll()

Open in new window

0
 
LVL 86

Expert Comment

by:jkr
ID: 20332452
So far, that looks ok. What error are you getting and what is the original code?
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 250 total points
ID: 20332462
You have not exposed your problem. Error message? Undesired result?
In you code I see something strange:

while (pCurVal != NULL)
    {
           if(OnSomeCondition){
            delete myMap.pointer
             myMap.RemoveKey("xxx")
           }
           pCurVal= myMap.PGetNextAssoc(pCurVal);  // notice the position of this line
    }
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now