I need to create simple COM object, or some other thing that will receive data (matrixes) run calculations and give back results (also matrixes). Is it possible to achive this by some simple means?
thanks
Ok... I've got it. The following was missing... whatever that is:
GdiplusStartupInput gdiplusStartupInput;
ULONG_PTR gdiplusToken;
GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
I have wrote this code below, it is supposed to create the bitmap object from the file. It's building ok, but when running the object has no data about the picture. Even worse - the pixel color pixelKolor doesn't change after GetPixel method... why??
#include <GdiPlus.h>
using...
The header of a bmp file is supposed to be:
typedef struct
{
unsigned short bfType;
unsigned int bfSize;
unsigned short bfReserved1;
unsigned short bfReserved2;
unsigned int bfOffBits;
} BITMAPFILEHEADER;
I'm...
I was struggling with this for about 5 months... I almost gave up. 5 minutes after I've posted this question, I've found answer myself... it was so close and simple.
Sorry for bothering you.
Cygan
Does anybody know good and simple method for sampling a signal (at low rate ~800Hz) coming through a soundcard. Most important is, that I won't lose anything from this signal. Sampling rate is not that important, I just have to be able to control it, or at least know it.
I've tried a bit with...
Thanks to you guys, I've learned really a lot...
I've done the error checking, and what turned out - the error is somewhere else. Here everything works fine.
What a shame... So much time and work without a reason. But not without a result, I've learned quite a lot thanks to you. Next time I'll...
Ok, but what can happen to memory locations between fopen() and fread() here:
plikI=fopen(plI,"rb");
plikQ=fopen(plQ,"rb");
fread(daneI,sizeof(daneI[0]),rozmI/sizeof(daneI[0]),plikI);
fread(daneQ,sizeof(daneQ[0]),rozmQ/sizeof(daneQ[0]),plikQ)...
I see, I've started quite a discusion here.
Still my problem isn't solved.
Totte: The change you've proposed will work, but it will be almost the same, because the "dane" array is of the short type. I guess your way is better, but it won't solve my problem. I wouldn't worry about...
Thanks for the answer.
I use two different OpenDialogs for those two files, and I did exactly as you proposed, still if I open dialogs first fopen gives me wrong values. plI and plQ are the same (as far as I can see) in both cases. What can be wrong??
Whole thing looks like this:
Unit.h
...
fopen(..) should return a pointer to the opened stream or NULL, in this case if it does it right gives me values
plikI=:324BEC74,
plikQ=:324BEC8C
and it works fine, but if the OpenDialog is opened first then it gives me
plikI=:324BEC5C,
plikQ=:324BEC74
I don't understand that. I would be very...
I can't figure it out, and am out of ideas what to do. If my program uses the default FileName before Execute() of OpenDialog everything works fine, but if it doesn't then fopen returns a value slightly different from the right one.. code looks like this:
Unit.h
..
char *plI, *plQ...
I know it should be simple, but I can't figure it out: I need to change a String (FileName form OpenDialog) to a *char to use it in fopen(..) function. How can I do it?
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.