|
Sure can. Overload OnInitialUpdate().
|
|
|
|
|
Thanks! That did it.
|
|
|
|
|
here is what i am trying to do:
i am working in a splitter window in which on splitter has explorer window as i enter url of a site it loads its main page and now here i want a system to check whole site to search for working links and links that are not working or dead and after detecting alive and dead links of the site it should show the links information in tree view in on of the splitter pane .i want source code for this problem .please help me to solve this problem(using vc++6).
waseem qureshi email:waseem_1111@yahoo.com
qureshi's request
|
|
|
|
|
Have you tried http:///www.kissmyass.com ??? Your more likely to find ALL that source code there.
|
|
|
|
|
I have a class that I just deleted a couple of buttons from and then all a sudden the class disappears from the class view.
The class still compiles and everything works as if nothing is wrong....just can't access it from the class view.
I tried cleaning the project and deleting the .clw file...nada
Any idea on how to get it back?
Thanks for any help
|
|
|
|
|
When this happens, I go to the file view, open the class's header file, and make a temporary change, to force the file's "modified" flag to be set. Remove the change and hit "Save". The Class magically appears in Class view!
|
|
|
|
|
Thanks Ron that worked great!
|
|
|
|
|
Heres what I am trying to do:
I create two different documents in an MDI project. Its a CFormView based project and each view is to be associated with a different dialog resource. On the fly I want view1 to spawn view 2 (or make it topmost if it already exists). Ideally I want the app to start with both documents (and associated views) created, but the hidden one comes to the top when the top one tells it to. Then the user calls a dll which returns some info. I want to give this info to view1(or document1), and bring view1 to the top again, hiding view2.
CAn this be done? What do I need to do? ANy pointers (haha) would be greatly appreciated. Also, my first view apwans a login dialog (modal) which is to return the password successful info to view 1 so that certain menu items get enabled in view1. What do I do here to pass this information?
Thank you very much,
ns
|
|
|
|
|
I meant "spawns" not apwans...
|
|
|
|
|
sir
i want a program to search whole of the website(any) and check all the links whether those are working or not in visual c++6.
please help me, thanks
waseem ahmed
email: waseemahmed@pakistanmail.com
|
|
|
|
|
See the 5th example in my Web Resource Provider article.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hi folks,
Does anyone know of any free source, components, or libraries that can open a TIFF file format and convert it to a bitmapped image. While I am at it, does anyone know of free source, components, or libraries that implement the Floyd-Stienberg dithering algorithm for halftoning. I have tried some stuff I found on the web and most of my test cases can not be opened by the code I have found.
Thanks for any help!!!
|
|
|
|
|
http://www.6ixsoft.com/
http://www.codetools.com/bitmap/graphicsuite.asp
http://www.efg2.com/Lab/Library/ImageProcessing/DHALF.TXT
http://www.efg2.com/Lab/Library/ImageProcessing/Algorithms.htm
http://thorkildsen.no/faqsys/docs/dither.c
|
|
|
|
|
there are a bunch on this site that do all of that.
the standard for TIFF reading is LibTiff (used by most of the things on this site), if you want to go right to the source, so to speak.
-c
Garbage collection, making life better - for weenies!ImgSource - Image Processing, now with extra biscuits!
|
|
|
|
|
As for the dithering, I think paintlib implements it (and paintlib works as a dream with LibTiff)
Cheers, Marc Click to see my *real* signature
|
|
|
|
|
How can i put the contents of a string into a double?
100000000000000000000000000000000 for instance?
atoi works up to the max value of a int, then it craps out...
Thanks
|
|
|
|
|
try atof
-c
Garbage collection, making life better - for weenies!
|
|
|
|
|
If you need some formatting options try sscanf().
|
|
|
|
|
I've always liked strtox , as it gives you some idea of whether or not the conversion worked:
char* mightBeANumber;
char* pEnd;
double d = strtod(mightBeANumber, &pEnd);
if (!*pEnd) {
}
Just my opinion, anyway.
Stuart Dootson
'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
|
|
|
|
|
I have added a function to my activex control (by right clicking on the interface etc). The control compiles properly and registers OK. However, when I try and use this function from VB or from VC I get an error "Member function not found" (at runtime.)
Anyone have an idea what this might be??
Thanks
|
|
|
|
|
Hi all, I want to draw a mere triangle on the screen using Direct3D and DirectDraw(which is becoming more and more of a pain in the a**e). I have done the following:
1.) Set up my custom window.
2.) Initialised DirectDraw.
3.) Set Cooperative level.
4.) Set Display Mode (1280x1024x16).
5.) Created Primary Surface with 1 Backbuffer.
6.) Obtained an IDirect3D7 pointer using QueryInterface with the DirectDraw pointer.
7.) Used 3D7->CreateDevice(GUID, PS Backbuffer, &D3DDevice7);
where the GUID is IID_Direct3DTnLHalDevice as detected by an enumeration function, D3DDevice7 is a pointer to the structure you expect (initialised to NULL).
8.) The viewport is created.
None of these initialisation aspects return an error. The app then enters the WindowProc callback function to process any messages. The WindowProc function uses PeekMessage to see if there are any pending messages, if there are NOT it calls the Render() function, which uses the following code to render ONE gouraud shaded triangle:
HRESULT CDarkSoldier::Render()
{
if (SUCCEEDED(m_DXControl.m_pD3DDevice7->BeginScene()))
{
D3DTLVERTEX v[3];
v[0] = D3DTLVERTEX(D3DVECTOR(160,50,0), 1, D3DRGB(1,0,0), D3DRGB(0,0,0), 0, 0);
v[1] = D3DTLVERTEX(D3DVECTOR(440,200,0), 1, D3DRGB(0,1,0), D3DRGB(0,0,0), 0, 0);
v[2] = D3DTLVERTEX(D3DVECTOR(160,550,0), 1, D3DRGB(0,0,1), D3DRGB(0,0,0), 0, 0);
m_DXControl.m_pD3DDevice7->DrawPrimitive(D3DPT_TRIANGLELIST, D3DVT_TLVERTEX, (LPVOID)v, 3, NULL);
return m_DXControl.m_pD3DDevice7->EndScene();
}
return S_OK;
}
However, the screen is blank when my app runs. I have added a MessageBox() function into the BeginScene() block and re-run the code, the messagebox pops up instantly (even when pressed ok), which means this block of code IS being run. I have also used a HRESULT to test the values that come out of DrawPrimitive and EndScene functions, they are both OK (no errors). I have not got a clue why it doesn't work, I have tried flipping the primary surface all to no avail. Also, when my app exists I have the following code:
CDApp::~CDApp()
{
if (m_pD3D)
{
m_pD3D->Release();
m_pD3D = NULL;
}
if (m_pDD)
{
m_pDD->Release();
m_pDD=NULL;
}
}
Strangely enough if I add this:
if(m_pD3DDevice)
{
m_pD3DDevice->Release();
m_pD3DDevice = NULL;
}
ANYWHERE in the destructor block, the application causes an unhandled exception upon release of the m_pD3DDevice, which has been initialised and is NOT NULL. Why the hell is this happening. Do you think the problem is interlinked? I would appreciate any views or links to web sites that deal with this kind of problem. I cannot see where the problem lies at all. I have managed to load a bitmap into an offscreen surface, blit it to the backbuffer and flip it and the image gets displayed, so the problem isn't with that. Anyway, thanks for reading the problem this far, just hope you can take some time to suggest some PC saving ideas, or else PC will be going out the window, Direct3D attached to its BackSIDE.
Alan.
"When I left you I was but the learner, now I am the master" - Darth Vader
|
|
|
|
|
I'm trying to write a visual studio add-in and I need help doing what I think should be a relatively simply task: writing to the visual studio's build or output window.
I have seen add-ins that do this, but can't find source code to show how it is done. I am unexperienced with COM so I find it difficult to understand the IApplication class provided by DevStudio Add-in Wizard generated code to see if it provides such a function (which I don't think it does). I am using the Workspace Whiz Interface, but it also does not seem to present such a function. I have downloaded source code to add-ins that supposedly write to the output or build windows in MSVC++, but I can't find the code chunks where it does it, and many of them won't compile to test them further.
I have read about the "undocumented visual C++" which is an article on this site somewhere, but it only makes vague references to the fact that this can be done, without explaining how it is done. Well, it implies that you have to set up window hooks, but it doesn't give any more specifics than that.
Can somebody with experience in the matter just implement this function for me, or point me to some documentation on how I can implement this function?
void WriteToBuildWindow(const CString& sMessage)
{
//TODO: write the contents of sMessage to the build window of MSVC++
// or output window if the build window can't be done
// or any other equivalent window as applicable
}
|
|
|
|
|
I have an MDI application. What I need to do is limit the number of MDI windows open at one time to two(2).
How can I do this easily? I thought of using OnFileOpen() and then counting the number of times it went to this function was called, but I can still open multiple windows. Then I thought of going into the resources. I saw they had about 28 files that could be opened, so I limited that to two. That didn't work either.
I have no other code to show you, but any hints would be appreciated.
Best,
John Soares
support@onlinescamreports.com
|
|
|
|
|
Do you have multiple document templates? Or multiple views off of the same document... Either way what you are asking is possible. Just two different ways to do it.
|
|
|
|
|
How can we build a Dll with template-based-class export capability?
Can we export classes like this:
#ifdef INSIDE_DLL_PROJECT
#define DLL_OBJ __declspec(dllexport)
#else
#define DLL_OBJ __declspec(dllimport)
#endif
template<class T>
class DLL_OBJ SimpleTemplateClass
{
//declarations and class interface
};
I want to hide my implementation template classes and build a Dll (as we do for non-template export Dll) instead of distributing all class codes in an .h unit.
Does the same problem prevent MS to build WTL Dlls?
I use MS Visual C++ 6.
|
|
|
|
|