Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Lorey
  • Order by date
  1. Lorey

    CBrush

    Hi experts, I have a software GUI which uses a lot Cbrush. Sometimes, all the monitor just went white except for all the buttons in my GUI. Is this a possible cause of CBrush? It does not throw any specific error. One time, when the pc went out of memory, the monitor just went white.
  2. Lorey

    Convert hex string to Chinese chars

    Hi experts! Is there a more decent way to convert below example hex strings to actual chinese chars other than code below? // sample hex string std::string str = "\\0030\\31\\70ED\\83AB\\6279\\5FD2\\004c\\0045\\0046"; const unsigned int MAX_LEN = 300; wchar_t* wStr = new...
  3. Lorey

    std::wstring

    let me explain my scenario, in my windows application, i have a std::string which converts to wstring thru multibyte2widechar(). the higher and lower byte of wstring is put into vector of unsigned char to be passed in my solaris application. since the wstring in windows is 2 bytes, getting...
  4. Lorey

    std::wstring

    Hi cpjust, thanks for this. when the argument is non-chinese (i.e. "ABC"), it displays correctly. but if the argument is in chinese, the display is incorrect :(
  5. Lorey

    std::wstring

    Hi experts, I have a std::string which was converted to std::wstring. when in windows, wstring is 2 bytes so i can easily get the high and low byte and push in vector<unsigned char>. But, how can I also get the high and low byte of 4 bytes wstring in solaris and assign to my vector<unsigned...
  6. Lorey

    std::wstring

    Hi Miros, the last reply you gave didnt work. it still gives me garbage data. Is there an equivalent of MultiByteToWideChar of Windows in Solaris? thanks!
  7. Lorey

    dialog refresh

    Hi experts! May I ask what's the solution if, whenever i minimize and restore the dialog, the dialog takes time to load all the controls. I gives me gray dialog at first. how to prevent this to happen. I know I have lots of things doing at the background.
  8. Lorey

    how to copy std::vector&lt;CString&gt; to std::vector&lt;CString&gt;

    Thanks for the replies. this UpdateData function gets called every like 50 milliseconds. And the rowText's size would only be 3. Which is the most safest and fastest way to go, iteration, or .assign? do i need to new each CString data? My debug assertion is prompted to strcore.cpp 154...
  9. Lorey

    how to copy std::vector&lt;CString&gt; to std::vector&lt;CString&gt;

    hi experts, how to copy vector of Cstring to another vector of CString? I got an strcore.cpp exception in my code when it goes to UpdateData(const UpdateData& data) { this->trainId = data.trainId; this->track = data.track; this->location = data.location; this->rowText = data.rowText...
  10. Lorey

    shortcut key

    Hi Miros, I cant use accelarator because it want my shortcut key hidden to the user.
  11. Lorey

    EnableWindow does not work with OwnerDraw Listbox

    Oh sorry, i mean enablewindow(false) doesnt work. Anyway, I found a solution, I used ODS_DISABLED to check if the item is disable or not, and then manually change the color of item to look like it really is disable. thanks for not ignoring my question. ;)
  12. Lorey

    EnableWindow does not work with OwnerDraw Listbox

    Hi Experts! I have a owner draw list box. But when I try to disable the window using .enableWindow(true) it does not work. What can I use?
  13. Lorey

    Hex value

    Hi Experts! Could somebody help me how to convert the "70" "ED" hex string character to actual 70 and ED value? FYI, i want to convert the 70ED to its corresponding chinese characters. thanks in advance! Lorna
  14. Lorey

    putting constraints

    Hi jaxtell, That's a good idea. If its not too much to ask, could you please help me contruct the trigger script. I'm an entry level in DB. Thanks in advance ! lorey
  15. Lorey

    putting constraints

    For example, Table1 Pkey Value Type 1 mft1 console 2 sess1 session 3 mft2 console 4 sess2 session Table2 Pkey ValueKey (from table1.value) Profilekey 1 1 10002 2 3 10003 I only want to make sure that entries in...
  16. Lorey

    putting constraints

    Hi experts! Please help on the ff: I have an existing table : table1 with column: pkey1, pkey2, pkey3 I am creating a new table2 with column : pkey, pkey1 (which is the same as table1.pkey2) the problem is how can i put constraints on table2 that only table1.pkey2 with specific value...
  17. Lorey

    shortcut key

    Thanks macleod1021! it helps me a lot :)
  18. Lorey

    shortcut key

    Hi experts, how to add a shortcut key to call a specific function in my vc++ program, for example CTRL+E. This shortcut key should be invisible to the user so I cant use the accelarator like & in menu. Please help! Lorna
  19. Lorey

    std::wstring

    please see below. this is run in solaris. when i use directly the 2nd ::sendTextMessage below, output is correct. But if I use first the 1rst ::sendTextMessage, the output is wrong. So I assume the problem is in the first ::sendTextMessage wstring? The first function converts the std::string to...
  20. Lorey

    std::wstring

    thanks to all your replies. im very new to vc++. can you please help me in the coding in the iteration using this wchar_t? the problem is im porting my program in windows and also in solaris. I get a different result in both platform. so far, the windows output is correct.

Part and Inventory Search

Back
Top