|
dose the class CFindReplaceDialog defined in
#include <afxdlgs.h>????
i feel good.
|
|
|
|
|
It's an MFC dialog, it will be defined in the MFC source, which comes with VC. Do a find in files for CFindReplaceDialog:: and you'll find the source.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Instead of using (c) in the About box I used the real symbol ©.
On my machine and a lot of others it is perfectly visible.
But, I have a colleague (who runs XP) who doesn't see that symbol
in the about box. Instead he sees a '?'.
Also, when he opens my project in MSDEV, he can't see the ©,
but again sees a '?' instead.
When he looks e.g. at the about box of Outlook the © is perfectly visible.
Any ideas on how to solve this?
Thanks.
|
|
|
|
|
What font are you using?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Hi Rickard,
I'm using the standard MS Sans Serif (size 8).
So, it's not that this symbol doesn't exist in that font.
Thanks for your reaction.
Geert.
|
|
|
|
|
strange, perhaps have a look into your .rc file ? any strange things or unwanted code page (language local)?
|
|
|
|
|
Nothing suspicious.
Language is English (U.S.) and the © character is perfectly visible.
Must be something with XP I guess.
Geert.
|
|
|
|
|
How can I make a DialogBase Program with no TaskBar Button.
I can make it by StatusBar icon;). But i can't remove it's TaskBar button .
Plaese guid me how do I it.
THANKS.
|
|
|
|
|
have a look at this[^] article
Cheers
Kannan
|
|
|
|
|
hi,
I'm not able to execute script using IHtmlWindow2 as execScript function fails..for e.g thr following code returns failed..
BSTR bstrCode = ::SysAllocString(L"MsgBox \"Hello there\"");
BSTR bstrLanguage = ::SysAllocString(L"vbscript");
VARIANT var;
VariantInit(&var);
hr = pWindow->execScript(bstrCode, bstrLanguage, &var);
if(SUCCEEDED(hr))
AfxMessageBox("success!!");
else
AfxMessageBox("failed !!");
Can anyone Help me with this?The IHTMLWindow2 is successfully created and its other functions like pWindow->alert(.. work correctly in this same code.
thanx in advance,
viraj
|
|
|
|
|
Hi,
I've Created an ActiveX container application by selecting container in the third step of the Wizard of to make an SDI Application. I'm able to Insert ActiveX Objects into the Application. they look real great. The problem is the window Messages like Left Mouse Button Click MouseMove etc.. are not being sent to the control as a result it just appears to be doing nothing but appear as images. is there any method that would enable the controls to recieve User Interface messages. Would be very thankful for helping out.
Thank You
|
|
|
|
|
Hi,
I've Created an ActiveX container application by selecting container in the third step of the Wizard of to make an SDI Application. I'm able to Insert ActiveX Objects into the Application. they look real great. The problem is the window Messages like Left Mouse Button Click MouseMove etc.. are not being sent to the control as a result it just appears to be doing nothing but appear as images. is there any method that would enable the controls to recieve User Interface messages. Would be very thankful for helping out.
Thank You
|
|
|
|
|
I have a drop-down list style combo box control in my program, with about 10 items in it. In XP, when it is dropped down, it shows all the items at once, like I want it to. But in 98, it only shows one item, with tiny up and down scrollbars to show the other items. Why does it do that? How can I make it show all the items at once?
Thanks!
|
|
|
|
|
Did you try extending the Combo Box's drop down length at design time.
By default it displays the tiny scrollbar as if there is only one item.
Cheers
Kannan
|
|
|
|
|
I can only make it wider in the dialog editor
|
|
|
|
|
Nevermind, I figured it out
|
|
|
|
|
This probably sounds like an ridiculously simple question but the DirectX 8.0 docs read like stereo intructions:
Once I have created an IDirect3DTexture8 texture in DirectX 8.0, how do I go about setting the color and alpha channel of individual pixels in that texture if I do not want to do so by loading an image file? (Actually, I am loading an image file but it's in a special format so I can't use any of the DirectX LoadImage functions.)
|
|
|
|
|
Calling SHGetSpecialFolderPath with CSIDL_WINDOWS and with CSIDL_DESKTOPDIRECTORY works fine in Windows XP, but in Windows 98 (SP1, IE6 SP1) CSIDL_WINDOWS doesn't work. Why is that? Is there a better way to get the user's Windows directory?
Thanks!
|
|
|
|
|
IGx89 wrote:
Calling SHGetSpecialFolderPath with CSIDL_WINDOWS and with CSIDL_DESKTOPDIRECTORY works fine in Windows XP, but in Windows 98 (SP1, IE6 SP1) CSIDL_WINDOWS doesn't work. Why is that?
According to MSDN, usage of CSIDL_WINDOWS requires Shell32.dll v5.0, i.e. at least Windows 2000 or Windows Millenium.
IGx89 wrote:
Is there a better way to get the user's Windows directory?
Try following:
TCHAR szWinDir[MAX_PATH+1] = {0};
GetEnvironmentVariable(_T("windir"), szWinDir, MAX_PATH);
Regards
Thomas
Sonork id: 100.10453 Thömmi
Disclaimer: Because of heavy processing requirements, we are currently using some of your unused brain capacity for backup processing. Please ignore any hallucinations, voices or unusual dreams you may experience. Please avoid concentration-intensive tasks until further notice. Thank you.
|
|
|
|
|
IGx89 wrote:
Is there a better way to get the user's Windows directory?
How about the standard, old GetWindowsDirectory(...) function?
BTW: I do not believe that Win9x supported different/shared Windows/System directories a'la Win2K or later.
Peace!
-=- James (Sonork:100.21837)
[Tip for SUV winter driving survival: "Professional Driver on Closed Course" does not mean "your Dumb Ass on a Public Road"!] [Get Check Favorites 1.5 Now!]
|
|
|
|
|
Hehe, that function just might work
|
|
|
|
|
hi everyone,
i'm working on a sdi application with window's explorer style(i.e. a
sdi application with a vertical splitter, dividing the windows into 2
panes, left and right pane).
i added a command, named 'add info', to the main menu and added the event handler to 'add info'. the coding of the event handler of 'add info'
command is done in left pane class. what 'add info' command do is creating a dialog that collects inputs from users then store these user inputs into a database. i modified the contructor of the dialog for 'add info' to accept a database object pointer(get past from the left pane class, when the dialog object is created).
when i start the program, if the windows focus in on left pane, i was able to run 'add info' command, display the dialog, save the inputs from the dialog and store in the database without any problem.
the problem occurs when my window focus is on right pane, if i run
'add info', i get error 'Unhandled exception at 0x005832ba in cat.exe: 0xC0000005: Access violation reading location 0x61636f4c.'
and the debugger points out that the program crashes at line 44 in objcore.cpp, within the function iskindof(.....)..
here is the function..
BOOL CObject::IsKindOf(const CRuntimeClass* pClass) const
{
ASSERT(this != NULL);
// it better be in valid memory, at least for CObject size
ASSERT(AfxIsValidAddress(this, sizeof(CObject)));
// simple SI case
CRuntimeClass* pClassThis = GetRuntimeClass();
return pClassThis->IsDerivedFrom(pClass);
}
i have no idea how to fix this bug. can someone help me out? thx in advance..
|
|
|
|
|
Did you try checking whether the db pointer you are passing to the dialog is valid.
Cheers
Kannan
|
|
|
|
|
how do you check whether the db pointer that i'm passing to the dialog is valid or not? because the dialog works perfectly when i had my window focus on the left pane, which is where the event handler was coded from, but when my window focus is on the right pane, my application crashed.. i too was suspecting about the db pointer, but i don't know how to fix it.. any suggestions? thx in advance.
|
|
|
|
|
When it is crashing in some windows function, you simply have to look into the call stack window to see from where it was called. Do this recursivly until you end into a class or function you know (either having written it or having used it in your code). Then look in there what went wrong .
"My opinions may have changed, but not the fact that I am right."
Found in the sig of Herbert Kaminski
|
|
|
|