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...
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 =...
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...
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...
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...
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...
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...
Hi,
I have a table with 3 DOUBLE fields: "x", "y" and "f".
From this table I'm creating a new one using the query
"CREATE TABLE new TABLE
SELECT ROUND((x-21.45)/5) AS newx,
ROUND((y-18.15)/5) AS newy,
f AS newf FROM oldtable;"
This creates a new table...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.