|
Hi,
I have the followings:
1. A Dll with a custom control (ControlDll.dll)
2. A dll with a dialog using the custom control (DialogDll.dll)
3. An exe that uses the dialog from DialogDll.dll
The control is register nicely like all custom controls using AfxRegisterClass...
When i run the exe, it failed (the dialog was not displayed), what i did is the following:
Checked teh 'no fail create' to see where it failed, and found out it could not find the control from the ID while in 'PrepareCtrl' of the DDX_Control of my custom control.
I then created another dialog, this time in the exe, which uses the same custom control from the ControlDll.dll, and it worked!
It seems that the nesting of dll within dll, and the custom control registration some how got lost
Any help will be wolcomed
10x
ronhash
|
|
|
|
|
I use Timer in my service prog like that:
timer2ID=SetTimer(NULL, 0, INTERVAl,Timer2);
when compile Debug ,it is perfect.but when complie Release,show the error :
D:\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl(469) : error C2039: 'OnTimer' : is not a member of 'CWnd'
D:\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin2.inl(470) : error C2065: 'Default' : undeclared identifier
I don't use CWnd class in my prog.what is the problem?
appreciate any help!!!
|
|
|
|
|
timer2ID=::SetTimer(NULL, 0, INTERVAl,Timer2);
if you use windows api functions but i am not shure what classes and functions you have because you include mfc library.
|
|
|
|
|
Hi All!
Can Any one tell me how to luanch an application by double clicking a file which is associated with the application's icon
Thank Y'All !
|
|
|
|
|
One possible solution is RegisterShellFileTypes().
Kuphryn
|
|
|
|
|
I can't get to my Visual Studio right now, but i had the same problem. there's a function of CWinApp called enableShellOpen or something like that. put that function in your app's initinstance function and it should work.
If it's broken, I probably did it
bdiamond
|
|
|
|
|
Hi,
I have a 3 way split window, horizontal and vertical.
1st on the left is a FormView, containing a lot of edit and radio buttons, suppose to display the different cordinates.
2nd, first row on the right, which is the main view class has a ScrollView.
3rd, second row on the right, has a FormView.
I need to capture the mouse click and movement on the 2nd window and display the coordinates in the edit boxes in 1st window.
Can anyone help
lvidot
|
|
|
|
|
One solution is to add a message handler for the mouse move message in the view class.
Kuphryn
|
|
|
|
|
Thanks,
I'm new to this environment....
So how do I go about that?....
Any help will be most appreciated...
|
|
|
|
|
What are the steps to save the content of the CDC to the Bitmap file?
Well going through the MSDn and web articles i found some of the handy tools that are used for saving the content of Memory device context to bitmap file are:
1.0 Fill the BITMAPHEADERINFO structure
2.0 uSE THE GetDIBits() function
3.0 Use of CreateDIBSection to write
Problem Statement: I am having a global Memory device context. In a function i am initialising it as Mem. DC by calling API -> CreateCompatibleDC().
All the drawing stuff is drawn to it.
Now on Save i have to save the content of the MemoryDevice Context ( MemDC) to a Bitmap file.
Any solution,idea and guidelines to do this.
Leave your mark wherever you go
|
|
|
|
|
codeproject
MFC / C++ >> Bitmaps & Palettes
CxImage
CDibData
A DIBSection wrapper for Win32 and WinCE
etc...
INTP
|
|
|
|
|
Why sometimes when i press . or -> the intellisense will pop-up a menu, but other times it does not. Is there a problem with vc++6? I'm definitely sure that particular object has that member function, but intellisense fails to bring the pop-up menu, all options are enabled btw.
Anyone experienceing same prob like me?
|
|
|
|
|
deleting intellisense database .ncb file helps sometimes VS will built an new and then it should work
|
|
|
|
|
THanks! It works! I deleted .ncb file, and the next thing i know, the intellisense is back!!! Thanks a lot man!
|
|
|
|
|
also, I find that sometimes it doesn't work in a new class or if you're on a line after you've made a syntax error. In new classes, go the .h file and click anywhere within the class definition and hit <enter>. that works for me when intellisense isnt' working or the class isn't showing up in the ClassView window
If it's broken, I probably did it
bdiamond
|
|
|
|
|
It really pisses me off when intellisense occasionally does not work. I'll try deleting .ncb and see if it works then. Thx for the tip
|
|
|
|
|
Hi all,
In my application, i created the property sheet with six property pages.. The property pages are appeared as 2 rows in tab control of the property sheet. I want to display the dialog property pages in a single row. Any one please give me the suggestion to achive this.
Regards,
Prakash
A Journey of thousand miles must begin with a single step.
|
|
|
|
|
I could be wrong on this diagnosis but I think you need to set the style of the tab control so that it doesn't have the TCS_MULTILINE property.
CTabCtrl* pTab = MyPropertySheet.GetTabControl ();
pTab->SetStyle (pTab->GetSylte & ~TCS_MULTILINE); I think that should remove the TCS_MULTILINE style from the tab control.
- Aaron
|
|
|
|
|
Hi,
I got the solution using EnableStackedTabs() method available in CPropertySheet class
Regards
Prakash
A Journey of thousand miles must begin with a single step.
|
|
|
|
|
Hello palls,
I am a C beginner and sti have some probems with memory allocating.
I know how to do it with a 1 dimension array but it doesn't work with a 2 dimension one, and please, how about to free them
|
|
|
|
|
Here is one solution.
char **pArray = new char *[1];
pArray[0] = new char [32];
...
delete [] pArray[0];
delete pArray;
Kuphryn
|
|
|
|
|
please do not forget that delete [] pArray[0]; did not free all memory because some time it does not know how long is the array. if you want to be shure that all memory are free you have to free memory like:
for(int i = 0; i < 32; i++)
delete pArray[i];
and of course delete pArray.
|
|
|
|
|
Currently I had a MFC program written in Microsoft Visual Studio VC++ 6.0.
But it can only be run on a single machine.I would like to change it to web version, which can be browsed by the browser. Is there any efficient ways to do this without rewriting the whole program?
Thanks a lot.
chad yang
|
|
|
|
|
chad_yang wrote:
Is there any efficient ways to do this without rewriting the whole program?
Try Taking snapshots of all the screen and save individual HTM pages and then ..... NAH can't be done like that
i can't even remember what my point is now, but anyway, i'm correct
Barring unforeseen acts of God and Adminstrators, my server will be up tomorrow. I'm more worried about the Adminstrators.
|
|
|
|
|
Umm...
I see....
But does the "ActiveX control" help?
Thank you.
chad yang
|
|
|
|