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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
U

utkarsharma

@utkarsharma
About
Posts
11
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Icons on the status area
    U utkarsharma

    hi there .. there r ways to send info from one application to another Like memory mapped file, DLL hooking ... for this in the above win95 u can work upon but u need control of both the application in this scenario. you can refer any Advanced Windows book of Jeffry Richter of Microsoft Press .... all the best.. ....:zzz: utkarsh sharma "Not everything that counts can be counted, and not everything that can be counted counts."

    C / C++ / MFC question

  • delete [] pCharPointer
    U utkarsharma

    I am face'g proble in the DLL. when I work in Debug mode the code work fine /////--code is--////// char* pCharPointer = new char[intLength]; // //some code // pCharPointer = NULL; delete [] pCharPointer; /////////// But give error in release mode..... ////////////////////////////////////////////////////////// If I change the code to //////--code---///// char* pCharPointer = new char[intLength]; // //some code // //----pCharPointer = NULL; delete [] pCharPointer; /////////// it work's fine in release mode but give error in the debug mode... It will be a big help if some body can clear WHY???? utkarsh sharma "Not everything that counts can be counted, and not everything that can be counted counts."

    C / C++ / MFC help debugging question announcement

  • new for ATL
    U utkarsharma

    thanks..for the names ATL Internal and Essential COM... utkarsh sharma "Not everything that counts can be counted, and not everything that can be counted counts."

    ATL / WTL / STL c++

  • Sorting problems
    U utkarsharma

    hi honey.. You can use the sample code sort a CStringArray object. The main() function constructs a CStringArray object, adds elements to it, prints out the elements, calls the sort() member function to sort it, and then prints the sorted elements. The sort() function uses the Bubble Sort algorithm to sort the array and calls the CompareAndSwap() function to compare each string and swap them if necessary. //Sample Code /* * Compile options needed: /MT */ class CSortStringArray : public CStringArray { public: void Sort(); private: BOOL CompareAndSwap(int pos); }; void CSortStringArray::Sort() { BOOL bNotDone = TRUE; while (bNotDone) { bNotDone = FALSE; for(int pos = 0;pos < GetUpperBound();pos++) bNotDone |= CompareAndSwap(pos); } } BOOL CSortStringArray::CompareAndSwap(int pos) { CString temp; int posFirst = pos; int posNext = pos + 1; if (GetAt(posFirst).CompareNoCase(GetAt(posNext)) > 0) { temp = GetAt(posFirst); SetAt(posFirst, GetAt(posNext)); SetAt(posNext, temp); return TRUE; } return FALSE; } void main() { CSortStringArray sortArray; sortArray.Add(CString("Zebra")); sortArray.Add(CString("Bat")); sortArray.Add(CString("Apple")); sortArray.Add(CString("Mango")); for (int i = 0; i <= sortArray.GetUpperBound(); i++) cout << sortArray[i] << endl; sortArray.Sort(); cout << endl; for (int j = 0; j <= sortArray.GetUpperBound(); j++) cout << sortArray[j] << endl; } take care... :zzz::zzz: utkarsh sharma "Not everything that counts can be counted, and not everything that can be counted counts."

    C / C++ / MFC tutorial algorithms help

  • Sorting problems
    U utkarsharma

    hi honey.. You can use the sample code sort a CStringArray object. The main() function constructs a CStringArray object, adds elements to it, prints out the elements, calls the sort() member function to sort it, and then prints the sorted elements. The sort() function uses the Bubble Sort algorithm to sort the array and calls the CompareAndSwap() function to compare each string and swap them if necessary. //Sample Code /* * Compile options needed: /MT */ class CSortStringArray : public CStringArray { public: void Sort(); private: BOOL CompareAndSwap(int pos); }; void CSortStringArray::Sort() { BOOL bNotDone = TRUE; while (bNotDone) { bNotDone = FALSE; for(int pos = 0;pos < GetUpperBound();pos++) bNotDone |= CompareAndSwap(pos); } } BOOL CSortStringArray::CompareAndSwap(int pos) { CString temp; int posFirst = pos; int posNext = pos + 1; if (GetAt(posFirst).CompareNoCase(GetAt(posNext)) > 0) { temp = GetAt(posFirst); SetAt(posFirst, GetAt(posNext)); SetAt(posNext, temp); return TRUE; } return FALSE; } void main() { CSortStringArray sortArray; sortArray.Add(CString("Zebra")); sortArray.Add(CString("Bat")); sortArray.Add(CString("Apple")); sortArray.Add(CString("Mango")); for (int i = 0; i <= sortArray.GetUpperBound(); i++) cout << sortArray[i] << endl; sortArray.Sort(); cout << endl; for (int j = 0; j <= sortArray.GetUpperBound(); j++) cout << sortArray[j] << endl; } take care... :zzz::zzz: utkarsh sharma "Not everything that counts can be counted, and not everything that can be counted counts."

    C / C++ / MFC tutorial algorithms help

  • Sorting problems
    U utkarsharma

    /*Assuming we have a CStringArray strItems, then this code sorts it using a very simple bubble sort .There are many different sorting algorithms which you could use */ for (int nOuter = 0; nOuter < strItems.GetSize() - 1; nOuter++) { for (int nInner = strItems.GetSize() - 1; nInner > nOuter; --nInner) { if (strItems[nInner - 1] > strItems[nInner]) { CString strTemp = strItems[nInner]; strItems[nInner] = strItems[nInner - 1]; strItems[nInner - 1] = strTemp; }//end of if }//end of inner for }// end of outer for ----- and previous mail was not a fun of any body's english but I feel u'r signature is ossum.. utkarsh sharma "Not everything that counts can be counted, and not everything that can be counted counts."

    C / C++ / MFC tutorial algorithms help

  • Sorting problems
    U utkarsharma

    good one ,not the question but the Signature...take care... utkarsh sharma "Not everything that counts can be counted, and not everything that can be counted counts."

    C / C++ / MFC tutorial algorithms help

  • new for ATL
    U utkarsharma

    hi...I am new in the field of ATL...Please suggest some books which take the reader from Beginning to programming stage... thanks... utkarsh sharma "Not everything that counts can be counted, and not everything that can be counted counts."

    ATL / WTL / STL c++

  • selection of .lib as per the client
    U utkarsharma

    hi...My application contain a Dll.This Dll is internally useing the Oracle forms Runtime Dll, through compile time binding....This Dll and his .Lib is the oracle forms runtime .My application is useing this Oracle forms runtime in the Dll. Problem start when I start useing the latest Forms runtime in the Dll because my application should be generic and not specific to a perticular Forms runtime version. but I can not predict the client side runtime. and the main problem is the .lib file for the different version are with different name so when I include all these it give me error at run time. please suggest a way by which I can attach .lib as per the client side in my application. thanks utkarsh sharma "Not everything that counts can be counted, and not everything that can be counted counts."

    C / C++ / MFC help oracle wpf wcf announcement

  • exception in DLL (using oracle forms 9i API)
    U utkarsharma

    hi... I am using oracle 9i forms API in my DLL. Dll is working perfect except some time it gives error that is related to memory when the flow return from DllMain(). in DLL i am using the oracle 9i forms for the loading of oracle forms and using the object of those forms. I am not using 'NEW' operator inside the DLL. ..please explain how to overCome the Problem... thanks :zzz::zzz::zzz: utkarsh sharma "Not everything that counts can be counted, and not everything that can be counted counts."

    Managed C++/CLI help oracle json performance tutorial

  • connection with oracle and sorting the database object as per hierarchal
    U utkarsharma

    hi....the problem is 1)how to connect with dataBase (oracle) by ADO and execute Query for the table 'ALL_DEPENDENCIES'. 2)how to sort the refered object so that they come in hierarchal ,so that when creating the Object creation script (.Sql) the Master detail flow will be correct and the refered object will be in order i.e. same as the forward refe'g. thanks.... :zzz::zzz::zzz: utkarsh sharma "Not everything that counts can be counted, and not everything that can be counted counts."

    C / C++ / MFC database oracle algorithms tools help
  • Login

  • Don't have an account? Register

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