|
For ready-to-use class, check Dec'97 issue of MSJ, C++ QA column by Paul DiLascia. The article may be included in MSDN on your harddisk. If it's not there, go to msdn.microsoft.com for online version.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Hi,
I have an already created project and I want to merge the proxy/stub code into my DLL, ... how can I do that now ? ( When I created the project I didn´t think that I needed that, ... aaahh stupid check box... stupid me...).
Do I have to compile at least one time with NMake in order to make this proxy stub thing work ?
Thanks in advance, Bye !
Braulio
|
|
|
|
|
I'm developing a Visual .Net application that uses the CMultiPageDHtmlDialog class. This clas uses html pages to display information to the user. The problem is the fact that i have ActiveX int Html pages and when a new page is load, a MessageBox appears informing the user that an ActiveX can be unsafe ... . How can I avoid this messages? I try to change the configurarion of mi Internet Explorer but it dont works.
Thank You.
Jose Vicente
|
|
|
|
|
It has something to do (I think) with the IObjectSafety.
I think by default it's not implemented which makes your activex control unsafe for scripting. I assume to prevent JScript's from accessing your hard drive...
Just add IObjectSafetyImpl to your list of inherited classes and add an entry to your COM map.
Look under your help files ATL example....i think this shows you how it's done.
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I dunno if i'm way off or not so correct me if i'm wrong...
Is it possible to take action on a file drag onto a folder on the desktop...?
For example my program searches for magic bytes inside a file to determine if it's a valid file for that folder...?
Basically is it possible (using Shell extensions) to handle Drag/Drop operations of a desktop folder you create through windows and take action on the file.
Thanx again!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Just found the Shell Extensions tuts by Mike Dunn...Sweet...their a pretty cool concept....
I like..I like...
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I'm using Win98 on a 1GHZ PC. I have MS Visual C++ 6.0 + sp5, DirectX8.1 SDK and MSDN Januray 2001 installed.
I recently discovered that I could add DirectX SDK help directly into MSDN help by editing the XML files MSDN100.COL and HHCOLREG.DAT. Following a few simple instructions from a website I added the DirectX SDK manual (directx8_c.chi, directx8_c.chm) into the Content display of MSDN. On testing it out all worked perfectly. I then clicked the SEARCH tab and performed a search for the keyword "D3D" and it promptly returned back all DirectX results. Perfect. Now i clicked the INDEX tab. Immediately a dialog popped up stating "Preparing index for first time use". No problem I first thought -- MSDN needs to "add" the new DirectX index keywords. Unfortunately this is where the problem occurs.
The "Preparing Index For First Time Use" dialog never ended. After 1 hr of constant HDD access and normal window operations coming to a hault I had to simply warm boot my PC. Unfortunately I couldnt reenter windows and so had to restore an older drive image to C:. Ouch. Can someone tell me what the heck is going on here? Why the is Windows crashing? Why does indexing take so long on a 1GHZ PC?
Perhaps the method Im using to add the DirectX SDK help into MSDN isnt correct? Again, I'm able to see the DirectX help perfectly under Contents and Search, but under Index there seems to be a problem when MSDN automatically goes into the mode of Preparing Index. Perhaps I'm just not waiting long enough? I should mention that one time I waited for 1.5hrs and found the program "msdev" crashed which took down the MSDN help file.
Within the HHCOLREG.DAT file I added the following lines:
------
<doccompilation>
<doccompid value="directxsdk81g">
<doccomplanguage value="1033/">
<locationhistory>
<colnum value="1/">
<titlelocation value="D:\Program Files\Microsoft Visual Studio\MSDN\2001JAN\1033\directx8_c.chm">
<indexlocation value="D:\Program Files\Microsoft Visual Studio\MSDN\2001JAN\1033\directx8_c.chi">
<querylocation value="D:\Program Files\Microsoft Visual Studio\MSDN\2001JAN\1033\MSDN100.CHQ">
<locationref value="2001JAN-1033-Local">
<version value="29344199/">
<lastpromptedversion value="0/">
<titlesamplelocation value="">
<titlequerylocation value="2001JAN-1033-Local">
<supportsmerge value="0/">
------
Thanks for any info.
|
|
|
|
|
SDI App wiz w/ doc/view.
The view is CListView and i'm want to change the style to LVS_REPORT within the CListView's OnCreate.
I have tried
GetListCtrl().SetWindowLong();
but SetWindowLong doesn't exist for CListCtrl....what am I doing wrong...?
How do I change the CListView to report mode...?
Thanx in advance!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Ummmmmm, I am not really sure here, but try using ModifyStyleEx/ModifyStyle
Nish
My miniputt high is now 29
I do not think I can improve on that
My temperament won't hold
www.busterboy.org
|
|
|
|
|
Shite Nish...thanx again...I didn't even think of that...
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Sweet!!
It worked.
Thanx brutha!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
HockeyDude wrote:
but SetWindowLong doesn't exist for CListCtrl....what am I doing wrong...?
That's simple SetWindowLong doesn't exist in MFC. You can use ModifyStyle as Nish pointed out, or call 'raw' SetWindowLong:
::SetWindowLong(GetListCtrl(), GWL_STYLE, whatever);
BTW: you don't need GetListCtrl() call to change style - your view *is* a list control - at the API level, of course.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Of course.
I knew that...
Thanx though!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
If my 32-bit DLL is being called from a 16-bit app. I cannot call
CreateThread(). I want to use a multimendia timer in this DLL, but it "runs
on its own thread" according to MSDN. Does this mean that it cannot be used
in a 32-bit DLL that is called by a 16-bit app?
Many thanks.
|
|
|
|
|
I programmed with Wininet Library.
I know "How to Access authentified resouce ( for example,
Webpage which Can not be Accessed Directly , but requires 'Id and Password' ) ".
HttpRequest the page with "GET" command, and sendRequest "ID = & PassWord= "
"POST" command, the Webpage, is available..
But Usually , Explorer , Authentified the WepPage, accessing another WepPage
in the Session . is NOT required Authentification.
but, I don't know How to HttpRequest in the "Authentified Session".
Please give me some advice about this problem.
sdsa
|
|
|
|
|
I'm going to create a form designer like application. However, I know not much about it. Can someone tell me some hints ?
For creation of components, should i create them by derived from CWnd, and let them "paint" themselves, then handle mouse events in creation, moving, selection ?
However, for "connector component" of the components. Is it I should create the window as width and height of the "connector", and darw "ifself" as transparent besides the linking line?
|
|
|
|
|
Hi
When I create a new ATL project, my DllMan looks like
// DLL Entry Point
extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
hInstance;
return _AtlModule.DllMain(dwReason, lpReserved);
}
What does the statement "hInstance;" do?
|
|
|
|
|
Anonymous wrote:
What does the statement "hInstance;" do?
It's there only to avoid the compiler warning about 'hInstance' parameter being unused. The statement generates no code.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
How can I find which application
open a port (socket communication)
on my computer? More generally, having
a socket handle, how can I find which process
use it?
The same problem for a open file: how can I
know from my programm who opened this file?
Thanks.
|
|
|
|
|
try this:
http://www.sysinternals.com/ntw2k/source/tcpview.shtml
|
|
|
|
|
How do I get the dialog help context button to show on dialogs...?
i've tried both context help checkboxes in dialog editor and they never show...what am I doing wrong...?
Do they workd with only certian dialog types...like resizable and not dialogframe...?
Thanx!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
When you create your project did you check "Context-sensitive Help" at step 5 I think?
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
Not the effect i'm after i'm afraid.
I want the little question mark inside the caption bar.
However now that you mention it...i've just looked through all my apps and haven't seen one with it...?
Could I have been dreaming of a button that didn't exist...?
What the heck I swear i've seen one...weird...
thanx!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
In the dialog resource editor, right click, select 'properties', on the 'extended styles' tab, select 'context help'. The 'context help' in the 'more styles' tab does not seem to work
---
CPUA 0x5041
Sonork 100.11743 Chicken Little
It may be that your sole purpose in life is simply to serve as a warning to others.
|
|
|
|
|
I've tried that, but nothing...?
Unless maybe by having both clicked it won't work.
I dunno what i'm doing wrong...
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|