Type: Posts; User: mmscg
Search took 0.02 seconds.
December 28th, 2012, 10:46 AM
Could someone explain in pseudo code what this line is doing?
hr = pEnumerator->RegisterEndpointNotificationCallback((IMMNotificationClient*)&pNotify1);
Specifically this part:...
December 21st, 2012, 07:55 AM
Does anyone have a working example of this http://msdn.microsoft.com/en-us/library/windows/desktop/dd371417(v=vs.85).aspx
I've tried the code posted here...
December 10th, 2011, 04:01 PM
Thank you... you C++ guys are amazing!!
This works perfectly for me, and should be enough to get me on my way.
(I'm sure I'll hit a few stumbling blocks, and might have to ask more questions).
December 9th, 2011, 09:12 AM
Yes, I had read that, but still being fairly new to C++ I find this very confusing.
Can one type be cast to another then?
I have been using GDI+ in my VB6 projects for the last year, and have...
December 8th, 2011, 10:16 PM
So are you are saying the Flat Api functions cannot be used in C++,
or just that using the wrapper method is easier?
using namespace Gdiplus:: DllExports;
to my code and I now get...
December 7th, 2011, 05:30 PM
I am trying to figure out how to call a GDI+ Flat Api function, but cannot get anything working.
Here is my code:
November 27th, 2011, 10:01 PM
I for some reason didn't think you could mix GDI and GDI+
Curiosity then, this cannot be done using GDI+ alone?
November 26th, 2011, 09:42 PM
I cannot find how to draw a simple selection rectangle (rubberband) using
This should be a simple thing, but I'm beginning to wonder if it is even possible.
September 20th, 2011, 03:25 PM
If I set the last parameter of the GdipDrawImageRectRect function to UnitInch I get a Not Implemented error
If I do as below I get proper drawing except not to the specified dimension (want 1" X...
September 19th, 2011, 03:03 PM
Thanks for the suggestion.
I tried that; I get an error when GdipDrawImageRectRect executes
(and obviously nothing gets drawn).
September 19th, 2011, 02:49 PM
I am trying to draw a bitmap on the screen 1" X 1.5" using this code:
status = GdipDrawImageRectRect(graphics, image, _
0, 0, 1, 1.5 , _
October 31st, 2010, 08:25 AM
OK, I tried your code and it works perfectly to rotate the image about the center.
It draws the rotating bitmap with top left corner at (0, 0) on my form.
I tried moving the top left corner of...
October 30th, 2010, 08:55 AM
I think I understand what you are saying.
I will try later and see if it works for me like I think it should.
October 26th, 2010, 10:32 PM
I am trying to rotate a bitmap about it's center point.
The bitmap I am using in my test project is 200 X 200 pixels.
By trial and error, I came up with the following. It works, but I don't...
October 20th, 2010, 10:18 AM
Yes I used delete with the new method of declaration...
don't know if I used it correctly, but there were no compile errors or warnings.
Yes I've seen that Hello World program before.
October 20th, 2010, 08:59 AM
Thanks ovidiucucu, both of your methods work... code successfully produces a metafile. :D
While we are on the subject of new, when might it be necessary to declare something this way?
October 20th, 2010, 06:40 AM
I am trying to use GDI+ to create the metafile (file that contains all instructions to render a vector image).
October 19th, 2010, 05:43 PM
The following line of code won't compile (I copied it from MSDN)
myMetafile = new Metafile(L"MyDiskFile.emf", hdc);
I get this error:
error C2065 'myMetafile' : undeclared identifier
September 19th, 2010, 09:28 AM
Changing the specifier in fprintf works with your suggestion... Thanks!
fp2 = fopen("output2.txt", "w");
fprintf(fp2, "dwBytesRecorded = %d\n", lpBuffer.dwBytesRecorded);
September 19th, 2010, 08:13 AM
Thanks for offering some help.
Still not getting the results I expect.
fprintf(fp, "[%d] <%s>\n", j, lpBuffer.lpData);
September 19th, 2010, 12:26 AM
I am trying to print the contents of a buffer LPMIDIHDR lpBuffer
I am after the lpData member, and since it is declared as LPSTR
I tried doing it this way:
August 11th, 2010, 06:46 AM
I should add, the program operates properly for both type 0 and type 1 MIDI files,
it is just my printing code that causes problems.
August 10th, 2010, 06:55 PM
I am making progress with printing to a file, but have run into a problem that I don't understand.
I am trying to read a MIDI file and print out the contents.
The code below works for standard...
July 25th, 2010, 12:03 PM
I coudn't get the cout to work, but I did it with fprintf.
July 24th, 2010, 10:47 PM
With regards to the code/output in Post #11, I would like output as so:
lpEvent->nData = 8
lpEvent->lpData = <untitled««««««««>
char 1 = u = hex = 75
char 2 = n = hex = 6E
char 3 = t =...
Click Here to Expand Forum to Full Width