|
thx..I've download the references schema..it very helpful. Can u give me some links that provide more examples about the references schema?
thx..
|
|
|
|
|
I've read the microsoft office schema, but it is very complex and I didn't understand. I even try to make an excel using xml by following the instruction from ms office schema, but it doesn't work. Can you give me some examples or maybe other links?
thx.
|
|
|
|
|
i too worked for same thing in ur project, what i did is create
file in write mode in with "filename.xls" by following right tabs and newlines bye..........
Satishvarma.E
|
|
|
|
|
if I use this method, will the cell be resized automatically? Can I make a table(with lines) using this method?
thx..
|
|
|
|
|
Oi, I have searched long and hard for this .lib file, but to no avail. Do any of you know where I can find this on the internet or email me a copy? My email is lanoman97@yahoo.com, thanks.
I have run searches through google and msdn and read other message board topics. I have also d/l the windows media format sdk 9, only to learn that wmstub.lib is only availble in version 7, which of course I also cannot find.
I need this file for a current project I am working on involving directshow and combining the sample DVapp and Jukebox to create a progeam that can save video off a DV camera and then play it back. Well, thats the first step at least, any pointers in that area would be great too =oP
Thank you for your help,
Lan =o)
|
|
|
|
|
The DirectShow SDK has been moved out of DX into the Platform SDK. Try updating your PSDK and see if you get it that way.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
SelectObject(hdc, font);
LPGLYPHMETRICSFLOAT pLPGLYPHMETRICSFLOAT = NULL;
ZeroMemory( &pLPGLYPHMETRICSFLOAT, sizeof(LPGLYPHMETRICSFLOAT));
DWORD hr=D3DXCreateText(m_pd3dDevice, //Device
hdc, //GDI Device Context
"Hello World", //Text
0.001f, //Maximum chordal deviation from true font outlines
0.4f, //Extrusion depth (along -Z axis)
&_pLetterMesh, //Mesh
NULL, //Adjacency information
pLPGLYPHMETRICSFLOAT); //GlyphMetrics
but I never get a valid glyph(pLPGLYPHMETRICSFLOAT) structure?
what am I doing wrong?
thanks,
Nick
I'm not an expert yet, but I play one at work. Yeah and here too.
|
|
|
|
|
I am not a DX programmer, but I think it is because you are using a pointer to a structure instead of an actual structure.
try this (bolded text that changed):
GLYPHMETRICSFLOAT MyGLYPHMETRICSFLOAT;
ZeroMemory( &MyGLYPHMETRICSFLOAT, sizeof(GLYPHMETRICSFLOAT));
DWORD hr=D3DXCreateText(m_pd3dDevice, //Device
hdc, //GDI Device Context
"Hello World", //Text
0.001f, //Maximum chordal deviation from true font outlines
0.4f, //Extrusion depth (along -Z axis)
&_pLetterMesh, //Mesh
NULL, //Adjacency information
&MyGLYPHMETRICSFLOAT); //GlyphMetrics
|
|
|
|
|
Hi again,
How to get the allocate (or used) memory for current application ?
Thanks in advance.
Ivan Cachicatari Blog[^]
www.latindevelopers.com
|
|
|
|
|
See here.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hi,
How to align the first column of the CListCtrl (report mode) to right.
Thanks in advance.
Ivan Cachicatari Blog[^]
www.latindevelopers.com
|
|
|
|
|
Insert a temporary column. Insert the right-aligned column. Delete the temporary column.
I've made an article that shows how to do this in detail, but have not posted it yet.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hello,
I have recently created a ticker tape which is used to display strings. It is a common single line ticker. The program currently reads in a file from which it takes in the dimensions, colors, speed, and position of the ticker as well as the string that it should display and the spacing between repetitions of the string.
I would like to write a new ticker however, which also reads the information from a file (preferably an xml file) which scrolls multiple lines at the same time, and which can also scroll images of approximate dimension: 140 X 110 pixels.
For example, it could look something like:
|----140px-------|
__ _______________________________________________________________
| | line1 line1 | |
| | line2 line2 line2 | |
110px | line3 line3 | IMAGE |
| | line4 line4 line4 | |
| | line5 line5 | |
_ |_____line6 line6 line6________________|________________|________
for a file that looked something like:
<ticker>
... <- indicates ticker properties
<item>
<text>line1 line1</text>
<text>line2 line2 line2</text>
<text>line3 line3</text>
<text>line4 line4 line4</text>
<text>line5 line5</text>
<text>line6 line6 line6</text>
</item>
<item>
<image>IMAGE</image>
</item>
</ticker>
where the number of 'text' tags nested in an 'item' tag is fixed (to some number, not necessarily 6) and there is only one 'image' tag per 'item' tag.
Also, another tag which specifies the spacing (pixels or time) between items should be specified in the ticker properties.
The problem is that since I am relatively new to the VS C++ (using .NET 2003), I don't really know how I would go about doing this.
If anyone has done a similar project, or could possibly guide me or help me with the code, it would be greatly appreciated.
Thanks in advance,
-----------------
Genaro
\\\|
_ _
@ @
_\\
--|
_/
|
|
|
|
|
picazo wrote:
The problem is that since I am relatively new to the VS C++ (using .NET 2003), I don't really know how I would go about doing this.
Any particular thing? It should be a matter of adjusting what you are already doing, no? Maybe if you post some code of what you are doing now with the single line ticker (just the portion where you have doubts, of course), it might be easier to guide you.
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Hello Jose,
First of all, thanks for the reply.
I forgot to mention in the original post that the code for the single-line, text-only ticker is written in VB and that I would very much prefer if the code for the new multi-line, text and image ticker was written in c++. This means that I can probably and would rather not reuse the old code.
As far as if there is anything in particular, sort of. Before, I was using a static label and scrolling it. However, with multiple lines, should I use a read-only multi-line text area or several static labels? And also, since I may have several "messages" (items with nested text), I would need several text areas, or image controls for the images. How do I make all of these areas scroll unanimously? Can I embbed them in another layer and make that layer scroll?
I hope my response was not too confusing.
Thanks a lot,
-----------------
Genaro
\\\|
_ _
@ @
_\\
--|
_/
|
|
|
|
|
I want to create a dialog that is a child of another dialog. This child dialog would have a title bar so I can move it around, but as a child it would be confined (cliped) within it's parent dialog.
I already tried the obvious way. Create a dialog, set type as Child, then create an object for this dialog and call the create method.
ex:
void CParentDialog::CreateChildDialog()
{
m_ChildDialog.Create( IDD_CHILD, this );
}
What happens is that the dialog is there, but it is being drawn over by other controls in the parent dialog, and also I cannot click on it to activate it or move it around.
Louis.
|
|
|
|
|
ok, i figured out all the settings to achieve what I want...
Basically, what was important, is that I had to set the WS_CLIPSIBLINGS window style to all child of the parent dialog.
case closed.
|
|
|
|
|
When the messagebox "Server busy" pops up from an autmation server what exactly does that mean? Busy in that it's processing something, busy in that it is in my event sink waiting to return or something else that I'm not aware of?
Thanks
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
I think it means "busy in that it's processing something". It may appear with slow loading servers (MSWord for instance). It may also appear if the server has activated a modal dialog, and of course if the server is executing a long operation.
With MFC, it seems like there are some ways to control how / when / if these dialogs appear, although I've never used them so I'm not entirely sure. Take a look at AfxGetOleMessageFilter[^] and the COleMessageFilter Class[^].
If you aren't using MFC, take a look at CoRegisterMessageFilter[^] and IMessageFilter[^]. You would need to create a class that implements IMessageFilter , but that's exactly what MFC's COleMessageFilter does and its source may serve as a guide on how to do it.
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Is it possible to load a dll in an ActiveX control? I have tried implicitly and explicitly loading the dll and I have problems either way. When implicitly loading, the container project fails when loading the control saying...
CoCreateInstance of OLE control {8601721E-DF2A-4DA8-816D-ACB2FEB9E287} failed.
>>> Result code: 0x80040154
>>> Is the control is properly registered?
The control is properly registered though. When I try to load the dll explicitly, the LoadLibrary call always returns NULL and the GetLastError says it can't find the library. The dll is in the correct location. Is this all because you can't load a dll from an ActiveX control, or am I missing something. Thank you in advance.
|
|
|
|
|
mrothermund wrote:
Is it possible to load a dll in an ActiveX control?
As far as I know, being an ActiveX control or not shouldn't make a difference when loading other dlls...
mrothermund wrote:
CoCreateInstance of OLE control {8601721E-DF2A-4DA8-816D-ACB2FEB9E287} failed.
>>> Result code: 0x80040154
>>> Is the control is properly registered?
I've seen reports of this error appearing after upgrading to XP with SP2. ISTM some mention to msxml.dll too...
Have you tried loading the dll from another dll/exe (not the ActiveX)? Have you tried running the Depends utility?
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
When I execute the following code in my program, it works fine when I toggle the buttons that I generated. However, if I go into IE and manually set the proxy via Tools -> Internet Options -> Connections -> Lan Settings -> Check/Uncheck "Use a Proxy setting...", it works the first time and runs the correct method, so if I check the box and turn the proxy server on and click Ok it will run the ProxyOn() method. However if I don't compeletly close out Internet Options and and go back into Lan Settings and uncheck the box and click OK, it will run the ProxyOn() method again. Now the really confusing part is the fact that if I do it a third time or more, it won't double run the methods but it will be one off from what it should be running. I know its alot to digest but does anybody have any ideas. So here I have the thread that I create to watch for a change in the proxy setting.
hThread = CreateThread (NULL, 0, (unsigned long (__stdcall *)(void *))this->ThreadFunc, (void *)(this), 0, &this->hThreadId);
DWORD WINAPI CMFToolbar::ThreadFunc(LPVOID lParam)
{
CMFToolbar *toolbar = (CMFToolbar*)lParam;
while(1){toolbar ->WINAPI_tWinMain();};
}
int CMFToolbar::WINAPI_tWinMain()
{
LONG l = 0L;
HKEY hKey = {0};
//Open Registry Key to watch
l = RegOpenKeyEx (
HKEY_CURRENT_USER,
_T("Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings"),
0,
KEY_NOTIFY,
&hKey );
if(l == ERROR_SUCCESS)
{
// The following call will wait until a change is made to the registry key.
l = RegNotifyChangeKeyValue (
hKey,
FALSE,
REG_NOTIFY_CHANGE_LAST_SET,
NULL,
FALSE );
RegCloseKey(hKey);
//Determines whether or not Proxy is enabled and executes proper method
DWORD flag = 0;
if ( InternetGetConnectedState ( &flag, 0 ) )
{
if ( flag & INTERNET_CONNECTION_PROXY )
{
fout<<"Proxy Off Method"<
|
|
|
|
|
Have you tried reading the "ProxyEnabled" (I guess that's the one) value in the key you are monitoring instead of using InternetGetConnectedState?
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Jose Lamas Rios wrote:
Have you tried reading the "ProxyEnabled" (I guess that's the one) value in the key you are monitoring instead of using InternetGetConnectedState?
I was also wondering why the code I posted before was acting that way. I'm just assuming I'm not seeing the problem because I put it together.
|
|
|
|
|
Matthew Devine wrote:
I was also wondering why the code I posted before was acting that way
Yeah, me too
Matthew Devine wrote:
I'm just assuming I'm not seeing the problem because I put it together.
Well, I couldn't find anything obviously wrong in your code either, but that doesn't mean a lot, since I have no experience with that kind of things. The only thing I noted is that there is a possibility that if a change is made between your call to InternetGetConnectedState and the call to RegNotifyChangeKeyValue in the next iteration, you would lose a notification. However, that's a very tiny fraction of time, and it doesn't seem possible to be caught in that situation doing changes through IE's dialogs. Furthermore, it wouldn't explain what you describe (InternetGetConnectedState returning out-of-date results)...
I think the actual problem may be related to InternetGetConnectedState not taking its results directly from the registry. If the state is also stored in some other place, maybe your query is being done after the registry was modified but before this other state is actually updated. That's why I suggested reading the registry; reading the values from the same place about which you get notifications seem to make more sense. Does it work?
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|