|
As I thought, CMyTabDlg was a class name, not variable name, so that, it is illegal to appear as a function argument.
|
|
|
|
|
//CMyTab
//MyTab.h
CDialog *m_tabPages[2];
//MyTab.cpp
m_tabPages[0]->Create(CMyTabDlg,this);
My demo is MDI application.
i have a class.This is CMyTabCtrl,
i found codeproject web site.
this demo is dialog base application.
i run this demo is ok.
and i making mdi application.
and use this class.
but i don't know.what parameter place in
"CWnd* pParentWnd".
>>>>>m_tabPages[0]->Create(CMyTabDlg,this);
>>>>>function argument(CDialog::Create)
BOOL Create( LPCTSTR lpszTemplateName,
CWnd* pParentWnd = NULL );
|
|
|
|
|
BOOL Create( LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL );
In this case, the first argument typed string?
|
|
|
|
|
Yes!!!
i change.................
m_tabPages[0]->Create(IDD_MY_DLG,this);
thank you so much...........
|
|
|
|
|
Can you make me a program in C++ that taking the inverse of a matrix using Gaussian Elimination?
|
|
|
|
|
if you aren't going to sell or distribute the source code you can use or modify the source from numerical recipes http://www.library.cornell.edu/nr/cbookcpdf.html
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts your aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
you're nicer than i am mate
i'd have told him to bugger off and do his own homework
cheers
Bryce
---
To paraphrase Fred Dagg - the views expressed in this post are bloody good ones.
--
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
Our kids book :The Snot Goblin
|
|
|
|
|
C++ Seeker wrote:
Can you make me a program in C++ that taking the inverse of a matrix using Gaussian Elimination?
I assume you mean Gauss-Jordan elimination, but I wouldn't do it that way. It works, but it's very unstable. A much safer way would be to use LU decomposition.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
C++ Seeker wrote:
Can you make me a program in C++
yes i can, but i won't
we're not on www.MakeMyHomeworkProject.com
TOXCCT >>> GEII power
|
|
|
|
|
I cut or copy a file(Directory),before I paste it in my own definite directory,for example,C:\temp ,i want to encrypt the file or directory ,how can i ?use shell or use hook?
thanks
cjg
|
|
|
|
|
BOOL CPopguardDlg::Shell_APP(CString str)
{
SHELLEXECUTEINFO sei;
ZeroMemory(&sei, sizeof(SHELLEXECUTEINFO));
sei.cbSize = sizeof (SHELLEXECUTEINFO);
sei.lpVerb = NULL;
sei.lpFile = str;
sei.nShow = SW_SHOW;
sei.hInstApp = NULL;
sei.lpDirectory = NULL;
sei.fMask = SEE_MASK_DOENVSUBST|SEE_MASK_NOCLOSEPROCESS;
sei.lpParameters = NULL;
if (ShellExecuteEx (&sei) )
return TRUE;
else
return FALSE;
}
"Naked we come and bruised we go."
- James Douglas Morrison
Best Wishes,
ez_way
|
|
|
|
|
When I try to modify the afxcore.rtf or afxprint.rtf for any reason, for example, I try to replace <<your app="">> with the name of my app the modified rtf file won't compile. Help workshop gives a couple of compile errors when I compile the hlp this way.
I open the files as rtf's in Word and save them in Word.
Anyone else out there have this happen?
Is it a MVC++ problem?
|
|
|
|
|
1) What are the errors?
2) Are you sure you're saving the files in Rich Text format, not Word's native format?
|
|
|
|
|
All,
I am working on a project to simulate a Jungle using C++. Being a 'non-graphics' coder, I am having a hard time envisioning a nice, easy way to graphically represent this Jungle simulation.
A little background:
The Jungle contains a few different kinds of animals which Move, Attack, Defend, Breed, etc.
The Jungle must be a simulation of the interaction of the animals...2-dimensional is recommended
Now, I am OK on the code for the interaction and the storage of the classes and all that...but, since I am a 'non-graphics' coder, what would you all suggest the 'best' option for me to graphically simulate these 'animals' (i.e. E's for elephants, M's for monkeys) moving around in this Jungle (in Windows, using Visual Studio 6, C++).
I could technically work with an array of characters that changes as the symbols that represent the animals move around, fight, breed, etc and simply print that to the standard console...but I am not sure how well ths works in a Windows Console. I know with Unix, I could use cursors or something like that to make it look nice (doesnt just continually scroll and display, scroll and display each time a day goes by in this sim). Is this the easiest option? Will this become a factor after a long enough running simulation (like 1000 sim-days of movement/breeding/fighting)
Is there a better way with forms/panels/datagrids? I am simply looking for suggestions on how to best use VC++ and Visual Studio to show the symbols moving around in a grid-like (2-dimensional) environment that wont cause me huge headaches and that is relatively simple to develop. I dont have all the time in the world .
Any input is greatly appreciated. Thanks!!!!
Casper
|
|
|
|
|
Direct Draw. Then you can just create a bitmap that contains all the images you need, and draw the bits you want in the right places.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I am not sure I understand 'Direct Draw'?
Also...can these symbols be moved on the bitmap alot? They need to move alot...prolly each item needs to move about 1000+ times...
Thanks!
|
|
|
|
|
I think Direct Draw would be good to handle so many moves. Another option is OpenGL.
Have a great day ahead!
Regards,
Sohail Kadiwala
(My Blog - http://blogs.wdevs.com/sohail/[^])
modified 21-Apr-21 21:01pm.
|
|
|
|
|
PSU Casper wrote:
I am not sure I understand 'Direct Draw'?
Google is your friend. Direct Draw is part of DirectX.
PSU Casper wrote:
Also...can these symbols be moved on the bitmap alot?
Much as you like - knock yourself out. Open GL is for 3D, that's a ton more work that Direct Draw ( 2D ).
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Thanks -
I will look into Direct Draw.
I appreciate your help. I may call on you again should I get stuck with the graphical widgets.
Greatly appreciated!!!
Casper
|
|
|
|
|
Alright here is the situation...I want to have an MFC image frame that when you drag a picture from a web site or hard drive onto the frame the program copies the image to a selected folder and displays the image in the frame. I found the option to accept files but i don't know what to do from there. Any assistance would be helpful. Thank You.
|
|
|
|
|
I have this program I made to do some stuff I wanted. It uses plain win32 (no-MFC) and draws a bitmap in a window. Well, at first I was just using normal GDI and StretchBlt and it worked perfectly, but I wanted bicubic interpolation so I converted it to GDI+. So it basicly works fantastically and looks much more crisp, but for some reason the redrawing is highly erratic. When it needs to redraw (after another window was hiding or something like that), it sometimes work but more often it doesn't work and just displays an empty window. Sometimes, however, you can see the image flicker as the window gets unhidden and then the image immidiately disappears. Also, when you would move the window so some of it is out of the monitor's bounderies and then move it quickly into show again, the image would have empty reigons that do not get redrawn even after letting go of the window. And it's not just the image: If I make it also fill a rect on the whole client area, it would have the same erratic behavior. So, it's not just the image. Is GDI+ known to have these oddities when redrawing? I haven't updated my GDI+ libraries or DLLs; My DLL is just what came in XP and my libraries are just what came with VS.NET 2003. I'm starting up GDI+ and shutting it down all just fine, and I link everything just fine and I don't get any unresolved externals or anything, and it does work, except for this weird redrawing issues.
Any help would be much aprreciated. Thanks.
|
|
|
|
|
Do draw in WM_PAINT , then the image always exist.
|
|
|
|
|
Exactly what I'm doing. The Bitmap object is created in WM_PAINT as well so it does exist. Besides when it doesn't redraw well, if you move a window over it to make it redraw it will sometimes make it redraw well. I doubt it has anything to do with the image file itself, especially seeing how it acts oddly with rect filling too.
|
|
|
|
|
Hi,
The subject pretty much says it all. What I'd like is an example in plain-jane C++ (I'm using Borland C++Builder) that implements a bare-bones edit/display control that demonstrates ITextHost, ITextServices and ITextDocument. I normally use Delphi and I'd like to get a better handle on windowless richedit controls so I can bypass the gawdawful TRichEdit and develop one which allows me to do more margins, borders, and such features.
Derek Benner
|
|
|
|
|
Hi,
I've developed a dll that, when registered, shows a browser band similar to the Yahoo or google toolbars within Internet Explorer. Now I want to put this dll on my webpage so anyone can download it.
My question is that is it possible to download and register it like you can an ActiveX control or will i need to come up with an installer package.
Thanks in advance.
|
|
|
|