|
No, under Win9x I can get whatever I want. If i select SYMBOL_CHARSET i get symbols (of Times New Roman, certainly). Under NT i also get symbols, but the font isn't set to Times New Roman. It remains Arial (as it is by default)
|
|
|
|
|
OK, one more question about ActiveX starting :
I have my own IDocHostUIHandler, and inside is TranslateURL and ShowUI
.
On some page is link, something like blabla/news/av/newstv.asx.
after click on link, in TranslateUrl, i try to stop my WebBrowser
control,because I want to start media player, something like
STDMETHOD(TranslateUrl)(DWORD dwTranslate, OLECHAR* pchURLIn,
OLECHAR** ppchURLOut)
{
CString LinkName( pchURLIn);
if (LinkName.Right(3) == "asx")
myBrowser.Stop();
*ppchURLOut = NULL;
return S_OK;
but player is still start and i have video stream after exit.
How to prevent this ? Obviusly, this is not right place for try to stop
execution ( probably for all executables types) .
I'm trying lot of other interfaces, but can't find what's happend. Have
somebody some idea (or , better, expeience) about this proccess ? Where is
connection point between in page embeded file and shell routine for
execution ?
Duke
|
|
|
|
|
Can a console app create a thread that has a window? More specifically, if I create an ActiveX control from a console app, and that control has a method that creates a user-interface thread, will it work?
|
|
|
|
|
yes, no problem for a win32 based window.
--------------------------------------------------
If my messages appear curt, I apologize.
I try to be brief to save your time as well as mine.
--------------------------------------------------
|
|
|
|
|
I need info about the file formats for DiskJuggler, Nero, Easy CD Creator, CDRWin etc. and so far I have found...none! Anyone who has an idea of where I can find this info?
|
|
|
|
|
Try to find sth on http://www.cdfreaks.com/
|
|
|
|
|
Hello,
I would like to know how to be sure if my programm is producing good printing on every kind of printers. (Laser, Ink jet, .., Epson or HP).
Thank you
|
|
|
|
|
My suggestion is to implement print preview, and test it out with your desired set of printer drivers. This is about as close as you can get if you don't want to buy all the printers.
|
|
|
|
|
Hi, I would like to know how to close, or at least hide a window based app with vc++...
As im a newbie in vc++, it would be appreciated if you could be as specific as possible with the code...
Thank you heaps in advance!
|
|
|
|
|
To close an application just write
PostQuitMessage(0);
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
I have written my own strlen() function called my_strlen(). I works quite well.
int my_strlen(const char *source)
{
int len = 0;
while(*source)
{
len++;
*source++;
}
return len;
}
Now my question is:
Which function ist faster, my version, or the asm-version of the original strlen?
thanks
modified 12-Sep-18 21:01pm.
|
|
|
|
|
The original one is faster...
You could also make your own faster like this:
int my_strlen(const char *source)
{
char *old = source;
while(*(source++) != '\0');
return source - old;
}
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
What is the proper way for my VC++ app to read entries from the outlook address book, if there is one on the system?
Do I have to use office-type COM objects or is there a better way to do it?
Thanks
|
|
|
|
|
Which version of Outlook? Outlook Express? Outlook 97/98/2000 or XP. Are the entries stored on Exchange or in a .PST.
With Outlook 97/98/2000 you can use extended MAPI. I think with 2000 you can use CDO but have not tried it yet. As for XP, don't know - not got it yet.
I'm not sure if the office COM objects will be much use in XP or 2000, I think the security patches stop external apps from reading the address book. Or at least it will pop up a message asking for a users authorisation to access the address book.
Michael
|
|
|
|
|
I'm not even sure quite what i want to do. I'm writing a app to talk to a mobile phone, and would like to add the ability to sync with a users phonebook, in outlook. so i guess by outlook i mean all versions, express and normal.
microsoft dont make it easy.
|
|
|
|
|
Hi,
I am using the CHtmlView->InsertAdjacentHTML to add DHTML to the body of the document im displaying and I have three problems
1) Im adding anchors with OnMouseOver events attached to the links, these are not being displayed on the inserted HTML.
(I need to make the IE engine re-parse the document)
2) Although new HTML has been added to the page it is not displayed unless I move the mouse over the window.
(but the first insert displays immediately, subsequent ones need mouse event)
3) Often when I scroll the window whilst HTML is being added by a background thread, the text/gfx seem become lost and a page refresh produces a blank screen but input-boxs are still visible?.
(i am using GetBusy() to wait before inserts)
Hope someone can help
John
|
|
|
|
|
Hello,
I am trying to get a point to a client window without status bar and tool bar. How can I do it? Thank you very much
|
|
|
|
|
I have read with interest the article CODBCRecordset for reading data from
an excel spreadsheet.
My problem is that this appears to work intermitenly. I have a spread sheet with formats of general but sometimes it will read in a others times it won't.
If I force the data types of the columns that doesn't appear to work.
Has anybody encountered such a problem before ? Any ideas
Cathy taylor
|
|
|
|
|
Does anyone know how I can find out what NT groups a user belongs to.
Given a domain and account name, I can get the user's SID but I would like to find out (recursively) what groups he belongs to. I need this so that I can walk a DACL to see if he has access to a given file. I would like to use GetEffectiveRightsFromAcl() but it appears to be totally broken (MSDN sez that it fails under NT4 SP4 and SP6; my testing shows that it has problems under W2K as well). My code works fine for user SID's but obviously I need to take into account group memberships as well.
As an aside, I also tried getting a token (via LogonUser()) and calling AccessCheck() which works fine for files that have no security assigned. When I try to assign an ACE (via Explorer), AccessCheck() fails with ERROR_INVALID_SECURITY_DESCR ("The security descriptor structure is invalid").
HANDLE hToken ;
DWORD rc = LogonUser( pUserName , pDomain , pPassword , LOGON32_LOGON_NETWORK , LOGON32_PROVIDER_DEFAULT , &hToken ) ;
assert( rc ) ;
HANDLE hFile = CreateFile( "d:/tmp/junk" , GENERIC_READ , 0 , NULL , OPEN_EXISTING , FILE_ATTRIBUTE_NORMAL , NULL ) ;
assert( hFile != INVALID_HANDLE_VALUE ) ;
SECURITY_DESCRIPTOR* pSD ;
ACL* pACL ;
rc = GetSecurityInfo( hFile , SE_FILE_OBJECT , DACL_SECURITY_INFORMATION , NULL , NULL , &pACL , NULL , (void**)&pSD ) ;
CloseHandle( hFile ) ;
assert( rc == ERROR_SUCCESS ) ;
DWORD desiredAccess = FILE_READ_ATTRIBUTES ;
GENERIC_MAPPING genericMapping ;
PRIVILEGE_SET privilegeSet ;
DWORD privilegeSetLen = sizeof(privilegeSet) ;
DWORD grantedAccess ;
BOOL accessStatus ;
rc = AccessCheck( pSD , hToken , desiredAccess , &genericMapping ,
&privilegeSet , &privilegeSetLen , &grantedAccess , &accessStatus
) ;
assert( rc ) ;
cout << "AccessStatus=" << accessStatus << endl ;
|
|
|
|
|
|
Kinda. They return the group names, not SID's and are a total pain in the ass to work with; you have to everything twice, once for networked groups and once for local and they only work with Unicode strings. I was hoping for some function that I could just call and it would return a list of SID's.
|
|
|
|
|
> Kinda. They return the group names, not SID's
What about GetTokenInformation with TokenGroups as TokenInformationClass?
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
Hi All,
I have a problem with disconnected recordsets.I have a component.One if it's function will get the selected Records in a Database.I am passing the Recordset pointer from the server to the Client.I am using disconnected
recordsets for this.
I can see that at the server side I am getting the Recordset
pointer.But, I could not get this pointer on the client side.
the function has the protoype
STDMETHODIMP GetSpecificElements( [out] IUnknown **ppRecordset);
I could get the Recordset pointer at the server side, but could not pass it to client.I am using Client side cursor(adUseClient) and standard
Marshaling.I am using some user defined classes inside this function to Open Database and get the Recordset Pointer .I could get the Recordset Pointer inside these classes , but failed to get
this pointer from this function to client .Does the Disconnected Recordsets vary between ADO and ADOX ?
what could be the problem ?
Thanx in advance for the help.
Regards,
yamini
|
|
|
|
|
Hi!
I need to trap the event that occurs when a checkbox control gains focus.Need to do some validation as soon as this happens.There is no such default event for a checkbox. How do I trap this? Please let me know.
Thanks and Regards,
Leo.
|
|
|
|
|