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

  • Users: s0hel
  • Order by date
  1. s0hel

    C++ input problems

    all i needed to do was this: char input[8192]; fread(input, 8192, stdin); that worked fine. or to get it line by line char input[128]; do { fgets(input, 128, stdin); } while (input[0] != 0); thats it!
  2. s0hel

    C++ input problems

    I have a program that needs to read in an unknown number of characters for example, the input can be: --- AC 0 DC 50 START 1 CPU 30 END START 102 CPU 40 END --- I will need to do some processing based on that input, but there can any number of 'START's and 'END's the way my...
  3. s0hel

    Sql Server ERROR handling question

    I cant go ahead and just fix it. This is part of a much bigger process and I need to update another Status Table that prints out 'Sucess' or 'Failed' or 'Still running' -- Doing this from the client side is not possible, need to do this all in sql server
  4. s0hel

    Sql Server ERROR handling question

    declare @table table (i int not NULL, c varchar(100)) insert into @table values ('a','1') if (@@error <> 0) print (' caught error.. ') output .. Server: Msg 245, Level 16, State 1, Line 3 Syntax error converting the varchar value 'a' to a column of data type int. As you can see, I try to...
  5. s0hel

    ConnectString and DSN

    DSN=JEDI.WORLD;ConnectString=KNIGHT.WORLD;UID=test;PWD=test How can I connect to an SQL server with C++ with that information? I'm not sure of the syntax to use.. any help would be appreciated... thanks,
  6. s0hel

    C++ and ODBC connection help ...

    //ADO import #import "c:\Program Files\Common Files\System\ADO\msado15.dll" no_namespace rename("EOF", "EndOfFile") #import <msrdo20.dll> no_namespace rename( "EOF", "_EOF" ) rename("UserNameA", "_UserNameA") void dbConnect() { _ConnectionPtr m_ADOConn; m_ADOConn = NULL...
  7. s0hel

    create a service ... help!

    I am trying to make a service run in the background when windows starts up. can anyone point me to a good tutorial that will help me write code to do it? I found many easy ways to do it in .NET, but I cannot use .NET for this work assignemnt. Would appreciate any help. Thanks, -Sohel
  8. s0hel

    C++ and SQL SERVER

    I am trying to find out how I can connect to an SQL server with C++. Can anyone point me to a good tutorial for this? I know how to do it with Oracle, I can use pl/sql. Need to know what to do for SQL Server. any help would be appreciated

Part and Inventory Search

Back
Top