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

    how to create simple COM component

    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
  2. szcygan

    Bitmap object

    Ok... I've got it. The following was missing... whatever that is: GdiplusStartupInput gdiplusStartupInput; ULONG_PTR gdiplusToken; GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
  3. szcygan

    Bitmap object

    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...
  4. szcygan

    reading header from BMP

    Thanks Ion. It is 'MB'.. How can I solve this problem? (I'm rather fresh with Visual C++)
  5. szcygan

    reading header from BMP

    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...
  6. szcygan

    can I shut computer down from a program?

    Is it possible to shut down computer from a program? I'm sure it is, but how? Thanks
  7. szcygan

    recording a sound without losing samples?

    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
  8. szcygan

    recording a sound without losing samples?

    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...
  9. szcygan

    fopen(..) returns wrong value, why?

    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...
  10. szcygan

    fopen(..) returns wrong value, why?

    Ok, but what can happen to memory locations between fopen() and fread() here: plikI=fopen(plI,&quot;rb&quot;); plikQ=fopen(plQ,&quot;rb&quot;); fread(daneI,sizeof(daneI[0]),rozmI/sizeof(daneI[0]),plikI); fread(daneQ,sizeof(daneQ[0]),rozmQ/sizeof(daneQ[0]),plikQ)...
  11. szcygan

    fopen(..) returns wrong value, why?

    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 &quot;dane&quot; array is of the short type. I guess your way is better, but it won't solve my problem. I wouldn't worry about...
  12. szcygan

    fopen(..) returns wrong value, why?

    filenames and paths are ok, anyway if they wouldn't exist, or would be wrong, then fopen(..) should return NULL, I guess.
  13. szcygan

    fopen(..) returns wrong value, why?

    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 ...
  14. szcygan

    fopen(..) returns wrong value, why?

    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...
  15. szcygan

    fopen(..) returns wrong value, why?

    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...
  16. szcygan

    AnsiString to char*

    That was a quick, and excellent reply, thank you!
  17. szcygan

    AnsiString to char*

    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?
  18. szcygan

    how do I record a sound

    Thanks
  19. szcygan

    how do I record a sound

    Is there some way of recording sounds from the line-in of sound card. Maybe somebody knows some freeware helpfull for that tusk.

Part and Inventory Search

Back
Top