|
Taking a wild guess here but you might try making your account a member of the "administartor" or "Debuggers" user groups.
|
|
|
|
|
Does anyone know about a free command line utility to convert pdf file to a multipage tiff?
Best regards,
A. Riazi
|
|
|
|
|
I am wanting to create a a tree using a quad with a bitmap...
how can I make the quad transparent for black color and display the rest..
and just displaying the tree portion of the quad?
like creating sprites..
LoadTexture("tree.bmp",/*trans color*/ D3DCOLOR_XRGB(0,0,0));
here is the funtion were I load the quad texture...
QUAD *CreateQuad(char *textureFilename)
{
QUAD *quad = (QUAD*)malloc(sizeof(QUAD));
//load the texture
D3DXCreateTextureFromFile(d3ddev, textureFilename, &quad->texture);
d3ddev->CreateVertexBuffer(
4*sizeof(VERTEX),
0,
D3DFVF_MYVERTEX, D3DPOOL_DEFAULT,
&quad->buffer,
NULL);
quad->vertices[0] = CreateVertex(-1.0f, 1.0f, 0.0f, 0.0f, 0.0f);
quad->vertices[1] = CreateVertex( 1.0f, 1.0f, 0.0f, 1.0f, 0.0f);
quad->vertices[2] = CreateVertex(-1.0f,-1.0f, 0.0f, 0.0f, 1.0f);
quad->vertices[3] = CreateVertex( 1.0f,-1.0f, 0.0f, 1.0f, 1.0f);
return quad;
}
or attach a sprite to it?
what I am trying to do is make a 2d object look 3d by rotating a sprite every time the camera moves and attaching the sprite to a quad to rotate the view?
any ideas on how to do this?
|
|
|
|
|
Topics that might help you search for samples are "chroma key" for the transparency aspect and "billboarding" which simulates 3D by rotating an object so that it is perpendicular to the camera.
Good luck.
|
|
|
|
|
I am having some problems with the editing of wma tags. I have a program that I created that will convert files from one format to another. I have implemented the WMA functionality using the WMF sdk and it is working well. But one problem that I have is when I try to use IWMHeaderInfo3 to add the title to the wma header (similar to ID3 tagging in MP3 files), I have found the title shows strange characters instead of the actual title.
I am performing the necessary functions: open, QueryInterface, AddAttribute (and I tried SetAttribute), BeginWriting, and EndWriting. Per the MSDN documentation, I am doing everything in the correct manner. The conversion works but the actual tagging does not. Here is the actual AddAttribute call:
pHdr->AddAttribute(0, L"Title", &wDummy, WMT_TYPE_STRING,0,
(LPBYTE)&strValue, sizeof(WCHAR) * (strValue.Length() + 1));
Any ideas?
|
|
|
|
|
Al_Pennyworth wrote: when I try to use IWMHeaderInfo3 to add the title to the wma header (similar to ID3 tagging in MP3 files), I have found the title shows strange characters instead of the actual title.
Shows where? How are you looking at the resulting attribute? What strange characters?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Wait...what type is strValue? Looking at it again, this cast looks really suspicious:
(LPBYTE)&strValue
If it's a CString, try
(LPBYTE)(LPCTSTR)strValue
*edit* never mind. CString doesn't have a Length() method. Regardless, you'll need to pass a <br />
pointer to a NULL-terminated Unicode string.
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
|
|
The other posts are right - you need to pass a real Unicode string, not a pointer to a string wrapper object.
|
|
|
|
|
I have been offline for a bit so I wasn't able to answer any questions.
The strValue that is being used is CComBSTR so it is not a CString.
Where I am seeing the awkward values is in WMP, WinAmp, other media players, and in Explorer. It is displaying the box character for the length of the title.
|
|
|
|
|
Try
LPCWSTR pUnicodeStrValue = OLE2CW(strValue);
pHdr->AddAttribute(0, L"Title", &wDummy, WMT_TYPE_STRING,0,
(LPBYTE)pUnicodeStrValue, sizeof(WCHAR) * (wcslen(pUnicodeStrValue) + 1));
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
CComBSTR has an operator BSTR which gets you a pointer to the wrapped BSTR , so use that. Instead of (LPBYTE)&strValue use (LPBYTE)(BSTR)strValue
|
|
|
|
|
I want to thank everyone for the replies, works like a charm now!
|
|
|
|
|
I wrote a mfc activex control to embbed in web pages using vs 2005.
The ocx control can fire some events shoud be responded in web pages.
In web pages using javascript like this to respond to the ocx events:
{
window.alert(content);
}
where myctrlid is the ctrl id in web page, and Save(content) is one of the ocx control's events with one param--content(BSTR type).
In IE7 When I open 2 or more than 2 tabs containing the pages using the ocx control, the "Save" event only can be fired in the last opened web page, but in the previously opened web pages, the "Save" event just can't be fired.
Would you please give me some tips?
|
|
|
|
|
I have a pdf. I can convert the pdf to a bmp
and print text on top of the bmp. However, bitmaps
are really slow to print (really, really slow).
Is there any way to programmatically print a pdf
and print text and somehow they both go to the
printer at the same time and the text prints on
top of the pdf output?
?
Please any response any one can give me will be
greatly appreciated.
Sincerely,
Danielle Brina
|
|
|
|
|
DanYELL
If you have enough granularity in the pdf printing to where you are rendering it to the print
DC, then you could draw whatever you want on the DC after the pdf is rendered.
Possible?
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Hi,
I'm trying to setup an OpenGL application using Visual Studio 2005.
I'm doing all the necessary steps (i have followed several templates) but i always end up in one problem:
Visual Studio says that it can't find MSVCR80.dll or MSVCR80D.dll.
I look in my disk and it finds it in some windows subfolder.
If i put it in my project directory it says that the program used the library without permissions or something like that.
Does anyone knows what is going on here?
Thx,
Nuno
|
|
|
|
|
The background is GIF format.
I'm boy.
|
|
|
|
|
You should take a look at those classes: http://www.codeproject.com/buttonctrl/[^]
in the section that speaks about owner drawn buttons there are samples about that... (If I've understood you well.)
|
|
|
|
|
some where i found this way,
SHCreateDirectoryEx(NULL, "d:\\abc\\def\\ghi\\"), NULL);
but SHCreateDirectoryEx is not recognised.
|
|
|
|
|
Super Hornet wrote: but SHCreateDirectoryEx is not recognised.
Why? Do you have Windows 2000 or newer OS?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
Then the function is available.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Even i tried in Win-XP. I am getting error:
error C2065: 'SHCreateDirectoryEx' : undeclared identifier
do i need to include any header file.
|
|
|
|