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. sbayeta

    DllImport problem

    Hi, I'm using p/invoke to call a couple of BLAS routines, and the strangest thing is happening. Yesterday I wrote the code to call an unmanaged function called dgemm, using a dll I downloaded from the web. [DllImport("blas_win32.dll")] //[DllImport("libacml.dll")] unsafe private static...
  2. sbayeta

    DrawImage()

    Hi, I'm using the Graphics.DrawImage() method to draw a picture. When I use a ScaleTransform to zoom in, the image is "smoothed" and it's not possible to see the individual pixels. This is not good for what I'm trying to do, and I already tried setting g.InterpolationMode =...
  3. sbayeta

    Pass a method onto an object

    Look c# delegates
  4. sbayeta

    Choosing a primary key

    Hi, I have a table with a field called 'lote' containing unique values like TM07082004 TT07082004 TN07082004 TM08082004 TT08082004 I'd like to know whether I should use this field as primary key for my table, or create an autonumeric field and use that instead. What are the...
  5. sbayeta

    WIN32 API wrapper classes

    Hi, I wrote a little set of WIN32 API wrapper C++ classes, just as a way to learn the API and to maintain my code organized. My Window class is supposed to be used like this: #include <windows.h> #include "wrappers.h" Window *wn; ProcedureBag *pb; Button *bt; void on_create(WPARAM...
  6. sbayeta

    C tokenizer

    Use strtok() http://www.cplusplus.com/ref/cstring/strtok.html
  7. sbayeta

    Time intervals

    Hi, What's the right way to store time intervals in a table ? I have a field that stores the start time of a user session , and a second field to store the session duration. The duration field isn't a date, but a time interval, so I was thinking maybe it's a better idea to store it as an int...
  8. sbayeta

    Static keyword and const keyword.

    Hi, I'm finishing reading The C programming language K&R. I've been programming embedded systems using C for more than a year now. Anyway, I still have some doubts about some stuff. Here goes a couple of questions: 1 - What is the effect of declaring a function to be static ? 2 - What's the...
  9. sbayeta

    Struct question

    I have a struct in my program with several fields in it. I'd like to know if those fields are guaranteed to be in the order I declared them if I read the struct using an unsigned char *ptr: struct datastruct { int i; long l; float f; char c[4]; } mydata; I'll be wirting this data with a...
  10. sbayeta

    CREATE TABLE newtable SELECT ... FROM oldtable ?

    Hi, I have a table with 3 DOUBLE fields: &quot;x&quot;, &quot;y&quot; and &quot;f&quot;. From this table I'm creating a new one using the query &quot;CREATE TABLE new TABLE SELECT ROUND((x-21.45)/5) AS newx, ROUND((y-18.15)/5) AS newy, f AS newf FROM oldtable;&quot; This creates a new table...
  11. sbayeta

    Problem getting to MySQL prompt

    Seems your shell can't find mysql
  12. sbayeta

    Will PERL do what I need ?

    Hi, I'm a newbie on web apps, though I have some degree of experience in programming C/C++ I need to build a page to show some values stored in a database. As these stored values are updated by other apps, I need my page to show the changes in real time. Can I do this using Perl ? If not, can...
  13. sbayeta

    Real time readings

    Hi, I'm builduing a php page and I want some boolean values in my DB to be shown in real time. For example, I have four bool values like val1 true val2 true val3 false val4 true and I'd like to show this values in my web page in real time. If one of these values changes, I...

Part and Inventory Search

Back
Top