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: DazzG
  • Order by date
  1. DazzG

    Difference between Debug and Release executable?

    "Unhandled exception in XXX.exe (ODBC32.dll): 0xC0000005: Access Violation." This error is caused due to the array. If you exceed the index allocated then this error is called. In the debug version do you see First Time exception handled ...
  2. DazzG

    cfiledialog location folders

    If you get the pathname using GetPathName() You can then use the C function strtok(pathname,"\\"). put the above funtion in a while loop and this will split the file name into all required components. example: CString CSIMAppDlg::GetFileName(CString strPathname) { char seps[] =...
  3. DazzG

    Compiler won't end the build

    Upgrade to service pack 5
  4. DazzG

    getting compilation error while using BCP in VC++

    You also need to add the .LIB filenames into the LINK options: Project -> Settings -> Link object / Library Modules. This will stop the errors
  5. DazzG

    Convert decimal to binary or hex

    Is this for display purposes ? int n = 10; printf("%d %X\n", n, n); This will display dec and hex for example
  6. DazzG

    while Loop problem

    The problem is with the edit(). You need to put this inside the while loop. For every update statement you require and edit() or addnew(). As you have the edit() outside the while loop the code runs once fine and then fails as you try to update without and edit. Hope this helps.
  7. DazzG

    CDialog returns -1

    Have you compiled with Dynamic or Static MFC libraries. In the general tab of the projects settings change the MFC library to static. This should cure your problem.
  8. DazzG

    DB in visual c++

    In the CRecordset there is a variable called m_strFilter Intialise this before using the open method. i.e. CEmpRst (NULL) or CEmpRst(&db) rst.m_strFilter.Format("ID = '%d'", nID); rst.Open(); This will only retrieve records that match the ID Hope this helps.
  9. DazzG

    A question for anyone good at C++ ....

    Your could write a token check ? If you use the standard Library Function i.e. char szDataBuffer[1024]; char *szToken; char szSeps[]="{}(),"; szToken = strtok(szDataBuffer, szSeps); while(szToken != NULL) { szToken = strtok(NULL, szSeps); } szToken should hold the...
  10. DazzG

    Switch !!

    You could use a string array then use the array index for the switch statement char *strArray[] = { &quot;String 1&quot;, &quot;String 2&quot;}; for (int nLoop = 0; nLoop < sizeof(strArray) / sizeof(strArray[0]); nLoop++); { if (strncmp(&strArray[nLoop], strCheck, strlen(strCheck)) break; }...
  11. DazzG

    getting compilation error while using BCP in VC++

    Hi, You may need to add the Library in the link options or use TOOLS / OPTIONS / Directories and add the path for the include and library files Hope this Helps DazzG
  12. DazzG

    Returning more than one value???

    If you need to return more than 1 parameter. Instead of passing pointers for individual parameters to functions it may be better to pass a pointer to a structure. If more info is required then let me know

Part and Inventory Search

Back
Top