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
S

SandeepN

@SandeepN
About
Posts
33
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to discard invalid (ASCII 0-32) user input in editbox? [modified]
    S SandeepN

    Thanks for your reply. Thats a good suggestion I appreciate it. But I don't want to restrict use from entering value like ALT + 65 , ALT + 117 which is valid value Actualy I am sending this value to COM object as BSTR. That is where I have my business logic written to validate the data entered. So I wanted to first figure out how to do it in C# and then mimic the similar code in C++. I found one website where they have table to show DOS equalent characters. But I want to good technique to check the same http://petesguide.com/WebStandards/entities/XHTML1.0-UTF-Latin-1entities.html[^] -- modified at 18:46 Tuesday 10th April, 2007

    Sandeep Naik

    C# csharp tutorial question

  • textbox validation very urgent
    S SandeepN

    I want to basically check if user has entered any control characters like 1-32 or 127 ASCII value (Ex: ALT + 127) in the edit box. And discard the same. FYI this edit box should allow any other non english characters like French, German, Chinese, Japanese etc

    Sandeep Naik

    C# help tutorial question

  • textbox validation very urgent
    S SandeepN

    I would like to check if user has entered ALT+10 or à , ä (UMALUT) or any english alphabets The code sample in previous thread by 'sharmit' did not work for me. Can you please point me the websites where I can find code sample for the same.

    Sandeep Naik

    C# help tutorial question

  • How to discard invalid (ASCII 0-32) user input in editbox? [modified]
    S SandeepN

    I created simple DialogBased Windows application using C# I want to check if user has entered any control characters in the edit box. For Ex: in the edit box user can enter value like ALT + 8 (BackSpace) ALT + 9 (Horixontal Tab ) etc Though it looks funny but I want to discard this input. I tried to convert the string to int and check ASCII it did not work EX: Int32 nLength = str.Length; for(int i=0;i 0 ) Discard the input; } In this scenario for ALT + 8 I get asciival as 9688 ALT+9 as 9675. This is to check whether control characters entered? Why do I get ALT+8 as 9688 not as 8 asci value ? I want to basically check if user has entered any control characters like 1-32 or 127 ASCII value (Ex: ALT + 127) in the edit box. And discard the same. FYI this edit box should allow any other non english characters like French, German, Chinese, Japanese etc -- modified at 17:44 Tuesday 10th April, 2007

    Thanks, Sandeep Naik

    C# csharp tutorial question

  • How to wait for multiple STA threads to finish?
    S SandeepN

    Thanks for all your help... It was very use full

    Sandeep Naik

    C# com tutorial question

  • How to wait for multiple STA threads to finish?
    S SandeepN

    I tried something like this and it works with some of my testing .. Do you think if this correct ? or will there be any issues with this for(int temp = 0; temp Sandeep Naik

    C# com tutorial question

  • How to wait for multiple STA threads to finish?
    S SandeepN

    Will I be blocking message pump here ?

    Sandeep Naik

    C# com tutorial question

  • How to wait for multiple STA threads to finish?
    S SandeepN

    I create multiple STA threads and start them. Once I have started all the threads in my main thread I need to wait till all of them are done. To wait I tried WaitHandle.WaitAll() ----- returns exception Tried waitEvent.waitOne() and thread.Join() In above case some times my main thread slips through Join\waitOne(). (i.e. main thread does not wait till all other threads are done) Please advice how to implement this? My sample code is as below Main() { ... ... ArrayList myThreadClass = new ArrayList(3); ArrayList threads = new ArrayList(3); for(int i = 0 ; i< 3;i++) { ThreadClass thClass = new ThreadClass(); myThreadClass.Add(thClass); Thread myThread = new Thread( new ThreadStart(thClass.threadMethod)); myThread.ApartmentState = ApartmentState.STA; threads.Add(myThread); ((Thread)threads[i]).Start(); } for(int k = 0;k<3;k++) { ((Thread)threads[k]).Join(); } ..... ..... } //Main Ends Some more info In my thread method I do some COM calls and make some callls Writeline to StreamWriter

    Sandeep Naik

    C# com tutorial question

  • MSXML3.dll- Performance difference between Win2000SP4 and Win2003SP1
    S SandeepN

    Hi, I see that Loading and Iterating huge XML file using DOM is slow on Win2003SP1. Any idea why ? Is there any solution ? I am using MSXML3.dll ver 8.10.8308.0 .I modified sample Books.xml to add 2000 more nodes. I wrote simple App in VC++ 6.0 to load books.xml and iterated through all the elements. I executed this on both Win2000-Sp4 and Win2003-Sp1. I see that on Win2003Sp1 its takes more time compared to Windows 2000 Sp4. Please comment on this. Thanks Sandeep Naik

    XML / XSL c++ html xml performance question

  • CryptoAPI error
    S SandeepN

    CryptAcquireContext(&cspContext,UserName,MS_DEF_PROV,PROV_RSA_FULL ,0); returns an error ERROR_FILE_NOT_FOUND ( 2L ) Anybody knows why ? How to getrid of this error ? Sandeep Naik

    C / C++ / MFC help tutorial question

  • Linker Error
    S SandeepN

    I am using cryptlib.lib in my VC7.0 project. I am getting following linker error .. please help to resolve the same cryptlib.lib(cryptlib.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) private: void __thiscall std::basic_string,class std::allocator >::_Eos(unsigned int)" (__imp_?_Eos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEXI@Z) referenced in function "public: __thiscall CryptoPP::BufferedTransformation::Err::Err(enum CryptoPP::BufferedTransformation::ErrorType,class std::basic_string,class std::allocator > const &)" (??0Err@BufferedTransformation@CryptoPP@@QAE@W4ErrorType@12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) Sandeep Naik

    C / C++ / MFC help question

  • DateTime to FILETIME
    S SandeepN

    DateTime.Now.ToFileTime() returns long.. FILETIME is structure. Pls let me if you have someother idea Sandeep Naik

    C# tutorial question

  • DateTime to FILETIME
    S SandeepN

    Please suggest how to convert DateTime.Now to FILETIME structure format? Sandeep Naik

    C# tutorial question

  • STL DataStructure for 50000 - 100000 items
    S SandeepN

    Hi I am implementing a data structure to insert ( 50000 - 100000 items )and retrive in First in First Out ( FIFO ) order. Please suggest me which one is the fastest QUEUE , STACK , LIST , MAP , MULTIMAP or any other Thanks Sandeep Naik

    ATL / WTL / STL data-structures c++

  • Listview - bold font
    S SandeepN

    Set the items Font property Ex: item.Font = new Font("Microsoft Sans Serif",8,System.Drawing.FontStyle.Bold); Sandeep Naik

    C# help question

  • Constructor - Load method
    S SandeepN

    You can quickly check this by putting breakpoint in both Constructor and Form_Load method and run it. See which one gets called first... Sandeep Naik

    C# question

  • Sorting issue with MMC on Win2000
    S SandeepN

    Oh yes I don't have problem with compmgmt.msc but we have our own .msc file and we lot of items in that list. And with SORT its big problem. Sandeep Naik

    C / C++ / MFC algorithms tools help question

  • Need help detecting switching users
    S SandeepN

    Are you running your application on Windows Terminal Services also ? i.e. Two users can concurrently login Sandeep Naik

    C / C++ / MFC help question

  • Sorting issue with MMC on Win2000
    S SandeepN

    I have sorting issue with MMC on Win2000 platform ( works fine on XP,2003) Open Computer Management in MMC (compmgmt.msc), Select System Tools try to sort by Name on list control. Sorting fails ( Nothing happens ) Do the same on XP , 2003 works fine. Anybody knows the reason ? And how solve it ? Thanks Sandeep Naik

    C / C++ / MFC algorithms tools help question

  • MMC sort issue on Windows2000
    S SandeepN

    I have sorting issue with MMC on Win2000 platform ( works fine on XP,2003) Open Computer Management in MMC (compmgmt.msc), Select System Tools try to sort by Name on list control. Sorting fails ( Nothing happens ) Do the same on XP , 2003 works fine. Anybody knows the reason ? And how solve it ? Thanks Sandeep Naik

    System Admin algorithms tools help 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