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 IamaSherpa 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. bloggins02

    Having serious problem calling SP in C++

    Hi all, I am using MSVC++ 6.0 with ODBC connecting to SQL Server. I have allocated two statement handles. The idea is to call a select statement that returns a number that is used as one of the arguments for the stored procedure, ex: SQLExecDirect(hGetNum, _T("select number from table...
  2. bloggins02

    Question about char **argv (esp for all you Unix guys)

    Thanks for clearing that up, and sorry about the "UNIX guy" thing.  I was just thinking that command lines are more prevailent in the unix world these days.  And yes I do know about pointers, it just doesn't seem like I have the syntax clear yet.  I need...
  3. bloggins02

    Question about char **argv (esp for all you Unix guys)

    This might be really basic, but why does this not work:<br><br>int main (int argc, char **argv) <br>{<br>&nbsp;&nbsp;&nbsp;if (argv[1] != &quot;server&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;Not a valid argument!\n&quot;);<br>&nbsp;&nbsp;&nbsp;return...
  4. bloggins02

    Need help sending multiple structure types to a single function

    Thanks!&nbsp;&nbsp;I think I get it.&nbsp;&nbsp;The reason is because if you cast it like:&nbsp;&nbsp;(struct this_struct)input_struct-&gt;member then what that is saying is &quot;cast the object member to the type this_struct&quot; but since input_struct is a void * by default then the compiler...
  5. bloggins02

    Need help sending multiple structure types to a single function

    Hi everyone :)<br><br>Bear with me here I'm teaching myself C as I go.&nbsp;&nbsp;I would like to be able to send different types of structs accross a network using the same function.&nbsp;&nbsp;I don't have a problem breaking the structs down and send()ing them, but I tried this and it doesn't...

Part and Inventory Search

Back
Top