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 Mike Lewis 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: *

  1. level2programmer

    Code

    Not that it is very timely, the answer is that it would print a 0 (zero). The statement: printf("%d", '8'=='5+3'); Prints a decimal number (%d) and the decimal number it prints is actually a logical compare of the single character 8 ('8') and the single character '5+3' which is not really a...
  2. level2programmer

    Updating a Static control

    Don't do it in the constructor. Do it OnInitDlg(). The objects don't necessairly exist yet.
  3. level2programmer

    Convert CString to unsigned short in MFC?

    What is wrong? Seems to me you said that it overwrote what was on the stack. That appears to be a problem (AKA wrong) to me. You are passing the address to an object probably an unsigned short (16 bits) and telling sscanf to fill it with a DWORD (64 bits). Seems pretty self explanitory on...
  4. level2programmer

    Sybase account creation help

    Yes, that is fine for dumping. It looks like you are using Linux/Unix. Be careful about leaving the dumps on /tmp. Linux has some, which I'm not sure what it is, model for cleaning the /tmp directory. I'm assuming you are logging in as the sybase account, so you can make a directory under...
  5. level2programmer

    Convert CString to unsigned short in MFC?

    Try I am assuming that m_cmd is an unsigned short. m_cmd = (unsigned short)atoi(strTemp);
  6. level2programmer

    Sybase account creation help

    You must give execute permission on stored procedures before a user can execute them. It is very similar to giving permission on tables. If a user does not have permission to do things on the table, SYBSASE will refuse to allow them to access it. Stored procedures are the same. GRANT EXECUTE...
  7. level2programmer

    Getting first row

    I think top is a Microsoft item. Try Set rowcount 1 before the query and then set rowcount 0 after the query. Row count of 1 only returns 1 row. Row count of 0 is back to normal, returns all rows.
  8. level2programmer

    HBITMAP issue.

    Try looking up bitblt (bit blast). I'm assuming that you have creted a device compatible bitmap and pointed the CopiedSprit.sImage->hBitmap to it.
  9. level2programmer

    Title bar text from child window of MDI App

    You can pass a user defined parameter in LPARAM so I'll leave the return of the window text to you. In the EnumWindowProc or EnumChildProc you can pass your own type (AKA ProcessInfo_t).... ProcessInfo_t * processInfo; processInfo = reinterpret_cast<ProcessInfo_t*>(lParam); In the header file...
  10. level2programmer

    Problem initializing CFrame from CView

    To add a customized pane to display your own message on the status bar, it only takes the following 6 steps. For this example, we are going to display the current time at the rightmost location of the status bar. It will be updated every 60 seconds. First of all, add a new entry to your string...
  11. level2programmer

    Problem with stored proc

    Batches need to be run together. Comma says all are one declare and set is all one line. Try this: DECLARE @currKey int, @prevKey int, @currLine varchar(20), @currline2 varchar(20), @bigbine varchar(200), -- NOTE I changed to bigline rather the BigLine...
  12. level2programmer

    Comprehensive index information

    What is the OS that you are using on the database server? If it is Linux, then in the /opt/sybase/sybcent41/bin directory there is a program scjview. Run it in the graphic mode and you get the sybase central front end. Connect to the database and go to the index you wish to see. Right click...
  13. level2programmer

    compiling php with sybase - error

    Looks BAD. Looks like the same problem. Apparently, you may need to make the 32/64 bits match. If you are a SYBASE maintenance agreement facility, you may be able to get the 64 bit version. Alternately, you can try to get a 32 bit version of Linux. Guess that about ends the help I can give...
  14. level2programmer

    compiling php with sybase - error

    Log in as sybase. Go to the /opt/sybase/OCS-12_5/sample/ctlibrary directory. I assume bash here. $> export SYBPLATFORM=linux $> make all $> ./compute You should get something like the following: (I don't have the pubs database installed) Compute Example Server message: Message number: 5701...
  15. level2programmer

    compiling php with sybase - error

    That's why I suggest compiling the sybase samples. It should verify the libraries are ok with locally compiled programs.
  16. level2programmer

    compiling php with sybase - error

    P.S. I missed something important in your last request. 64bit/32bit. I do not know the answer to that. I suggest going to the /opt/sybase/OCS-12_5/sample/ctlibrary/ and try to compile the samples supplied by SYBASE. If they complain as well, then you may need the 32 bit Linux or the 64 bit...
  17. level2programmer

    compiling php with sybase - error

    Probably a goofy question, but are you doing this: ./configure... make make install as root? I downloaded the latest version 5.2.2 and have sybase express 12.5.3 to test this out. I had to drop a couple of items off of your configure list, but all worked well on the compile. I did have to...
  18. level2programmer

    compiling php with sybase - error

    Seems to me I had this grief too. What are the options you are feeding to config? There should be a slug of them.
  19. level2programmer

    compiling php with sybase - error

    Radar concurs with Mufasa. You should be able to type cd $SYBASE/$SYBASE_OCS and wind up in the sybase ocs directory. Additionally, if you type env |grep LD_LIBRARY_PATH you should get something like...
  20. level2programmer

    compiling php with sybase - error

    Have you made sure teh /opt/sybase/SYBASE.sh (csh) file has been run at least once during the login process. It defines some crucial environment variables. For example LD_LIBRARY_PATH.

Part and Inventory Search

Back
Top